2002-12-11 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5a4d6ff4
MK
12002-12-11 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-tdep.c: Include "dummy-frame.h".
4 (i386_frame_chain, i386_frame_saved_pc): Replace
5 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
6 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
7
a5afb99f
AC
82002-12-10 Andrew Cagney <cagney@redhat.com>
9
10 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
11 Change to a function with predicate.
12 * gdbarch.h, gdbarch.c: Re-generate.
13 * frame.c (get_prev_frame): Update. Test
14 DEPRECATED_INIT_FRAME_PC_P.
15 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
16 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
17 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
18 * alpha-tdep.c (alpha_gdbarch_init): Update.
19 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
20 * mips-tdep.c (mips_gdbarch_init): Update.
21 * i386-interix-tdep.c (i386_interix_init_abi): Update.
22 * arm-tdep.c: Update comments.
23 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
24 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
25 * frv-tdep.c (frv_gdbarch_init): Ditto.
26 * x86-64-tdep.c (x86_64_init_abi): Ditto.
27 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
28 * s390-tdep.c (s390_gdbarch_init): Ditto.
29 * v850-tdep.c (v850_gdbarch_init): Ditto.
30 * vax-tdep.c (vax_gdbarch_init): Ditto.
31 * sh-tdep.c (sh_gdbarch_init): Ditto.
32 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
33 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
34 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
35 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
36 * i386-tdep.c (i386_gdbarch_init): Ditto.
37 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
38 * cris-tdep.c (cris_gdbarch_init): Ditto.
39 * avr-tdep.c (avr_gdbarch_init): Ditto.
40 * arm-tdep.c (arm_gdbarch_init): Ditto.
41 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
42 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
43
6604731b
DJ
442002-12-10 Daniel Jacobowitz <drow@mvista.com>
45
46 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
47 CHILD_FOLLOW_FORK.
48 * hppah-nat.c (saved_vfork_pid): Add.
49 (child_post_follow_vfork): Remove.
50 (child_follow_fork): New function.
51 (child_wait): Call detach_breakpoints after receiving the child vfork.
52 Call child_resume directly instead of going through resume ().
53 Make sure we have the exec before reporting the vfork.
54 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
55 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
56 (follow_fork): New function. Call target_follow_fork.
57 (follow_inferior_reset_breakpoints): New function broken out from
58 old follow_inferior_fork.
59 (resume): Remove hack to follow exec after vfork.
60 * inftarg.c (child_post_follow_vfork): Remove.
61 (child_follow_fork): New function.
62 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
63 * target.c (cleanup_target): Replace to_post_follow_vfork with
64 to_follow_fork.
65 (update_current_target): Likewise.
66 (setup_target_debug): Likewise.
67 (debug_to_post_follow_vfork): Remove.
68 (debug_to_follow_fork): New function.
69 * target.h (struct target_ops): Replace to_post_folow_vfork with
70 to_follow_fork.
71 (child_post_follow_vfork): Remove prototype.
72 (child_follow_fork): Add prototype.
73 (target_post_follow_vfork): Remove macro.
74 (target_follow_fork): Add macro.
75
7d2830a3
DJ
762002-12-10 Daniel Jacobowitz <drow@mvista.com>
77
78 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
79 (child_post_follow_vfork): Cancel pending exec event if we follow
80 the parent.
81 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
82 events have been processed. Return a fake TARGET_WAITKIND_EXECD
83 event at the following wait call if necessary.
84 * infrun.c (follow_vfork): Don't follow_exec here.
85 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
86 case about HP/UX 10.20. Remove code pushed down to
87 hppah-nat.c:child_wait.
88 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
89 vfork_in_flight is set.
90
912002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
92
93 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
94 for the parent's fork event.
95 * infrun.c (handle_inferior_event): Only expect one fork event.
96 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
97 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
98
50631d4f
AC
992002-12-10 Andrew Cagney <ac131313@redhat.com>
100
bc124bd3
AC
101 * PROBLEMS: Delete reference to PR gdb/725.
102
50631d4f
AC
103 * MAINTAINERS (gdb.c++): Add David Carlton.
104
808013d1
DC
1052002-12-09 David Carlton <carlton@math.stanford.edu>
106
107 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
108 * cli/cli-cmds.c: Ditto.
109
31deffe5
AC
1102002-12-09 Andrew Cagney <cagney@redhat.com>
111
6cbda714
AC
112 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
113 function address in <>.
31deffe5
AC
114 * gdbarch.c: Re-generate.
115
2692ddb3
DC
1162002-12-09 David Carlton <carlton@math.stanford.edu>
117
118 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
119
f3c39e76
DC
1202002-12-09 David Carlton <carlton@math.stanford.edu>
121
122 * linespec.c (symtab_from_filename): New function.
123 (decode_line_1): Move code into symtab_from_filename.
124
1b84163e
KB
1252002-12-09 Kevin Buettner <kevinb@redhat.com>
126
127 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
128
bdd78e62
AC
1292002-12-07 Andrew Cagney <ac131313@redhat.com>
130
131 * f-valprint.c (info_common_command): Use get_frame_pc.
132 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
133 * ax-gdb.c (agent_command): Ditto.
134 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
135 (rs6000_pop_frame): Ditto.
136 (rs6000_frameless_function_invocation): Ditto.
137 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
138 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
139 * macroscope.c (default_macro_scope): Ditto.
140 * stack.c (print_frame_info_base): Ditto.
141 (print_frame, frame_info, print_frame_label_vars): Ditto.
142 (return_command, func_command, get_frame_language): Ditto.
143 * infcmd.c (finish_command): Ditto.
144 * dummy-frame.c (cached_find_dummy_frame): Ditto.
145 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
146 (break_at_finish_at_depth_command_1): Ditto.
147 (break_at_finish_command_1): Ditto.
148 (until_break_command, get_catch_sals): Ditto.
149 * blockframe.c (func_frame_chain_valid): Ditto.
150 (frameless_look_for_prologue): Ditto.
151 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
152
408400e7
AC
1532002-12-08 Andrew Cagney <ac131313@redhat.com>
154
155 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
156 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
157
97f46953
AC
1582002-12-08 Andrew Cagney <ac131313@redhat.com>
159
160 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
161 to pure functions.
162 * gdbarch.h, gdbarch.c: Re-generate.
163 * frame.c (get_prev_frame): Explictly assign prev's pc with value
164 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
165
166 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
167 declaration to a function returning a CORE_ADDR.
168 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
169 * arch-utils.c (init_frame_pc_noop): Return the PC value.
170 (init_frame_pc_default): Ditto.
171 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
172 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
173 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
174 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
175 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
176 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
177
178 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
179 to init_frame_pc_noop.
180 (i386_interix_init_frame_pc): Delete function.
181 * z8k-tdep.c (init_frame_pc): Delete function.
182 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
183 (INIT_FRAME_PC_FIRST): Ditto.
184 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
185 (INIT_FRAME_PC_FIRST): Ditto.
186 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
187 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
188 init_frame_pc_noop.
189 (INIT_FRAME_PC_FIRST): Convert to an expression.
190 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
191
8b36eed8
AC
1922002-12-08 Andrew Cagney <ac131313@redhat.com>
193
194 * blockframe.c: Use get_frame_base instead of directly accessing
195 the `struct frame_info' member frame.
196 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
197 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
198
aeeccc89
EZ
1992002-12-08 Elena Zannoni <ezannoni@redhat.com>
200
201 * Makefile.in (readline_h): Define.
202 (completer.o): Depend on readline_h.
203 (corelow.o): Ditto.
204 (event-top.o): Ditto.
205 (exec.o): Ditto.
206 (solib.o): Ditto.
207 (source.o): Ditto.
208 (symfile.o): Ditto.
209 (symmisc.o): Ditto.
210 (top.o): Ditto.
211 (tracepoint.o): Ditto.
212 (utils.o): Ditto.
213 (cli-dump.o): Ditto.
214 (tui-hooks.o): Ditto.
215 (tuiWin.o): Ditto.
216
38017ce8
EZ
2172002-12-08 Elena Zannoni <ezannoni@redhat.com>
218
219 More cleanup from import of readline 4.3.
220 * completer.h (complete_line, readline_line_completion_function):
221 Update prototypes.
222 (line_completion_function): Removed, not used outside of completer.c.
223 * completer.c (readline_line_completion_function,
224 complete_function, line_completion_function): Use const for first
225 parameter.
226 (line_completion_function): Make static.
227 (filename_completer): filename_completion_function is now called
228 rl_filename_completion_function
229 * corelow.c: Include <readline/readline.h>.
230 * exec.c: Ditto.
231 * solib.c: Ditto.
232 * source.c: Ditto.
233 * symfile.c: Ditto.
234 * symmisc.c: Ditto.
235 * top.c (init_main): No need to coerce
236 readline_line_completion_function anymore.
237 * cli/cli-dump.c: Include <readline/readline.h>.
238
75e3c1f9
AC
2392002-12-08 Andrew Cagney <ac131313@redhat.com>
240
241 * stack.c (frame_info): Use get_prev_frame.
242 * blockframe.c (frame_address_in_block): Ditto.
243 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
244 (rs6000_frameless_function_invocation): Ditto.
245 (rs6000_frame_saved_pc): Ditto.
246 (rs6000_frame_chain): Ditto.
247 * arch-utils.c (init_frame_pc_default): Ditto.
248
0d2b8049
AC
2492002-12-08 Andrew Cagney <ac131313@redhat.com>
250
251 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
252 Delete redundant definition.
253
9255ee31
EZ
2542002-12-08 Elena Zannoni <ezannoni@redhat.com>
255
256 Import of readline 4.3:
257 * cli/cli-cmds.c: Include readline/tilde.h.
258 * cli/cli-setshow.c: Ditto.
259 * defs.h: Don't declare tilde_expand anymore, since readline
260 exports it.
261
3442dad6 2622002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
263
264 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
265 -Werror on this file.
266
52f87c51
AC
2672002-12-07 Andrew Cagney <ac131313@redhat.com>
268
269 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
270 the format name.
271 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
272 * gdbarch.c: Regenerate.
273
2ca6c561
AC
2742002-12-06 Andrew Cagney <ac131313@redhat.com>
275
276 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
277 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
278 provide a default value.
279 * gdbarch.h, gdbarch.c: Regenerate.
280 * frame.c (get_prev_frame): Update. Check
281 DEPRECATED_INIT_FRAME_PC_FIRST_P.
282 * s390-tdep.c (s390_gdbarch_init): Update.
283 * mips-tdep.c (mips_gdbarch_init): Update.
284 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
285 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
286 * alpha-tdep.c (alpha_gdbarch_init): Update.
287
e162d11b
EZ
2882002-12-06 Elena Zannoni <ezannoni@redhat.com>
289
290 * ia64-linux-nat.c: Include gdb_string.h.
291 * alpha-nat.c: Ditto.
2b298b5d
EZ
292 * ppc-linux-nat.c: Ditto.
293 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
294 Update dependencies.
e162d11b 295
aa0cd9c1
AC
2962002-12-05 Andrew Cagney <ac131313@redhat.com>
297
298 * gdbthread.h: Include "frame.h".
299 (struct thread_info): Replace step_frame_address with
300 step_frame_id.
301 * inferior.h: Include "frame.h".
302 (step_frame_id): Replace external variable step_frame_address.
303 * gdbthread.h (save_infrun_state): Replace step_frame_address
304 parameter with step_frame_id parameter.
305 (load_infrun_state): Ditto.
306 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
307 * infcmd.c (step_frame_id, step_1, step_once): Update.
308 * thread.c (load_infrun_state, save_infrun_state): Update.
309 * infrun.c (clear_proceed_status, save_inferior_status): Update.
310 (handle_inferior_event, step_over_function): Update.
311 (normal_stop, context_switch, restore_inferior_status): Update.
312 (struct inferior_status): Replace step_frame_address with
313 step_frame_id.
314
a9a9bd0f
DC
3152002-12-05 David Carlton <carlton@math.stanford.edu>
316
317 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
318 DW_TAG_member as well as a declaration as being a C++ static data
319 member.
320 (read_structure_scope): Combine tests for DW_TAG_member and
321 DW_TAG_variable.
322
614b3b14
DC
3232002-12-05 David Carlton <carlton@math.stanford.edu>
324
325 * linespec.c (decode_compound): New function.
326 (decode_line_1): Move code into decode_compound.
327
e4051eeb
DC
3282002-12-05 David Carlton <carlton@math.stanford.edu>
329
330 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
331 argument.
332 (lookup_symbol_aux): Do the 'field_of_this' check before checking
333 the static block. See PR gdb/804.
334
f61e8913
DC
3352002-12-05 David Carlton <carlton@math.stanford.edu>
336
337 * symtab.c (lookup_symbol_aux_block): New function.
338 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
339
1e9f55d0
AC
3402002-12-05 Andrew Cagney <ac131313@redhat.com>
341
342 * gdbarch.sh: Dump the predicate function and macro values.
343 (read): Print error on standard error.
344 * gdbarch.c: Regenerate.
345
d1973055
KB
3462002-12-04 Kevin Buettner <kevinb@redhat.com>
347
348 * Makefile.in (mips_tdep_h): Define.
349 (mips-tdep.o): Add mips_tdep_h to dependency list.
350 * mips-tdep.h: New file.
351 * mips-tdep.c (mips-tdep.h): Include.
352 (enum mips_abi): Move to mips-tdep.h.
353 (mips_abi): New function.
354
f1253c7b
DC
3552002-12-04 David Carlton <carlton@math.stanford.edu>
356
357 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
358
406bc4de
DC
3592002-12-04 David Carlton <carlton@math.stanford.edu>
360
361 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
362 function.
363 (lookup_symbol_aux_minsyms): New function.
364
2a3750c5
JB
3652002-12-04 J. Brobecker <brobecker@gnat.com>
366
367 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
368
961d8652
JB
3692002-12-04 J. Brobecker <brobecker@gnat.com>
370
371 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
372 which is an obsolete macro name.
373
38c52d5a
DJ
3742002-12-04 Daniel Jacobowitz <drow@mvista.com>
375
376 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
377 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
378
d8ef46f5
DJ
3792002-12-03 H.J. Lu (hjl@gnu.org)
380
381 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
382 (create_breakpoints): Make sure the addr_string field is not
383 NULL.
384
02ae7771
AC
3852002-12-03 Andrew Cagney <ac131313@redhat.com>
386
387 * sparc-nat.c (fetch_inferior_registers)
388 (store_inferior_registers): Add comment on problem of LWP vs
389 threads.
390
391 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
392 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
393 (lin_lwp_store_registers): Remove.
394 (init_lin_lwp_ops): Use fetch_inferior_registers
395 and store_inferior_registers directly.
396 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
397 (store_inferior_registers): Likewise.
398 Fix PR gdb/725.
399
7a424e99
AC
4002002-12-03 Andrew Cagney <ac131313@redhat.com>
401
402 * frame.h (get_frame_id): Convert to a function.
403 (null_frame_id, frame_id_p): Declare.
404 (frame_id_eq, frame_id_inner): Declare.
405 (frame_id_build): New function.
406 * frame.c (get_frame_id): Update. Use null_frame_id.
407 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
408 frame_id_inner.
409 (null_frame_id, frame_id_p): Define.
410 (frame_id_eq, frame_id_inner): Define.
411 (frame_id_build): New function.
412 * varobj.c (varobj_create): Update.
413 (varobj_update): Update.
414 * valops.c (value_assign): Update.
415 (new_root_variable): Update.
416 * infrun.c (save_inferior_status): Update.
417 * breakpoint.c (watch_command_1): Update.
418
891c7f5f
JB
4192002-12-03 J. Brobecker <brobecker@gnat.com>
420
421 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
422 (SNAP2): Likewise.
423
144da3c1
AC
4242002-12-03 Andrew Cagney <cagney@redhat.com>
425
46248966
AC
426 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
427 patch.
428
144da3c1
AC
429 * PROBLEMS: Mention PR gdb/725.
430
03c6228e
AS
4312002-12-03 Andreas Schwab <schwab@suse.de>
432
433 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
434
36e53c63
AF
4352002-12-02 Adam Fedor <fedor@gnu.org>
436 Klee Dienes <kdienes@apple.com>
437
438 * objc-lang.c (objc_printstr): Add width arg to match
439 printstr prototype.
440 (compare_selectors): Add 'const' to arg types.
441 (compare_classes): Likewise.
442 (find_imps): Cast msym pointer to avoid compiler warning.
443 (print_object_command): Validate the address before
444 passing it to the print routine.
445 (find_objc_msgcall_submethod): Change function argument to
446 return an int.
447 * objc-lang.h: Add 'extern' to all function declarations.
448 (value_nsstring): Add declaration.
449
504d5c7e
JB
4502002-12-02 J. Brobecker <brobecker@gnat.com>
451
452 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
453 Fixes a build failure on HP/UX.
454
455 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
456 failure on HP/UX.
457 (hpread_has_name): Advance declaration to avoid a compilation warning.
458 (pst_syms_count): Add missing variable type. By change, the compiler
459 was defaulting to int, which seems a good choice. Fixes a compilation
460 warning.
461 (pst_syms_size): Likewise.
462
59623e27
JB
4632002-12-02 J. Brobecker <brobecker@gnat.com>
464
465 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
466 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
467 later to set the proper gdbarch methods depending on the osabi.
468 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
469
a09a320d
JB
4702002-12-02 J. Brobecker <brobecker@gnat.com>
471
472 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
473 * osabi.c (gdb_osabi_name): Add strings images for the two new
474 enum values.
475 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
476
8a81a99e
AC
4772002-12-02 Andrew Cagney <ac131313@redhat.com>
478
479 * MAINTAINERS (Java): Global maintainers are responible for Java.
480 (Past Maintainers): Mention both Anthony Green and Per Bothner as
481 part Java maintainers.
482
7af35dad
JB
4832002-12-02 J. Brobecker <brobecker@gnat.com>
484
485 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
486 Fixes a compilation failure on AiX.
487
f4ede9bc
JB
4882002-12-02 J. Brobecker <brobecker@gnat.com>
489
490 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
491 why aix-thread.o is not listed.
492
ae45cd16
AC
4932002-12-01 Andrew Cagney <ac131313@redhat.com>
494
495 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
496 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
497 * gdbarch.h, gdbarch.c: Re-generate.
498 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
499 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
500 * config/pa/tm-hppa.h, frame.h: Update.
501 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
502 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
503 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
504 * cris-tdep.c, alpha-tdep.c: Update.
505 * frame.c (set_unwind_by_pc, create_new_frame): Use either
506 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
507 (get_prev_frame): Ditto.
508
020cc13c
AC
5092002-11-30 Andrew Cagney <cagney@redhat.com>
510
511 * exec.c (xfer_memory): Replace boolean with int.
512 * p-exp.y: Use 0 instead of false.
513 * corelow.c (gdb_check_format): Change return type to int from
514 boolean.
515 * utils.c: Don't include <curses.h> or <term.h> first.
516
1d9b2aa8
SC
5172002-11-29 Stephane Carrez <stcarrez@nerim.fr>
518
519 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
520 (m68hc11_register_byte): Remove.
521 (m68hc11_gdbarch_init): Don't set the above.
522
a193e397
AC
5232002-11-29 Andrew Cagney <cagney@redhat.com>
524
525 * remote-mips.c (mips_initialize): Force a selected frame rebuild
526 by calling get_selected_frame.
527 * ocd.c (ocd_start_remote): Use get_selected frame instead of
528 set_current_frame, create_new_frame, select_frame and
529 get_current_frame.
530 * remote-e7000.c (e7000_start_remote): Ditto.
531 * remote-mips.c (common_open): Ditto
532 * remote-rdp.c (remote_rdp_open): Ditto.
533
b5fc49aa
AS
5342002-11-29 Andreas Schwab <schwab@suse.de>
535
536 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
537 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
538 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
539 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
540 read_memory_unsigned_integer instead of read_memory_integer when
541 dealing with addresses and instruction opcodes.
542 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
543 (m68k_linux_frame_saved_pc): Likewise.
544
6e7f8b9c
AC
5452002-11-29 Andrew Cagney <ac131313@redhat.com>
546
547 * stack.c (selected_frame, select_frame): Move from here ...
548 * frame.c (selected_frame, select_frame): ... to here. Include
549 "language.h".
550 * Makefile.in (frame.o): Update dependencies.
551 * frame.c (get_selected_frame): New function.
552 * frame.h (get_selected_frame): Declare.
553 (deprecated_selected_frame): Rename selected_frame.
554 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
555 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
556 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
557 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
558 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
559 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
560 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
561 * z8k-tdep.c, cli/cli-cmds.c: Update.
562
805e2818
AC
5632002-11-29 Andrew Cagney <ac131313@redhat.com>
564
565 * frame.h (get_selected_block): Add comments.
566
1058bca7
AC
5672002-11-28 Andrew Cagney <ac131313@redhat.com>
568
569 * frame.c (pc_notcurrent): New function.
570 (find_frame_sal): New function.
571 * frame.h (find_frame_sal): Declare.
572 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
573 * stack.c (print_frame_info_base): Use find_frame_sal instead of
574 find_pc_line.
1058bca7
AC
575 (frame_info): Ditto.
576 * ada-lang.c (find_printable_frame): Ditto.
577
d92419e5
JB
5782002-11-28 J. Brobecker <brobecker@gnat.com>
579
580 * configure.in: Check that the pthdebug library is recent enough
581 before enabling thread support on native AiX.
582 * configure: Regenerate.
583
584 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
585 from the list of object files as it is now appended by configure
586 if thread support is enabled.
587 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
588 if thread support is enabled.
589
8c69fc49
AC
5902002-11-28 Andrew Cagney <cagney@redhat.com>
591
592 * stack.c (get_selected_block): In-line get_current_block.
593 * frame.h (get_current_block): Delete declaration.
594 * blockframe.c (get_current_block): Delete function.
595
07555a72
AC
5962002-11-28 Andrew Cagney <ac131313@redhat.com>
597
598 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
599 USE_GENERIC_DUMMY_FRAMES.
600 * gdbarch.h, gdbarch.c: Regenerate.
601 * valops.c, frame.c: Update.
602 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
603 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
604 * config/pa/tm-hppa.h, blockframe.c: Update.
605 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
606 * m68k-tdep.c, alpha-tdep.c: Ditto.
607
608 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
609 * mips-tdep.c: Ditto.
610
b99fa2d2
AC
6112002-11-27 Andrew Cagney <ac131313@redhat.com>
612
613 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
614 (USE_GENERIC_DUMMY_FRAMES): Default to true.
615 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
616 * gdbarch.c, gdbarch.h: Re-generate.
617 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
618 (CALL_DUMMY_LOCATION): Delete macro definition.
619 (PC_IN_CALL_DUMMY): Delete macro definitions.
620
621 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
622 default is already generic_pc_in_call_dummy.
623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
624 * v850-tdep.c (v850_gdbarch_init): Ditto.
625 * sh-tdep.c (sh_gdbarch_init): Ditto.
626 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
627 * mips-tdep.c (mips_gdbarch_init): Ditto.
628 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
630 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
631 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
632 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
633 * avr-tdep.c (avr_gdbarch_init): Ditto.
634
635 * arm-tdep.c (arm_gdbarch_init): Do not set
636 use_generic_dummy_frames, default is already 1.
637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
638 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
639 * v850-tdep.c (v850_gdbarch_init): Ditto.
640 * sh-tdep.c (sh_gdbarch_init): Ditto.
641 * s390-tdep.c (s390_gdbarch_init): Ditto.
642 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
643 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
644 * mips-tdep.c (mips_gdbarch_init): Ditto.
645 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
647 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
648 * i386-tdep.c (i386_gdbarch_init): Ditto.
649 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
650 * frv-tdep.c (frv_gdbarch_init): Ditto.
651 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
652 * cris-tdep.c (cris_gdbarch_init): Ditto.
653 * avr-tdep.c (avr_gdbarch_init): Ditto.
654
655 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
656 call_dummy_location, default is already AT_ENTRY_POINT.
657 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
658 * v850-tdep.c (v850_gdbarch_init): Ditto.
659 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
660 * sh-tdep.c (sh_gdbarch_init): Ditto.
661 * s390-tdep.c (s390_gdbarch_init): Ditto.
662 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
663 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
664 * mips-tdep.c (mips_gdbarch_init): Ditto.
665 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
666 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
667 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
668 * i386-tdep.c (i386_gdbarch_init): Ditto.
669 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
670 * frv-tdep.c (frv_gdbarch_init): Ditto.
671 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
672 * cris-tdep.c (cris_gdbarch_init): Ditto.
673 * avr-tdep.c (avr_gdbarch_init): Ditto.
674 * arm-tdep.c (arm_gdbarch_init): Ditto.
675 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
676
abc0af47
AC
6772002-11-28 Andrew Cagney <cagney@redhat.com>
678
679 * frame.h: Update comments on set_current_frame, create_new_frame,
680 flush_cached_frames, reinit_frame_cache, select_frame and
681 selected_frame.
682
ed5cedc5
AC
6832002-11-27 Andrew Cagney <cagney@redhat.com>
684
685 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
686 deprecated pc_in_call_dummy function.
687 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
688 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
689 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
690 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
691 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
692
b2a1bd4f
MH
6932002-11-26 Martin M. Hunt <hunt@redhat.com>
694
695 * Makefile.in: Remove Tix dependencies.
696 * acinclude.m4: Ditto.
697 * aclocal.m4: Ditto.
698 * configure.in: Ditto.
699 * configure: Regenerated.
700
f09cffaa
AC
7012002-11-26 Andrew Cagney <ac131313@redhat.com>
702
703 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
704 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
705 * gdbarch.c: Re-generate.
706
e92b0cc9
AC
7072002-11-26 Andrew Cagney <ac131313@redhat.com>
708
709 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
710 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
711 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
712 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
713 pc_in_call_dummy_at_entry_point.
714 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
715 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
716 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
717 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
718 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
719 pc_in_call_dummy_on_stack.
720 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
721 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
722 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
723 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
724 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
725
b4b88177
AC
7262002-11-26 Andrew Cagney <ac131313@redhat.com>
727
728 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
729 pc_in_call_dummy_before_text_end
730 (deprecated_pc_in_call_dummy_after_text_end): Rename
731 pc_in_call_dummy_after_text_end.
732 (deprecated_pc_in_call_dummy_on_stack): Rename
733 pc_in_call_dummy_on_stack.
734 (deprecated_pc_in_call_dummy_at_entry_point): Rename
735 pc_in_call_dummy_at_entry_point.
736 * m68k-tdep.c (m68k_gdbarch_init): Update.
737 * s390-tdep.c (s390_gdbarch_init): Update.
738 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
739 * vax-tdep.c (vax_gdbarch_init): Update.
740 * sparc-tdep.c (sparc_gdbarch_init): Update.
741 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
742 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
743 * i386-tdep.c (i386_gdbarch_init): Update.
744 * frv-tdep.c (frv_gdbarch_init): Update.
745 * cris-tdep.c (cris_gdbarch_init): Update.
746 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
747 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
748 (deprecated_pc_in_call_dummy_after_text_end)
749 (deprecated_pc_in_call_dummy_on_stack)
750 (deprecated_pc_in_call_dummy_at_entry_point): Update.
751 * alpha-tdep.c (alpha_gdbarch_init): Update.
752
eb784848
DJ
7532002-11-25 Daniel Jacobowitz <drow@mvista.com>
754
755 * acconfig.h (HAVE_PREAD64): Add.
756 * configure.in: Check for pread64.
757 * config.in: Regenerated.
758 * configure: Regenerated.
759 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
760 * linux-proc.c (linux_proc_xfer_memory): New function.
761 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
762
933c6fe4
DC
7632002-11-25 David Carlton <carlton@math.stanford.edu>
764
765 * dwarf2read.c (scan_partial_symbols): Descend into namespace
766 pdi's with no name.
767
158a8022
AC
7682002-11-25 Andrew Cagney <ac131313@redhat.com>
769
770 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
771 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
772
481d0f41
JB
7732002-11-25 Jim Blandy <jimb@redhat.com>
774
e8289572
JB
775 * symfile.c (init_objfile_sect_indices): New function.
776 (default_symfile_offsets): Move the section-index-initializing
777 stuff into init_objfile_sect_indices, and call that.
778
b29c9944
JB
779 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
780 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
781
13de58df
JB
782 * symfile.c (syms_from_objfile): Adjust indentation.
783
481d0f41
JB
784 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
785 || info_verbose isn't true.
786
7d6a26a7
AC
7872002-11-24 Andrew Cagney <ac131313@redhat.com>
788
789 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
790 default to get_frame_base.
791 * gdbarch.h, gdbarch.c: Regenerate.
792 * arch-utils.c (default_frame_address): Delete function.
793 * arch-utils.h (default_frame_address): Delete declaration
794
6abe1021
PM
7952002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
796
797 * varobj.c (find_frame_addr_in_frame_chain):
798 Use get_frame_base instead of FRAME_FP,
799 obvious fix.
800
c193f6ac
AC
8012002-11-19 Andrew Cagney <ac131313@redhat.com>
802
803 * frame.h (FRAME_FP): Delete macro.
804 (get_frame_base): New function declaration.
805 * frame.c (get_frame_base): New function.
806 (get_frame_id): Use ->frame.
807 (frame_find_by_id): Rewrite to use get_frame_id.
808 * blockframe.c: Use get_frame_base instead of FRAME_FP.
809 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
810 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
811 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
812 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
813 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
814 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
815
e5d2af14
AC
8162002-11-24 Andrew Cagney <ac131313@redhat.com>
817
818 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
819
931d12c6
AC
8202002-11-24 Andrew Cagney <ac131313@redhat.com>
821
822 * frame.c (set_unwind_by_pc): Revert change below, use
823 PC_IN_CALL_DUMMY.
824 (get_prev_frame): Ditto.
825
5e0f933e
AC
8262002-11-24 Andrew Cagney <ac131313@redhat.com>
827
828 * dummy-frame.c (pc_in_dummy_frame): New function.
829 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
830 (find_dummy_frame): Update comment.
831 (generic_pop_current_frame): Use get_frame_type.
832 * dummy-frame.h (pc_in_dummy_frame): Declare.
833 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
834 (create_new_frame): Use pc_in_dummy_frame.
835 (get_prev_frame): Use pc_in_dummy_frame.
836 (frame_saved_regs_register_unwind): Use get_prev_frame.
837 (deprecated_generic_get_saved_register): Use get_prev_frame.
838
7d8547c9
AC
8392002-11-23 Andrew Cagney <ac131313@redhat.com>
840
841 * blockframe.c (find_frame_addr_in_frame_chain): Move function
842 from here ...
843 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
844 (varobj_create): Note that frame ID should be used.
845 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
846
0225421b
AC
8472002-11-23 Andrew Cagney <ac131313@redhat.com>
848
849 * breakpoint.c: Include "gdb_assert.h".
850 (deprecated_frame_in_dummy): Assert that generic dummy frames are
851 not being used.
852 * Makefile.in (breakpoint.o): Update dependencies.
853 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
854 deprecated_frame_in_dummy.
855 * stack.c (print_frame_info_base): Ditto.
856 (frame_info): Ditto.
857 (print_frame_info_base): Ditto. Delete dead code.
858
32eeb91a
AS
8592002-11-23 Andreas Schwab <schwab@suse.de>
860
861 * Makefile.in (m68k_tdep_h): Define.
862 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
863 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
864 * m68k-tdep.c: Move register number enum ...
865 * m68k-tdep.h: ... to this new file and rename the constants from
866 E_* to M68K_*. All uses changed.
867 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
868 * abug-rom.c: Include "m68k-tdep.h". Use
869 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
870 * cpu32bug-rom.c: Likewise.
871 * dbug-rom.c: Likewise.
872 * m68k-tdep.c: Likewise.
873 * m68klinux-nat.c: Likewise.
874 * remote-est.c: Likewise.
875 * rom68k-rom.c: Likewise.
876 * config/m68k/tm-linux.h: Likewise.
877
9648bac8
AC
8782002-11-23 Andrew Cagney <ac131313@redhat.com>
879
880 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
881 dummy frame initialization code.
882 * mips-tdep.c (mips_gdbarch_init): Ditto.
883
91a175b3
CF
8842002-11-22 Christopher Faylor <cgf@redhat.com>
885
886 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
887 attach will hang.
888
f4ded5b1
AC
8892002-11-22 Andrew Cagney <ac131313@redhat.com>
890
891 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
892 to default_frame_address.
893 * gdbarch.h, gdbarch.c: Re-generate.
894
895 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
896 or frame_locals_address to default_frame_address.
897 * m68k-tdep.c (m68k_gdbarch_init): Update.
898 * i386-tdep.c (i386_gdbarch_init): Update.
899 * frv-tdep.c (frv_gdbarch_init): Update.
900 * sh-tdep.c (sh_gdbarch_init): Update.
901 * v850-tdep.c (v850_gdbarch_init): Update.
902 * sparc-tdep.c (sparc_gdbarch_init): Update.
903 * mips-tdep.c (mips_gdbarch_init): Update.
904 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
905 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
906 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
907
908 * cris-tdep.c (cris_frame_args_address): Delete function.
909 (cris_frame_locals_address): Delete function.
910 (cris_gdbarch_init): Do not set frame_args_address or
911 frame_locals_address.
912
f7c1e0f3
MS
9132002-11-22 Michael Snyder <msnyder@redhat.com>
914
915 * thread-db.c (thread_db_load): Tell the user what's going on
916 if dlopen fails on libthread_db.
917
03dac896
AS
9182002-11-23 Andreas Schwab <schwab@suse.de>
919
920 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
921 invariant return values.
922
7a67d0fe
AS
9232002-11-22 Andreas Schwab <schwab@suse.de>
924
925 * valops.c (value_slice): Move declaration of `offset' to avoid
926 warning.
927
5633f842
CF
9282002-11-22 Christopher Faylor <cgf@redhat.com>
929
930 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
931 (struct so_stuff): Add end_addr field.
932 (register_loaded_dll): Calculate and store end address of loaded dll.
933 (solib_address): New function.
934 (child_solib_loaded_library_pathname): Pass carefully constructed
935 section info to safe_symbol_file_add rather than ignoring it.
936 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
937 DLL is loaded.
938 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
939 (child_create_inferior): Fix a compiler warning.
940 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
941 (solib_address): Declare new function.
942
d85fe7f7
AS
9432002-11-22 Andreas Schwab <schwab@suse.de>
944
945 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
946 and FPS registers.
947
8308e54c
DJ
9482002-11-21 Daniel Jacobowitz <drow@mvista.com>
949
950 * maint.c (_initialize_maint_cmds): Fix typo. From
951 Francesco Potorti` <pot@gnu.org>.
952
8997bd5e
AC
9532002-11-21 Andrew Cagney <cagney@redhat.com>
954
955 * mips-tdep.c (mips_dump_tdep): Delete references to
956 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
957 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
958 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
959 * printcmd.c (build_address_symbolic): Delete calls to
960 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
961 (address_info): Ditto.
962 Fix PR gdb/773.
963
4e87b832
KD
9642002-11-19 Klee Dienes <kdienes@apple.com>
965 Adam Fedor <fedor@gnu.org>
966
967 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
968 the ability to explicitly specify the quote characters and word
969 break characters; if NULL is specified for either, use the old
970 behavior of using the characters used by the completer.
971 (skip_chars): New function. Convenience wrapper around
972 skip_quoted_chars to provide the original skip_chars behavior.
973 * completer.h (skip_quoted_chars): Add prototype.
974
9ba8d803
AC
9752002-11-19 Andrew Cagney <ac131313@redhat.com>
976
977 Problems reported by Paul Eggert.
978 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
979
0a595803
AS
9802002-11-19 Andreas Schwab <schwab@suse.de>
981
982 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
983 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
984 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
985 (m68k_linux_frame_saved_pc): Move to ...
986 * m68klinux-tdep.c: ... here. New file.
987 * Makefile.in (m68klinux-tdep.o): Add dependencies.
988 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
989
e8afa4d7
AF
9902002-11-19 Adam Fedor <fedor@gnu.org>
991
992 * objc-exp.y: Revert to old skip_quoted usage.
993
a76c9d72
AF
9942002-11-19 Adam Fedor <fedor@gnu.org>
995
996 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
997 (objc_lang_h): Define.
998 (YYFILES): Add objc-exp.tab.c.
999 (local-maintainer-clean): Remove objc-exp.tab.c.
1000 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1001
fd0e9d45
PM
10022002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1003
1004 * p-exp.y (typecast rule): Add automatic dereference of
1005 pascal classes if needed.
1006 (THIS): Set current_type.
1007 Automatically dereference pascal classes.
1008 (typebase rule): Add ^typebase recognition.
1009
82eeeb94
AF
10102002-11-18 Adam Fedor <fedor@gnu.org>
1011
1012 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1013 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1014 (op_name): Handle OP_OBJC_SELF.
1015 * Makefile.in (expprint.o): Add additional depends.
1016
646df18d
AF
10172002-11-18 Adam Fedor <fedor@gnu.org>
1018
1019 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1020 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1021 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1022 * objc-exp.y: Likewise.
1023
379b85df
AF
10242002-11-18 Adam Fedor <fedor@gnu.org>
1025
1026 * gdb/parser-defs.h: (struct objc_class_str): New structure
1027 for parsing ObjC classes.
1028
85cf597a
AC
10292002-11-18 Andrew Cagney <ac131313@redhat.com>
1030
1031 * stack.c (frame_relative_level): Copy function from here ...
1032 * frame.c (frame_relative_level): ...to here.
1033
5a203e44
AC
10342002-11-18 Andrew Cagney <ac131313@redhat.com>
1035
1036 * frame.h (enum frame_type): Define.
1037 (get_frame_type): Declare.
1038 (struct frame_info): Add field `type'. Delete field
1039 signal_handler_caller.
1040 (deprecated_set_frame_signal_handler_caller): Declare.
1041 * frame.c (get_frame_type): New function.
1042 (deprecated_set_frame_type): New function.
1043 (create_new_frame): Set the frame's type.
1044 (get_prev_frame): Similar.
1045 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1046 * s390-tdep.c: Ditto.
1047 * m68klinux-nat.c: Ditto.
1048 * ns32k-tdep.c: Ditto.
1049 * x86-64-linux-tdep.c: Ditto.
1050 * vax-tdep.c: Ditto.
1051 * rs6000-tdep.c: Ditto.
1052 * ppc-linux-tdep.c: Ditto.
1053 * i386-interix-tdep.c: Ditto.
1054 * mips-tdep.c: Ditto.
1055 * m68k-tdep.c: Ditto.
1056 * hppa-tdep.c: Ditto.
1057 * ia64-tdep.c: Ditto.
1058 * cris-tdep.c: Ditto.
1059 * arm-tdep.c: Ditto.
1060 * alpha-tdep.c: Ditto.
1061 * i386-tdep.c: Ditto.
1062 * stack.c: Ditto.
1063 * ada-lang.c: Ditto.
1064 * blockframe.c: Update.
1065 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1066 deprecated_set_frame_type instead of signal_handler_caller.
1067 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1068 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1069 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1070
bf4ae8b2
KD
10712002-11-18 Klee Dienes <kdienes@apple.com>
1072
1073 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1074
a672ef13
KD
10752002-11-18 Klee Dienes <kdienes@apple.com>
1076
1077 * buildsym.c (pop_context): Add comment.
1078
0c5e171a
KD
10792002-11-18 Klee Dienes <kdienes@apple.com>
1080
1081 * buildsym.h (pop_context): Convert to function, defined in
1082 buildsym.c.
1083 * buildsym.c: Include gdb_assert.h.
1084 (pop_context): Implement as C function. Add check for stack
1085 underflow.
1086 * dbxread.c (process_one_symbol): Complain and stop processing
1087 that symbol if we are already at the top of the context stack for
1088 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1089 when processing N_RBRAC.
1090
8a1f4c4c
DJ
10912002-11-16 Daniel Jacobowitz <drow@mvista.com>
1092
1093 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1094 define.
1095 (struct target_waitstatus): Add opaque definition.
1096 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1097 * exec.c (init_exec_ops): Likewise.
1098 * fork-child.c (clone_and_follow_inferior): Remove.
1099 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1100 * inferior.h (clone_and_follow_inferior): Remove prototype.
1101 * infrun.c (follow_fork_mode_both): Remove.
1102 (follow_fork_mode_kind_names): Remove commented out "both".
1103 (follow_inferior_fork): Remove follow_fork_mode_both support.
1104 * inftarg.c (child_clone_and_follow_inferior): Remove.
1105 (child_post_follow_inferior_by_clone): Remove.
1106 (init_child_ops): Don't set to_clone_and_follow_inferior
1107 or to_post_follow_inferior_by_clone.
1108 * target.c (default_clone_and_follow_inferior): Remove.
1109 (cleanup_target): Don't set to_clone_and_follow_inferior
1110 or to_post_follow_inferior_by_clone.
1111 (find_default_clone_and_follow_inferior): Remove.
1112 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1113 (debug_to_clone_and_follow_inferior): Remove.
1114 (debug_to_post_follow_inferior_by_clone): Remove.
1115 (setup_target_debug): Don't set to_clone_and_follow_inferior
1116 or to_post_follow_inferior_by_clone.
1117 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1118 and to_post_follow_inferior_by_clone.
1119 (child_clone_and_follow_inferior): Remove prototype.
1120 (child_post_follow_inferior_by_clone): Remove prototype.
1121 (target_clone_and_follow_inferior): Remove macro.
1122 (target_post_follow_inferior_by_clone): Remove macro.
1123 (find_default_clone_and_follow_inferior): Remove prototype.
1124
47932f85
DJ
11252002-11-16 Daniel Jacobowitz <drow@mvista.com>
1126
1127 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1128 inferior_has_vforked, and inferior_has_execd instead of
1129 target_has_forked, target_has_vforked, and target_has_execd.
1130 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1131 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1132 (CHILD_WAIT): Define.
1133 (child_wait): Add prototype.
1134 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1135 Add prototype.
1136 (hpux_has_vforked): Likewise, from child_has_vforked.
1137 (hpux_has_execd): Likewise, from child_has_execd.
1138 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1139 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1140 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1141 and hpux_has_syscall_event instead of the target hooks.
1142 * infrun.c (inferior_has_forked, inferior_has_vforked)
1143 (inferior_has_execd): New functions.
1144 * inftarg.c (not_same_real_pid): Remove.
1145 (child_wait): Remove references to not_same_real_pid,
1146 target_has_forked, target_has_vforked, target_has_execd,
1147 and target_has_syscall_event.
1148 (child_has_forked, child_has_vforked, child_has_execd)
1149 (child_has_syscall_event): Remove.
1150 (init_child_ops): Remove references to child_has_forked,
1151 child_has_vforked, child_has_execd, and child_has_syscall_event.
1152 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1153 (hpux_has_vforked): Likewise, from child_has_vforked.
1154 (hpux_has_execd): Likewise, from child_has_execd.
1155 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1156 * target.c (cleanup_target): Remove references to
1157 to_has_forked, to_has_vforked, to_has_execd, and
1158 to_has_syscall_event.
1159 (update_current_target): Likewise.
1160 (setup_target_debug): Likewise.
1161 (debug_to_has_forked): Remove.
1162 (debug_to_has_vforked): Remove.
1163 (debug_to_has_execd): Remove.
1164 (debug_to_has_syscall_event): Remove.
1165 * target.h (struct target_ops): Remove to_has_forked.
1166 to_has_vforked, to_has_execd, and to_has_syscall_event.
1167 (child_has_forked, child_has_vforked, child_has_execd)
1168 (child_has_syscall_event): Remove prototypes.
1169 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1170 prototypes.
1171 (target_has_forked, target_has_vforked, target_has_execd)
1172 (target_has_syscall_event): Remove macros.
1173
4088142a
DJ
11742002-11-16 Daniel Jacobowitz <drow@mvista.com>
1175
1176 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1177 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1178 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1179 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1180 * target.c (cleanup_target): Remove reference to
1181 to_can_follow_vfork_prior_to_exec.
1182 (update_current_target): Likewise.
1183 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1184 (setup_target_debug): Remove reference to
1185 to_can_follow_vfork_prior_to_exec.
1186 * target.h (struct target_ops): Remove
1187 to_can_follow_vfork_prior_to_exec.
1188 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1189 (target_can_follow_vfork_prior_to_exec): Remove definition.
1190 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1191 define.
1192 * infrun.c (follow_vfork_when_exec): Remove.
1193 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1194 (follow_exec): Likewise.
1195 (handle_inferior_event): Likewise.
1196 (keep_going): Likewise.
1197
18cde8d5
AC
11982002-11-15 Andrew Cagney <cagney@redhat.com>
1199
1200 * frame.c (generic_unwind_get_saved_register): Make static.
1201 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1202 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1203 defaults to generic_unwind_get_saved_register.
1204 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1205 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1206 * frv-tdep.c (frv_gdbarch_init): Ditto.
1207 * i386-tdep.c (i386_gdbarch_init): Ditto.
1208 * s390-tdep.c (s390_gdbarch_init): Ditto.
1209 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1210 * v850-tdep.c (v850_gdbarch_init): Ditto.
1211 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1212 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1213 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1214
a6b063af
AC
12152002-11-15 Andrew Cagney <cagney@redhat.com>
1216
1217 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1218 i386-tdep.c.
1219
f407986f
AC
12202002-11-15 Andrew Cagney <cagney@redhat.com>
1221
1222 * frame.h (sigtramp_saved_pc): Delete declaration.
1223 * blockframe.c (sigtramp_saved_pc): Delete function.
1224 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1225 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1226 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1227 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1228
f18c5a73
AC
12292002-11-15 Andrew Cagney <ac131313@redhat.com>
1230
1231 * frame.c (frame_pc_unwind): New function.
1232 (frame_saved_regs_pc_unwind): New function.
1233 (frame_register_unwind): Pass unwind_cache instead of
1234 register_unwind_cache.
1235 (set_unwind_by_pc): Add unwind_pc parameter, set.
1236 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1237 (get_prev_frame): Ditto.
1238 * frame.h (frame_pc_unwind_ftype): Declare.
1239 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1240 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1241 (frame_pc_unwind): Declare.
1242 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1243 (struct dummy_frame): Add comment mentioning that values are for
1244 previous frame.
1245 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1246 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1247 (generic_file_frame_chain_valid): Ditto.
1248 * stack.c (frame_info): Ditto.
1249
d9285969 12502002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1251
1252 * linespec.c (locate_first_half): New function.
1253 (decode_line_1): Move code into locate_first_half.
1254
d741b867
AC
12552002-11-15 Andrew Cagney <ac131313@redhat.com>
1256
1257 * complaints.h: Add comment explaining how to eliminate a
1258 deprecated_complain call.
24382c5c 1259 * complaints.h: Fix spelling errors.
d741b867 1260
82d03c99
DC
12612002-11-15 David Carlton <carlton@math.stanford.edu>
1262
1263 * printcmd.c: Remove #include "disasm.h".
1264
c97eb5d9
AC
12652002-11-14 Andrew Cagney <ac131313@redhat.com>
1266
1267 * frame.h: Move the most relevant interface functions to the start
1268 of the file.
1269
524d7c18
AC
12702002-11-14 Andrew Cagney <ac131313@redhat.com>
1271
1272 * regcache.h (deprecated_registers): Rename registers.
1273 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1274 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1275 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1276 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1277 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1278 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1279 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1280 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1281 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1282 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1283 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1284 * v850ice.c: Update.
1285
6411e720
AC
1286Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1287
1288 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1289 NULL buffer.
1290
73937e03
AC
12912002-11-13 Andrew Cagney <cagney@redhat.com>
1292
1293 * regcache.h (deprecated_read_register_bytes): Rename
1294 read_register_bytes.
1295 (deprecated_write_register_bytes): Rename write_register_bytes.
1296 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1297 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1298 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1299 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1300 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1301 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1302 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1303 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1304 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1305 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1306 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1307 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1308 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1309 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1310
fb0cd46e
JB
13112002-11-13 Jim Blandy <jimb@redhat.com>
1312
1313 * findvar.c (read_var_value): Doc fix.
1314
2d28509a
AC
13152002-11-13 Andrew Cagney <cagney@redhat.com>
1316
1317 * regcache.c (struct regcache): Replace passthough_p with
1318 readonly_p.
1319 (regcache_xmalloc): Initialize readonly_p.
1320 (build_regcache): Initialize readonly_p.
1321 (regcache_save): New function.
1322 (regcache_restore): New function.
1323 (regcache_cpy): Re-implement using regcache_save and
1324 regcache_restore.
1325 (regcache_raw_read): Update.
1326 (regcache_cooked_read): When a read-only cache, checked for cached
1327 pseudo register values.
1328 (regcache_raw_write): Assert that the cache is not read-only.
1329 Remove code handling a non-passthrough cache.
1330 * regcache.h (regcache_save): Declare.
1331 (regcache_restore): Declare.
1332
067df2e5
AC
13332002-11-13 Andrew Cagney <cagney@redhat.com>
1334
1335 * regcache.c (struct regcache_descr): Add fields
1336 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1337 (init_legacy_regcache_descr): Compute the size of a cooked
1338 register cache and then assign that to sizeof_raw_registers. Set
1339 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1340 (init_legacy_regcache_descr): Ditto.
1341
51b1fe4e
AC
13422002-11-13 Andrew Cagney <cagney@redhat.com>
1343
1344 * regcache.c (register_buffer): Move to near start of file, update
1345 description.
1346 (regcache_raw_read): Use.
1347 (regcache_raw_write): Use.
1348 (struct regcache): Rename raw_registers to registers and
1349 raw_register_valid_p to register_valid_p.
1350 (regcache_xmalloc): Update.
1351 (regcache_xfree): Update.
1352 (register_buffer): Update.
1353 (regcache_cpy): Update.
1354 (regcache_cpy_no_passthrough): Update.
1355 (regcache_valid_p): Update.
1356 (deprecated_grub_regcache_for_registers): Update.
1357 (deprecated_grub_regcache_for_register_valid): Update.
1358 (set_register_cached): Update.
1359 (regcache_raw_write): Update.
1360
80b4c677
PM
13612002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1362
1363 * p-exp.y (name_not_typename): Use copy_name to
1364 set current_type variable for fields of THIS.
1365
0f3fafde
DJ
13662002-11-12 Daniel Jacobowitz <drow@mvista.com>
1367
1368 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1369 * monitor.c (init_base_monitor_ops): Likewise.
1370 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1371 * remote-array.c (init_array_ops): Likewise.
1372 * remote-e7000.c (init_e7000_ops): Likewise.
1373 * remote-es.c (init_es1800_ops): Likewise.
1374 (init_es1800_child_ops): Likewise.
1375 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1376 * remote-sim.c (init_gdbsim_ops): Likewise.
1377 * remote-st.c (init_st2000_ops): Likewise.
1378 * sol-thread.c (init_sol_core_ops): Likewise.
1379 (init_sol_thread_ops): Likewise.
1380 * v850ice.c (init_850ice_ops): Likewise.
1381 * win32-nat.c (init_child_ops): Likewise.
1382 * wince.c (init_child_ops): Likewise.
1383
82c0260e
AC
13842002-11-12 Andrew Cagney <ac131313@redhat.com>
1385
1386 * utils.c (gdb_realpath): Make rp a constant pointer.
1387
70d35819
AC
13882002-11-12 Andrew Cagney <ac131313@redhat.com>
1389
1390 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1391 a constant buffer; cannonicalize_file_name(); realpath() with a
1392 pathconf() defined buffer, xstrdup().
1393
9835a8b0
AC
13942002-11-12 Andrew Cagney <ac131313@redhat.com>
1395
1396 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1397 to hang2.C; hang3.c to hang3.C.
1398
3f47be5c
EZ
13992002-11-11 Elena Zannoni <ezannoni@redhat.com>
1400
1401 * findvar.c (read_var_value): Reenable TLS code.
1402
14032002-11-11 Elena Zannoni <ezannoni@redhat.com>
1404 Jim Blandy <jimb@redhat.com>
1405
1406 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1407 * target.c (update_current_target): Add
1408 to_get_thread_local_address.
1409 * target.h (to_get_thread_local_address): Export.
1410 (target_get_thread_local_address): Define.
1411 (target_get_thread_local_address_p): Define.
1412 * thread-db.c: Include solib-svr4.h.
1413 (td_thr_tls_get_addr_p): Define.
1414 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1415 (thread_db_get_thread_local_address): New function.
1416 (init_thread_db_ops): Initialize to_get_thread_local_address.
1417 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1418 * configure: Regenerate.
1419 * config.in: Regenerate.
1420
636b1a6d
DC
14212002-11-11 David Carlton <carlton@math.stanford.edu>
1422
1423 * linespec.c (set_flags): New function.
1424 (decode_line_1): Move code into set_flags.
1425
44fe14ab
DC
14262002-11-11 David Carlton <carlton@math.stanford.edu>
1427
1428 * linespec.c (decode_line_1): Move chunks of code to separate
1429 functions.
1430 (initialize_defaults): New function.
1431 (decode_indirect): New function.
1432
e6f181f5
AC
14332002-11-11 Andrew Cagney <ac131313@redhat.com>
1434
8971b011
AC
1435 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1436 instead of void_code_ptr.
1437 (sigtramp_saved_pc): Ditto.
1438
e6f181f5
AC
1439 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1440 i386_fp_regnum_p.
1441
01ad7f36
DJ
14422002-11-10 Daniel Jacobowitz <drow@mvista.com>
1443
1444 * gdbtypes.h (struct main_type): Move artificial flag out of
1445 loc. New member of ``struct field'' named static_kind. Reduce
1446 overloaded meaning of bitsize.
1447 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1448 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1449 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1450
1451 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1452 new fields.
1453 (template_to_fixed_record_type, template_to_static_fixed_type)
1454 (to_record_with_fixed_variant_part): Likewise.
1455 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1456 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1457 * dwarfread.c (struct_type, enum_type): Likewise.
1458 * hpread.c (hpread_read_enum_type)
1459 (hpread_read_function_type, hpread_read_doc_function_type)
1460 (hpread_read_struct_type): Likewise.
1461 * mdebugread.c (parse_symbol): Likewise.
1462
bf1e52be
AC
14632002-11-10 Andrew Cagney <ac131313@redhat.com>
1464
1465 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1466 * stack.c (print_frame_info_base): Update.
1467 (print_frame_info_base, frame_info): Update.
1468 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1469 (sparc_frame_saved_pc): Update.
1470 * ada-lang.c (find_printable_frame): Update.
1471 * breakpoint.c (deprecated_frame_in_dummy): Update.
1472
ce556f85
MK
14732002-11-09 Mark Kettenis <kettenis@gnu.org>
1474
1475 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1476 defined.
1477 (regmap): Extend to cover all registers.
1478 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1479 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1480 definitions.
1481 (fetch_register, sore_register): Simplify.
1482 (old_fetch_inferior_registers, old_store_inferior_registers):
1483 Remove functions.
1484 (cannot_fetch_register, cannot_store_register): Change
1485 implementation to use regmap array to decide which registers
1486 cannot be fetched/stored. This removes $orig_eax from the
1487 registers that cannot be fetched/stored.
1488 (fetch_inferior_registers): Call fetch_register directly instead
1489 of calling old_fetch_inferior_registers.
1490 (store_inferior_registers): Call store_register directly instead
1491 of calling old_store_inferior_registers.
1492 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1493 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1494 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1495
932bb524
KD
14962002-11-09 Klee Dienes <kdienes@apple.com>
1497
1498 * i387-tdep.c (i387_supply_register): When called with NULL as a
1499 buffer, mark the register as not provided (to mirror the behavior
1500 of supply_register).
1501 (i387_supply_fxsave): Ditto.
1502 (i387_supply_fsave): Ditto (inherits the behavior from
1503 i387_supply_register).
1504
ebe68b27
KD
15052002-11-09 Klee Dienes <kdienes@apple.com>
1506
1507 * blockframe.c (sigtramp_saved_pc): Use
1508 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1509 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1510 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1511
15220c65
AC
15122002-11-09 Andrew Cagney <ac131313@redhat.com>
1513
1514 * frame.c (get_prev_frame): Test prev_p to identify a previously
1515 unwound frame. Initialize prev_p.
1516 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1517 comment.
1518
95adb866
AC
15192002-11-09 Andrew Cagney <ac131313@redhat.com>
1520
1521 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1522 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1523 more comments. Zap dead code.
1524
e71ecd70
MK
15252002-11-09 Mark Kettenis <kettenis@gnu.org>
1526
1527 * infcmd.c (print_vector_info, print_float_info): Move code that
1528 checks whether the target has any registers and whether there is a
1529 selected frame up, such that it is also used if a target provides
1530 multi-arch definitions of these functions.
1531
c525330d
AC
15322002-11-08 Andrew Cagney <ac131313@redhat.com>
1533
72bdd927
AC
1534 * Makefile.in (DESTDIR): Define.
1535 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1536 prefix.
1537
c525330d
AC
1538 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1539 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1540
38c968cf
AC
15412002-11-08 Andrew Cagney <ac131313@redhat.com>
1542
1543 * i386-linux-tdep.c: Include "reggroups.h".
1544 (i386_linux_register_reggroup_p): New function.
1545 (i386_linux_init_abi): Set register_reggroup_p to
1546 i386_linux_register_reggroup_p.
1547 * i386-tdep.h (i386_register_reggroup_p): Declare.
1548 * i386-tdep.c: Include "reggroups.h".
1549 (i386_init_reggroups): New function.
1550 (i386_add_reggroups): New function.
1551 (i386_register_reggroup_p): New function.
1552 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1553 (_initialize_i386_tdep): Call i386_init_reggroups.
1554 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1555 specific reggroups.
1556
19e33363
MK
15572002-11-09 Mark Kettenis <kettenis@gnu.org>
1558
371a6e84
MK
1559 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1560 request that's available in *BSD.
1561
94ba925a
MK
1562 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1563
19e33363
MK
1564 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1565 FDOFF_REGNUM.
1566
8779790c
AC
15672002-11-08 Andrew Cagney <ac131313@redhat.com>
1568
1569 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1570 * dummy-frame.c (find_dummy_frame): Rename
1571 generic_find_dummy_frame, make static. Return the dummy frame
1572 instead of the regcache.
1573 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1574 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1575 (dummy_frame_register_unwind): Rename
1576 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1577 * dummy-frame.h (dummy_frame_register_unwind): Rename
1578 generic_call_dummy_register_unwind.
1579
8674b74f
MK
15802002-11-08 Mark Kettenis <kettenis@gnu.org>
1581
1582 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1583 except the inclusion of "i386/tm-i386.h", to...
1584 * config/i386/nm-i386v42mp.h: ...here.
1585 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1586
4c1e7e9d
AC
15872002-11-08 Andrew Cagney <ac131313@redhat.com>
1588
1589 * Makefile.in (frame.o): Update dependencies.
1590 * blockframe.c (current_frame, frame_obstack_alloc)
1591 (frame_saved_regs_zalloc, get_current_frame)
1592 (set_current_frame, create_new_frame)
1593 (set_unwind_by_pc, get_next_frame)
1594 (flush_cached_frames, reinit_frame_cache)
1595 (frame_saved_regs_register_unwind)
1596 (deprecated_generic_get_saved_register)
1597 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1598 (_initialize_blockframe): Move frame code from here...
1599 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1600 "annotate.h" and "dummy-frame.h".
1601 (_initialize_frame): New function.
1602
921e78cf
JB
16032002-11-08 Jim Blandy <jimb@redhat.com>
1604
1605 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1606 when we finish a function a context.
1607 * buildsym.h (outermost_context_p): New macro.
1608 (Bug analyzed by David Edelsohn.)
1609
9c1412c1
AC
16102002-11-08 Andrew Cagney <ac131313@redhat.com>
1611
1612 * blockframe.c: Include "dummy-frame.h".
1613 (struct dummy_frame, dummy_frame_stack)
1614 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1615 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1616 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1617 (generic_save_call_dummy_addr, generic_pop_current_frame)
1618 (generic_pop_dummy_frame, generic_fix_call_dummy)
1619 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1620 dummy frame code from here...
1621 * dummy-frame.c: ...to here. New file.
1622 * dummy-frame.h: New file.
1623 (generic_call_dummy_register_unwind): Declare.
1624 (generic_find_dummy_frame): Declare.
1625 * Makefile.in (SFILES): Add dummy-frame.c.
1626 (dummy-frame.o): Specify dependencies.
1627 (dummy_frame_h): Define.
1628 (COMMON_OBS): Add dummy-frame.o.
1629 (blockframe.o): Update dependencies.
1630
208d8187
JB
16312002-11-08 Jim Blandy <jimb@redhat.com>
1632
1633 * dwarf2read.c (read_func_scope): Restore local_symbols and
1634 param_symbols after we finish the function context. (Based on a
1635 patch from David Edelsohn.)
1636
413dad4d
DC
16372002-11-08 David Carlton <carlton@math.stanford.edu>
1638
1639 * linespec.c (symbol_found): New function.
1640 (minsym_found): New function.
1641 (decode_line_1): Separate out some code into separate functions.
1642
5512c44a
JB
16432002-11-08 Joel Brobecker <brobecker@gnat.com>
1644
1645 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1646 the benefit of the interix target.
1647 * i386-tdep.h (i386_frameless_signal_p): Declare.
1648
1b33ef47
AC
16492002-11-08 Andrew Cagney <ac131313@redhat.com>
1650
1651 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1652 declaration that snuck in from change below.
1653
23a34459
AC
16542002-11-06 Andrew Cagney <cagney@redhat.com>
1655
1656 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1657 all callers.
1658 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1659 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1660 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1661 (i386_mxcsr_regnum_p): new function. Use instead of
1662 MXCSR_REGNUM_P.
1663 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1664 (i386_sse_regnum_p): Declare.
1665 (i386_mxcsr_regnum_p): Declare.
1666 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1667 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1668 (IS_FP_REGNUM): Update definition.
1669 (IS_FPU_CTRL_REGNUM): Update definition..
1670 (IS_SSE_REGNUM): Update definition..
1671 * i386v-nat.c (register_u_addr): Update.
1672 * go32-nat.c (fetch_register): Update.
1673 (store_register): Update.
1674
d709c020
JB
16752002-11-07 Joel Brobecker <brobecker@gnat.com>
1676
1677 Preparation work to convert the hppa targets to multiarch partial.
1678
1679 * hppa-tdep.c: Add new functions replacing macro bodies from
1680 config/pa/tm-hppa.h. These function will be used to initialize
1681 the gdbarch structure. Import some comments from tm-hppa.h,
1682 and place them where appropriate, to avoid loosing them when
1683 we cleanup this file.
1684 (hppa_reg_struct_has_addr): New function.
1685 (hppa_inner_than): New function.
1686 (hppa_stack_align): New function.
1687 (hppa_pc_requires_run_before_use): New function.
1688 (hppa_instruction_nullified): New function.
1689 (hppa_register_byte): New function.
1690 (hppa_register_virtual_type): New function.
1691 (hppa_store_struct_return): New function.
1692 (hppa_cannot_store_register): New function.
1693 (hppa_frame_args_address): New function.
1694 (hppa_frame_locals_address): New function.
1695 (hppa_smash_text_address): New function.
1696 (hppa_coerce_float_to_double): New function. Requires the inclusion
1697 of "language.h".
1698
1699 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1700
1701 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1702 gdbarch-eligible macro to a call to the new associated function
1703 created in hppa-tdep.c.
1704 (INNER_THAN): Likewise.
1705 (STACK_ALIGN): Likewise.
1706 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1707 (INSTRUCTION_NULLIFIED): Likewise.
1708 (REGISTER_BYTE): Likewise.
1709 (REGISTER_VIRTUAL_TYPE): Likewise.
1710 (STORE_STRUCT_RETURN): Likewise.
1711 (CANNOT_STORE_REGISTER): Likewise.
1712 (FRAME_ARGS_ADDRESS): Likewise.
1713 (FRAME_LOCALS_ADDRESS): Likewise.
1714 (SMASH_TEXT_ADDRESS): Likewise.
1715 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1716 (ABOUT_TO_RETURN): Delete, as no longer used.
1717
83c31e7d
FN
17182002-11-07 Fernando Nasser <fnasser@redhat.com>
1719
1720 * printcmd.c (disassemble_command): Remove obsolete function.
1721 (_initialize_printcmd): Do not create disassemble command here.
1722 * cli/cli-cmds.c (disassemble_command): New function. Implements
1723 disassemble command.
1724 (init_cli_cmds): Create disassemble command here instead.
1725
0ec30a36
AC
17262002-11-07 Andrew Cagney <ac131313@redhat.com>
1727
1728 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1729
e600bd34
AC
17302002-11-07 Andrew Cagney <ac131313@redhat.com>
1731
1732 * regcache.h (regcache_cooked_read_using_offset_hack)
1733 (regcache_cooked_write_using_offset_hack): Delete declarations.
1734 (register_changed): Delete declaration.
1735 * regcache.c (regcache_cooked_read_using_offset_hack)
1736 (regcache_cooked_write_using_offset_hack): Delete functions.
1737 (cooked_xfer_using_offset_hack): Delete function.
1738 (register_changed): Delete function.
1739
568f8739
JB
17402002-11-07 Jim Blandy <jimb@redhat.com>
1741
1742 * macroscope.c: #include "complaints.h".
1743 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1744 but not in the macro table.
1745 * Makefile.in (macroscope.o): Record dependency.
1746
b0718b7b
JB
17472002-11-07 Joel Brobecker <brobecker@gnat.com>
1748
1749 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1750
2b9e5f3f
AC
17512002-11-07 Andrew Cagney <ac131313@redhat.com>
1752
1753 * regcache.c (deprecated_registers_fetched): Update.
1754 * regcache.h (deprecated_registers_fetched): Rename
1755 registers_fetched.
1756 * remote-vxsparc.c (vx_read_register): Update.
1757 * remote-vxmips.c (vx_read_register): Update.
1758 * remote-vx68.c (vx_read_register): Update.
1759 * irix5-nat.c (fetch_core_registers): Update.
1760 * mipsm3-nat.c (fetch_inferior_registers): Update.
1761 * sun3-nat.c (fetch_inferior_registers): Update.
1762 * symm-nat.c (fetch_inferior_registers): Update.
1763 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1764 (fetch_core_registers): Update.
1765 (fetch_kcore_registers): Update.
1766 * mips-nat.c (fetch_inferior_registers): Update.
1767 * corelow.c (get_core_registers): Update.
1768 * a68v-nat.c (fetch_inferior_registers): Update.
1769
e6e68f1f
JB
17702002-11-06 Joel Brobecker <brobecker@gnat.com>
1771
1772 Put in place the framework necessary for multiarching the hppa targets.
1773 * hppa-tdep.c (hppa_gdbarch_init): New function.
1774 (hppa_dump_tdep): New function.
1775 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1776 tdep structure dumper.
1777 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1778 until the multi-arching conversion has partially been completed.
1779
492254e9
AC
17802002-11-06 Andrew Cagney <ac131313@redhat.com>
1781
1782 * valops.c (value_assign): Merge lval_register case into
1783 lval_reg_frame_relative. Use frame_register and
1784 regcache_cooked_write instead of get_saved_register and
1785 write_register_bytes. After flushing the register cache, try to
1786 re-select the selected frame.
1787
8262ee23
AC
17882002-11-06 Andrew Cagney <ac131313@redhat.com>
1789
1790 * regcache.h (deprecated_register_valid): Rename register_valid.
1791 * regcache.c: Update.
1792 * ia64-aix-nat.c: Update.
1793 * i386gnu-nat.c: Update.
1794 * alpha-nat.c: Update.
1795 * sparc-nat.c: Update.
1796 * lynx-nat.c: Update.
1797 * remote-mips.c: Update.
1798
4facf7e8
JB
17992002-11-06 Joel Brobecker <brobecker@gnat.com>
1800
1801 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1802 to end of file, to be more consistent with the pratice followed
1803 by other targets.
1804
f9418c0f
AC
18052002-11-06 Andrew Cagney <ac131313@redhat.com>
1806
1807 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1808 (print_float_info): Print registers in float_reggroup.
1809 (print_vector_info): Print registers in vector_reggroup.
1810 (default_print_registers_info): When all, print registers in
1811 all_reggroup. Otherwize, print registers in general_reggroup.
1812 (registers_info): Rewrite. Add support for register groups.
1813 Eliminate a goto.
1814
3fe235a7
EZ
18152002-11-06 Elena Zannoni <ezannoni@redhat.com>
1816
1817 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1818 ages.
1819 (symtab_symbol_info): Remove eons old ifdeffed out code.
1820 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1821 command.
1822
ef944135
TR
18232002-11-06 Theodore A. Roth <troth@openavr.org>
1824
1825 * c-exp.y: Add missing semi-colons.
1826 * f-exp.y: Add missing semi-colons.
1827 * m2-exp.y: Add missing semi-colons.
1828 * p-exp.y: Add missing semi-colons.
1829 Add empty action to start rule to avoid a type clash error when
1830 building with bison >= 1.50.
1831
f8302a57
JB
18322002-11-06 Jim Blandy <jimb@redhat.com>
1833
1834 * macrotab.h (struct macro_source_file): Doc fix.
1835
6e382aa3
JJ
18362002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1837
1838 * varobj.c (child_exists, cplus_number_of_children): Change
1839 STREQ macro references to strcmp.
1840 (cplus_name_of_child): Change code to handle the fact that
1841 fields are not necessarily contiguous with regards to their
1842 access control. This is a fix for PR gdb/792.
1843
a216a322
AC
18442002-11-05 Andrew Cagney <ac131313@redhat.com>
1845
1846 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1847 * gdbarch.h, gdbarch.c: Regnerate.
1848 * frame.h (frame_register): Declare.
1849 * frame.c (frame_register): New function.
1850 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1851 GET_SAVED_REGISTER, otherwize call
1852 generic_unwind_get_saved_register.
1853 (frame_register_read): Use frame_register instead of
1854 get_saved_register.
1855
7d5b6fdd
EZ
18562002-11-05 Elena Zannoni <ezannoni@redhat.com>
1857
1858 From Jim Ingham <jingham@apple.com>:
1859 * event-top.c (gdb_disable_readline): New function.
1860 (_initialize_event_loop): Move comment.
1861
b7c64260
EZ
18622002-11-05 Elena Zannoni <ezannoni@redhat.com>
1863
1864 * event-loop.c (start_event_loop): Add comment.
1865 Update copyright.
1866
c2e1b8f2
AC
18672002-11-05 Andrew Cagney <ac131313@redhat.com>
1868
1869 * infcmd.c (default_print_registers_info): Do not call
1870 PRINT_REGISTER_HOOK.
1871
87647bb0
AC
18722002-11-05 Andrew Cagney <ac131313@redhat.com>
1873
1874 * sparc-tdep.c (sparc_print_register_hook): Make static.
1875 (sparc_print_registers_info): New function.
1876 (sparc_do_registers_info): New function.
1877 (sparclet_print_registers_info): New function.
1878 (sparclet_do_registers_info): New function.
1879 (do_sparc_print_registers_info): New function.
1880 (sparc_print_registers): New static function, clone of infcmd.c's
1881 default_print_registers_info.
1882 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1883 (sparclet_do_registers_info): Declare.
1884 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1885 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1886 Re-define.
1887 (sparc_do_registers_info): Declare.
1888 (PRINT_REGISTER_HOOK): Delete macro.
1889 (sparc_print_register_hook): Delete declaration.
1890
8155455b
DC
18912002-11-05 David Carlton <carlton@math.stanford.edu>
1892
1893 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1894 functions.
1895 (lookup_symbol_aux_local): New function.
1896 (lookup_symbol_aux_symtabs): New function.
1897 (lookup_symbol_aux_psymtabs): New function.
1898
29924310
DC
18992002-11-05 David Carlton <carlton@math.stanford.edu>
1900
1901 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1902 previous values of 'objfile' and 'block'.
1903
cc303028
PM
19042002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1905
1906 * values.c (value_change_enclosing_type): Set
1907 enclosing_type field correctly also for the case where
1908 more memory needs to be allocated.
1909
1d70089a
MK
19102002-11-03 Mark Kettenis <kettenis@gnu.org>
1911
f16a25ae
MK
1912 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1913 of puts_filtered.
1914
1d70089a
MK
1915 * i387-tdep.c (i387_print_float_info): Replace calls to
1916 register_read and deprecated_read_register_gen with calls to
1917 frame_register_read, and make the necessary adjustments to the
1918 surrounding code.
1919
7e20f3fb
AC
19202002-11-02 Andrew Cagney <ac131313@redhat.com>
1921
1922 * gdbarch.sh (register_reggroup_p): Allow default value.
1923 * gdbarch.h, gdbarch.c: Regenerate.
1924
192dbe33
AC
19252002-11-02 Andrew Cagney <ac131313@redhat.com>
1926
1927 * regcache.h: Add coment indicating replacements for deprecated
1928 functions.
1929
b59ff9d5
AC
19302002-11-02 Andrew Cagney <cagney@redhat.com>
1931
1932 * reggroups.h, reggroups.c: New files.
1933 * regcache.c: Include "reggroups.h".
1934 (enum regcache_dump_what): Add `regcache_dump_groups'.
1935 (regcache_dump): Contract size of the "Type" column. When
1936 specified, dump the register's groups.
1937 (maintenance_print_register_groups): New function.
1938 (_initialize_regcache): Add command `maint print register-groups'.
1939 * Makefile.in (COMMON_OBS): Add reggroups.o
1940 (SFILES): Add reggroups.c.
1941 (reggroups_h): Define.
1942 (regcache.o, gdbarch.o): Update dependencies.
1943 (reggroups.o): Specify dependencies.
1944 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1945 Add opaque declaration for `struct reggroup' in generated .h file.
1946 Include "reggroups.h" in generated .c file.
1947 gdbarch.h, gdbarch.c: Re-generate.
1948
4caf0990
AC
19492002-11-02 Andrew Cagney <cagney@redhat.com>
1950
1951 * regcache.h (deprecated_read_register_gen): Rename
1952 read_register_gen.
1953 (deprecated_write_register_gen): Rename write_register_gen.
1954 * i387-tdep.c: Update.
1955 * x86-64-linux-nat.c: Update
1956 * wince.c: Update.
1957 * thread-db.c: Update.
1958 * win32-nat.c: Update.
1959 * mips-tdep.c: Update.
1960 * d10v-tdep.c: Update.
1961 * cris-tdep.c: Update.
1962 * remote-sim.c: Update.
1963 * remote-rdi.c: Update.
1964 * remote-rdp.c: Update.
1965 * frame.c: Update.
1966 * target.c: Update.
1967 * blockframe.c: Update.
1968 * x86-64-tdep.c: Update.
1969 * xstormy16-tdep.c: Update.
1970 * sh-tdep.c: Update.
1971 * s390-tdep.c: Update.
1972 * rs6000-tdep.c: Update.
1973 * sparc-tdep.c: Update.
1974 * i386-tdep.c: Update.
1975 * dwarf2cfi.c: Update.
1976 * regcache.c: Update.
1977
7a7adcdf
JB
19782002-11-01 Joel Brobecker <brobecker@gnat.com>
1979
1980 New interix-specific files:
1981 * config/i386/nm-interix.h: New file.
1982 * config/i386/interix.mh: New file.
1983 * config/i386/interix.mt: New file.
1984 * i386-interix-nat.c: New file.
1985 * i386-interix-tdep.c: New file.
1986
bdcdd535
AC
19872002-11-01 Andrew Cagney <cagney@redhat.com>
1988
1989 * frame.h (deprecated_generic_get_saved_register): Rename
1990 generic_get_saved_register.
1991 * blockframe.c (deprecated_generic_get_saved_register): Update.
1992 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1993 (xstormy16_frame_saved_register): Update.
1994 * sh-tdep.c (sh_gdbarch_init): Update.
1995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1996 * ia64-tdep.c (ia64_get_saved_register): Update.
1997 * cris-tdep.c (cris_gdbarch_init): Update.
1998 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1999 * arm-tdep.c (arm_gdbarch_init): Update.
2000
2a4b7c45
DJ
20012002-10-31 Daniel Jacobowitz <drow@mvista.com>
2002
2003 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2004
ef17e74b
DJ
20052002-10-31 Daniel Jacobowitz <drow@mvista.com>
2006
2007 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2008 trampolines in sigaction.
2009
4904ba5b
AC
20102002-10-31 Andrew Cagney <cagney@redhat.com>
2011
2012 * h8300-tdep.c: Include "gdb_assert.h".
2013 (h8300_print_register): Add gdbarch, file and frame parameters.
2014 Use frame_read_unsigned_register to read the register's value.
2015 Use fprintf_filtered to display output.
2016 (h8300_print_registers_info): Replace h8300_do_registers_info.
2017 (h8300_gdbarch_init): Set print_registers_info.
2018
f908a0eb
AC
20192002-10-31 Andrew Cagney <cagney@redhat.com>
2020
2021 * frame.c (frame_read_unsigned_register): New function.
2022 (frame_read_signed_register): New function.
2023 * frame.h (frame_read_unsigned_register): Declare.
2024 (frame_read_signed_register): Declare.
2025
c5646e11
AC
20262002-10-31 Andrew Cagney <cagney@redhat.com>
2027
2028 * h8500-tdep.c (h8500_print_registers_info): New static function,
2029 clone of infcmd.c's default_print_registers_info.
2030 (h8500_do_registers_info): New funtion.
2031 (h8500_print_register_hook): Rename print_register_hook, make
2032 static.
2033
2034 * config/h8500/tm-h8500.h: Update copyright.
2035 (DEPRECATED_DO_REGISTERS_INFO): Define.
2036 (h8500_do_registers_info: Declare.
2037 (PRINT_REGISTER_HOOK): Delete macro.
2038 (print_register_hook): Delete function.
2039
0bdd672b
AC
20402002-10-31 Andrew Cagney <cagney@redhat.com>
2041
2042 * z8k-tdep.c (z8k_print_register_hook): Make static.
2043 (z8k_print_registers_info): New static function, clone of
2044 infcmd.c's default_print_registers_info.
2045 (z8k_do_registers_info): New function. Wrap
2046 z8k_print_registers_info.
2047 * config/z8k/tm-z8k.h: Update copyright.
2048 (PRINT_REGISTER_HOOK): Delete macro.
2049 (z8k_print_register_hook): Delete declaration.
2050 (DEPRECATED_DO_REGISTERS_INFO): Define.
2051 (z8k_do_registers_info): Declare.
2052
bf9c25dc
JB
20532002-10-30 Joel Brobecker <brobecker@gnat.com>
2054
2055 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2056 as this is already provided by value.h, and was actually causing
2057 a compilation error because of a conflict in parameter type
2058 declaration due to a missing const keyword.
2059 (low_text_segment_addres): Fix a compilation warning.
2060
2c665b51
DJ
20612002-10-29 Daniel Jacobowitz <drow@mvista.com>
2062
2063 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2064 registers without a name.
2065 (mips_linux_cannot_store_register): Don't store registers without
2066 a name.
2067
e70ea697
DC
20682002-10-28 David Carlton <carlton@math.stanford.edu>
2069
2070 * symtab.c (find_addr_symbol): Delete. (It was already commented
2071 out.)
2072 * symtab.h: Delete prototype for find_addr_symbol.
2073
903ad3a6
AC
20742002-10-26 Andrew Cagney <cagney@redhat.com>
2075
2076 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2077 DO_REGISTERS_INFO.
2078 gdbarch.h, gdbarch.c: Re-generate.
2079 * infcmd.c (default_print_registers_info): Update reference.
2080 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2081 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2082 * sh-tdep.c (sh_gdbarch_init): Ditto.
2083 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2084 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2085
ab91194c
MK
20862002-10-26 Mark Kettenis <kettenis@gnu.org>
2087
e3033f15
MK
2088 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2089 cfi_init_extra_frame_info.
2090 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2091 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2092
b83b026c
MK
2093 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2094 target where necessary. Add more comments and remove the ones
2095 that don't provide any useful information.
2096
267bf4bb
MK
2097 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2098 deprecated_read_register_dummy with
2099 frame_unwind_unsigned_register.
2100
751f1375
MK
2101 * i386-tdep.c (i386_extract_struct_value_address): Use
2102 regcache_raw_read_unsigned instead of
2103 regcache_cooked_read_unsigned since we know that the register
2104 we're reading isn't a pseudo register. Rename variable 'val' into
2105 the more descriptive 'addr'.
2106
26abbdc4
MK
2107 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2108 (x86_64_push_return_address): Add comment.
2109 (x86_64_pop_frame): Make static.
2110 (examine_argument): Clarify comment.
2111 (x86_64_skip_prologue): Make prolog_expact variable static.
2112
9f1549cc
MK
2113 * dwarf2cfi.c: Fix some formatting problems.
2114 (context_cpy, read_encoded_pointer): Clarify comments.
2115
ab91194c
MK
2116 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2117 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2118 i386 target back into x86_64_gdbarch_init. Add some comments and
2119 remove meaningless ones.
2120
72367fb4
AC
21212002-10-25 Andrew Cagney <cagney@redhat.com>
2122
2123 * complaints.h (struct deprecated_complaint): Rename `struct
2124 complaint'.
2125 * complaints.c (complain): Update.
2126 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2127 incorrect comment indicating that "symfile.h" was being included
2128 for the `struct complaint' definition.
2129 * remote-vx.c: Update.
2130 * objc-lang.c: Update.
2131 * xcoffread.c: Update.
2132 * hpread.c: Update.
2133 * mdebugread.c: Update.
2134 * stabsread.c: Update.
2135 * dwarf2read.c: Update.
2136 * dwarfread.c: Update.
2137 * elfread.c: Update.
2138 * coffread.c: Update.
2139 * stabsread.h: Update.
2140 * dbxread.c: Update.
2141 * buildsym.c: Update.
2142 * gdbtypes.c: Update.
2143 * macrotab.c: Update.
2144
1f2baacc
MK
21452002-10-25 Mark Kettenis <kettenis@gnu.org>
2146
0c1a73d6
MK
2147 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2148 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2149 (x86_64_init_abi): ...new function.
2150
6aee4d54 2151 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2152 * i386v-nat.c: Include "i386-tdep.h".
2153
8f9cbe01
AC
21542002-10-25 Andrew Cagney <cagney@redhat.com>
2155
5f11f355
AC
2156 * gdbtypes.c (address_space_name_to_int): Update.
2157 (address_space_int_to_name): Update.
2158 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2159 multi-arch predicate.
2160 (address_class_name_to_type_flags): Ditto.
2161 * gdbarch.h, gdbarch.c: Re-generate.
2162
8f9cbe01
AC
2163 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2164
e8d96a5d
MH
21652002-10-24 Martin M. Hunt <hunt@redhat.com>
2166
2167 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2168
fe39c653
EZ
21692002-10-24 Elena Zannoni <ezannoni@redhat.com>
2170
2171 * symtab.h (INIT_SAL): Delete macro.
2172 (init_sal): Export.
2173 * symtab.c (init_sal): New function.
2174
2175 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2176 to init_sal function call.
2177 (find_sal_from_funcs_and_line): Ditto.
2178 (all_sals_for_line): Ditto.
2179 * breakpoint.c (create_internal_breakpoint): Ditto.
2180 (create_fork_vfork_event_catchpoint): Ditto.
2181 (create_exec_event_catchpoint): Ditto.
2182 (parse_breakpoint_sals): Ditto.
2183 (watch_command_1): Ditto.
2184 (handle_gnu_4_16_catch_command): Ditto.
2185 (clear_command): Ditto.
2186 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2187 * infcmd.c (run_stack_dummy): Ditto.
2188 * infrun.c (process_event_stop_test): Ditto.
2189 (check_sigtramp2): Ditto.
2190 (step_over_function): Ditto.
2191 * linespec.c (decode_line_2): Ditto.
2192 (decode_line_1): Ditto.
2193 * source.c (line_info): Ditto.
2194 * symtab.c (find_pc_sect_line): Ditto.
2195
baed091b
ML
21962002-10-24 Michal Ludvig <mludvig@suse.cz>
2197
2198 * dwarf2cfi.c (struct context)
2199 (struct context_reg): Moved to dwarf2cfi.h
2200 (context_alloc, frame_state_alloc, context_cpy):
2201 Made extern instead of static, removed prototypes.
2202 * dwarf2cfi.h (struct context)
2203 (struct context_reg): New, moved from dwarf2cfi.c
2204 (context_alloc, frame_state_alloc, context_cpy):
2205 New prototypes.
2206 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2207 Changed from static to extern.
2208 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2209 (LINUX_SIGCONTEXT_FP_OFFSET)
2210 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2211 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2212 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2213 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2214 set_gdbarch_*() calls now use x86-64 specific functions
2215 instead of DWARF2 CFI ones.
2216 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2217 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2218 (x86_64_init_extra_frame_info): New prototypes.
2219
c38da1af
DC
22202002-10-23 David Carlton <carlton@math.stanford.edu>
2221
2222 * linespec.c: #include "parser-defs.h".
2223 Delete prototype for find_template_name_end.
2224 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2225
fb9b6b35
JJ
22262002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2227
2228 * NEWS: add recent mi fixes.
2229 * varobj.c (struct varobj): Add new "updated" flag.
2230 (new_variable): Default "updated" flag to 0.
2231 (varobj_set_value): Set "updated" flag to 1 if value
2232 changes.
2233 (varobj_update): Check varobj "updated" flag before
2234 comparing old and refreshed values. Fix for
2235 PR gdb/702.
2236
8da065d5
DC
22372002-10-23 David Carlton <carlton@math.stanford.edu>
2238
2239 * parse.c (parse_exp_1): Use BLOCK_START.
2240 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2241 SYMBOL_BLOCK_VALUE.
2242 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2243
87f2f08c
DC
22442002-10-23 David Carlton <carlton@math.stanford.edu>
2245
2246 * symtab.c: Delete cplusplus_hint.
2247 Delete prototype for find_template_name_end.
2248
88cda038
EZ
22492002-10-23 Elena Zannoni <ezannoni@redhat.com>
2250
2251 * symtab.h: Update comment.
2252
2625d86c
MS
22532002-10-23 Michael Snyder <msnyder@redhat.com>
2254
2255 * printcmd.c (address_info): Restore quotes in output.
2256 * valops.c (value_of_local): Restore quotes in error message.
2257
9cc0d196
EZ
22582002-10-23 Elena Zannoni <ezannoni@redhat.com>
2259
2260 * symtab.c (symbol_demangled_name): New function.
2261 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2262 turning most of it into a function.
2263 (symbol_demangled_name): Export.
2264
19de93d0
MS
22652002-10-23 Michael Snyder <msnyder@redhat.com>
2266
2267 * valops.c (value_of_local): Restore quotes in error message.
2268
89aad1f9
EZ
22692002-10-23 Elena Zannoni <ezannoni@redhat.com>
2270
2271 * symtab.c (symbol_init_language_specific): New function.
2272 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2273 turning most of it into a function.
2274 (symbol_init_language_specific): Export.
2275
d9fa45fe
DC
22762002-10-23 David Carlton <carlton@math.stanford.edu>
2277
2278 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2279 (dwarf_attr_name): Ditto.
2280 (dwarf_type_encoding_name): Ditto.
2281 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2282 (process_die): Handle DW_TAG_namespace,
2283 DW_TAG_imported_declaration, DW_TAG_imported_module.
2284 (read_namespace): New function.
2285
1045b512
JB
22862002-10-22 Joel Brobecker <brobecker@gnat.com>
2287
2288 * configure.in: Define NEW_PROC_API on Interix too.
2289 * configure: Regenerate.
2290
22912002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2292
2293 * configure: Regenerate using the proper version of autoconf.
2294
3987b9d4
EZ
22952002-10-21 Elena Zannoni <ezannoni@redhat.com>
2296
2297 * findvar.c (read_var_value): Temporarily disable TLS code, until
2298 complete TLS support is added.
2299
9d774e44
EZ
23002002-10-21 Jim Blandy <jimb@redhat.com>
2301 Elena Zannoni <ezannoni@redhat.com>
2302
2303 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2304 for thread local storage locations.
2305 (struct symbol): Add objfile field.
2306 (SYMBOL_OBJFILE): Define.
2307 * dwarf2read.c (is_thread_local): New static variable.
2308 (new_symbol): If variable is in thread local fill in address class
2309 and objfile appropriately.
2310 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2311 stack operation.
2312 * printcmd.c (address_info): Print the information for thread
2313 local storage variable.
2314 * findvar.c (read_var_value): In case of thread local variable,
2315 defer to the target vector code to compute address.
2316
bc4a16ae
EZ
23172002-10-21 Elena Zannoni <ezannoni@redhat.com>
2318
2319 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2320 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2321
407caf07
EZ
23222002-10-21 Elena Zannoni <ezannoni@redhat.com>
2323
2324 * symtab.h (address_class): Rename
2325 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2326 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2327 * printcmd.c (address_info): Ditto.
2328 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2329
005328e3
MK
23302002-10-20 Mark Kettenis <kettenis@gnu.org>
2331
afdb036a
MK
2332 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2333 DBREG_DRX macro to acces debug registers.
2334
ca02e098
MK
2335 * Makefile.in (i386obsd-tdep.o): New target.
2336
03cc47f7
MK
2337 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2338 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2339
005328e3
MK
2340 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2341 * config/i386/obsd.mt: New file.
2342 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2343 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2344 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2345 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2346 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2347 * i386obsd-tdep.c: New file.
2348
9c96f9f2
AF
23492002-10-19 Adam Fedor <fedor@gnu.org>
2350
2351 * objc-exp.y (name_not_typename): Fix invalid comment.
2352
ce1ed485
MK
23532002-10-20 Mark Kettenis <kettenis@gnu.org>
2354
2355 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2356 to allocate partial syms and macro byte caches.
2357
1efc7aaa
DC
23582002-10-18 David Carlton <carlton@math.stanford.edu>
2359
2360 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2361
7e1d63ec
AF
23622002-10-18 Adam Fedor <fedor@gnu.org>
2363
2364 * stabsread.c (find_name_end): New function.
2365 (define_symbol): Use it.
2366
6e8d29a9
DJ
23672002-10-18 Daniel Jacobowitz <drow@mvista.com>
2368
2369 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2370 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2371 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2372 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2373
1efc7aaa 23742002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2375
2376 * symfile.h: Add opaque declaration for struct obstack.
2377 Declare obsavestring to take a const char *.
2378 * symfile.c (obsavestring): Make first argument a const char *.
2379
1aeae86e
AF
23802002-10-16 Adam Fedor <fedor@gnu.org>
2381
2382 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2383 names when matching breakpoints in current file.
2384
8b2dbe47
KB
23852002-10-16 Kevin Buettner <kevinb@redhat.com>
2386
2387 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2388 (read_tag_pointer_type): Add address class support.
2389 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2390 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2391 New methods.
2392 * gdbarch.h, gdbarch.c: Regenerate.
2393 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2394 (make_type_with_address_space, recursive_type_dump): Add address
2395 class support.
2396 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2397 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2398 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2399
74451869
KD
24002002-10-16 Klee Dienes <kdienes@apple.com>
2401
2402 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2403 to get the last character of a char[] buffer, not
2404 name[sizeof(vptr_name)-1].
2405
ff4cb3e8
AF
24062002-10-14 Adam Fedor <fedor@gnu.org>
2407
2408 * symtab.h: New objc_specific struct.
2409 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2410 (SYMBOL_DEMANGLED_NAME): Likewise.
2411
da2cf7e0
AF
24122002-10-14 Adam Fedor <fedor@gnu.org>
2413
2414 * symfile.c (init_filename_language_table): Add ObjC file extension.
2415
4a351cef
AF
24162002-10-14 Adam Fedor <fedor@gnu.org>
2417
2418 * utils.c (puts_filtered_tabular): New function.
2419 (fprintf_symbol_filtered): Get ObjC demangled name.
2420 * defs.h (puts_filtered_tabular): Declared.
2421
9750e763
KB
24222002-10-14 Kevin Buettner <kevinb@redhat.com>
2423
2424 * c-lang.h (c_type_print_varspec_prefix): Delete.
2425 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2426 ``need_post_space'' parameter. Adjust all callers.
2427
eee771c1
DJ
24282002-10-14 Daniel Jacobowitz <drow@mvista.com>
2429
2430 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2431 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2432 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2433 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2434
46c82446
AF
24352002-10-13 Adam Fedor <fedor@gnu.org>
2436
2437 * source.c (print_source_lines): Update comments.
2438
d069f99d
AF
24392002-10-13 Adam Fedor <fedor@gnu.org>
2440
2441 * valops.c (value_of_local): New function.
2442 (value_of_this): Use it.
2443 * value.h (value_of_local): Declared.
2444
53c551b7
AF
24452002-10-13 Adam Fedor <fedor@gnu.org>
2446
2447 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2448 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2449
eb392fbf
AF
24502002-10-12 Adam Fedor <fedor@gnu.org>
2451
2452 * language.c (binop_result_type): Add language_objc to case.
2453 (integral_type): Likewise.
2454 (character_type): Likewise.
2455 (string_type): Likewise.
2456 (boolean_type): Likewise.
2457 (structured_type): Likewise.
2458 (binop_type_check): Likewise.
2459
e2b23ee9
AF
24602002-10-11 Adam Fedor <fedor@gnu.org>
2461
2462 * printcmd.c (address_info): Print 'self' for ObjC.
2463
b01ab485
AF
24642002-10-11 Adam Fedor <fedor@gnu.org>
2465
2466 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2467 OP_SELF.
2468
806e6073
AF
24692002-10-11 Adam Fedor <fedor@gnu.org>
2470
2471 * language.h (CAST_IS_CONVERSION): Add language_objc.
2472
50f85cdf
AF
24732002-10-11 Adam Fedor <fedor@gnu.org>
2474
2475 * defs.h (enum language): Add language_objc.
2476
0d540cdf
KD
24772002-10-11 Klee Dienes <kdienes@apple.com>
2478
69266111 2479 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2480 * gdbcore.h (read_memory_typed_address): Add prototype.
2481 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2482 to read a value destined for a CORE_ADDR, not read_memory_integer.
2483 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2484 (f77_get_dynamic_lowerbound): Ditto.
2485
d5dc7960
MH
24862002-10-11 Martin M. Hunt <hunt@redhat.com>
2487
2488 * utils.c (string_to_core_addr): After turning string into
2489 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2490 which will do necessary sign-extension, etc.
2491
8343f86c
DJ
24922002-10-11 Daniel Jacobowitz <drow@mvista.com>
2493
2494 * c-exp.y (THIS): Delete token and grammar rule.
2495 (yylex): Don't return THIS.
2496 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2497 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2498 * demangle.c (cplus_markers): Update comment. Put '$'
2499 first. Remove CPLUS_MARKER.
2500 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2501 * jv-exp.y (THIS): Delete token and grammar rule.
2502 (yylex): Don't return THIS.
2503 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2504 * objc-exp.y (THIS): Delete token and grammar rule.
2505 (yylex): Don't return THIS.
2506 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2507 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2508 (read_member_functions): Likewise for opname.
2509 (read_tilde_fields): Use is_cplus_marker.
2510
2511 * defs.h (CPLUS_MARKER): Don't define.
2512 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2513 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2514 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2515 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2516 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2517
2518 * config/i386/tm-i386v4.h: Delete file.
2519 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2520 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2521 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2522 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2523 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2524 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2525 * config/i386/i386v4.mt (TM_FILE): Likewise.
2526 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2527
967c0d83
MM
25282002-10-10 Marko Mlinar <markom@opencores.org>
2529
2530 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2531 accidentially not commited 2002-10-09
2532 * gdbarch.h, gdbarch.c: Re-generate.
2533
f74fa174
MM
25342002-10-09 Marko Mlinar <markom@opencores.org>
2535
2536 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2537 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2538 * gdbarch.h, gdbarch.c: Re-generate.
2539
57349743
JB
25402002-10-08 Petr Sorfa <petrs@caldera.com>
2541
2542 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2543
2544 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2545 so we can work on more than one compilation unit at a time. This
2546 helps prepare GDB to handle inter-CU die references.
2547 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2548 the code to be defined before struct comp_unit_head.
2549 (comp_unit_head): Added new members - offset, cu_head,
2550 begin_die, next and dwarf2_abbrevs.
2551 (dwarf2_abbrevs): Removed single static var; now member of
2552 struct comp_unit_head.
2553 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2554 members.
2555 (psymtab_to_symtab_1): Changed to work with the new
2556 struct comp_unit_head.
2557 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2558 constructs the dwarf2_abbrevs[] inside the cu_header.
2559 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2560 dwarf2_abbrev table to clean up.
2561 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2562 handling of dwarf2_abbrevs inside the cu_header.
2563 (read_partial_die): Now supports the call to the new
2564 dwarf2_lookup_abbrev.
2565 (read_full_die): Now supports the call to the new
2566 dwarf2_lookup_abbrev.
2567
4092aadb
CF
25682002-10-06 Christopher Faylor <cgf@redhat.com>
2569
2570 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2571 insure that shell variables, such as "transformed_name" are propagated
2572 to later shell statements in rule.
2573
af0b2512
MK
25742002-10-06 Mark Kettenis <kettenis@gnu.org>
2575
2576 * config/i386/nm-i386sco.h: Add protection against
2577 multiple-inclusion. Include "i386/nm-i386v.h".
2578 (REGISTER_U_ADDR): Remove define.
2579 (i386_register_u_addr): Remove prototype.
2580
d6020d45
MS
25812002-10-04 Michael Snyder <msnyder@redhat.com>
2582
2583 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2584 before treating it as a single-step event.
2585
7248f48e
AF
25862002-10-03 Adam Fedor <fedor@gnu.org>
2587
2588 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2589 (objc_demangle): Remove assignment in if statements, Replace
2590 free with xfree.
2591 (add_msglist): Likewise.
2592 (end_msglist): Likewise.
2593 (complare_selectors): Likewise.
2594 (selectors_info): Likewise.
2595 (compare_classes): Likewise.
2596 (classes_info): Likewise.
2597 (print_object_command): Likewise.
2598 (find_objc_msgcall_submethod): Replace PTR with void *.
2599 * objc-lang.h: Remove check for __STDC__.
2600
52c6a6ac
JJ
26012002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2602
2603 * ui-out.h (ui_out_field_fmt_int): New prototype.
2604 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2605 of field width and alignment.
2606 * stack.c (print_frame_info_base): When printing frame level, use
2607 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2608 PR gdb/192
2609
7e3cec17
JJ
26102002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2611
2612 * MAINTAINERS: Add self to Write After Approval list.
2613
a58dd373
EZ
26142002-10-02 Elena Zannoni <ezannoni@redhat.com>
2615
2616 * infcmd.c (interrupt_target_command_wrapper): Delete.
2617 (interrupt_target_command): Make non static.
2618 (nofp_registers_info): Make static.
2619 * stack.c (return_command_wrapper): Delete.
2620 (return_command): Make non static.
2621
cee6ddeb
EZ
26222002-10-02 Elena Zannoni <ezannoni@redhat.com>
2623
2624 * event-top.c (gdb_setup_readline): New function. Code moved from
2625 _initialize_event_loop().
2626 (_initialize_event_loop): Call gdb_setup_readline().
2627
c4ed33b9
AC
26282002-10-02 Andrew Cagney <ac131313@redhat.com>
2629
2630 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2631 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2632 * gdbarch.h, gdbarch.c: Re-generate.
2633
cef4f5dd
DJ
26342002-10-02 Daniel Jacobowitz <drow@mvista.com>
2635
2636 Fix PR gdb/778
2637 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2638 before recursing.
2639 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2640 of fill_in_vptr_fieldno.
2641
36dc181b 26422002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2643
36dc181b
EZ
2644 * inferior.h (registers_info, stepi_command, nexti_command,
2645 continue_command, interrupt_target_command): Export from infcmd.c.
2646 * frame.h (args_info, selected_frame_level_changed_hook,
2647 return_command): Export from stack.c.
2648 * v850ice.c (stepi_command, nexti_command, continue_command): use
2649 prototypes from inferior.h.
2650 * tracepoint.c (registers_info, args_info, locals_info): Use
2651 prototypes from frame.h and inferior.h.
2652 * Makefile.in (mi-main.o): Add dependency on frame.h.
2653
6f99cb26
AC
26542002-10-02 Andrew Cagney <ac131313@redhat.com>
2655
da3eff49
AC
2656 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2657 value in register 3 adjusted by ppc_gp0_regnum.
2658
6f99cb26
AC
2659 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2660
da615bee
MM
26612002-10-02 Marko Mlinar <markom@opencores.org>
2662
2663 * MAINTAINERS: Add myself to the Write After Approval list.
2664
d154bee2
AO
26652002-10-01 Alexandre Oliva <aoliva@redhat.com>
2666
62a49b2c
AO
2667 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2668 of the section for the N64 ABI, fixed.
2669
d154bee2
AO
2670 * config/mips/tm-irix6.h: Include solib.h.
2671
ed348acc
EZ
26722002-10-01 Elena Zannoni <ezannoni@redhat.com>
2673
2674 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2675 GNU operators.
2676
da0f9dcd
AC
26772002-10-01 Andrew Cagney <ac131313@redhat.com>
2678
2679 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2680 and that "mi0" syntax has been removed.
2681
bdf64bac
DC
26822002-09-30 David Carlton <carlton@math.stanford.edu>
2683
2684 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2685 * ppc-sysv-tdep.c: #include "gdb_string.h".
2686 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2687 pacify GCC.
2688
54c2a1e6
AC
26892002-10-01 Andrew Cagney <ac131313@redhat.com>
2690
2691 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2692 "vrsave"'s register number.
2693
cedea778
AC
26942002-09-30 Andrew Cagney <ac131313@redhat.com>
2695
2696 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2697 use frame_unwind_signed_register to obtain the PC.
2698 (mips_frame_chain): Handle a generic dummy frame.
2699 (mips_init_extra_frame_info): When a generic dummy frame, don't
2700 re-compute the frame base.
2701 (mips_pop_frame): Handle generic dummy frames.
2702 (mips_gdbarch_init): When generic dummy frames, set
2703 use_generic_dummy_frames, push_dummy_frame to
2704 generic_push_dummy_frame, pc_in_call_dummy to
2705 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2706 generic_save_dummy_frame_tos.
2707
68315eb8
AC
27082002-09-30 Andrew Cagney <ac131313@redhat.com>
2709
2710 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2711 against TOP when TOP was explictly set.
2712 (generic_push_dummy_frame): Set TOP to zero.
2713
3b8630c3
EZ
27142002-09-30 Elena Zannoni <ezannoni@redhat.com>
2715
2716 * event-loop.c (start_event_loop): Rename variable 'result' to
2717 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2718
28ee05e9
KS
27192002-09-30 Keith Seitz <keiths@redhat.com>
2720
2721 * gdb-events.sh (selected_thread_changed): New event.
2722 * gdb-events.c: Regenerated.
2723 * gdb-events.h: Regenerated.
2724
6eecb1c8
HPN
27252002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2726
2727 * MAINTAINERS: Add self to Write After Approval list.
2728
92df71f0
FN
27292002-09-30 Fernando Nasser <fnasser@redhat.com>
2730
3b8630c3
EZ
2731 * disasm.c: New file.
2732 * disasm.h: New file.
92df71f0
FN
2733 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2734 (compare_lines): Ditto.
2735 (dump_insns): Ditto.
3b8630c3
EZ
2736 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2737 argument.
92df71f0 2738 (do_assembly_only): Ditto.
3b8630c3
EZ
2739 (do_disassembly): Renamed to gdb_disassembly and moved to
2740 disasm.c. Sdded uiout argument.
2741 * Makefile.in: Add new files. Reorder SFILES list. Update
2742 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2743
0c22854d
AC
27442002-09-29 Andrew Cagney <ac131313@redhat.com>
2745
2746 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2747 bfd/elf64-alpha-fbsd.c.
2748
e67f2023
AC
27492002-09-29 Andrew Cagney <ac131313@redhat.com>
2750
2751 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2752 i386gnu-tdep.c.
2753
89396210
AC
27542002-09-29 Andrew Cagney <ac131313@redhat.com>
2755
2756 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2757 __FUNCTION__.
2758 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2759 function name.
2760 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2761 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2762 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2763 (S_msg_sig_post_reply): Ditto.
2764
7079c36c
CV
27652002-09-28 Corinna Vinschen <vinschen@redhat.com>
2766
89396210
AC
2767 * sh-tdep.c (sh_use_struct_convention): Use definition according
2768 to ABI.
7079c36c
CV
2769 (sh_push_arguments): Store in register with correct endianess.
2770 (sh_default_store_return_value): Ditto.
2771 (sh_gdbarch_init): Set sizeof long double to 8.
2772
975ac915
MK
27732002-09-27 Mark Kettenis <kettenis@gnu.org>
2774
2775 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2776 Fix some whitespace problems.
2777
9bbe19fb
DC
27782002-09-27 David Carlton <carlton@math.stanford.edu>
2779
2780 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2781 (mcore-tdep.o): Ditto.
2782 (ns32k-tdep.o): Ditto.
2783 (ns32knbsd-tdep.o): Ditto.
2784 (sh3-rom.o): Ditto.
2785 (vax-tdep.o): Ditto.
2786 * cris-tdep.c: #include "gdb_string.h"
2787 * mcore-tdep.c: Ditto.
2788 * ns32k-tdep.c: Ditto.
2789 * ns32knbsd-tdep.c: Ditto.
2790 * sh3-rom.c: Ditto.
2791 * vax-tdep.c: Ditto.
2792
43b2fdc7
DC
27932002-09-27 David Carlton <carlton@math.stanford.edu>
2794
2795 * config/djgpp/fnchange.lst: Add entries for
2796 gdb/testsuite/gdb.c++/m-static files.
2797
e8cfbbd9
JW
27982002-09-27 Jim Wilson <wilson@redhat.com>
2799
2800 * MAINTAINERS: Add myself to the Write After Approval list.
2801
43b2fdc7 28022002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2803
2804 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2805
2806
9f3b7f07
AC
28072002-09-26 Andrew Cagney <ac131313@redhat.com>
2808
2809 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2810 frame.
2811
11269d7e
AC
28122002-09-26 Andrew Cagney <ac131313@redhat.com>
2813
2814 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2815 (rs6000_struct_return_address): Delete variable.
2816 (rs6000_store_struct_return): Update.
2817 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2818 deprecated_extract_struct_value_address.
2819 (rs6000_frame_align): New function.
2820 (rs6000_gdbarch_init): Set frame_align.
2821
f15ab4a7
AC
28222002-09-26 Andrew Cagney <ac131313@redhat.com>
2823
2824 From Grace Sainsbury <graces@redhat.com>:
2825 * Makefile.in (gdbtk-main.o): New target.
2826 (gdb.o): New target.
2827 (main_h): Define.
2828 (main.o): Update dependencies.
2829 (gdb$(EXEEXT)): Add gdb.o.
2830 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2831 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2832 (SUBDIR_GDBTK_CLEAN): Set.
2833 (install-gdbtk): Install the insight binary.
2834 (uninstall-gdbtk): New target.
2835 (all-gdbtk, clean-gdbtk): New rule.
2836 * top.c (use_windows): Default to zero.
2837 * main.c: Include "main.h".
2838 (main): Delete.
2839 (struct captured_main_args): Delete.
2840 (gdb_main): New function.
2841 * main.h: New file.
2842 * gdb.c: New File.
2843
e36180d7
AC
28442002-09-25 Andrew Cagney <cagney@redhat.com>
2845
2846 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2847 (frame_map_regnum_to_name): New function.
2848 (frame_map_name_to_regnum): New function.
2849 * frame.h (frame_map_name_to_regnum): Declare.
2850 (frame_map_regnum_to_name): Declare.
2851 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2852 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2853 * parse.c: Do not include "builtin-regs.h".
2854 (target_map_name_to_register): Delete function.
2855 (write_dollar_variable): Use frame_map_name_to_regnum.
2856 * parser-defs.h (target_map_name_to_register): Delete declaration.
2857 * expprint.c: Include "frame.h".
2858 (print_subexp): Use frame_map_regnum_to_name.
2859 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2860 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2861
8b69000d
AC
28622002-09-25 Andrew Cagney <ac131313@redhat.com>
2863
2864 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2865 wasn't saved, and the next innermost frame is a dummy, return the
2866 dummy frame's link register.
2867
046ca86a
JB
28682002-09-24 Jim Blandy <jimb@redhat.com>
2869
2870 Fix from Paul Breed:
2871 * main.c (captured_main): Add a `break' after the case for 'b'.
2872
94b66fa7
KS
28732002-09-24 Keith Seitz <keiths@redhat.com>
2874
2875 * varobj.c (c_type_of_child): Use get_target_type instead
2876 of TYPE_TARGET_TYPE.
2877
c214a6fd
FN
28782002-09-22 Fernando Nasser <fnasser@redhat.com>
2879
53cb0458
FN
2880 * source.c (get_current_or_default_source_symtab_and_line): Remove
2881 function.
2882 (set_default_source_symtab_and_line): New function. Attempts to
2883 determine a source file to list lines from if one is not currently
2884 defined.
2885 (get_current_source_symtab_and_line): Initialize sal.pc and
2886 sal.end fields.
2887 (set_current_source_symtab_and_line): Mark argument as const.
2888 * source.h: Update declarations and comments.
2889 * linespec.c (decode_line_1): Replace call to removed routine above.
2890 * stack.c (print_frame_info_base): Ditto.
2891 * cli/cli-cmds.c (edit_command): Ditto.
2892 (list_command): Ditto.
2893
28942002-09-22 Fernando Nasser <fnasser@redhat.com>
2895
d6020d45 2896 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2897 sal.pc and sal.end fields.
c214a6fd
FN
2898 (get_current_or_default_source_symtab_and_line): Ditto.
2899 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2900 so we do not cause a new source symtab to be searched for (reverting an
2901 unintentional change from the 2002-09-20 patch).
2902 * scm-lang.c (scm_unpac): Ditto.
2903
cc3b68a5
AC
29042002-09-21 Andrew Cagney <cagney@redhat.com>
2905
2906 * complaints.c (symfile_explanations): Remove new-line from
2907 ``isolated_message''.
2908 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2909 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2910
5835abe7
NC
29112002-09-20 Nick Clifton <nickc@redhat.com>
2912
2913 * NEWS: Announce that V850EA ISA is no longer supported.
2914 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2915
a15ef5f5
DC
29162002-09-20 David Carlton <carlton@math.stanford.edu>
2917
06ba1b39
DC
2918 * Makefile.in (c-lang.o): Correct dependencies.
2919 (utils.o): Gather dependencies.
2920 (charset.o): Move.
a15ef5f5
DC
2921 * c-lang.c: #include "gdb_string.h"
2922
87885426
FN
29232002-09-20 Fernando Nasser <fnasser@redhat.com>
2924
2925 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2926 * cli/cli-cmds.c (list_command): New function. Implements the new
2927 cli edit command.
2928 (_init_cli_cmds): Add new command definition.
2929 * gdb.1: Document edit command.
2930 * doc/gdb.texinfo: Document edit command.
2931
29322002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2933
2934 * source.c: Make global variables current_source_symtab and
2935 current_source_line static.
2936 (list_command): Moved to cli/cli-cmds.c.
2937 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2938 (get_first_line_listed): New accessor function.
2939 (get_lines_to_list): New accessor function.
2940 (get_current_source_symtab_and_line): New function. Retrieves the
2941 position in the source code that we consider current.
2942 (get_current_or_default_source_symtab_and_line): New function.
2943 Like the above but attempts to determine a default position if one
2944 is not currently defined.
2945 (set_current_source_symtab_and_line): New function. Sets the source
2946 code position considered current and returns the previously set one.
2947 (clear_current_source_symtab_and_line): Reset stored information about
2948 a current source line.
2949 (_initialize_source): Remove registration for the "list" command and
2950 its alias.
2951 * source.h: Add declarations for the new functions above.
2952 * symtab.h: Remove declarations for the global variables mentioned
2953 above.
2954 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2955 obtain current source line.
2956 * linespec.c (decode_line_1): Ditto.
2957 * macroscope.c (default_macro_scope): Ditto.
2958 * scm-lang.c (scm_unpac): Ditto.
2959 * stack.c (print_frame_info_base): Ditto.
2960 * symfile.c (clear_symtab_users): Ditto.
2961 * symtab.c (decode_line_spec): Ditto.
2962 * cli/cli-cmds.c (list_command): Moved here from source.c.
2963 (ambiguous_line_spec): Moved here from source.c.
2964 (_init_cli_cmds): Add definition for "list" and its alias.
2965 * Makefile.in: Update dependencies.
2966
ddd216ea
CV
29672002-09-20 Corinna Vinschen <vinschen@redhat.com>
2968
2969 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2970 with what gcc thinks is correct.
2971
6d305052
CV
29722002-09-20 Corinna Vinschen <vinschen@redhat.com>
2973
2974 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2975 multiple register push instruction.
2976
234b45d4
KB
29772002-09-19 Jim Blandy <jimb@redhat.com>
2978
2979 Add support for distinct host and target character sets.
2980 * charset.c, charset.h: New files.
2981 * c-exp.y: #include "charset.h".
2982 (yylex): Convert character and string literals to the target
2983 character set, before returning them as the semantic value of the
2984 token.
2985 * c-lang.c: #include "charset.h".
2986 (c_emit_char): Use charset-specific methods to recognize
2987 characters with backslash escape forms, to decide which characters
2988 to print literally and which to print using numeric escape
2989 sequences, and to convert target characters to host characters
2990 before printing.
2991 * utils.c: #include "charset.h".
2992 (no_control_char_error): New function.
2993 (parse_escape): Use charset-specific methods to recognize
2994 backslash escapes, parse `control character' notation, and convert
2995 characters from the host character set to the target character set.
2996 * configure.in: Set the default host character set.
2997 Check where to find iconv, and what its argument types might be.
2998 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2999 * Makefile.in (SFILES): List charset.c.
3000 (COMMON_OBS): List charset.o.
3001 (charset.o): New rule.
3002 (charset_h): New header dependency variable.
3003 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3004 (LIBICONV): New variable, set by configure.
3005 (CLIBS): Include $(LIBICONV) here.
3006 * aclocal.m4, config.in, configure: Regenerated.
3007
525d6a61
JB
30082002-09-19 Joel Brobecker <brobecker@gnat.com>
3009
3010 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3011 bison 1.35 warning.
3012
3ed93867
RE
30132002-09-19 Richard Earnshaw <rearnsha@arm.com>
3014
3015 * gdb_mbuild.sh: New file.
3016
437666f8
AC
30172002-09-19 Andrew Cagney <ac131313@redhat.com>
3018
3019 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3020
389e51db
AC
30212002-09-18 Andrew Cagney <ac131313@redhat.com>
3022
3023 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3024 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3025 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3026 valops.c, value.h: Revert previous change.
3027
3b4efeaa
MS
30282002-09-18 Michael Snyder <msnyder@redhat.com>
3029
3030 Preliminary support for Objective-C:
3031 * defs.h (language_objc): New enum value.
3032 (puts_filtered_tabular): Declaration only, exported from utils.c.
3033 (skip_quoted): Delete, declared in completer.h.
3034 * c-exp.y: Include completer.h.
3035 * p-exp.y: Ditto.
3036 * jv-exp.y: Ditto.
3037 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3038 New operator enum values.
3039 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3040 * language.c (binop_result_type): Handle language_objc case.
3041 (integral_type, character_type, string_type, boolean_type,
3042 structured_type, binop_type_check): Ditto.
3043 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3044 (struct objc_specific): Add to general_symbol_info.
3045 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3046 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3047 * parser-defs.h (struct objc_class_str): New struct type.
3048 (start_msglist, end_msglist, add_msglist): Declaration only,
3049 exported from objc-lang.c.
3050 * value.h (value_of_local, value_nsstring,
3051 call_function_by_hand_expecting_type): Exported from valops.c.
3052 * valops.c (find_function_addr): Export.
3053 (call_function_by_hand_expecting_type): New function.
3054 (value_of_local): New function.
3055 * symfile.c (init_filename_language_table): Add ".m" extension
3056 for Objective-C.
3057 * utils.c (puts_filtered_tabular): New function.
3058 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3059 (set/show demangle): Extend help-string to refer to ObjC.
3060 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3061 * stabsread.c (symbol_reference_defined): Objective-C symbols
3062 may contain colons: make allowances when scanning stabs strings
3063 for colons.
3064 (objc_find_colon): New function.
3065 * printcmd.c (address_info): If language == objc then print
3066 "self" instead of "this".
3067 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3068 OP_NSSTRING, and OP_SELF.
3069 (prefixify_subexp): Ditto.
3070 * source.c (print_source_lines): Mention objc in comment.
3071 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3072 method names.
3073
b9caf505
AC
30742002-09-18 Andrew Cagney <ac131313@redhat.com>
3075
3076 * complaints.h: Update copyright.
3077 (struct complaints): Declare.
3078 (struct complaint): Make `message' constant.
3079 (internal_complaint): Declare.
3080 (complaint): Declare.
3081 (complaint_root): Delete declaration.
3082 (symfile_complaints): Delete declaration.
3083 (struct complaints): Add opaque declaration.
3084 (clear_complaints): Add a complaints parameter.
3085 * complaints.c: Update copyright.
3086 (enum complaint_series): Define.
3087 (complaint_root): Delete.
3088 (struct complaints): Define.
3089 (complaint_sentinel, symfile_complaint_book): New variables.
3090 (symfile_explanations, symfile_complaints): New variables.
3091 New variables.
3092 (get_complaints): New function.
3093 (vcomplaint): New function.
3094 (complaint): New function.
3095 (internal_complaint): New function.
3096 (complain): Call vcomplain with symfile_complaint.
3097 (clear_complaints): Rewrite.
3098 (_initialize_complaints): Use add_setshow_command.
3099 * Makefile.in (complaints.o): Update dependencies.
3100 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3101 to call to clear_complaints.
3102 (new_symfile_objfile, reread_symbols): Ditto.
3103 (oldsyms_complaint): Delete.
3104 (empty_symtab_complaint, unknown_option_complaint): Delete.
3105 (free_named_symtabs): Use complaint instead of complain.
3106
d2e6263c
MS
31072002-09-18 Michael Snyder <msnyder@redhat.com>
3108
5fb2031a
AC
3109 Contributed by Apple Computer, Inc. Merged with current sources
3110 by Adam Fedor <fedor@doc.com> [cagney].
3111
d2e6263c
MS
3112 * objc-lang.c: First clean-up round: comments, indentation.
3113 * objc-lang.h: Ditto.
3114 * objc-lang.y: Ditto.
3115
dec43320
AC
31162002-09-18 Andrew Cagney <ac131313@redhat.com>
3117
3118 * maint.c (maintenance_internal_error): Print the parameter as the
3119 error message.
3120 (maintenance_internal_warning): New function.
3121 (_initialize_maint_cmds): Add command `maint internal-warning'.
3122
3123 * defs.h (internal_warning, internal_vwarning): Declare.
3124 * utils.c (struct internal_problem): Define.
3125 (internal_vproblem): New function.
3126 (internal_warning): New function.
3127 (internal_vwarning): New function.
3128 (internal_warning_problem, internal_error_problem): New variables.
3129 (internal_verror): Just call internal_vproblem.
3130
b81654f1
MS
31312002-09-18 Michael Snyder <msnyder@redhat.com>
3132
3133 * objc-lang.c: New file, support for Objective-C.
3134 Preliminary check-in, not yet integrated into gdb.
3135 * objc-lang.h: New file.
3136 * objc-exp.y: New file.
3137
0542c381
AC
31382002-09-18 Andrew Cagney <ac131313@redhat.com>
3139
7bda5e4a
AC
3140 * infrun.c (signal_stop_update): Convert definition to ISO C.
3141 (signal_print_update): Ditto.
3142 (signal_pass_update): Ditto.
3143 * inflow.c (terminal_save_ours): Ditto.
3144
5247b418
AC
3145 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3146 comments.
3147
fc60962c
AC
3148 * config/djgpp/fnchange.lst: Handle name clashes between
3149 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3150 bfd/coff-tic80.c.
3151
0542c381
AC
3152 * i386-linux-tdep.h: Fix tipo.
3153
5b924b9b
AF
31542002-09-18 Adam Fedor <fedor@gnu.org>
3155
3156 * MAINTAINERS: Add myself to the Write After Approval list.
3157
5afc051b
JB
31582002-09-18 Jim Blandy <jimb@redhat.com>
3159
3160 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3161 texthigh and textlow to reader-specific structs caused
3162 objfile_relocate to miss them. This is fixable, but the work that
3163 the change was supposed to prepare GDB for never got done anyway.
3164
eb944380
DC
31652002-09-18 David Carlton <carlton@math.stanford.edu>
3166
3167 * MAINTAINERS: Alphabetize Write After Approval list.
3168
948e66d9
DJ
31692002-09-18 Daniel Jacobowitz <drow@mvista.com>
3170
3171 Fix PR gdb/709
3172 * values.c (value_static_field): Call read_var_value.
3173
dc604539
AC
31742002-09-18 Andrew Cagney <ac131313@redhat.com>
3175
3176 * valops.c (hand_function_call): Align the initial stack pointer
3177 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3178 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3179 return value.
3180 * mips-tdep.c (mips_frame_align): New function.
3181 (mips_gdbarch_init): Set frame_align.
3182 * gdbarch.sh (FRAME_ALIGN): New method.
3183 * gdbarch.h, gdbarch.c: Re-generate.
3184
cb7e422f
ML
31852002-09-18 Michal Ludvig <mludvig@suse.cz>
3186
3187 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3188 registers.
3189
a094c6fb
AC
31902002-09-17 Andrew Cagney <ac131313@redhat.com>
3191
3192 * NEWS: Mention that MIPS $fp behavior changed.
3193 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3194 reference to FP_REGNUM.
3195 (mipsnbsd_cannot_store_register): Ditto.
3196 * mips-linux-nat.c: Update copyright.
3197 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3198 (mips_linux_cannot_store_register): Ditto.
3199 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3200 * config/mips/tm-mips.h: Update copyright.
3201 (FP_REGNUM): Delete macro.
3202 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3203 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3204 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3205 (mips_r3041_reg_names, mips_r3051_reg_names)
3206 (mips_r3081_reg_names): Replace "fp" with "".
3207 Fix PR gdb/480.
3208
45cf40d1
TR
32092002-09-17 Theodore A. Roth <troth@verinet.com>
3210
3211 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3212 generic_read_register_dummy() (PR gdb/703).
3213 (avr_push_return_address): #if 0 out unused vars.
3214 (avr_gdbarch_init): Enable use of avr_push_return_address().
3215
c7e701b5
MS
32162002-09-17 Michael Snyder <msnyder@redhat.com>
3217
d76ba2a5 3218 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3219 RTE will take care of it.
3220
20bcf01c
AC
32212002-09-17 Andrew Cagney <ac131313@redhat.com>
3222
3223 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3224 invalid, return SP_REGNUM.
3225
009a9971 32262002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3227
3228 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3229 point registers without sign extension.
3230
135c175f
AC
32312002-09-17 Andrew Cagney <cagney@redhat.com>
3232
3233 * blockframe.c (deprecated_read_register_dummy): Rename
3234 generic_read_register_dummy.
3235 * frame.c (frame_unwind_signed_register): New function.
3236 (frame_unwind_unsigned_register): New function.
3237 * frame.h (frame_unwind_signed_register): Declare.
3238 (frame_unwind_unsigned_register): Declare.
3239 (deprecated_read_register_dummy): Rename
3240 generic_read_register_dummy.
3241
3242 * h8300-tdep.c (h8300_frame_chain): Update.
3243 (h8300_frame_saved_pc): Update.
3244 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3245 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3246 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3247 (s390_frame_chain): Update.
3248 * v850-tdep.c (v850_find_callers_reg): Update.
3249 (v850_frame_saved_pc): Update.
3250 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3251 (m32r_find_callers_reg): Update.
3252 (m32r_frame_saved_pc): Update.
3253 * sh-tdep.c (sh_find_callers_reg): Update.
3254 (sh64_get_saved_pr): Update.
3255 (sh_init_extra_frame_info): Update.
3256 (sh_init_extra_frame_info): Update.
3257 (sh64_init_extra_frame_info): Update.
3258 (sh64_init_extra_frame_info): Update.
3259 * mcore-tdep.c (mcore_find_callers_reg): Update.
3260 (mcore_frame_saved_pc): Update.
3261 (mcore_init_extra_frame_info): Update.
3262 * i386-tdep.c (i386_frame_saved_pc): Update.
3263 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3264 (ia64_init_extra_frame_info): Update.
3265 (ia64_init_extra_frame_info): Update.
3266 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3267 * cris-tdep.c (cris_init_extra_frame_info): Update.
3268 * avr-tdep.c (avr_frame_chain): Update.
3269 (avr_init_extra_frame_info): Update.
3270 (avr_frame_saved_pc): Update.
3271 * arm-tdep.c (arm_find_callers_reg): Update.
3272 (arm_init_extra_frame_info): Update.
3273 (arm_frame_saved_pc): Update.
3274
a741e514
TT
32752002-09-17 Tom Tromey <tromey@redhat.com>
3276
3277 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3278 is "'".
3279
d1a8e808
CV
32802002-09-17 Corinna Vinschen <vinschen@redhat.com>
3281
3282 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3283 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3284 NEXT_PROLOGUE_INSN.
3285 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3286 NEXT_PROLOGUE_INSN.
3287
d9025a18
JB
32882002-09-16 Joel Brobecker <brobecker@gnat.com>
3289
3290 * osfsolib.c: Remove file, replaced by solib-osf.c.
3291 * Makefile.in: Remove compilation rules for osfsolib.c.
3292
1b2ef1b6
DC
32932002-09-16 David Carlton <carlton@math.stanford.edu>
3294
3295 * cp-valprint.c (cp_print_class_method): Correct args to
3296 check_stub_method_group.
3297
928e48af
CV
32982002-09-16 Corinna Vinschen <vinschen@redhat.com>
3299
3300 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3301 `set architecture'. Unify naming convention of functions.
3302 (h8300_skip_prologue): Improve prologue analysis.
3303 (h8300_push_arguments): Rewritten to more closely match GCC's
3304 bizarre argument-passing behavior, along with the comment describing
3305 said behavior.
3306 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3307 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3308 sim, remote-e7000.c, remote-hms.c and remote.c
3309
5e3397bb
MK
33102002-09-15 Mark Kettenis <kettenis@gnu.org>
3311
3312 * i386-tdep.c (gdb_print_insn_i386): Removed.
3313 (i386_print_insn): New function.
3314 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3315 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3316 tm_print_insn_info.
3317
f710f4fc
MK
33182002-09-14 Mark Kettenis <kettenis@gnu.org>
3319
3320 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3321 zero.
3322
db54fef4
CV
33232002-09-14 Corinna Vinschen <vinschen@redhat.com>
3324
3325 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3326 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3327 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3328
2becadee
CF
33292002-09-13 Christopher Faylor <cgf@redhat.com>
3330
3331 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3332
de17c821
DJ
33332002-09-13 Daniel Jacobowitz <drow@mvista.com>
3334
3335 * gdbtypes.c (check_stub_method): Make static.
3336 (check_stub_method_group): New function.
3337 * gdbtypes.h: Update prototypes.
3338 * cp-support.c: New file.
3339 * cp-support.h: New file.
3340
3341 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3342 (update_method_name_from_physname): New function.
3343 (read_member_functions): Correct method names for operators
3344 and v3 constructors/destructors. Separate v2 constructors and
3345 destructors.
3346 * Makefile.in (stabsread.o): Update dependencies.
3347 (SFILES): Add cp-support.c.
3348 (COMMON_OBS): Add cp-support.o.
3349 (cp_support_h, cp-support.o): Add.
3350
3351 * cp-valprint.c (cp_print_class_method): Call
3352 check_stub_method_group instead of check_stub_method. Remove
3353 extraneous QUITs.
3354 * p-valprint.c (pascal_object_print_class_method): Likewise.
3355 * valops.c (search_struct_method): Likewise.
3356 (find_method_list, value_struct_elt_for_reference): Likewise.
3357
e76cff22
AC
33582002-09-13 Andrew Cagney <cagney@redhat.com>
3359
3360 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3361 * gdbarch.h, gdbarch.c: Regenerate.
3362
905abb3f
AC
33632002-09-13 Andrew Cagney <ac131313@redhat.com>
3364
3365 * frame.c (find_saved_register): Delete function.
3366 * frame.h (find_saved_register): Delete declaration.
3367 Fix PR gdb/631.
3368
64159455
AC
3369Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3370
3371 * mips-tdep.c (read_next_frame_reg): Re-hack using
3372 frame_register_unwind.
3373
795e1e11
AC
3374Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3375
3376 * mips-tdep.c (mips_get_saved_register): Re-hack using
3377 frame_register_unwind.
3378
5720643c
JB
33792002-09-12 Joel Brobecker <brobecker@gnat.com>
3380
3381 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3382 vector. Will be useful for Interix.
3383 * gdbarch.h, gdbarch.c: Regenerate.
3384
3385 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3386 name of the malloc function by NAME_OF_MALLOC.
3387
3bada2a2
JB
33882002-09-12 Joel Brobecker <brobecker@gnat.com>
3389
3390 * value.h (find_function_in_inferior): Add const keyword to
3391 one of the parameters. Allows us to invoke this function with
3392 a const char *.
3393 * valops.c (find_function_in_inferior): Likewise.
3394
3db26b01
JB
33952002-09-12 Joel Brobecker <brobecker@gnat.com>
3396
3397 * exec.c (xfer_memory): Fix compilation warning with old versions
3398 of GCC.
3399 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3400
17c5ed2c
DC
34012002-09-12 David Carlton <carlton@math.stanford.edu>
3402
3403 * symtab.h: Run through gdb_indent.h.
3404 Add 2002 to Copyright year list.
3405
ecd1107e
AM
34062002-09-12 Alan Modra <amodra@bigpond.net.au>
3407
3408 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3409 mach constants.
3410 * MAINTAINERS: Add myself to write after approval list.
3411
e64f66d1
JB
34122002-09-11 J. Brobecker <brobecker@gnat.com>
3413
3414 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3415
f9395794
JB
34162002-09-11 J. Brobecker <brobecker@gnat.com>
3417
3418 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3419 Interix.
3420
1a303dec
MS
34212002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3422
3423 * procfs.c (do_detach): Clear current signal, not just fault.
3424 Corrects problem with breakpoint trap signal leaking to detached
3425 process on Tru64.
3426
c0219d42
MS
34272002-09-10 Michael Snyder <msnyder@redhat.com>
3428
3429 * buildsym.c (finish_block): Protect against null pointer.
3430
9d84ac84
AC
34312002-09-10 Andrew Cagney <cagney@redhat.com>
3432
3433 * infcmd.c (default_print_registers_info): Send all output to
3434 ``file'' instead of ``gdb_stdout''.
3435
77d8f2b4
MS
34362002-09-10 Michael Snyder <msnyder@redhat.com>
3437
3438 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3439 LONGEST, and use signed register read (addresses are sign-
3440 extended for mips).
3441
99656a61
SC
34422002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3443
3444 * event-loop.c (gdb_do_one_event): Make public.
3445 * event-loop.h (gdb_do_one_event): Declare.
3446
da12f4d8
JL
34472002-09-10 Jeff Law <law@redhat.com>
3448
3449 * infttrace.c (child_resume): Simplify and rework to avoid
3450 TT_PROC_CONTINUE.
3451
d0aee0c4
FF
34522002-09-09 Fred Fish <fnf@intrinsity.com>
3453
3454 * printcmd.c (print_scalar_formatted): "len" is the number of
3455 target bytes, NOT the number of target bits.
3456
7cb3ec5e
EZ
34572002-09-09 Elena Zannoni <ezannoni@redhat.com>
3458
3459 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3460 * top.c (init_main): Set rl_terminal_name.
3461
4dc81987
AS
34622002-09-08 Aidan Skinner <aidan@velvet.net>
3463
3464 * ada-lang.c (ada_array_bound, ada_type_match,
3465 _initialize_ada_language): Fix K&R definitions.
3466 * ada-tasks.c (get_current_task): Fix K&R definitions.
3467 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3468
842330b4
CF
34692002-09-07 Christopher Faylor <cgf@redhat.com>
3470
3471 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3472 Add XP.
3473
43156d82
MK
34742002-09-06 Mark Kettenis <kettenis@gnu.org>
3475
66da5fd8
MK
3476 * i386-tdep.c (i386_register_virtual_type,
3477 i386_register_convertible, i386_register_convert_to_virtual,
3478 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3479 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3480 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3481 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3482 Don't set push_arguments twice.
3483
4b218c18
MK
3484 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3485 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3486 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3487 sigtramp_end to NULL.
3488 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3489 defines.
3490 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3491
4cc314d5
MK
3492 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3493 whitespace.
3494
43156d82
MK
3495 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3496 * gdbarch.h, gdbarch.c: Re-generate.
3497 * blockframe.c (find_pc_sect_partial_function): Convert to use
3498 SIGTRAMP_START_P predicate.
3499
6672060b
MS
35002002-09-05 Michael Snyder <msnyder@redhat.com>
3501
a90c3637
MS
3502 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3503 generic_dummy_frame method and old method. Also distinguish
3504 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3505 (arm_extract_return_value): Use new regcache method.
a90c3637 3506
6672060b
MS
3507 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3508 adjustment that doesn't conform to the ABI.
3509 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3510 saved regcache, not from current regcache.
3511
299ffc64
AC
35122002-09-05 Andrew Cagney <ac131313@redhat.com>
3513
3514 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3515 * README: Update.
3516
a3a2ee65
JT
35172002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3518
3519 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3520 if arm_apcs_32 is false.
3521
2bc7eea9
AC
35222002-09-04 Andrew Cagney <ac131313@redhat.com>
3523
3524 GDB 5.3 branch created.
3525
8a55a7c5
TR
35262002-09-03 Theodore A. Roth <troth@verinet.com>
3527
3528 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3529 generic_unwind_get_saved_register.
3530
e26fb1d7
DC
35312002-09-03 David Carlton <carlton@math.stanford.edu>
3532
3533 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3534 argument (PR gdb/653). Update call to smash_to_method_type.
3535 (read_structure_scope): Update call to dwarf2_add_member_fn.
3536
30d52491
ML
35372002-09-03 Michal Ludvig <mludvig@suse.cz>
3538
3539 * x86-64-linux-tdep.c: Include gdb_string.h
3540 * x86-64-linux-nat.c: Ditto.
3541
06891d83
JT
35422002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3543
3544 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3545 when YYDEBUG is set to 1.
3546 * c-exp.y: Likewise.
3547 * f-exp.y: Likewise.
3548 * jv-exp.y: Likewise.
3549 * m2-exp.y: Likewise.
3550 * p-exp.y: Likewise.
3551
7d400e77
JT
35522002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3553
3554 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3555 dependency list.
3556 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3557 solib_svr4_fetch_link_map_offsets to
3558 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3559 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3560 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3561 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3562 solib-svr4.o, and solib-legacy.o.
3563 * config/i386/tm-nbsd.h: Include solib.h.
3564
704a27c4
JT
35652002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3566
3567 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3568 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3569 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3570 comment noting that this needs its own target configuration.
3571 * config/i386/nbsd.mt: New file.
3572 * config/i386/nbsdaout.mt: Remove.
3573 * config/i386/nbsdelf.mt: Ditto.
3574 * config/i386/tm-nbsdaout.h: Ditto.
3575
d66198e1
JT
35762002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3577
3578 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3579 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3580 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3581 tdep->sigtramp_end.
3582 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3583 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3584 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3585
3cac699e
JT
35862002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3587
3588 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3589 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3590 * i386-tdep.h (i386bsd_init_abi): New prototype.
3591 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3592 function declaration.
3593 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3594 for NetBSD-a.out or NetBSD-ELF.
3595 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3596 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3597 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3598 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3599 and nbsd-tdep.h.
3600 (i386nbsd_pc_in_sigtramp): New function.
3601 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3602 i386nbsd_pc_in_sigtramp.
3603 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3604 and i386nbsdelf_init_abi OS ABI handlers.
3605 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3606 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3607
7010ca0a
MK
36082002-09-02 Mark Kettenis <kettenis@gnu.org>
3609
3610 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3611 registers if the target really has them.
3612
6dd93b72
JT
36132002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3614
3615 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3616 than nbsd-tdep.h.
3617
2ca8ae21
JT
36182002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3619
3620 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3621 list.
3622 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3623 (alphanbsd_skip_sigtramp_frame): New functions.
3624 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3625 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3626 to alphanbsd_sigcontext_addr.
3627
3d9b49b0
JT
36282002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3629
3630 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3631 list.
3632 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3633 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3634 nbsd_pc_in_sigtramp.
3635 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3636 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3637 * nbsd-tdep.c: Include gdb_string.h.
3638 (nbsd_pc_in_sigtramp): New function.
3639 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3640 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3641 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3642 ppcnbsd_pc_in_sigtramp.
3643 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3644 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3645 shnbsd_pc_in_sigtramp.
3646 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3647 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3648 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3649
c860120c
PM
36502002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3651
3652 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3653 watchpoints to NULL.
3654 (insert_breakpoints): set val field of watchpoints if NULL.
3655
3656
c7612d53
JB
36572002-08-29 Jim Blandy <jimb@redhat.com>
3658
3659 * symtab.c (lookup_symbol_aux): In the cases where we find a
3660 minimal symbol of an appropriate name and use its address to
3661 select a symtab to read and search, use `name' (as passed to us)
3662 as the demangled name when searching the symtab's global and
3663 static blocks, not the minsym's name.
3664
66609862
KS
36652002-08-29 Keith Seitz <keiths@redhat.com>
3666
3667 * stack.c (print_frame_info_base): Always set current_source_symtab
3668 and current_source_line.
3669
151fefe2
JB
36702002-08-29 Donn Terry <donnte@microsoft.com>
3671
3672 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3673
bfb3754e
KS
36742002-08-28 Keith Seitz <keiths@redhat.com>
3675
3676 * stack.c (select_frame): Add FIXME concerning selected-frame
3677 events.
3678 (select_frame_command): Send selected-frame-level-changed
3679 event notification, but only if the level actually changed.
3680 (up_silently_base): Add selected-frame-level-changed event
3681 notification.
3682 (down_silently_base): Likewise.
3683
e822a2a0
AC
36842002-08-28 Andrew Cagney <ac131313@redhat.com>
3685
3686 * Makefile.in: Update dependencies for all gdb/*.c files.
3687
309367d4
TT
36882002-08-27 Tom Tromey <tromey@redhat.com>
3689
3690 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3691 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3692 Update dependencies.
3693 * i387-tdep.c: Include gdb_string.h.
3694 * osabi.c: Likewise.
3695 * i386-linux-nat.c: Likewise.
3696 * lin-lwp.c: Likewise.
3697 * ax-gdb.c: Likewise.
3698 * signals/signals.c: Likewise.
3699 * jv-valprint.c: Likewise.
3700 * p-lang.c: Likewise.
3701 * c-valprint.c: Likewise.
3702 * cp-abi.c: Likewise.
3703
e1507482
EZ
37042002-08-27 Elena Zannoni <ezannoni@redhat.com>
3705
3706 * cli/cli-script.h (copy_command_lines): Export.
3707 * breakpoint.c: Include cli/cli-script.h.
3708 * Makefile.in (breakpoint.o): Update dependencies.
3709
c6510018
MS
37102002-08-26 Michael Snyder <msnyder@redhat.com>
3711
3712 * breakpoint.c (insert_breakpoints): Protect all references
3713 to 'process_warning'. Shorten long lines.
3714
c2b8ed2c
MS
37152002-08-26 Joel Brobecker <brobecker@gnat.com>
3716
3717 * cli/cli-script.c (copy_command_lines): New function.
3718 * defs.h (copy_command_lines): Export.
3719 * testsuite/gdb.base/commands.exp: New tests for commands
3720 attached to a temporary breakpoint, and for commands that
3721 delete the breakpoint they are attached to.
3722
37232002-08-26 Michael Snyder <msnyder@redhat.com>
3724
3725 * breakpoint.c (bpstat_stop_status): Instead of copying the
3726 pointer to the breakpoint commands struct, make a new copy
3727 of the struct and point to that.
3728 (bpstat_clear): Free the commands struct.
3729 (bpstat_clear_actions): Free the commands struct.
3730 (bpstat_do_actions): Free the command actions. Also execute
3731 the local cleanups, instead of deleting them.
3732 (delete_breakpoint): Leave the commands field of the bpstat
3733 chain alone -- it will be freed later.
3734
64b84175
KB
37352002-08-26 Kevin Buettner <kevinb@redhat.com>
3736
3737 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3738 deleted in 2002-08-20 commit. This function is still used by
3739 ppc-linux-nat.c.
3740
55970da6
KS
37412002-08-26 Keith Seitz <keiths@redhat.com>
3742
3743 * gdb-events.sh: Add selected-frame-level-changed event.
3744 * gdb-events.c: Regenerated.
3745 * gdb-events.h: Regenerated.
3746
a790ad35
SC
37472002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3748
3749 Fix PR gdb/393:
3750 * inflow.c (terminal_save_ours): New function to save terminal
3751 settings.
3752 * inferior.h (terminal_save_ours): Declare.
3753 * target.c (debug_to_terminal_save_ours): New function.
3754 (cleanup_target): Defaults to_terminal_save_ours.
3755 (update_current_target): Inherit to_terminal_save_ours.
3756 (setup_target_debug): Set to_terminal_save_ours.
3757 * target.h (target_terminal_save_ours): New to save terminal settings.
3758 (target_ops): New member to_terminal_save_ours.
3759 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3760 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3761 * inftarg.c (init_child_ops): Likewise.
3762 * m3-nat.c (init_m3_ops): Likewise.
3763 * procfs.c (init_procfs_ops): Likewise.
3764 * wince.c (init_child_ops): Likewise.
3765 * win32-nat.c (init_child_ops): Likewise.
3766 * sol-thread.c (init_sol_thread_ops): Likewise.
3767
c00dcbe9
MK
37682002-08-26 Mark Kettenis <kettenis@gnu.org>
3769
3d7f4f49
MK
3770 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3771 use regcache_* functions.
3772 (i386_gdbarch_init): Set store_return_value instead of
3773 deprecated_store_return_value.
3774
c00dcbe9
MK
3775 * regcache.c (regcache_raw_write_signed,
3776 regcache_raw_write_unsigned): New functions.
3777 * regcache.h (regcache_raw_write_signed,
3778 regcache_raw_write_unsigned): New prototypes.
3779
0e0d15ca
AC
37802002-08-25 Andrew Cagney <ac131313@redhat.com>
3781
3782 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3783 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3784 source file dependencies. Cleanup corresponding generator rules.
3785
d3b22ed5
AC
37862002-08-25 Andrew Cagney <ac131313@redhat.com>
3787
3788 * regcache.h (register_offset_hack): Declare.
3789 (regcache_cooked_read_using_offset_hack): Declare.
3790 (regcache_cooked_write_using_offset_hack): Declare.
3791
3792 * regcache.c (register_offset_hack): New function.
3793 (regcache_cooked_read_using_offset_hack): New function.
3794 (regcache_cooked_write_using_offset_hack): New function.
3795 (regcache_dump): Check that the registers, according to their
3796 offset, are packed hard against each other.
3797 (cooked_xfer_using_offset_hack): New function.
3798
bb425013
AC
37992002-08-25 Andrew Cagney <ac131313@redhat.com>
3800
3801 * regcache.c (struct regcache_descr): Add field register_type.
3802 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3803 in as a parameter
3804 (init_regcache_descr): Initialize register_type. Pass the descr
3805 to init_legacy_regcache_descr. Use register_type instead of
3806 REGISTER_VIRTUAL_TYPE.
3807 (register_type): New function.
3808 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3809 * regcache.h (register_type): Declare.
3810
d0403e00
AC
38112002-08-25 Andrew Cagney <ac131313@redhat.com>
3812
3813 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3814 instead of deprecated_store_return_value. Fix fallout from
3815 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3816
0ed04cce
AC
38172002-08-25 Andrew Cagney <ac131313@redhat.com>
3818
3819 * regcache.c (max_register_size): New function.
3820 (init_legacy_regcache_descr): Ensure that max_register_size is
3821 large enough for REGISTER_VIRTUAL_SIZE.
3822 * regcache.h (max_register_size): Declare.
3823
46d79c04
AC
38242002-08-24 Andrew Cagney <ac131313@redhat.com>
3825
3826 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3827 store_return_value.
3828 (e500_extract_return_value): Change type of valbuf pointer to
3829 void.
3830
853c7bd0
MK
38312002-08-24 Mark Kettenis <kettenis@gnu.org>
3832
cd87e769
MK
3833 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3834 workaround.
3835
853c7bd0
MK
3836 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3837 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3838 long long) to prevent compiler warning on 64-bit systems.
3839
ebba8386
AC
38402002-08-23 Andrew Cagney <cagney@redhat.com>
3841
3842 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3843 (DEPRECATED_STORE_RETURN_VALUE): New method.
3844 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3845 * gdbarch.h, gdbarch.c: Re-generate.
3846
3847 * values.c (set_return_value): Pass current_regcache to
3848 STORE_RETURN_VALUE.
3849 * arch-utils.h (legacy_store_return_value): Declare.
3850 * arch-utils.c (legacy_store_return_value): New function.
3851 (legacy_extract_return_value): Update parameters.
3852
3853 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3854 STORE_RETURN_VALUE.
3855 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3856 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3857 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3858 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3859 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3860 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3861 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3862 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3863 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3864 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3865
3866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3867 * i386-tdep.c (i386_extract_return_value): Update.
3868 * arch-utils.c (legacy_extract_return_value): Update.
3869 * frv-tdep.c (frv_gdbarch_init): Update.
3870 * cris-tdep.c (cris_gdbarch_init): Update.
3871 * d10v-tdep.c (d10v_gdbarch_init): Update.
3872 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3873 * m68k-tdep.c (m68k_gdbarch_init): Update.
3874 * mcore-tdep.c (mcore_gdbarch_init): Update.
3875 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3876 * s390-tdep.c (s390_gdbarch_init): Update.
3877 * sparc-tdep.c (sparc_gdbarch_init): Update.
3878 * sh-tdep.c (sh_gdbarch_init): Update.
3879 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3880 * v850-tdep.c (v850_gdbarch_init): Update.
3881 * avr-tdep.c (avr_gdbarch_init): Update.
3882 * ia64-tdep.c (ia64_gdbarch_init): Update.
3883 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3884 * vax-tdep.c (vax_gdbarch_init): Update.
3885 * alpha-tdep.c (alpha_gdbarch_init): Update.
3886 * arm-tdep.c (arm_gdbarch_init): Update.
3887 * mips-tdep.c (mips_gdbarch_init): Update.
3888 * i386-tdep.c (i386_gdbarch_init): Update.
3889
5bd8c6d0
AC
38902002-08-23 Andrew Cagney <ac131313@redhat.com>
3891
3892 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3893 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3894
e73e1724
MK
38952002-08-24 Mark Kettenis <kettenis@gnu.org>
3896
3897 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3898 problems.
3899
3e6564e1
JB
39002002-08-23 Joel Brobecker <brobecker@gnat.com>
3901
3902 * infrun.c (handle_inferior_event): Move a comment outside of a
3903 function call, in order to avoid indent reformatting this part
3904 of the code in an unreadable way.
3905
81d0cc19
GS
39062002-08-23 Grace Sainsbury <graces@redhat.com>
3907
3908 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3909 when breakpoints fail. Move general breakpoint error messages to
3910 insert_breakpoints.
3911 * breakpoint.c (insert_breakpoints): Change warnings when
3912 breakpoints are nto inserted to specify the type. Remove call to
3913 memory_error when hardware breakpoints can't be inserted. Remove
3914 multiple calls to warning so all messages are sent to the user at
3915 once.
3916 (delete_breakpoints): Make insert error messsages more explicit.
3917
17574093
DJ
39182002-08-23 Daniel Jacobowitz <drow@mvista.com>
3919
3920 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3921 gdbserver/ChangeLog.
3922
8acc2935
MK
39232002-08-23 Mark Kettenis <kettenis@gnu.org>
3924
dfe01d39
MK
3925 * i386-tdep.c: Include "objfiles.h".
3926 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3927 skip_trampoline_code.
3928 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3929 (CPLUS_MARKER): Define to '.'.
3930
8acc2935
MK
3931 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3932 member.
3933 (linux_corefile_thread_callback): Increase args->num_notes.
3934 (linux_make_note_section): Initialize thread_args.num_notes, and
3935 use it to determine whether notes for any threads were created.
3936
151fefe2 39372002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3938
3939 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3940 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3941 and PCUNKILL.
3942 (write_with_trace): Conditionalize out the switch branch handling
3943 PCSHOLD if the corresponding macro is not defined. Likewise for
3944 PRSABORT and PRSTOP.
3945 This change will be needed by the Interix port.
3946
e1507482
EZ
39472002-08-22 Elena Zannoni <ezannoni@redhat.com>
3948
3949 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3950 write_register wherever possible instead of manipulating the
3951 register bytes directly.
3952 Assign VALUE_CONTENTS to a variable and use that.
3953 The GPR numbers are now dependent on the architecture.
3954
96ff0de4
EZ
39552002-08-22 Elena Zannoni <ezannoni@redhat.com>
3956
3957 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3958 ev_offset fields.
3959 (skip_prologue): Add support for BookE/e500 instructions.
3960 (e500_extract_return_value): New function.
3961 (frame_get_saved_regs): Add support for saving ev registers and
3962 pseudo gpr's.
3963 (e500_store_return_value): New function.
3964 (rs6000_gdbarch_init): Move up default intializations of
3965 deprecated_extract_return_value and store_return_value. Overwrite
3966 init of store_return_value with e500 specific version.
3967 Set extract_return_value for e500.
3968
fbefca5b
EZ
39692002-08-22 Elena Zannoni <ezannoni@redhat.com>
3970
3971 * blockframe.c (generic_call_dummy_register_unwind): Use
3972 regcache_cooked_read to catch cases in which the variable is
3973 stored in a pseudo register.
3974
4d210288
AC
39752002-08-22 Andrew Cagney <cagney@redhat.com>
3976
3977 * NEWS: Mention that the i960 has been made obsolete.
3978 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3979 i960-tdep.c
3980 (remote-nrom.o): Obsolete target.
3981 (remote-nindy.o, i960-tdep.o): Ditto.
3982 * remote-nrom.c: Make file obsolete.
3983 * remote-nindy.c, remote-vx960.c: Ditto.
3984 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3985 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3986 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3987 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3988 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3989 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3990 i960-*-vxworks* obsolete.
3991 * MAINTAINERS: Note that the i960 is obsolete.
3992
6c0c456d
CV
39932002-08-21 Corinna Vinschen <vinschen@redhat.com
3994
3995 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3996 detach to allow reinitialization.
3997
9f9d12b3
AC
39982002-08-22 Andrew Cagney <ac131313@redhat.com>
3999
4000 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4001 attempt).
4002
ebeb39fe
JB
40032002-08-22 Jim Blandy <jimb@redhat.com>
4004
4005 * coffread.c (coff_symfile_read): Don't try to read the line
4006 number table from disk if the image file doesn't have a symbol
4007 table; we'll never actually look at the info anyway, and Windows
4008 ships DLL's with bogus file offsets for the line number data.
4009
5bf1c677
EZ
40102002-08-21 Elena Zannoni <ezannoni@redhat.com>
4011
4012 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4013 an e500 executable.
4014
71b8ef93
MS
40152002-08-21 Michael Snyder <msnyder@redhat.com>
4016
4017 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4018 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4019 (DEFAULT_MIPS_TYPE): Delete unused macro.
4020 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4021 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4022
d174216d
JB
40232002-08-21 Jim Blandy <jimb@redhat.com>
4024
4025 * valops.c (value_cast): Simplify and correct logic for doing a
4026 static cast from a pointer to a base class to a pointer to a
4027 derived class.
4028
0ab7a791
AC
40292002-08-21 Andrew Cagney <ac131313@redhat.com>
4030
4031 * infcmd.c (default_print_registers_info): Replace
4032 do_registers_info.
4033 (registers_info): Use gdbarch_print_registers_info instead of
4034 DO_REGISTERS_INFO.
4035 * inferior.h (default_print_registers_info): Replace
4036 do_registers_info.
4037 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4038 (DO_REGISTERS_INFO): Change to a predicate function.
4039 * gdbarch.h, gdbarch.c: Regenerate.
4040
e23792cc
KS
40412002-08-21 Keith Seitz <keiths@redhat.com>
4042
4043 * gdb-events.sh: Add target-changed event.
4044 * gdb-events.c: Regenerated.
4045 * gdb-events.c: Regenerated.
4046 * valops.c (value_assign): Add target-changed event notification
4047 to inlval_register, lval_memory, and lval_reg_frame_relative.
4048
9fb14e79
JB
40492002-08-21 Joel Brobecker <brobecker@gnat.com>
4050
4051 * NEWS: Add an entry regarding the improvement of the next/step
4052 operation on Alpha Tru64 multi-processor machines.
4053
6d39a69f
AC
40542002-08-21 Andrew Cagney <ac131313@redhat.com>
4055
72acd513
AC
4056 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4057 directores.
342af04b 4058 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4059 * Makefile.in (install-gdbtk): Move to install section.
4060 (rdi-share/libangsd.a): Move to end of file.
4061
fa5f27c7
AC
40622002-08-19 Andrew Cagney <ac131313@redhat.com>
4063
4064 * frame.c (frame_register_unwind): When a register, set addrp to
4065 the register's byte.
4066
5a89d8aa
MS
40672002-08-20 Michael Snyder <msnyder@redhat.com>
4068
4069 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4070 used locally, so move them from the target machine header to here.
4071 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4072 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4073 Make static.
4074 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4075
822e978b
AC
40762002-08-20 Andrew Cagney <cagney@redhat.com>
4077
4078 * NEWS: Mention that the Apollo line was made obsolete.
4079 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4080 m68*-hp-hpux* obsolete.
4081 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4082 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4083 * buildsym.c (make_blockvector): Make static.
4084 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4085 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4086 (ALLDEPFILES): Remove dstread.c.
4087 (dstread.o): Obsolete make rule.
4088 * dstread.c: Makefile obsolete.
4089 * dst.h: Ditto.
4090 * config/m68k/hp300hpux.mt: Ditto.
4091 * config/m68k/hp300hpux.mh: Ditto.
4092 * config/m68k/hp300bsd.mt: Ditto.
4093 * config/m68k/hp300bsd.mh: Ditto.
4094 * config/m68k/apollo68b.mt: Ditto.
4095 * config/m68k/apollo68v.mh: Ditto.
4096 * config/m68k/apollo68b.mh: Ditto.
4097
e41b17f0
MS
40982002-08-20 Michael Snyder <msnyder@redhat.com>
4099
4100 * mips-tdep.c (mips_in_return_stub): Make static.
4101 (mips_gdbarch_init): Set in_solib_return_trampoline.
4102 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4103
d50355b6
MS
41042002-08-20 Michael Snyder <msnyder@redhat.com>
4105
4106 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4107 * gdbarch.c, gdbarch.h: Regenerate.
4108 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4109 Add.
4110 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4111
757a7cc6
MS
41122002-08-20 Michael Snyder <msnyder@redhat.com>
4113
4114 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4115 (mips_gdbarch_init): Set skip_trampoline_code,
4116 in_solib_call_trampoline.
4117 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4118 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4119
c8001721
EZ
41202002-08-20 Elena Zannoni <ezannoni@redhat.com>
4121
4122 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4123
4124 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4125 vector type for ev registers.
4126 (e500_pseudo_register_read): New function.
4127 (e500_pseudo_register_write): New function.
4128 (e500_dwarf2_reg_to_regnum): New function.
4129 (PPC_UISA_NOFP_SPRS): New macro.
4130 (PPC_EV_REGS): New macro.
4131 (PPC_GPRS_PSEUDO_REGS): New macro.
4132 (registers_e500): New register set for e500.
4133 (variants): Add e500 variant.
4134 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4135 before setting architectural dependent variations. Initialize ev
4136 registers numbers. Add case for e500 architecture. Set the
4137 number of pseudo registers.
4138
64366f1c
EZ
41392002-08-20 Elena Zannoni <ezannoni@redhat.com>
4140
4141 * rs6000-tdep.c: Clean up comments.
4142
7e78f0ca
AC
41432002-08-20 Andrew Cagney <cagney@redhat.com>
4144
4145 * h8300-tdep.c: Re-indent file.
4146
697f7479
JB
41472002-08-20 Jim Blandy <jimb@redhat.com>
4148
4149 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4150 default for this.
697f7479 4151
e86ae29f
KS
41522002-08-20 Keith Seitz <keiths@redhat.com>
4153
4154 * breakpoints.c (watch_command_1): Use internal breakpoint
4155 when setting a watchpoint_scope breakpoint.
4156
216b504f
EZ
41572002-08-20 Elena Zannoni <ezannoni@redhat.com>
4158
4159 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4160 (build_builtin_type_vec64i): Ditto.
4161 (build_builtin_type_vec128): Ditto.
4162 (build_builtin_type_vec128i): Ditto.
4163
f7ab6ec6
MS
41642002-08-19 Michael Snyder <msnyder@redhat.com>
4165
4166 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4167 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4168 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4169 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4170 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4171 CALL_DUMMY_ADDRESS): Delete.
4172 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4173 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4174 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4175 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4176 push_return_address.
4177 (mips_register_raw_size, mips_eabi_use_struct_convention,
4178 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4179 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4180 mips_init_extra_frame_info, mips_eabi_push_arguments,
4181 mips_n32n64_push_arguments, mips_push_return_address,
4182 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4183 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4184
b5d1566e
MS
41852002-08-19 Michael Snyder <msnyder@redhat.com>
4186
4187 * mips-tdep.c (mips_frame_num_args): New function.
4188 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4189 frame_saved_pc, frame_args_address, frame_locals_address,
4190 frame_num_args, and frame_args_skip.
4191 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4192 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4193 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4194 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4195
2f1488ce
MS
41962002-08-20 Michael Snyder <msnyder@redhat.com>
4197
4198 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4199 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4200 * mips-tdep.c (mips_store_struct_return): New function.
4201 (mips_extract_struct_value_address): New function.
4202 (mips_gdbarch_init): Set store_struct_return and
4203 extract_struct_value_address.
4204
41ff2da1
DC
42052002-08-20 David Carlton <carlton@math.stanford.edu>
4206
4207 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4208 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4209 (read_file_scope): Check that line_header is nonzero before
4210 decoding macro information.
4211
e5451d58
MK
42122002-08-20 Mark Kettenis <kettenis@gnu.org>
4213
4214 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4215 flag the general-purpose registers as floating-point on targets
4216 that don't support the floating-point registers.
4217
4a6daafa
EZ
42182002-08-20 Elena Zannoni <ezannoni@redhat.com>
4219
4220 * rs6000-tdep.c (altivec_register_p): Delete.
4221 (rs6000_do_altivec_registers): Delete.
4222 (rs6000_altivec_registers_info): Delete.
4223 (rs6000_do_registers_info): Delete.
4224 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4225 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4226
ab4327e0
EZ
42272002-08-20 Elena Zannoni <ezannoni@redhat.com>
4228
4229 * infcmd.c (do_registers_info): Print vector registers in hex
4230 format only.
4231 (print_vector_info): Check that printing registers
4232 makes sense.
4233 (print_float_info): Ditto.
4234
cb1d2653
AC
42352002-08-20 Andrew Cagney <ac131313@redhat.com>
4236
4237 * mips-tdep.c (mips_gdbarch_init): Update.
4238 (mips_o32_extract_return_value): Rewrite.
4239 (mips_o32_store_return_value): Rewrite.
4240 (mips_o32_xfer_return_value): New function.
4241 (mips_xfer_register): Tweak debug print message. Allow for
4242 buf_offset when dumping the value transfered.
4243
dfc3d9b2
AC
42442002-08-20 Andrew Cagney <ac131313@redhat.com>
4245
4246 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4247 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4248 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4249 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4250 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4251
7807aa61
MS
42522002-08-14 Michael Snyder <msnyder@redhat.com>
4253
4254 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4255
489461e2
EZ
42562002-08-19 Elena Zannoni <ezannoni@redhat.com>
4257
4258 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4259 register.
4260 (P): New macro to define a register as a pseudo register.
4261 (R, R4, R8, R16, FR32, R64, R0): Updated.
4262 (struct variant): Add new fields for number of pseudo registers
4263 and number of total registers.
4264 (tot_num_registers): New macro replacing....
4265 (num_registers): ...deleted macro.
4266 (num_registers): New function.
4267 (num_pseudo_registers): New function.
4268 (variants): Update all variants to intialize new fields correctly.
4269 Postpone initialization of number of pseudo regs and real regs.
4270 (init_variants): New function.
4271 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4272 registers offsets.
4273
fcaffe4c
DC
42742002-08-19 David Carlton <carlton@math.stanford.edu>
4275
2c2738a0
DC
4276 * valops.c (search_struct_field): Change error message to treat
4277 return value of 0 from value_static_field as meaning that field is
4278 optimized out.
4279 (value_struct_elt_for_reference): Ditto.
4280 * values.c (value_static_field): Treat an unresolved location the
4281 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4282 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4283 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4284 * MAINTAINERS: Add self to Write After Approval list.
4285
88658117
AC
42862002-08-19 Andrew Cagney <ac131313@redhat.com>
4287
4288 * mips-tdep.c (mips_xfer_register): New function.
4289 (mips_n32n64_extract_return_value): Rewrite.
4290 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4291 instead of deprecated_extract_return_value.
4292
21283beb
EZ
42932002-08-19 Elena Zannoni <ezannoni@redhat.com>
4294
4295 * rs6000-tdep.c (TDEP): Delete macro.
4296 (branch_dest): Replace use of TDEP macro with its body.
4297 (rs6000_pop_frame): Ditto.
4298 (rs6000_push_arguments): Ditto.
4299 (rs6000_skip_trampoline_code): Ditto.
4300 (rs6000_frame_saved_pc): Ditto.
4301 (rs6000_frame_chain): Ditto.
4302 (rs6000_register_name): Ditto.
4303 (rs6000_register_byte): Ditto.
4304 (rs6000_register_raw_size): Ditto.
4305 (rs6000_register_virtual_type): Ditto.
4306 (rs6000_register_convertible): Ditto.
4307 (rs6000_convert_from_func_ptr_addr): Ditto.
4308
bf072999
DJ
43092002-08-19 Daniel Jacobowitz <drow@mvista.com>
4310
4311 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4312 conditionally.
4313 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4314 MIPS_LINUX_JB_ELEMENT_SIZE.
4315 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4316 for MAX_REGISTER_RAW_SIZE arrays.
4317 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4318 MIPS_LINUX_JB_ELEMENT_SIZE.
4319
9b949a49
PM
43202002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4321
4322 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4323
6d3e79c6
AS
43242002-08-19 Aidan Skinner <aidan@velvet.net>
4325
4326 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4327 ada-valprint.c ada-tasks.c.
4328 (YYFILES): Add ada-exp.y.
4329 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4330 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4331 (ada-exp.tab.o): New target.
4332
06c0b04e
AC
43332002-08-18 Andrew Cagney <ac131313@redhat.com>
4334
4335 * regcache.c (regcache_xfer_part): New function.
4336 (regcache_raw_read_part): New function.
4337 (regcache_raw_write_part): New function.
4338 (regcache_cooked_read_part): New function.
4339 (regcache_cooked_write_part): New function.
4340 * regcache.h (regcache_raw_read_part): Declare.
4341 (regcache_raw_write_part): Declare.
4342 (regcache_cooked_read_part): Declare.
4343 (regcache_cooked_write_part): Declare.
4344
92d1e331
DJ
43452002-08-18 Daniel Jacobowitz <drow@mvista.com>
4346
4347 * remote.c (remote_open_1): Add async_p.
4348 (remote_async_open_1): Delete.
4349 (open_remote_target): Delete.
4350 (remote_open, extended_remote_open): Update calls to remote_open_1.
4351 (remote_async_open, extended_remote_async_open): Call
4352 remote_open_1 instead of remote_async_open_1.
4353
247055de
MK
43542002-08-19 Mark Kettenis <kettenis@gnu.org>
4355
4356 * blockframe.c: Fix a few coding standard violations.
4357
641eda39
MK
43582002-08-19 Mark Kettenis <kettenis@gnu.org>
4359
0b717710
MK
4360 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4361 here from ...
4362 * config/i386/tm-i386sco5.h: ... here. File removed.
4363 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4364
26d28e12 4365 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4366 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4367 (TM_FILE): Set to tm-i386.h.
4368 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4369 * config/i386/tm-i386v.h: Remove file.
4370 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4371 instead of "i386/tm-i386v.h".
4372 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4373 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4374 "i386/tm-i386v.h".
4375 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4376 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4377 "i386/tm-i386.h".
4378
d4e0bab4
MK
43792002-08-18 Mark Kettenis <kettenis@gnu.org>
4380
4381 * config/i386/nm-i386v.h: Add protection against
4382 multiple-inclusion.
4383 (i386_register_u_addr): Remove prototype.
4384 (register_u_addr): New prototype.
4385 (REGISTER_U_ADDR): Redefine accordingly.
4386 * i386v-nat.c: Improve several comments.
4387 (i386_register_u_addr): Change signature and rename to
4388 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4389 ubase variable.
4390
46cac009
AC
43912002-08-18 Andrew Cagney <ac131313@redhat.com>
4392
4393 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4394 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4395 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4396 deprecated_extract_return_value.
4397 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4398 rename mips_o32o64_push_arguments.
4399 (mips_gdbarch_init): Update.
4400 (mips_extract_return_value): Delete.
4401 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4402 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4403 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4404 (mips_n32n64_extract_return_value): Clone
4405 mips_extract_return_value.
4406 (mips_store_return_value): Delete.
4407 (mips_o32_store_return_value): Clone mips_store_return_value.
4408 (mips_o64_store_return_value): Clone mips_store_return_value.
4409 (mips_eabi_store_return_value): Clone mips_store_return_value.
4410 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4411
d2e4a39e
AS
44122002-08-18 Aidan Skinner <aidan@velvet.net>
4413
0c30c098
AS
4414 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4415 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4416
44172002-08-18 Aidan Skinner <aidan@velvet.net>
4418
4419 * ada-lang.c: Run through gdb_indent.sh.
4420 * ada-lang.h: Run through gdb_indent.sh.
4421 * ada-tasks.c: Run through gdb_indent.sh.
4422 * ada-typeprint.c: Run through gdb_indent.sh.
4423 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4424
01fc4e33
AC
44252002-08-18 Andrew Cagney <ac131313@redhat.com>
4426
4427 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4428 ABI.
4429
d8ee244c
MK
44302002-08-18 Mark Kettenis <kettenis@gnu.org>
4431
c38d8261
MK
4432 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4433
222db64c
MK
4434 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4435 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4436
c2848c82
MK
4437 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4438 write_register_gen instead of write_register_bytes.
4439
d8ee244c
MK
4440 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4441 i[3456]-*-osf1mk* configurations have been made obsolete.
4442 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4443 i[3456]86-*-osf1mk* hosts obsolete.
4444 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4445 targets obsolete.
4446 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4447 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4448 config/i386/i386m3.mt, config/i386/nm-m3.h,
4449 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4450 config/i386/i386mk.mh, config/i386/i386mk.mt,
4451 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4452 obsolete.
4453 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4454 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4455 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4456
61d8d407
AC
44572002-08-18 Andrew Cagney <ac131313@redhat.com>
4458
4459 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4460 (hppa_value_returned_from_stack): Declare.
4461 (hppa_extract_return_value): Declare.
4462 * config/pa/hppa.mt: New file.
4463 * configure.tgt: Recognize hppa*-*-*.
4464 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4465
0c52bd59
MK
44662002-08-18 Mark Kettenis <kettenis@gnu.org>
4467
4468 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4469 comment.
4470
b5686e99
MK
44712002-08-17 Mark Kettenis <kettenis@gnu.org>
4472
4473 * top.c (gdb_rl_operate_and_get_next): Make sure
4474 operate-and-get-next functions correctly even when the history
4475 list is completely filled.
4476
c1bab85b
AC
44772002-08-18 Andrew Cagney <ac131313@redhat.com>
4478
4479 * MAINTAINERS (Target Instruction Set Architectures): Rename
4480 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4481 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4482 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4483 already listed under Host/Native.
4484
4485 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4486 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4487 mips*-*-*.
4488
32089c7c
AC
44892002-08-17 Andrew Cagney <ac131313@redhat.com>
4490
4491 * config/ia64/ia64.mt: New file.
4492 * config/alpha/alpha.mt: New file.
4493 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4494 ia64-linux-gnu. Mention that ia64-elf is broken.
4495 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4496
b4671f85
MK
44972002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4498
4499 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4500 generic_func_frame_valid instead of func_frame_valid.
4501
c8edd8b4
JB
45022002-08-16 Joel Brobecker <brobecker@gnat.com>
4503
4504 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4505 procfs appears to be broken when debugging on multi-processor
4506 machines. So enable software single stepping in order to avoid
4507 using the procfs interface to do next/step operations, using
4508 internal breakpoints instead.
4509
4510 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4511 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4512 make this pc address equal to the value it would have if the
4513 system stepping capability was used. Also set a new flag used
4514 to ensure that we don't readjust the PC one more time later.
4515
4516 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4517 address by DECR_PC_AFTER_BREAK when software single step is
4518 in use for this architecture, as this has already been taken
4519 care of in handle_inferior_event().
4520
238617f6
JB
45212002-08-16 Joel Brobecker <brobecker@gnat.com>
4522
4523 * infrun.c (handle_inferior_event): Minor reformatting, to make
4524 a rather long condition expression easier to read.
4525
541a7aac
AC
45262002-08-16 Andrew Cagney <ac131313@redhat.com>
4527
4528 * Makefile.in (gdbtk.o): Move to end of file.
4529 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4530 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4531 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4532 (gdbtk-wrapper.o, gdbres.o): Ditto.
4533
f92d4a7b
AC
45342002-08-16 Andrew Cagney <ac131313@redhat.com>
4535
4536 * Makefile.in (copying.o): Separate out compile rule.
4537 (hpux-thread.o, procfs.o, signals.o): Ditto.
4538 (v850ice.o, z8k-tdep.o): Ditto.
4539 (tui-file.o): Move to TUI section.
4540 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4541 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4542
1cce71eb
JB
45432002-08-16 Joel Brobecker <brobecker@gnat.com>
4544
4545 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4546 skip_trampoline_code, for better namespace-proofing.
4547
4548 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4549
0851f23d
JB
45502002-08-16 Joel Brobecker <brobecker@gnat.com>
4551
4552 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4553
f8d40ec8
JB
45542002-08-16 Joel Brobecker <brobecker@gnat.com>
4555
4556 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4557 signal, check whether we hit a breakpoint before checking for a
4558 single step breakpoint. Otherwise, GDB fails to notice that a
4559 breakpoint has been hit when stepping onto a breakpoint.
4560
63d022e0
KS
45612002-08-16 Keith Seitz <keiths@redhat.com>
4562
4563 * gdb-events.sh (clear_gdb_event_hooks): New function.
4564 * gdb-events.c: Regenerate.
4565 * gdb-events.h: Regenerate.
4566
6e31adb3
AC
45672002-08-16 Andrew Cagney <ac131313@redhat.com>
4568
4569 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4570 not_a_sw_breakpoint.
4571 * breakpoint.h (bpstat_stop_status): Add parameter names.
4572
c8189ed1
GS
45732002-08-16 Grace Sainsbury <graces@redhat.com>
4574
4575 * remote.c (remote_insert_hw_breakpoint)
4576 (remote_remove_hw_breakpoint): Fix calculation of length field
4577 for Z-packet.
4578
d05285fa
MS
45792002-08-15 Michael Snyder <msnyder@redhat.com>
4580
466d7106
MS
4581 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4582 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4583 (supply_fpregset): Ditto.
4584
d05285fa
MS
4585 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4586 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4587 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4588 (TARGET_READ_SP): Delete.
bf1f5b4c 4589 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4590 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4591 Delete.
4592 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4593 from macros to functions.
bf1f5b4c 4594
d05285fa
MS
4595 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4596 (mips_register_convertible, mips_register_convert_to_virtual,
4597 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4598 (mips_read_sp): New function.
4599 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4600 (mips_do_registers_info): Make static.
4601 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4602 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4603 (mips_register_convert_from_type, mips_register_convert_to_type):
4604 New functions.
4605 (mips_gdbarch_init): Set up function_start_offset,
4606 register_virtual_size, pc_in_sigtramp.
d05285fa 4607
e76f1f2e
AC
46082002-08-15 Andrew Cagney <ac131313@redhat.com>
4609
4610 * infcmd.c (vector_info): New function.
4611 (_initialize_infcmd): Add command "info vector".
4612 (print_vector_info): New function.
4613
4614 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4615 * gdbarch.h, gdbarch.c: Regenerate.
4616
4782dc19
AC
46172002-08-15 Andrew Cagney <ac131313@redhat.com>
4618
4619 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4620 ``print_all''. Only print vector registers when ``print_all''.
4621
23e3a7ac
AC
46222002-08-15 Andrew Cagney <ac131313@redhat.com>
4623
8e186fd6
AC
4624 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4625 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4626
23e3a7ac
AC
4627 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4628 Add `args' parameter.
4629 * gdbarch.h, gdbarch.c: Regenerate.
4630
4631 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4632
4633 * infcmd.c (float_info): Call print_float_info.
4634 (print_float_info): New function. By default, print the
4635 floating-point registers.
4636
4637 * arch-utils.h (default_print_float_info): Delete declaration.
4638 * arch-utils.c (default_print_float_info): Delete function.
4639
e0ca2bb9
MK
46402002-08-16 Mark Kettenis <kettenis@gnu.org>
4641
3f733acc
MK
4642 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4643 out define.
4644
7d8d2918
MK
4645 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4646 FRAME.
4647
1c7cc583
MK
4648 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4649 * configure.host: Make i[3456]86-*-aix host obsolete.
4650 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4651 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4652 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4653 config/i386/xm-i386aix.h: Make files obsolete.
4654 * i386aix-nat.c: Make file obsolete.
4655 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4656 (i386aix-nat.o): Make target obsolete.
4657
e0ca2bb9
MK
4658 * config/i386/nm-gnu.h: Removed.
4659 * config/i386/nm-i386gnu.h: New file.
4660 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4661 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4662 Moved here from ...
4663 * config/i386/tm-i386gnu.h: ... here. Removed.
4664 * config/i386/xm-i386gnu.h: Removed.
4665 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4666 (NAT_FILE): Set to nm-i386gnu.h.
4667 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4668 * i386-tdep.c: New file.
4669 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4670 (i386gnu-tdep.o): Specify dependencies.
4671
16057ec7 46722002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4673
6b99ee2e
MK
4674 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4675 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4676 Adjust a few comments to reflect reality a bit closer.
4677 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4678 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4679 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4680 target_insert_watchpoint, target_remove_watchpoint):
4681 Move defines to ...
4682 * config/i386/nm-i386sco5.h: ... here.
4683 (kernel_u_size): Add prototype. Improve a few comments and add
4684 protection against multiple inclusion.
4685
d9a6f65c
MK
4686 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4687 out define.
4688
047eff6a
MK
4689 * uw-thread.c (SP_ARG0): Define if not already defined.
4690 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4691
dcdb1290
MK
4692 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4693
5d2d0b2a
MK
4694 * config/i386/tm-i386.h: Don't include "regcache.h".
4695
61113f8b
MK
4696 * i387-tdep.h (i387_print_float_info): New prototype.
4697 * i387-tdep.c (print_i387_value, print_i387_ext,
4698 print_i387_status_word, print_i387_control_word): Add `struct
4699 ui_file *' argument and use it for output.
4700 (i387_print_float_info): Renamed from i387_float_info. Add
4701 `struct gdbarch *' and `struct ui_file *' arguments and use the
4702 latter for output.
4703 * i386-tdep.c: Include "i387-tdep.h".
4704 (i386_gdbarch_init): Set print_float_info.
4705 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4706 (FLOAT_INFO): Remove define.
4707
46e0f506
MS
47082002-08-13 Michael Snyder <msnyder@redhat.com>
4709
4710 * mips-tdep.c (mips_push_arguments): Rename to
4711 mips_eabi_push_arguments, and tune for EABI.
4712 (MIPS_REGS_HAVE_HOME_P): Delete.
4713 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4714 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4715 Delete references to mips_regs_have_home_p.
4716
409268de
KS
47172002-08-14 Keith Seitz <keiths@redhat.com>
4718
4719 * Makefile.in (install-gdbtk): Create insight plugin directory.
4720 Install plugins.tcl file.
4721
ffc6a242
KS
47222002-08-14 Keith Seitz <keiths@redhat.com>
4723
4724 * configure.in: Move SUBDIRS to near top of the file so that
4725 --enable options may add things to it.
4726 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4727 * configure: Regenerate.
4728
ebafbe83
MS
47292002-08-13 Michael Snyder <msnyder@redhat.com>
4730
4731 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4732 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4733 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4734
32f6f25d
AC
47352002-08-13 Andrew Cagney <ac131313@redhat.com>
4736
4737 * vax-tdep.c (vax_get_saved_register): Delete function.
4738 (vax_gdbarch_init): Update.
4739 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4740 (ns32k_gdbarch_init): Update.
4741 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4742 (alpha_gdbarch_init): Update.
4743
53826de9
AC
47442002-08-13 Andrew Cagney <cagney@redhat.com>
4745
4746 * regcache.c (init_regcache_descr): Overallocate the
4747 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4748 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4749 nr_raw_registers.
4750 (set_register_cached): Add range checking assertions. Use
4751 current_regcache.
4752
16057ec7 47532002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4754
4755 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4756 numbers for MMX registers.
4757
7b4c2dce
AC
47582002-08-13 Andrew Cagney <cagney@redhat.com>
4759
4760 * i386-tdep.c (i386_gdbarch_init): Use
4761 generic_unwind_get_saved_register.
4762
1e03ad20
KB
47632002-08-13 Kevin Buettner <kevinb@redhat.com>
4764
4765 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4766 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4767 target vector.
4768 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4769 Delete. Add comment regarding this now-deleted target method.
4770
548bcbec
SC
47712002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4772
4773 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4774 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4775 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4776 real PC and the page number (if it's within the memory bank window).
4777 (m68hc11_pseudo_register_write): Likewise when saving.
4778 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4779 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4780 (m68hc11_register_raw_size): And use 32-bit for it.
4781 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4782 16K memory bank is used by the prog; also use the virtual pc.
4783
7df11f59
SC
47842002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4785
4786 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4787 (m68hc11_gdbarch_init): Install it in gdbarch.
4788 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4789 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4790 (MSYMBOL_SIZE): New for documentation.
4791 (insn_return_kind): Enum to specify how a function returns.
4792 (frame_extra_info): Cleanup and record the return mode.
4793 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4794 register in address computation.
4795 (m68hc11_get_return_insn): New to obtain the return instruction used
4796 by the function.
4797 (m68hc11_frame_init_saved_regs): Take into account the return
4798 instruction used by the function for far and interrupt functions.
4799 (m68hc11_init_extra_frame_info): Take into account page register.
4800 (m68hc11_frame_args_address): Adjust according to the return mode.
4801 (show_regs): Print page register only when it's used.
4802
5706502a
SC
48032002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4804
4805 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4806 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4807 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4808 registers.
4809 (m68hc11_register_raw_size): Likewise.
4810
28fc6740
AC
48112002-08-13 Andrew Cagney <cagney@redhat.com>
4812
4813 * i386-tdep.c (i386_register_name): Handle mmx registers.
4814 (mmx_regnum_p): New function.
4815 (i386_mmx_names): New array.
4816 (mmx_num_regs): New variable.
4817 (i386_pseudo_register_read): New function.
4818 (i386_pseudo_register_write): New function.
4819 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4820
4821 * regcache.c (regcache_raw_read_unsigned): New function.
4822 (regcache_raw_read_signed): New function.
4823 * regcache.h (regcache_raw_read_unsigned): Declare.
4824 (regcache_raw_read_signed): Declare.
4825
a378f419
AC
48262002-08-13 Andrew Cagney <cagney@redhat.com>
4827
4828 * regcache.c (regcache_raw_read_as_address): Delete function.
4829 (regcache_cooked_read_signed): New function.
4830 (regcache_cooked_read_unsigned): New function.
4831 * regcache.h (regcache_cooked_read_signed): Declare.
4832 (regcache_cooked_read_unsigned): Declare.
4833 (regcache_raw_read_as_address): Delete declaration.
4834
4835 * blockframe.c (generic_read_register_dummy): Use
4836 regcache_cooked_read_unsigned.
4837 * i386-tdep.c (i386_extract_struct_value_address): Use
4838 regcache_cooked_read_unsigned.
4839
81967506
SC
48402002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4841
4842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4843 double sizes according to ELF ABI flags.
4844 (gdbarch_tdep): Record elf_flags.
4845
ffe1f3ee
SC
48462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4847
4848 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4849 (m6812_prolog): They can appear in 68HC12 function prologue.
4850 (m68hc11_frame_chain): Cleanup.
4851
98216c5d
AC
48522002-08-12 Andrew Cagney <cagney@redhat.com>
4853
4854 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4855 declarations.
4856 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4857 (i386_linux_register_raw_size): Delete function.
4858 (i386_linux_init_abi): Update.
4859 * i386-tdep.c (i386_register_raw_size): Delete function.
4860 (i386_register_byte): Delete function.
4861 (i386_gdbarch_init): Update.
4862 (i386_register_size): Delete array.
4863 (i386_register_offset): Delete array.
4864
4865 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4866 (REGISTER_RAW_SIZE): Delete macro.
4867 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4868 (REGISTER_BYTE): Delete macro.
4869
3b19021e
AS
48702002-08-11 Aidan Skinner <aidan@velvet.net>
4871
4872 * ada-lang.c (ada_lookup_partial_symbol)
4873 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4874 prototype names so that grep ^func works properly.
4875
4876 * ada-lang.c (ada_array_element_type)
4877 (ada_lookup_partial_symbol): Fix typos in parameter list.
4878
4879 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4880 Fix prototype names so that grep ^func works properly.
4881
b063e7a2
AC
48822002-08-10 Andrew Cagney <cagney@redhat.com>
4883 Elena Zannoni <ezannoni@redhat.com>
4884 Martin M. Hunt <hunt@redhat.com>
4885
4886 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4887 (build_builtin_type_vec128i): Set the vector bit.
4888 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4889 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4890 (build_builtin_type_vec64): New function.
4891 (build_builtin_type_vec64i): New function.
4892 (build_gdbtypes): Initialize builtin_type_vec64 and
4893 builtin_type_vec64i.
4894
a7e3c2ad
AC
48952002-08-09 Andrew Cagney <cagney@redhat.com>
4896
4897 * regcache.c (regcache_dump): Compare the register offset
4898 with REGISTER_BYTE.
4899 * arch-utils.c (generic_register_byte): New function.
4900 * arch-utils.h (generic_register_byte): Declare.
4901 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4902 * gdbarch.h, gdbarch.c: Regenerate.
4903
af030b9a
AC
49042002-08-09 Andrew Cagney <cagney@redhat.com>
4905
4906 * regcache.c: Include "gdbcmd.h"
4907 (_initialize_regcache): Add commands "maintenance print
4908 registers", "maintenance print raw-registers" and "maintenance
4909 print cooked-registers".
4910 (enum regcache_dump_what): Define.
4911 (dump_endian_bytes): New function.
4912 (regcache_dump): New function.
4913 (regcache_print): New function.
4914 (maintenance_print_registers): New function.
4915 (maintenance_print_raw_registers): New function.
4916 (maintenance_print_cooked_registers): New function.
4917 * Makefile.in (regcache.o): Update dependencies.
4918
cb3d25d1
MS
49192002-08-09 Michael Snyder <msnyder@redhat.com>
4920
4921 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4922 (mips_push_arguments): Correct some comments. Use paddr_nz
4923 for printing addresses in debug output. Replace static
4924 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4925 (mips_n32n64_push_arguments): New function, cloned from
4926 mips_push_arguments and tuned for the n32/n64 ABI.
4927 (mips_push_register): Buffer needs dynamic allocation.
4928 (mips_print_register): Ditto.
4929 (do_gp_register_row): Ditto.
4930 (mips_store_return_value): Ditto.
4931 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4932
2163ab9d
DH
49332002-08-09 Don Howard <dhoward@redhat.com>
4934
4935 * memattr.c (mem_info_command): Print special case of upper bound
4936 as max CORE_ADDR + 1.
4937
b78bcb18
MS
49382002-08-08 Michael Snyder <msnyder@redhat.com>
4939
4940 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4941 returns structs by ref if they're too big to fit in two registers.
4942
ffabd70d
KB
49432002-08-09 Kevin Buettner <kevinb@redhat.com>
4944
4945 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4946 saved regs value.
4947 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4948 mips_find_saved_regs().
4949 (mips_pop_frame): Likewise.
4950
fbcdb4a3
KB
49512002-08-09 Kevin Buettner <kevinb@redhat.com>
4952
4953 * blockframe.c (frame_saved_regs_register_unwind): Revise
4954 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4955 frames are in use.
4956
3c3bea1c
GS
49572002-08-09 Grace Sainsbury <graces@redhat.com>
4958
4959 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4960 T-packets; the 'a' is not taken as a register number.
4961 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4962 (remote_stopped_data_address): New functions; add to target
4963 vector.
4964 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4965 prototypes to match other implementations of this
4966 function. replace integer argument with pointer -- the length
4967 field in the Z-packet is the length of what is pointed to or 1 if
4968 pointer is null. Add to target vector.
4969 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4970 target vector.
4971
4972 From Mark Salter:
4973 * remote.c (remote_wait): Add support to extract optional
4974 watchpoint information from T-packet. Ignore unrecognized
4975 optional info in T-packet.
4976 (remote_async_wait): Ditto.
4977
5d1d95de
CV
49782002-08-09 Corinna Vinschen <vinschen@redhat.com>
4979
4980 * cli/cli-dump.c: Change fopen modes to use binary open modes
4981 as defined in include/fopen-bin.h throughout.
4982
c86b5b38
MS
49832002-08-08 Michael Snyder <msnyder@redhat.com>
4984
4985 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4986
b30590dc
KB
49872002-08-08 Kevin Buettner <kevinb@redhat.com>
4988
4989 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4990 assertion failure by returning early after a warning.
4991
498868ed
KB
49922002-08-08 Kevin Buettner <kevinb@redhat.com>
4993
4994 * mips-tdep.c (mips_find_saved_regs): Make static.
4995 (mips_frame_init_saved_regs): New function.
4996 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4997 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4998 (mips_find_saved_regs): Delete declaration.
4999
b2dd6311
GS
50002002-08-08 Grace Sainsbury <graces@redhat.com>
5001
3c3bea1c
GS
5002 * remote.c (remote_wait, remote_async_wait): Change
5003 thread_num from int to ULONGEST.
5004 (unpack_varlen_hex): Change result parameter from
5005 int * to ULONGEST *.
b2dd6311 5006
ea47855f
AC
50072002-08-08 Andrew Cagney <ac131313@redhat.com>
5008
5009 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5010 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5011 powerpc*-*-*.
5012 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5013
69db8bae
AC
50142002-08-08 Andrew Cagney <cagney@redhat.com>
5015
5016 * gcore.c (override_derive_stack_segment): Delete variable.
5017 (preempt_derive_stack_segment): Delete function.
5018 (derive_stack_segment): Delete function.
5019 (default_derive_stack_segment): Renamed to derive_stack_segment.
5020 (override_derive_heap_segment): Delete variable.
5021 (preempt_derive_heap_segment): Delete function.
5022 (derive_heap_segment): Delete function.
5023 (default_derive_heap_segment): Rename to derive_heap_segment.
5024
cb811fe7
MS
50252002-08-06 Michael Snyder <msnyder@redhat.com>
5026
5027 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5028 * mips-tdep.c (mips_EABI_use_struct_convention,
5029 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5030 New functions. (mips_use_struct_convention): Delete.
5031 (mips_gdbarch_init): set use_gdbarch_convention.
5032
8b389c40
MS
50332002-08-06 Michael Snyder <msnyder@redhat.com>
5034
5035 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5036 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5037 mips_o32_reg_struct_has_addr): New functions.
5038 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5039
5c27f28a
AC
50402002-08-07 Andrew Cagney <ac131313@redhat.com>
5041
5042 * regcache.c (pseudo_register): Delete function.
5043 (fetch_register): Delete function.
5044 (store_register): Delete function.
5045 (regcache_raw_read, legacy_read_register_gen): Use
5046 target_fetch_registers instead of fetch_register.
5047 (legacy_write_register_gen, regcache_raw_write): Use
5048 target_store_register instead of store_register.
5049 (write_register_bytes): Ditto.
5050
5051 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5052 (STORE_PSEUDO_REGISTER): Delete.
5053 * gdbarch.h, gdbarch.c: Regenerate.
5054
5b331675
CV
50552002-08-06 Corinna Vinschen <vinschen@redhat.com>
5056
5057 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5058 write dump file binary.
5059
6acdf5c7
MS
50602002-08-05 Michael Snyder <msnyder@redhat.com>
5061
5062 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5063 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5064 (mips_gdbarch_init): Set N32 target to be mips64.
5065
b2f01c35
KB
50662002-08-06 Kevin Buettner <kevinb@redhat.com>
5067
5068 * frame.c (find_saved_register): Break out of loop once saved
5069 register address is found. Don't mention sparc in loop comment
5070 anymore.
5071
63db5580
KB
50722002-08-06 Kevin Buettner <kevinb@redhat.com>
5073
5074 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5075 mips_default_saved_regsize to 8.
5076
5e34e75e
AC
50772002-08-06 Andrew Cagney <ac131313@redhat.com>
5078
5079 * gcore.c: Do not include <sys/procfs.h>.
5080 * Makefile.in (gcore.o): Update dependencies.
5081
eb4c54a2
AC
50822002-08-06 Andrew Cagney <cagney@redhat.com>
5083
5084 * configure.tgt: Make arc-*-* obsolete.
5085 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5086 * MAINTAINERS: Make arc-elf obsolete.
5087 * arc-tdep.c: Make file obsolete.
5088 * config/arc/arc.mt: Ditto.
5089 * config/arc/tm-arc.h: Ditto.
5090
ced15480
TR
50912002-08-05 Theodore A. Roth <troth@verinet.com>
5092
c1bab85b 5093 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5094
b4743822
AC
50952002-08-05 Andrew Cagney <ac131313@redhat.com>
5096
5097 * mcore-tdep.c (mcore_gdbarch_init): Use
5098 generic_unwind_get_saved_register instead of
5099 generic_get_saved_register.
5100 * v850-tdep.c (v850_gdbarch_init): Ditto.
5101 * frv-tdep.c (frv_gdbarch_init): Ditto.
5102 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5103 * s390-tdep.c (s390_gdbarch_init): Ditto.
5104 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5105 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5106 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5107
3956d554
JB
51082002-08-05 Joel Brobecker <brobecker@gnat.com>
5109
5110 * objfiles.h: Add missing #include "symfile.h"
5111
5112 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5113
8249c0d6
AC
51142002-08-04 Andrew Cagney <ac131313@redhat.com>
5115
5116 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5117 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5118 of FIELD_BITSIZE.
5119
b9d14705
DJ
51202002-08-04 Daniel Jacobowitz <drow@mvista.com>
5121
5122 * NEWS: Cleanup and nitpick.
5123
dd73b9bb
AC
51242002-08-03 Andrew Cagney <ac131313@redhat.com>
5125
5126 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5127
043a27f8
AC
51282002-08-03 Andrew Cagney <ac131313@redhat.com>
5129
5130 * Makefile.in (gdbtk-bp.o): Update dependencies.
5131 (gdbtk-register.o): Ditto.
5132 (gdbtk-varobj.o): Ditto.
5133
46ce284d
AC
51342002-08-03 Andrew Cagney <cagney@redhat.com>
5135
5136 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5137 m68hc11_fetch_pseudo_register.
5138 (m68hc11_pseudo_register_write): Replace
5139 m68hc11_store_pseudo_register.
5140 (m68hc11_gdbarch_init): Update.
5141
b66d6d2e
AC
5142Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5143
5144 * gdbarch.sh: Include "gdb_string.h".
5145 * gdbarch.c: Regenerate.
5146
5147 * regcache.c: Include "gdb_string.h".
5148 * ax-general.c: Ditto.
5149 * varobj.c: Ditto.
5150 * std-regs.c: Ditto.
5151 * fbsd-proc.c: Ditto.
5152 * thread.c: Ditto.
5153
5154 * Makefile.in (regcache.o): Update dependencies.
5155 (thread.o, gdbarch.o): Ditto.
5156 (ax-general.o, gdbarch.o): Ditto.
5157 (varobj.o, std-regs.o): Ditto.
5158 (fbsd-proc.o): Specify dependencies.
5159
29e1842b
AC
51602002-08-02 Andrew Cagney <cagney@redhat.com>
5161
5162 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5163 regnum.
5164 (regcache_cooked_write): Ditto.
5165
68365089
AC
51662002-08-02 Andrew Cagney <ac131313@redhat.com>
5167
5168 * regcache.c (regcache_cooked_read): New function.
5169 (regcache_cooked_write): New function.
5170 (read_register_gen): Rewrite using regcache_cooked_read.
5171 (write_register_gen): Rewrite using regcache_cooked_write.
5172
5173 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5174 Declare.
5175
d8124050
AC
51762002-08-02 Andrew Cagney <cagney@redhat.com>
5177
5178 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5179 Replace the architecture methods register_read and register_write.
5180 * gdbarch.h, gdbarch.c: Regenerate.
5181 * regcache.c (init_regcache_descr): Update.
5182 (read_register_gen): Update.
5183 (write_register_gen): Update.
5184 (supply_register): Update comment.
5185
5186 * sh-tdep.c (sh_gdbarch_init): Update.
5187 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5188 `regcache' and `gdbarch' parameters. Make `buffer' a void
5189 pointer. Update code.
5190 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5191 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5192 void pointer. Update code.
5193 (sh64_register_write): Delete.
5194 (sh4_register_read): Delete.
5195 (sh64_register_read): Delete.
5196 (sh4_register_write): Delete.
5197 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5198 void pointer, `to' parameter a void pointer.
5199 (sh_sh64_register_convert_to_raw): Ditto.
5200
a6425924
KB
52012002-08-01 Kevin Buettner <kevinb@redhat.com>
5202
5203 * mips-tdep.c (mips_register_virtual_type): Use architecture
5204 invariant return values.
5205
ff5922b5
AC
52062002-08-01 Andrew Cagney <cagney@redhat.com>
5207
5208 * linux-proc.c: Include "gdb_string.h".
5209 * Makefile.in (linux-proc.o): Update dependency list.
5210
32a6503c
KB
52112002-08-01 Kevin Buettner <kevinb@redhat.com>
5212
5213 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5214 comment.
5215
ccaa32c7
GS
52162002-08-01 Grace Sainsbury <graces@redhat.com>
5217
5218 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5219 to_insert_watchpoint, to_remove_watchpoint,
5220 to_stopped_by_watchpoint, to_stopped_data_address,
5221 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5222 target vecctor. Define their corresponding macros so they call
5223 them.
5224
5225 * target.c: Add default and debug versions of for
5226 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5227 to_insert_watchpoint, to_remove_watchpoint,
5228 to_stopped_by_watchpoint, to_stopped_data_address,
5229 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5230
78fde5f8
KB
52312002-08-01 Kevin Buettner <kevinb@redhat.com>
5232
5233 * mips-tdep.c (mips_register_virtual_type): New function.
5234 (mips_gdbarch_init): Register mips_register_virtual_type()
5235 with gdbarch machinery.
5236 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5237 this file instead of tm-bigmips.h.
5238 (MIPS_REGSIZE): Delete this macro.
5239 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5240 multiarch version in mips-tdep.c will be found.
5241
db034ac5
AC
52422002-08-01 Andrew Cagney <cagney@redhat.com>
5243
5244 * NEWS: Menion that CHILL has been made obsolete.
5245
5246 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5247 * stabsread.c (read_range_type): Ditto.
5248 * gdbtypes.h: Ditto.
5249 * language.c (binop_type_check): Ditto.
5250 (binop_result_type): Ditto.
5251 (integral_type): Ditto.
5252 (character_type): Ditto.
5253 (string_type): Ditto.
5254 (boolean_type): Ditto.
5255 (structured_type): Ditto.
5256 (lang_bool_type): Ditto.
5257 (binop_type_check): Ditto.
5258 * language.h (_LANG_chill): Ditto.
5259 * dwarfread.c (set_cu_language): Ditto.
5260 * dwarfread.c (CHILL_PRODUCER): Ditto.
5261 * dwarfread.c (handle_producer): Ditto.
5262 * expression.h (enum exp_opcode): Ditto.
5263 * eval.c: Ditto for comments.
5264 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5265 * expprint.c (print_subexp): Ditto.
5266 (print_subexp): Ditto.
5267 * valops.c (value_cast): Ditto.
5268 (search_struct_field): Ditto.
5269 * value.h (COERCE_VARYING_ARRAY): Ditto.
5270 * symfile.c (init_filename_language_table): Ditto.
5271 (add_psymbol_with_dem_name_to_list): Ditto.
5272 * valarith.c (value_binop): Ditto.
5273 (value_neg): Ditto.
5274 * valops.c (value_slice): Ditto.
5275 * symtab.h (union language_specific): Ditto.
5276 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5277 (SYMBOL_DEMANGLED_NAME): Ditto.
5278 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5279 * defs.h (enum language): Ditto.
5280 * symtab.c (got_symtab): Ditto.
5281 * utils.c (fprintf_symbol_filtered): Ditto.
5282
5283 * ch-typeprint.c: Make file obsolete.
5284 * ch-valprint.c: Make file obsolete.
5285 * ch-lang.h: Make file obsolete.
5286 * ch-exp.c: Make file obsolete.
5287 * ch-lang.c: Make file obsolete.
5288
5289 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5290 CHILL_LIB.
5291 (TARGET_FLAGS_TO_PASS): Ditto.
5292 (CHILLFLAGS): Obsolete.
5293 (CHILL): Obsolete.
5294 (CHILL_FOR_TARGET): Obsolete.
5295 (CHILL_LIB): Obsolete.
5296 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5297 ch-valprint.c.
5298 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5299 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5300 ch-lang.o.
5301 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5302 targets.
5303
8aaf0b47
JB
53042002-07-31 Joel Brobecker <brobecker@gnat.com>
5305
5306 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5307 This does not change anything at the moment, but will be helpful
5308 later when full Ada support is integrated.
5309
f3a7b3a5
KB
53102002-07-31 Kevin Buettner <kevinb@redhat.com>
5311
5312 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5313 help message.
5314
fb850278
KB
53152002-07-31 Kevin Buettner <kevinb@redhat.com>
5316
5317 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5318 and save it in a local variable. Use variable in later test.
5319
e3bddbfa
KB
53202002-07-31 Kevin Buettner <kevinb@redhat.com>
5321
5322 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5323 test. (Thanks to Daniel Jacobowitz.)
5324
28d169de
KB
53252002-07-31 Kevin Buettner <kevinb@redhat.com>
5326
5327 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5328 (mips_abi_strings): Add "n64".
5329 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5330
7fe7e44e
KB
53312002-07-31 Kevin Buettner <kevinb@redhat.com>
5332
5333 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5334 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5335
c6caf090
KB
53362002-07-31 Kevin Buettner <kevinb@redhat.com>
5337
5338 * utils.c (host_pointer_to_address, address_to_host_pointer):
5339 Use gdb_assert() instead of explicit call to internal_error().
5340
c41669e0
KB
53412002-07-30 Kevin Buettner <kevinb@redhat.com>
5342
5343 * Makefile.in (rs6000-nat.o): Update dependencies.
5344
5345 From Nicholas Duffek:
5346 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5347 (aix-thread.o): New rule.
5348 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5349 * config/powerpc/aix432.mh: New file.
5350
2fda4977
DJ
53512002-07-30 Daniel Jacobowitz <drow@mvista.com>
5352
5353 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5354 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5355 (fetch_core_registers, ppc_linux_supply_gregset)
5356 (ppc_linux_supply_fpregset): New functions.
5357 (ppc_linux_regset_core_fns): New.
5358 (_initialize_ppc_linux_tdep): Call add_core_fns.
5359 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5360 and ppc_linux_supply_gregset.
5361 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5362 (supply_fpregset): Call ppc_linux_supply_fpregset.
5363 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5364 corelow.o.
5365 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5366
729051e6
DJ
53672002-07-30 Daniel Jacobowitz <drow@mvista.com>
5368
5369 * symtab.c (lookup_symbol): Demangle before lowercasing.
5370
5f8a3188
AC
53712002-07-30 Andrew Cagney <ac131313@redhat.com>
5372
5373 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5374 declaration.
5375 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5376 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5377 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5378 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5379 "gdb_string.h".
5380 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5381 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5382 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5383 (avr-tdep.o, mon960-rom.o): Ditto.
5384 (aout_stabs_gnu_h): Define.
5385 (symtab_h): Remove $(gdb_obstack_h).
5386
67f07146
JB
53872002-07-30 Jim Blandy <jimb@redhat.com>
5388
5389 Patch from David Carlton <carlton@math.stanford.edu>:
5390 * gdbinit.in: Move the `dir' commands that add GDB's own source
5391 directory to the search path to the end, so that the `gdb' source
5392 directory will be searched first.
5393
04ea0df1
AC
53942002-07-29 Andrew Cagney <ac131313@redhat.com>
5395
5396 * gdb_obstack.h: New file.
5397 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5398 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5399 * objfiles.h: Include "gdb_obstack.h".
5400 * Makefile.in (gdb_obstack_h): Define.
5401 (symtab_h): Add $(gdb_obstack_h).
5402 (objfiles_h): Add $(gdb_obstack_h).
5403
5404 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5405 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5406 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5407 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5408 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5409 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5410 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5411 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5412
5413 * Makefile.in (bcache.o): Update dependencies.
5414 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5415 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5416 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5417 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5418 (stabsread.o, symfile.o, symmisc.o): Ditto.
5419 (symtab.o, typeprint.o, macroexp.o): Ditto.
5420 (macrotab.o, mdebugread.o): Ditto.
5421 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5422 (coff_ecoff_h, aout_aout64_h): Define.
5423 (aout_stabs_gnu_h, libaout_h): Define.
5424
d138e37a
AC
54252002-07-29 Andrew Cagney <cagney@redhat.com>
5426
5427 * regcache.c (struct regcache_descr): Rename nr_registers to
5428 nr_cooked_registers. Revise comments describing the structure
5429 member fields.
5430 (init_regcache_descr): Update.
5431 (init_legacy_regcache_descr): Update.
5432 (read_register_gen, write_register_gen): When a cooked register in
5433 the raw register range, directly access the value from the raw
5434 register cache.
5435
460e6ec3
AC
54362002-07-29 Andrew Cagney <ac131313@redhat.com>
5437
5438 * z8k-tdep.c: Do not include "obstack.h".
5439 * h8300-tdep.c, h8500-tdep.c: Ditto.
5440 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5441 * valprint.c, v850-tdep.c: Ditto.
5442 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5443 * mn10200-tdep.c: Ditto.
5444
5445 * Makefile.in (z8k-tdep.o): Update dependencies.
5446 (m68hc11-tdep.o, valprint.o): Ditto.
5447 (v850-tdep.o, d10v-tdep.o): Ditto.
5448 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5449 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5450 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5451 (sh_opc_h, gdb_sim_sh_h): Define.
5452 (elf_sh_h, elf_bfd_h): Define.
5453 (opcode_m68hc11_h): Define.
5454 (OPCODES_SRC, OPCODES_DIR): define.
5455 (OPCODES): Use $(OPCODES_DIR).
5456 (gdb_sim_d10v_h): Rename sim_d10v_h.
5457 (gdb_sim_arm_h): Rename sim_arm_h.
5458
790c9cf0
KB
54592002-07-26 Kevin Buettner <kevinb@redhat.com>
5460
5461 * utils.c (host_pointer_to_address, address_to_host_pointer):
5462 Change internal_error() message to indicate function responsible
5463 for the error.
5464
9647fa49
KB
54652002-07-26 Kevin Buettner <kevinb@redhat.com>
5466
5467 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5468 calls to local_hex_string_custom().
5469
dabbe2c0
KB
54702002-07-26 Kevin Buettner <kevinb@redhat.com>
5471
5472 * irix5-nat.c: Move IRIX shared library support from here...
5473 * solib-irix.c: ...to here. Revised substantially to work with
5474 generic solib framework.
5475
b96d0a4e
KB
5476 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5477 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5478 * mips-irix-tdep.c: New file.
5479
313fb2f6
KB
5480 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5481 (mips-irix-tdep.o, solib-irix.o): New rules.
5482 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5483 solib-irix.o.
5484 * config/mips/irix6.mt (TDEPFILES): Likewise.
5485 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5486
ab2eaf26
KB
54872002-07-26 Kevin Buettner <kevinb@redhat.com>
5488
177e4768 5489 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5490 disabled (via ``#if 0'') includes.
5491
7244546a
KB
54922002-07-26 Kevin Buettner <kevinb@redhat.com>
5493
5494 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5495 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5496 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5497 Add support for the fpscr register.
5498 * rs6000-nat.c (regmap, fetch_inferior_registers)
5499 (store_inferior_registers, fetch_core_registers): Likewise.
5500
dd7be90a
KB
55012002-07-26 Kevin Buettner <kevinb@redhat.com>
5502
5503 * rs6000-nat.c (language.h): Include.
5504 (special_regs): Delete this array.
5505 (regmap): New function.
5506 (fetch_register, store_register): Use regmap() to map gdb
5507 register numbers to ptrace register numbers. Also, use
5508 outputs from regmap() to make decisions regarding type of
5509 ptrace() call to make. In particular, don't compare against
5510 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5511 (fetch_inferior_registers, store_inferior_registers): Where
5512 possible, obtain register numbers from tdep struct. Don't
5513 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5514 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5515 (LAST_UISA_SP_REGNUM): Delete.
5516
11bf77db
KB
55172002-07-25 Kevin Buettner <kevinb@redhat.com>
5518
5519 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5520 (fetch_registers, store_register, fetch_core_registers): Don't
5521 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5522 regcache_collect() as appropriate.
5523 (find_toc_address): Format hex address with local_hex_string().
5524
06afebeb
AC
55252002-07-25 Andrew Cagney <ac131313@redhat.com>
5526
5527 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5528 bfd/elf32-frv.c.
5529
8c554d79
TT
55302002-07-24 Tom Tromey <tromey@redhat.com>
5531
5532 * jv-exp.y: Marked all strings with _().
5533 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5534 internal_error.
5535 (MethodInvocation, CastExpression, parse_number, yyerror,
5536 java_type_from_name, push_expression_name, yylex): Typo fixes.
5537
e4c242d9
DJ
55382002-07-24 Daniel Jacobowitz <drow@mvista.com>
5539
5540 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5541 (tee_file_flush, tee_file_write, tee_file_fputs)
5542 (tee_file_isatty): New.
5543 * ui-file.h (tee_file_new): Add prototype.
5544
ebf56fd3
AS
55452002-07-24 Aidan Skinner <aidan@velvet.net>
5546
5547 * ada-lang.c: Change k&r style function definitions to prototyped
5548 form.
5549 * ada-typeprint.c: Change k&r style function definitions to prototyped
5550 form.
5551 * ada-valprint.c: Change k&r style function definitions to prototyped
5552 form.
5553
7fb623f7
AC
55542002-07-24 Andrew Cagney <cagney@redhat.com>
5555
5556 * README: Remove reference to remote-bug.
5557 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5558 remote-bug.c.
5559 (m88k-nat.o): Delete rule.
5560 (m88k-tdep.o): Delete rule.
5561 (remote-bug.o): Delete rule.
5562 * MAINTAINERS: Mark as obsolete.
5563 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5564 * m88k-tdep.c: Make file obsolete.
5565 * config/m88k/m88k.mh: Ditto.
5566 * config/m88k/delta88v4.mh: Ditto.
5567 * config/m88k/delta88v4.mt: Ditto.
5568 * config/m88k/delta88.mt: Ditto.
5569 * config/m88k/delta88.mh: Ditto.
5570 * remote-bug.c: Ditto.
5571 * config/m88k/tm-delta88.h: Ditto.
5572 * config/m88k/nm-delta88v4.h: Ditto.
5573 * config/m88k/xm-delta88.h: Ditto.
5574 * config/m88k/xm-dgux.h: Ditto.
5575 * config/m88k/tm-m88k.h: Ditto.
5576 * config/m88k/nm-m88k.h: Ditto.
5577 * config/m88k/tm-delta88v4.h: Ditto.
5578 * m88k-nat.c: Ditto.
5579 * cxux-nat.c: Ditto.
5580 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5581 and m88*-*-* obsolete.
5582 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5583 m88*-*-* obsolete.
5584
37611a2b
AC
55852002-07-24 Andrew Cagney <cagney@redhat.com>
5586
5587 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5588 constant. Same for local pointer variables.
5589 (extract_signed_integer): Ditto.
5590 * defs.h (extract_unsigned_integer): Update.
5591 (extract_signed_integer): Update.
5592
1aaa5f99
AC
55932002-07-24 Andrew Cagney <cagney@redhat.com>
5594
5595 * regcache.c (regcache_raw_write): Change buf parameter to a
5596 constant void pointer.
5597 (regcache_raw_read): Change buf parameter to a void pointer.
5598 (legacy_write_register_gen): Change myaddr parameter a constant
5599 void pointer.
5600 (supply_register): Change val parameter to a const void pointer.
5601 * regcache.h (regcache_raw_write): Update declaration.
5602 (regcache_raw_read): Update declaration.
5603 (supply_register): Update declaration.
5604
b4f5539f
TT
56052002-07-24 Tom Tromey <tromey@redhat.com>
5606
5607 * defs.h (gdb_readline_wrapper): Declare.
5608 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5609 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5610 * top.c (gdb_readline_wrapper): New function.
5611 (command_line_input): Use it.
5612
0818c12a
AC
56132002-07-24 Andrew Cagney <cagney@redhat.com>
5614
5615 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5616 regcache_read and regcache_write.
5617 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5618 * regcache.c: Update.
5619 * sh-tdep.c (sh64_push_arguments): Update comment.
5620 (sh_pseudo_register_read): Update.
5621 (sh_pseudo_register_write): Update.
5622 (sh4_register_read): Update.
5623 (sh4_register_write): Update.
5624 (sh64_pseudo_register_read): Update.
5625 (sh64_pseudo_register_write): Update.
5626 (sh64_register_read): Update.
5627 (sh64_register_write): Update.
5628 * i386-tdep.c (i386_extract_return_value): Update.
5629 (i386_extract_struct_value_address): Update.
5630 (i386_extract_return_value): Update.
5631 * blockframe.c (generic_read_register_dummy): Update.
5632 (generic_call_dummy_register_unwind): Update
5633 * infrun.c (write_inferior_status_register): Update.
5634
f7321c06
JB
56352002-07-23 Jim Blandy <jimb@redhat.com>
5636
5637 * parser-defs.h (expression_context_pc): Make this extern.
5638 (Thanks to Michael Snyder.)
5639
2037aebb
AC
56402002-07-23 Andrew Cagney <ac131313@redhat.com>
5641
5642 GDB 5.2.1 released from 5.2 branch.
5643 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5644 * README: Update to mention 5.2.1.
5645
66504d44
MS
56462002-07-23 Mark Salter <msalter@redhat.com>
5647
5648 * remote.c (remote_read_bytes): Fix check for error.
5649
27bae383
KB
56502002-07-22 Kevin Buettner <kevinb@redhat.com>
5651
5652 * aix-thread.c (language.h): Include.
5653 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5654 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5655 Print newlines at end of debug messages.
5656 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5657 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5658
56592002-07-22 Kevin Buettner <kevinb@redhat.com>
5660
5661 * aix-thread.c (ppc-tdep.h): Include.
5662 (special_register_p): New function.
5663 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5664 (store_regs_user_thread): Use register number information from
5665 gdbarch_tdep struct instead of hardcoded offsets relative to
5666 FIRST_UISA_SP_REGNUM.
5667 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5668 special_register_p() instead of using FPLAST_REGNUM and
5669 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5670 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5671 will be MQ's register number.
5672
56732002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5674
5675 * aix-thread.c (ops): Rename to aix_thread_ops.
5676 (base_ops): Rename to base_target.
5677 (ops_attach): Rename to aix_thread_attach.
5678 (ops_detach): Rename to aix_thread_detach.
5679 (ops_resume): Rename to aix_thread_detach.
5680 (ops_wait): Rename to aix_thread_wait.
5681 (ops_kill): Rename to aix_thread_kill.
5682 (init_ops): Rename to init_aix_thread_ops.
5683 (ops_fetch_register): Rename to aix_thread_fetch_register.
5684 (ops_store_register): Rename to aix_thread_store_register.
5685 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5686 (ops_thread_alive): Rename to aix_thread_thread_alive.
5687 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5688 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5689 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5690 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5691 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5692 (store_regs_lib): Rename to store_regs_user_thread.
5693 (store_regs_kern): Rename to store_regs_kernel_thread.
5694
27bae383 56952002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5696
5697 * aix-thread.c (ops_prepare_to_store): Eliminate.
5698 (init_ops): Don't initialize ops.prepare_to_store.
5699 (store_regs_kern): Pre-fetch register buffers from child,
5700 because some registers may not be in the cache. Copy
5701 regs from register cache only if they are cached.
5702 (store_regs_lib): Copy regs from register cache only
5703 if they are cached.
5704 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5705 fill_gprs64): Ditto.
5706
61c5da0b
KB
57072002-07-22 Kevin Buettner <kevinb@redhat.com>
5708
5709 * aix-thread.c (gdb_assert.h): Include.
5710 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5711 register sizes (from register cache) match size of buffer holding
5712 register data.
5713 (fill_sprs32): Change parameter types to match those in the ptrace()
5714 buffer.
5715 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5716 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5717
57182002-07-22 Michael Snyder <msnyder@redhat.com>
5719
5720 * aix-thread.c (supply_sprs64): Cosmetic change.
5721 (supply_sprs32): Cosmetic change.
5722 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5723 (fill_sprs64): Use regcache_collect instead of read_register.
5724 (store_regs_lib): Use regcache_collect instead of
5725 read_register. Use fill_sprs32 instead of fill_sprs64,
5726 if debugging a 32-bit architecture.
5727 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5728 out of the register cache, instead of passing a pointer into
5729 the register cache directly to ptrace. Use regcache_collect
5730 insteaad of read_register.
5731 (ops_prepare_to_store): Use target_read_registers instead
5732 of read_register_bytes.
5733
36479eb1
AS
57342002-07-20 Aidan Skinner <aidan@velvet.net>
5735
5736 * MAINTAINERS: Add self under write after approval.
5737
80ae6ee2
AS
57382002-07-20 Aidan Skinner <aidan@velvet.net>
5739
5740 * ada-tasks.c: Change k&r style function definitions to prototyped
5741 form.
5742
8a8ab2b9
AC
57432002-07-19 Andrew Cagney <ac131313@redhat.com>
5744
5745 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5746 * x86-64-tdep.c: Include "objfiles.h".
5747 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5748 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5749
fb16b900
ML
57502002-07-17 Michal Ludvig <michal@suse.cz>
5751
5752 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5753 (update_context): Initialise cfa variable.
5754
0fe7bf7b
MS
57552002-07-17 Michael Snyder <msnyder@redhat.com>
5756
5757 * aix-thread.c: Shorten some long lines.
5758 Bring comments into line with code spec.
5759
488f131b
JB
57602002-07-18 Joel Brobecker <brobecker@gnat.com>
5761
5762 * infrun.c: Re-indent using gdb_indent.sh.
5763
46c415d2
JB
57642002-07-18 Joel Brobecker <brobecker@gnat.com>
5765
5766 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5767 Leave the indentation temporarily untouched, to minimize the diffs.
5768
cdecafbe
EZ
57692002-07-18 Elena Zannoni <ezannoni@redhat.com>
5770
5771 * stabsread.c: Make os9k sections of the code obsolete,
5772 for real this time.
5773 * stabsread.h: Make os9k sections of the code obsolete.
5774
7b6aa020
ML
57752002-07-18 Michal Ludvig <mludvig@suse.cz>
5776
09ec9b38
ML
5777 * linux-low.c (regsets_store_inferior_registers): Add free()
5778 at the end of a loop to prevent memory leak.
5779 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5780 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5781 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5782 line a comment.
4894ac5d 5783 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5784
233282cd
JB
57852002-07-17 Jim Blandy <jimb@redhat.com>
5786
5787 * macrocmd.c (info_macro_command): Remove newline from error
5788 message.
5789
7b6aa020 57902002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5791
5792 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5793 (sh_gdbarch_init): Use it for sh-dsp.
5794
f7ef9339
KB
57952002-07-16 Kevin Buettner <kevinb@redhat.com>
5796
5797 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5798 64-bit DWARF2 format.
5799
8dd72958
JB
58002002-07-16 Joel Brobecker <brobecker@gnat.com>
5801
5802 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5803 <sys/proc.h> when not available.
5804
a99a9e1b
AC
58052002-07-16 Andrew Cagney <ac131313@redhat.com>
5806
5807 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5808 * stabsread.c: Make os9k sections of the code obsolete.
5809 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5810 * config/i386/i386os9k.mt: Make file obsolete.
5811 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5812 (COMMON_OBS): Remove os9kread.o
5813 (SFILES): Remove os9kread.c.
5814 (os9kread.o, remote-os9k.o): Make target obsolete.
5815 * remote-os9k.c: Make file obsolete.
5816 * os9kread.c: Make file obsolete.
5817 * Makefile.in
5818
7a3085c1
AC
58192002-07-16 Andrew Cagney <ac131313@redhat.com>
5820
5821 * NEWS: Mention that the FR30 has been made obsolete.
5822 * fr30-tdep.c: Make file obsolete.
5823 * config/fr30/tm-fr30.h: Ditto.
5824 * config/fr30/fr30.mt: Ditto.
5825 * configure.tgt: Make fr30-*-elf obsolete.
5826 * MAINTAINERS: Make fr30-elf obsolete.
5827
28a93f5a
PM
58282002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5829
5830 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5831 found is not inside a section.
5832
be006b8b
KB
58332002-07-15 Kevin Buettner <kevinb@redhat.com>
5834
5835 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5836 strerror().
5837 (pdc_realloc): Use xrealloc() instead of realloc().
5838
14fa3751
KB
58392002-07-15 Kevin Buettner <kevinb@redhat.com>
5840
5841 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5842 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5843 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5844 macros.
5845
42cc437f
KB
58462002-07-15 Kevin Buettner <kevinb@redhat.com>
5847
5848 * aix-thread.c (ptrace_check): Eliminate goto.
5849 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5850 problem.
5851
8e2c28d4
KB
58522002-07-15 Kevin Buettner <kevinb@redhat.com>
5853
5854 * aix-thread.c (gdbcmd.h): Include.
5855 (DEBUG, DBG, DBG2, dbg): Eliminate.
5856 (debug_aix_thread): New static global.
5857 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5858 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5859 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5860 invocations to DBG and DBG2 macros to test against
5861 ``debug_aix_thread'' and call fprintf_unfiltered().
5862 (_initialize_aix_thread): Add new command "set debug aix-thread".
5863
30413464
AC
58642002-07-15 Andrew Cagney <ac131313@redhat.com>
5865
5866 From Gerhard Tonn <TON@de.ibm.com>:
5867 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5868 instead of supply_register.
5869
7c43edc1
AC
58702002-07-15 Andrew Cagney <ac131313@redhat.com>
5871
5872 * dwarf2cfi.c: Include "gdb_assert.h".
5873 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5874 non-NULL.
5875 (update_context): Do not use __func__. Add missing ``break''.
5876 (update_context): Do not use __func__.
5877
9364a0ef
EZ
58782002-07-15 Elena Zannoni <ezannoni@redhat.com>
5879
5880 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5881 and its setting. Set gdbarch instruction printing functions
5882 directly. For non-rs6000 case use new function
5883 gdb_print_insn_powerpc.
5884 (gdb_print_insn_powerpc): New function.
5885
3fbeef0b
AC
58862002-07-13 Andrew Cagney <ac131313@redhat.com>
5887
92eb23c5 5888 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5889 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5890 * configure.tgt: Mark d30v-*-* as obsolete.
5891 * d30v-tdep.c: Mark file as obsolete.
5892 * config/d30v/d30v.mt: Ditto.
5893 * config/d30v/tm-d30v.h: Ditto.
5894
aacb1f0a
AS
58952002-07-13 Aidan Skinner <aidan@velvet.net>
5896
5897 * ada-tasks.c (add_task_entry): replace calls to
5898 malloc() with xmalloc
5899 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5900
5901 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5902 ada_finish_decode_line_1, all_sals_for_line
5903 ada_breakpoint_rewrite): replace calls to free() with xfree()
5904
c11d79f2
KB
59052002-07-12 Kevin Buettner <kevinb@redhat.com>
5906
5907 From Nicholas Duffek (with minor changes by Martin Hunt,
5908 Louis Hamilton, and Kevin Buettner):
5909 * aix-thread.c: New file.
5910
8e19ed76
PS
59112002-07-12 Petr Sorfa <petrs@caldera.com>
5912
5913 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5914 complaint for invalid attribute class or form.
5915 (read_func_scope): DW_AT_frame_base
5916 better handling of DW_AT_block*.
5917 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5918 better handling of DW_AT_block*.
5919 (read_common_block): DW_AT_location
5920 better handling of DW_AT_block*.
5921 (read_partial_die): DW_AT_location better handling
5922 of DW_AT_block*.
5923 (new_symbol): DW_AT_external better handling of
5924 DW_AT_block*. Proper initialization of variable
5925 "addr".
5926 (attr_form_is_block): New function that returns true
5927 if the attribute's form is of DW_FORM_block*.
5928
295401f7
DJ
59292002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5930
5931 * valops.c (find_method_list): Remove comment about
5932 removed STATIC_MEMFUNCP argument.
5933 (value_find_oload_method_list): Likewise.
5934
e42dc924
KB
59352002-07-12 Kevin Buettner <kevinb@redhat.com>
5936
5937 From Nicholas Duffek:
5938 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5939 target_new_objfile_hook.
5940
6904b546
KB
59412002-07-12 Kevin Buettner <kevinb@redhat.com>
5942
5943 From Nicholas Duffek:
5944 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5945 csect.
5946
53fe9346
AC
59472002-07-12 Andrew Cagney <cagney@redhat.com>
5948
5949 * MAINTAINERS: Mention --enable-sim-build-warnings.
5950 (m68hc11-elf): Disable sim build warnings.
5951 (m32r-elf): Mark as broken obsolete candidate.
5952 (x86_64-linux-gnu): Mark as buildable with -Werror.
5953 (arm-elf): Change -w to ``,'' which enables warnings but not
5954 -Werror.
5955
af5f3db6
AC
59562002-07-12 Andrew Cagney <ac131313@redhat.com>
5957
5958 * bcache.h: Update copyright.
5959 (struct bstring, struct bcache): Move definition to "bcache.c".
5960 Replaced by opaque declaration.
5961 (bcache_xfree): Replace free_bcache.
5962 (bcache_xmalloc, bcache_memory_used): Declare.
5963
5964 * bcache.c: Update copyright.
5965 (struct bstring, struct bcache): Moved to here from "bcache.h".
5966 Update comments.
5967 (bcache_xmalloc, bcache_memory_used): New functions.
5968 (bcache_xfree): Replace function free_bcache.
5969
5970 * Makefile.in (objfiles.o): Add $(bcache_h).
5971 (objfiles_h): Remove $(bcache_h).
5972 (symfile.o): Add $(bcache_h).
5973
5974 * symmisc.c: Update copyright.
5975 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5976 (print_objfile_statistics): Use bcache_memory_used.
5977
5978 * symfile.c: Include "bcache.h".
5979 (reread_symbols): Use bcache_xfree.
5980 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5981 (add_psymbol_to_list): Pass psymbol_cache by value.
5982 (add_psymbol_with_dem_name_to_list): Ditto.
5983
5984 * objfiles.h: Update copyright.
5985 (struct bcache): Declare opaque. Do not include "bcache.h".
5986 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5987 bcache'' pointers.
5988 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5989
5990 * objfiles.c: Include "bcache.h". Update copyright.
5991 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5992 macro_cache.
5993 (free_objfile): Use bcache_xfree.
5994
444199e7
GS
59952002-07-11 Grace Sainsbury <graces@redhat.com>
5996
5997 * monitor.c (monitor_fetch_register): Make name a constant.
5998 (monitor_store_register): Same.
5999
261397f8
DJ
60002002-07-11 Daniel Jacobowitz <drow@mvista.com>
6001
6002 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6003 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6004 (finish_block) For non-function blocks, hash the symbol table. For
6005 function blocks, mark the symbol table as unhashed.
6006 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6007 (msymbol_hash_iw): Likewise.
6008 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6009 value.
6010 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6011 (lookup_minimal_symbol): Likewise for both.
6012 * symtab.h (struct block): Add `hashtable' flag. Comment the
6013 hashtable.
6014 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6015 (ALL_BLOCK_SYMBOLS): Update.
6016 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6017 (struct symbol): Add `hash_next' pointer.
6018 * symtab.c (lookup_block_symbol): Search using the hash table when
6019 possible.
6020 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6021 (search_symbols, find_addr_symbol): Likewise.
6022
6023 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6024 (read_dst_symtab): Likewise.
6025 * jv-lang.c (get_java_class_symtab): Likewise.
6026 * mdebugread.c: Include "gdb_assert.h".
6027 (shrink_block): Assert that the block being modified is not hashed.
6028 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6029 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6030 symbols.
6031 (dump_symtab): Recognize hashed blocks.
6032 * printcmd.c (print_frame_args): Assert that function blocks do not
6033 have hashed symbol tables.
6034 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6035 (fill_in_ada_prototype, debug_print_block): Likewise.
6036 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6037
6f0eaa01
CV
60382002-07-11 Corinna Vinschen <vinschen@redhat.com>
6039
6040 * stack.c (print_frame): Use result of frame_address_in_block()
6041 instead of fi->pc when evaluating symbols.
6042 (backtrace_command_1): Ditto.
6043
a208b0cb
AC
60442002-07-11 Andrew Cagney <cagney@redhat.com>
6045
6046 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6047 Make static.
6048
6049 * arm-tdep.c (arm_register_name): Make return type constant.
6050
a6b6b089
AC
60512002-07-10 Andrew Cagney <ac131313@redhat.com>
6052
5ae5f592
AC
6053 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6054 prototype.
6055 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6056 * s390-tdep.c (s390_fp_regnum): Ditto.
6057 (s390_read_fp): Ditto.
6058 (s390_pop_frame): Ditto.
6059 (_initialize_s390_tdep): Ditto.
6060 * remote.c (get_remote_state): Ditto.
6061 * procfs.c (mappingflags): Ditto.
6062 * memattr.c (_initialize_mem): Ditto.
6063 * mcore-tdep.c (mcore_pop_frame): Ditto.
6064 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6065 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6066 * language.c (set_case_str): Ditto.
6067 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6068 * frv-tdep.c (new_variant): Ditto.
6069 (frv_stopped_data_address): Ditto.
6070 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6071 (context_alloc): Ditto.
6072 (frame_state_alloc): Ditto.
6073 (unwind_tmp_obstack_init): Ditto.
6074 (unwind_tmp_obstack_free): Ditto.
6075 (cfi_read_fp): Ditto.
6076 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6077 (cris_pop_frame): Ditto.
6078 * c-lang.c (scanning_macro_expansion): Ditto.
6079 (finished_macro_expansion): Ditto.
6080 (c_preprocess_and_parse): Ditto.
6081 * gdbarch.sh: Ditto.
6082 * gdbarch.h, gdbarch.c: Regenerate.
6083 * config/mn10200/tm-mn10200.h: Adjust indentation.
6084 * target.c: Adjust indentation.
6085 * symtab.h: Adjust indentation.
6086 * stabsread.h: Adjust indentation.
6087 * remote-es.c: Adjust indentation.
6088 * os9kread.c: Adjust indentation.
6089
60902002-07-10 Andrew Cagney <ac131313@redhat.com>
6091
a6b6b089
AC
6092 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6093 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6094
a1789893
GS
60952002-07-10 Grace Sainsbury <graces@redhat.com>
6096
6097 * NEWS: Mention m68k, mcore multi-arching.
6098 * MAINTAINERS: Change status of m68k, mcore to reflect
6099 multi-arching.
6100
02f0d45d
DJ
61012002-07-10 Daniel Jacobowitz <drow@mvista.com>
6102
6103 * valops.c (find_overload_match): Free oload_syms.
6104
f15f768e
JB
61052002-07-09 Joel Brobecker <brobecker@gnat.com>
6106
6107 Define HAVE_SYS_PROC_H if sys/proc.h exists
6108 * configure.in: Add check for sys/proc.h
6109 * config.in: Regenerate.
6110 * configure: Regenerate.
6111
902a7139
GS
61122002-07-09 Grace Sainsbury <graces@redhat.com>
6113
6114 * config/m68k/tm-m68k.h: Remove macros wrapped in
6115 #if !GDB_MULTI_ARCH.
6116
a534e424
AC
61172002-07-08 Andrew Cagney <ac131313@redhat.com>
6118
6119 * config.in, configure: Regenerate.
6120
9b94f7bf
MK
61212002-07-08 Mark Kettenis <kettenis@gnu.org>
6122
6123 * dwarf2cfi.c: Include "gcore.h".
6124 (execute_stack_op): Fix implementation of the
6125 DW_OP_deref and DW_OP_deref_size operators by letting do their
6126 lookup in the target.
6127
1d34db41
MK
61282002-07-07 Mark Kettenis <kettenis@gnu.org>
6129
6130 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6131 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6132 tdep->sc_sp_offset.
6133
79d5b63a
DJ
61342002-07-05 Daniel Jacobowitz <drow@mvista.com>
6135
6136 Fix PR gdb/595, gdb/602
6137 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6138 Don't call value_cast, just read the vtable pointer; update comments
6139 to match.
6140
3bb912e8
GS
61412002-07-05 Grace Sainsbury <graces@redhat.com>
6142
6143 * config/mcore/tm-mcore.h: Remove file.
6144 * config/mcore/mcore.mt: Remove definition of TM_FILE
6145 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6146
ca39387d
MK
61472002-07-05 Mark Kettenis <kettenis@gnu.org>
6148
6149 * i386bsd-tdep.c: Include "gdb_string.h".
6150
efdc1108
GS
61512002-07-04 Grace Sainsbury <graces@redhat.com>
6152
6153 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6154 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6155 mcore-tdep.
6156 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6157 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6158 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6159 (RETVAL_REGNUM): Move macros from tm-mcore.h
6160 (mcore_reg_struct_has_addr): New function.
6161 (mcore_gdbarch_init): Added initializations for the macros removed
6162 from tm-mcore.h.
6163
bb21884d
MK
61642002-07-04 Mark Kettenis <kettenis@gnu.org>
6165
6166 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6167 traditonal string branding within the ELF header.
6168
228c6d41
DJ
61692002-07-04 Daniel Jacobowitz <drow@mvista.com>
6170
6171 * symtab.c (remove_params): New function.
6172 (make_symbol_overload_list): Use it instead of cplus_demangle.
6173 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6174
2404952e
MK
61752002-07-04 Mark Kettenis <kettenis@gnu.org>
6176
e5e4acad
MK
6177 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6178
baadce09
MK
6179 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6180 New variables.
6181 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6182 and tdep->sigtramp_end.
6183 * i386obsd-nat.c: New file.
6184 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6185
2404952e
MK
6186 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6187 Don't call get_current_frame().
6188
9b4f1ba7
PM
61892002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6190
6191 * i386-nat.c (child_post_startup_inferior): New function
6192 calling i386_cleanup_dregs if
6193 I386_USE_GENERIC_WATCHPOINTS is defined.
6194 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6195 conditional to acknowledge that i386-nat.c has its
6196 own child_post_startup_inferior function.
6197
c0d1d883
MK
61982002-07-04 Mark Kettenis <kettenis@gnu.org>
6199
00f8375e
MK
6200 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6201 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6202 instead of MAX_REGISTER_RAW_SIZE.
6203 (i386_extract_return_value, i386_extract_struct_value_address):
6204 Convert to use regcache.
6205 (i386_gdbarch_init): Set max_register_raw_size and
6206 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6207 Set extract_return_value and extract_struct_value_address instead
6208 of their deprecated variants.
6209
c0d1d883
MK
6210 Convert i386 target to generic dummy frames.
6211 * i386-tdep.c: Include "symfile.h".
6212 (i386_frameless_signal_p): Consider a function to be frameless if
6213 the pc points at the first instruction of the function.
6214 (i386_frame_chain): Handle (generic) call dummies.
6215 (i386_frame_saved_pc): Likewise.
6216 (i386_frame_init_saved_regs): Remove code dealing with call
6217 dummies on the stack.
6218 (i386_push_dummy_frame): Removed.
6219 (i386_call_dummy_words): Removed.
6220 (i386_fix_call_dummy): Removed.
6221 (i386_push_return_address): New function.
6222 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6223 parameter, and don't call get_current_frame.
6224 (i386_pop_frame): New function.
6225 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6226 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6227 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6228 call_dummy_length to 0, set call_dummy_words to NULL, set
6229 sizeof_call_dummy_words to 0, set fix_call_dummy to
6230 generic_fix_call_dummy, set pc_in_call_dummy to
6231 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6232 generic_push_dummy_frame, set push_return_address to
6233 i386_push_return_address and set frame_chain_valid to
6234 generic_file_frame_chain_valid.
6235
049ee0e4
AC
62362002-07-03 Andrew Cagney <ac131313@redhat.com>
6237
6238 * gdbarch.sh (struct regcache): Add opaque declaration.
6239 (EXTRACT_RETURN_VALUE): New architecture method.
6240 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6241 * gdbarch.h, gdbarch.c: Regenerate.
6242 * arch-utils.c (legacy_extract_return_value): New function.
6243 * arch-utils.h (legacy_extract_return_value): Declare.
6244 * values.c (value_being_returned): Re-enable code handling
6245 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6246 deprecated_grub_regcache_for_registers call to block handling
6247 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6248 (EXTRACT_RETURN_VALUE): Do not define.
6249
4e0d9804
GS
62502002-07-03 Grace Sainsbury <graces@redhat.com>
6251
6252 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6253 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6254 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6255 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6256 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6257 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6258 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6259 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6260 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6261 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6262 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6263 argument so the function fits the prototype in the architecture
6264 vector.
6265 (mcore_pop_frame): Remove argument so the function fits the
6266 prototype. Use get_current_frame instead of the argument.
6267 (mcore_push_arguments): Change type of struct_return so the
6268 function can be used in the architecture vector.
6269 (mcore_store_struct_return): Add.
6270 (mcore_frame_init_saved_regs): Add.
6271 (mcore_gdbarch_init): Add function calls to replace the macros
6272 removed from tm-mcore.h
6273
36160dc4
AC
62742002-07-03 Andrew Cagney <ac131313@redhat.com>
6275
6276 * infcmd.c (print_return_value): Remove compatibility code calling
6277 deprecated_grub_regcache_for_registers.
6278
6279 * values.c: Include "regcache.h".
6280 (value_being_returned): Update. Use
6281 deprecated_grub_regcache_for_registers to extract the register
6282 buffer address.
6283 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6284 ``struct regcache''.
6285 * Makefile.in (values.o): Add dependency on $(regcache_h).
6286
6287 * inferior.h (run_stack_dummy): Change type of second parameter to
6288 a ``struct regcache''.
6289 * valops.c (hand_function_call): Change type of retbuf to ``struct
6290 regcache''. Allocate using regcache_xmalloc, clean using
6291 make_cleanup_regcache_xfree.
6292 * infcmd.c (run_stack_dummy): Update. Use
6293 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6294
6295 * regcache.c (do_regcache_xfree): New function.
6296 (make_cleanup_regcache_xfree): New function.
6297 * regcache.h (make_cleanup_regcache_xfree): Declare.
6298
e64d9b3d
MH
62992002-07-03 Martin M. Hunt <hunt@redhat.com>
6300
4dd79c29
MH
6301 * event-top.c (command_line_handler): Don't read past
6302 beginning of buffer.
e64d9b3d 6303
4dd79c29
MH
63042002-07-03 Martin M. Hunt <hunt@redhat.com>
6305
e64d9b3d
MH
6306 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6307 struct frame_id.
6308 (varobj_create): Store frame_id for root.
6309 (varobj_gen_name): Use xasprintf.
6310 (varobj_update): Save and restore frame using get_frame_id() and
6311 frame_find_by_id().
6312 (create_child): Use xasprintf.
6313 (new_root_variable): Initialize frame_id.
6314 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6315 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6316 to prevent memory leak.
6317
26e6c56a
AC
63182002-07-03 Andrew Cagney <ac131313@redhat.com>
6319
6320 * valops.c (hand_function_call): Move declaration of retbuf to
6321 start of function, allocate using malloc, add a cleanup but before
6322 the inf_status cleanup, cleanup the buffer. Rename local variable
6323 old_chain to inf_status_cleanup.
6324
f436dd25
MH
63252002-07-03 Martin M. Hunt <hunt@redhat.com>
6326
6327 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6328
6329 * cli/cli-decode.c (cmd_func_p): New function.
6330 (cmd_func): New function.
6331
6332 * command.h: Add cmd_func() and cmd_func_p().
6333
4cfe2084
GS
63342002-07-03 Grace Sainsbury <graces@redhat.com>
6335
6336 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6337 (REGISTER_SIZE): Remove.
6338 (MAX_REGISTER_RAW_SIZE): Remove.
6339 (REGISTER_VIRTUAL_TYPE): Remove.
6340 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6341 (REGISTER_NAME): Remove.
6342 (USE_GENERIC_DUMMY_FRAMES): Remove.
6343 (CALL_DUMMY): Remove.
6344 (CALL_DUMMY_START_OFFSET): Remove.
6345 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6346 (CALL_DUMMY_LOCATION): Remove.
6347 (FIX_CALL_DUMMY): Remove.
6348 (CALL_DUMMY_ADDRESS): Remove.
6349 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6350 (SAVE_DUMMY_FRAME_TOS): Remove.
6351 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6352 (mcore_register_virtual_type): New function.
6353 (mcore_register_byte): New function.
6354 (mcore_register_size): New function.
6355 (mcore_register_name): New function.
6356 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6357 macros removed from tm-mcore.h.
6358 (mcore_dump_tdep): Add.
6359 (_initialize_mcore_tdep): Add gdbarch_register call.
6360
4fd667e9
MK
63612002-07-03 Mark Kettenis <kettenis@gnu.org>
6362
6363 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6364 frameless_look_for_prologue, such that we actually call this
6365 function.
6366
42f99ac2
JB
63672002-07-02 Joel Brobecker <brobecker@gnat.com>
6368
6369 * frame.h (frame_address_in_block): New function.
6370
6371 * blockframe.c (frame_address_in_block): New function extracted
6372 from get_frame_block().
6373 (get_frame_block): Use frame_address_in_block().
6374 (block_innermost_frame): Use frame_address_in_block() to match
6375 the frame pc address against the block boundaries rather than
6376 the frame pc directly. This prevents a failure when a frame pc
6377 is actually a return-address pointing immediately after the end
6378 of the given block.
6379
103a1597 63802002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6381
6382 * MAINTAINERS: Add self under write after approval.
6383
63842002-07-02 Grace Sainsbury <graces@redhat.com>
6385
103a1597
GS
6386 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6387 used in architecture vector. The default is
6388 m68k_local_breakpoint_from_pc.
6389 (m68k_local_breakpoint_from_pc): Add.
6390 (enum): Add register numbers from tm-m68k.h.
6391 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6392 vector.
6393 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6394 GDB_MULTI_ARCH_PARTIAL.
6395 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6396 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6397 m68k-tdep.c.
6398 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6399 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6400 to enum in m68k-tdep.c
6401
7a5a0534
JB
64022002-07-02 Joel Brobecker <brobecker@gnat.com>
6403
6404 * solib-osf.c (open_map): Compute the list of shared libraries
6405 loaded by the inferior, rather than the list of libraries loaded
6406 by GDB itself. Otherwise, GDB ends up reading the symbols from
6407 the wrong shared libraries...
6408
6f558d74
MK
64092002-07-02 Mark Kettenis <kettenis@gnu.org>
6410
b7d15bf7
MK
6411 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6412 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6413 macros.
6414 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6415 Remove functions.
6416 (FRAMELESS_SIGNAL): Remove function.
6417 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6418 i386_linux_saved_pc_after_call): Removed.
6419 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6420 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6421 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6422
6bff26de
MK
6423 * i386-tdep.c (i386_frameless_signal_p): New function.
6424 (i386_frame_chain): Deal with frameless signals.
6425 (i386_sigtramp_saved_sp): New function.
6426 (i386_frame_saved_pc): Deal with frameless signals.
6427 (i386_saved_pc_after_call): Make sure the correct value is
6428 returned just after entry into a sigtramp.
6429 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6430 i386fbsd4_sc_sp_offset): New variables.
6431 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6432 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6433 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6434 similiar to what we already did for sc_pc_offset.
6435 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6436 tdep->sc_sp_offset.
6437
6f558d74
MK
6438 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6439
145564b7
ML
64402002-07-02 Michal Ludvig <mludvig@suse.cz>
6441
6442 * config/i386/tm-x86-64linux.h: New.
6443 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6444 definitions.
6445 * config/i386/nm-x86-64.h: Rename to ...
6446 * config/i386/nm-x86-64linux.h: ... this one.
6447 * config/i386/x86-64linux.mh: Reflect the above change.
6448
3a1e71e3
MK
64492002-07-01 Mark Kettenis <kettenis@gnu.org>
6450
21d0e8a4
MK
6451 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6452 with sigcontext_addr. Add sc_sp_offset.
6453 (i386bsd_sigtramp_saved_pc): Remove prototype.
6454 (i386bsd_sicontext_addr): Add prototype.
6455 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6456 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6457 (i386_svr4_sigtramp_saved_pc): Removed.
6458 (i386_svr4_sigcontext_addr): New function.
6459 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6460 Initialize tdep->sigcontext_addr instead. Initialize
6461 tdep->sc_pc_offset and tdep->sc_sp_offset.
6462 (i386_gdbarch_init): Likewise.
6463 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6464 any more.
6465 (i386bsd_sigtramp_saved_pc): Remove function.
6466 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6467 Initialize tdep->sigcontext_addr instead. Initialize
6468 tdep->sc_pc_offset.
6469 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6470 of tdep->sigtramp_saved_pc.
6471 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6472 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6473 instead.
6474
3a1e71e3
MK
6475 * i386-tdep.c (i386_frameless_function_invocation,
6476 i386_frame_num_args, i386_frame_init_saved_regs,
6477 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6478 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6479 i386_extract_return_value, i386_store_return_value,
6480 i386_extract_struct_value_address, i386_register_virtual_type,
6481 i386_register_convertible, i386_register_convert_to_virtual,
6482 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6483 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6484 static.
6485
52e9098c
MK
64862002-07-01 Mark Kettenis <kettenis@gnu.org>
6487
77b13a25
MK
6488 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6489
52e9098c
MK
6490 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6491 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6492 this macro. Include "value.h".
6493
1b372fff
AS
64942002-06-30 Aidan Skinner <aidan@velvet.net>
6495
6496 * ada-exp.tab.c: remove as it's a generated file
6497 * ada-lex.c: remove as it's a generated file
6498
9c5045b5
MK
64992002-06-30 Mark Kettenis <kettenis@gnu.org>
6500
4a93c5bb
MK
6501 * config/i386/tm-i386.h (struct frame_info, struct
6502 frame_saved_regs, struct value, struct type): Remove forward
6503 declarations.
6504
322d4fe0
MK
6505 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6506 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6507 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6508 (FILL_FPXREGSET): Define.
6509
fdd8263d
MK
6510 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6511
482e577b
MK
6512 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6513 i[3456]86-*-netbsd* case.
6514 * config/i386/tm-obsd.h: Removed.
6515 * config/i386/obsd.mt: Removed.
6516 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6517 core-aout.o.
6518 (MH_CFLAGS): Add -DYYDEBUG=0.
6519
6916549a
MK
6520 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6521 i386nbsd_sc_pc_offset on OpenBSD too.
6522
9c5045b5
MK
6523 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6524 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6525 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6526 define.
6527 * i386bsd-tdep.c: Include "arch-utils.h".
6528 (i386bsd_aout_in_solib_call_trampoline): New function.
6529 (i386bsd_init_abi): Set in_solib_call_trampoline to
6530 i386bsd_aout_in_solib_call_trampoline.
6531 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6532 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6533
aa84d1bb
AC
65342002-06-28 Andrew Cagney <ac131313@redhat.com>
6535
6536 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6537 (struct obstack, struct bcache): Add opaque declarations.
6538 * Makefile.in (macrotab_h): Update
6539
b4d83933
AC
65402002-06-28 Andrew Cagney <ac131313@redhat.com>
6541
6542 * blockframe.c (generic_find_dummy_frame): Change return type to
6543 ``struct regcache''.
6544 (struct dummy_frame): Replace field ``registers'' with regcache, a
6545 struct regcache object.
6546 (generic_find_dummy_frame): Update.
6547 (generic_push_dummy_frame): Update. Use regcache_xfree,
6548 regcache_xmalloc and regcache_cpy.
6549 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6550 regcache_xfree.
6551 (deprecated_generic_find_dummy_frame): Update.
6552 (generic_read_register_dummy): Update. Use
6553 regcache_read_as_address.
6554 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6555 (generic_get_saved_register): Update. Use regcache_read.
6556
08c0b5bc
AC
65572002-06-28 Andrew Cagney <ac131313@redhat.com>
6558
6559 * Makefile.in (objfiles_h): Add $(bcache_h).
6560 * objfiles.h: Include "bcache.h".
6561
6562 * Makefile.in (symtab_h): Remove $(bcache_h).
6563 * symtab.h: Do not include "bcache.h".
6564
1f89801a
AC
65652002-06-28 Andrew Cagney <ac131313@redhat.com>
6566
6567 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6568 generic_func_frame_chain_valid.
6569
b9644b58
DB
65702002-06-28 David O'Brien <obrien@FreeBSD.org>
6571
6572 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6573 * config/i386/tm-fbsd.h: Likewise.
6574
dd486634
AC
65752002-06-28 Andrew Cagney <ac131313@redhat.com>
6576
6577 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6578 generic_unwind_get_saved_register.
6579
0b434a00
AC
65802002-06-27 Andrew Cagney <ac131313@redhat.com>
6581
6582 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6583 * regcache.c (supply_register): Add missing argument to
6584 register_buffer call.
6585
f30e5a77
AC
65862002-06-27 Andrew Cagney <ac131313@redhat.com>
6587
6588 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6589 Solaris /bin/grep does not not like it. From Peter Schauer.
6590
9f064c95
TT
65912002-06-26 Tom Tromey <tromey@redhat.com>
6592
6593 * command.h (add_setshow_cmd): Declare.
6594 (add_setshow_cmd_full): Declare.
6595 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6596 returns void. Use add_setshow_cmd_full.
6597 (add_setshow_cmd_full): New function.
6598 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6599 (add_setshow_boolean_cmd): Likewise.
6600
099c7589
JT
66012002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6602
6603 * config/vax/tm-vax.h: Protect from multiple inclusion.
6604 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6605 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6606 * config/vax/tm-vaxbsd.h: ...here. New file.
6607 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6608
1d049c5e
JT
66092002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6610
6611 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6612 (BELIEVE_PCC_PROMOTION): Remove.
6613 (AP_REGNUM): Move to...
6614 * config/vax/nm-vax.h: ...here.
6615 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6616 (vax_breakpoint_from_pc): New function.
6617 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6618 and gdbarch_believe_pcc_promotion.
6619
4791e091
JT
66202002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6621
6622 * Makefile.in (vax_tdep_h): Define.
6623 (vax-tdep.o): Use $(vax_tdep_h).
6624 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6625 (vax_dump_tdep): New function.
6626 (_initialize_vax_tdep): Register vax_dump_tdep.
6627 * vax-tdep.h: Include osabi.h.
6628 (struct gdbarch_tdep): New.
6629
da130f98
AC
66302002-06-26 Andrew Cagney <cagney@redhat.com>
6631
6632 * frame.h (deprecated_generic_find_dummy_frame): Rename
6633 generic_find_dummy_frame.
6634 * blockframe.c (generic_find_dummy_frame): Make static.
6635 (deprecated_generic_find_dummy_frame): New function.
6636 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6637 generic_find_dummy_frame with deprecated_find_dummy_frame.
6638 (sh64_nofp_frame_init_saved_regs): Ditto.
6639 (sh_fp_frame_init_saved_regs): Ditto.
6640 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6641 (s390_frame_chain): Ditto.
6642 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6643
6300c360
GS
66442002-06-26 Grace Sainsbury <graces@redhat.com>
6645
6646 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6647 gdbarch vector are at the top.
6648 (NUM_REGS): Remove.
6649 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6650 (FRAME_ARGS_ADDRESS): Remove.
6651 (FRAME_LOCALS_ADDRESS): Remove.
6652 (FRAME_NUM_ARGS): Remove.
6653 (FRAME_ARGS_SKIP): Remove.
6654 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6655 (m68k_gdbarch_init): Add gdbarch initializations for macros
6656 undefined in tm-m68k.h
6657
1c617db8
GS
66582002-06-26 Grace Sainsbury <graces@redhat.com>
6659
6660 * monitor.h: Add the function regname to monitor_ops
6661 structure. This way NUM_REGS does not have to be a constant.
6662 * monitor.c (monitor_fetch_register): Added support for regname
6663 function. The function is called if the array regnames is NULL.
6664 (monitor_store_register): Same.
da130f98
AC
6665 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6666 regnames array.
1c617db8
GS
6667 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6668 cpu32bug_cmds.regname to point to new function.
6669 * abug-rom.c (abug_regname): Same as above.
6670 (init_abug_cmds): Same.
6671 * dbug-rom.c (dbug_regname): Same as above.
6672 (init_dbug_cmds): Same.
6673 * remote-est.c (est_regname): Same.
6674 (init_est_cmds): Same.
6675 * rom68k-rom.c (rom68k_regname): Same.
6676 (init_rom68k_cmds): Same.
6677
ea9365bb
TT
66782002-06-25 Tom Tromey <tromey@redhat.com>
6679
6680 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6681
72cec141
AC
66822002-06-25 Andrew Cagney <cagney@redhat.com>
6683
6684 * infrun.c (stop_registers): Change variable's type to ``struct
6685 regcache'''.
6686 (xmalloc_inferior_status): Delete function.
6687 (free_inferior_status): Delete function.
6688 (normal_stop): Use regcache_cpy.
6689 (struct inferior_status): Change type of fields ``stop_registers''
6690 and ``registers'' to ``struct regcache''.
6691 (write_inferior_status_register): Use regcache_write.
6692 (save_inferior_status): Instead of calling
6693 xmalloc_inferior_status, allocate the inf_status buffer directly.
6694 Use regcache_dup_no_passthrough and regcache_dup to save the
6695 buffers.
6696 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6697 Replace the stop_registers regcache instead of overriding it. Use
6698 regcache_xfree. Instead of calling free_inferior_status, xfree
6699 the buffer directly.
6700 (discard_inferior_status): Use regcache_xfree. Instead of calling
6701 free_inferior_status, xfree the buffer directly.
6702 (build_infrun): Use regcache_xmalloc.
6703 (_initialize_infrun): Delete redundant call to build_infrun.
6704
6705 * Makefile.in (infcmd.o): Add $(regcache_h).
6706
6707 * infcmd.c: Include "regcache.h".
6708 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6709 obtain the address of `stop_registers' register buffer.
6710 (print_return_value): Ditto.
6711
6712 * inferior.h (struct regcache): Add opaque declaration.
6713 (stop_registers): Change variable's declared type to ``struct
6714 regcache''.
6715
defc6f8c
TT
67162002-06-24 Tom Tromey <tromey@redhat.com>
6717
c0e624e7
TT
6718 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6719 * target.c (initialize_targets): Fixed typo in
6720 trust-readonly-sections `show' documentation.
6721
defc6f8c
TT
6722 * main.c: Marked all strings with _().
6723
2b236d82
DH
67242002-06-24 Don Howard <dhoward@redhat.com>
6725
6726 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6727 that means max CORE_ADDR+1.
6728 (lookup_mem_region): Ditto.
6729 (mem_info_command): Ditto.
6730
942dc0e9
GS
67312002-06-24 Grace Sainsbury <graces@redhat.com>
6732
6733 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6734 (REGISTER_BYTES_OK): Remove.
6735 (REGISTER_BYTES): Remove.
6736 (STORE_STRUCT_RETURN): Remove.
6737 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6738 (STORE_RETURN_VALUE): Remove.
6739 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6740 (FRAME_CHAIN): Remove.
6741 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6742 (FRAME_SAVED_PC): Remove.
6743 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6744 (m68k_store_struct_return): Add.
6745 (m68k_deprecated_extract_return_value): Add.
6746 (m68k_deprecated_extract_struct_value_address): Add.
6747 (m68k_store_return_value): Add.
6748 (m68k_frame_chain): Add.
6749 (m68k_frameless_function_invocation): Add.
6750 (m68k_frame_saved_pc): Add.
6751 (m68k_gdbarch_init): added set_gdbarch calls for new
6752 functions and deleted macros.
6753
03c30d4d
TT
67542002-06-23 Tom Tromey <tromey@redhat.com>
6755
6756 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6757 (ALLDEPFILES): Likewise.
6758 (udiheaders): Removed.
6759 (udip2soc.o): Likewise.
6760 (udi2go32.o): Likewise.
6761 (udr.o): Likewise.
6762 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6763
37e71372
AC
67642002-06-22 Andrew Cagney <ac131313@redhat.com>
6765
06a6ac57
AC
6766 * infrun.c (_initialize_infrun): Delete unnecessary call to
6767 build_infrun.
6768
37e71372
AC
6769 * regcache.h: Update comments describing the regcache_cpy family
6770 of functions.
6771 (regcache_save, regcache_restore): Delete declaration.
6772 (regcache_save_no_passthrough): Delete declaration.
6773 (regcache_restore_no_passthrough): Delete declaration.
6774 * regcache.c (regcache_save): Delete function.
6775 (regcache_save_no_passthrough): Delete function.
6776 (regcache_restore): Delete function.
6777 (regcache_restore_no_passthrough): Delete function.
6778
78f6d055
AC
67792002-06-21 Andrew Cagney <ac131313@redhat.com>
6780
6781 * config/m68k/tm-m68k.h: Fix typo.
6782 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6783 (m68k_frame_init_saved_regs): Declare.
6784
78b119cb
JB
67852002-06-21 Jim Blandy <jimb@redhat.com>
6786
6787 Remove some vestiges of Harris 88k support.
6788 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6789 register numbering quirk.
6790 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6791 odd symbols occurring in Harris 88k ELF targets.
6792
0fbb3da7
TT
67932002-06-21 Tom Tromey <tromey@redhat.com>
6794
6795 * gdb_locale.h: New file.
6796 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6797 (defs_h): Added gdb_locale.h.
6798 * configure, config.in: Rebuilt.
6799 * configure.in (PACKAGE): Define.
6800 * defs.h: Include gdb_locale.h.
6801 * main.c (captured_main): Call setlocale, bindtextdomain,
6802 textdomain.
6803
456f8b9d
DB
68042002-06-21 Dave Brolley <brolley@redhat.com>
6805
6806 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6807 * config/frv/frv.mt: New file.
6808 * config/frv/tm-frv.h: New file.
6809 * configure.tgt: Support frv-*-*.
6810 * Makefile.in (frv-tdep.o): New target.
6811 * frv-tdep.c: New file.
6812 * NEWS: Mention frv.
6813
cdd463f9
DB
68142002-06-21 Dave Brolley <brolley@redhat.com>
6815
6816 * MAINTAINERS: Add self to "Write After Approval" list.
6817
5d3ed2e3
GS
68182002-06-21 Grace Sainsbury <graces@redhat.com>
6819
6820 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6821 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6822 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6823 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6824 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6825
6826 * m68k-tdep.c: Include arch-utils.h
6827 (m68k_register_raw_size): Add.
6828 (m68k_register_virtual_size): Add.
6829 (m68k_register_virtual_type): Add.
6830 (m68k_register_name): Add.
6831 (m68k_stack_align): Add.
6832 (m68k_register_byte): Add.
6833 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6834 tm-m68k.h.
6835
7f8e7424
GS
68362002-06-21 Grace Sainsbury <graces@redhat.com>
6837
a2c6a6d5 6838 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6839 m68k_find_saved_regs.
6840 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6841 references to it with frame->saved_regs.
7f8e7424
GS
6842 (m68k_gdbarch_init): Added function calls to initialize the
6843 gdbarch structure.
a2c6a6d5
GS
6844 (m68k_fix_call_dummy): Add.
6845 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6846 (CALL_DUMMY): Remove.
6847 (CALL_DUMMY_LENGTH): Remove.
6848 (CALL_DUMMY_START_OFFSET): Remove.
6849 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6850 (FIX_CALL_DUMMY): Remove.
6851 (PUSH_DUMMY_FRAME): Remove.
6852 (POP_FRAME): Remove.
7f8e7424 6853
f461f5cf
PM
68542002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6855
6856 * parse.c (parse_fprintf): New function used to avoid calls to
6857 fprintf in bison parser generated debug code.
6858 * parser-defs.h: Declaration of new parse_fprintf function.
6859 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6860 Set YYDEBUG to 1 by default.
6861 Set YYFPRINTF as parse_fprintf.
6862
7f0c12ed
ML
68632002-06-21 Michal Ludvig <mludvig@suse.cz>
6864
6865 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6866 encoding anymore.
6867 (pointer_encoding, enum ptr_encoding): New.
6868 (execute_cfa_program): Take care about pointer encoding.
6869 (dwarf2_build_frame_info): Only call parse_frame_info for
6870 .debug_frame and .eh_frame.
6871 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6872 fixed augmentation handling, added relative addressing,
6873 ignore duplicate FDEs. Added comments.
19d833a2 6874 * dwarf2cfi.c: Reindented.
7f0c12ed 6875
87c4a039
EZ
68762002-06-20 Elena Zannoni <ezannoni@redhat.com>
6877
6878 * event-top.c (command_handler): Don't use space_at_cmd_start
6879 unless there is sbrk() on the host. Assign time and space data
6880 to union fields of the appropriate length.
6881
1cf877ad
ML
68822002-06-20 Michal Ludvig <mludvig@suse.cz>
6883
6884 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6885 x86_64_register_name. Return type changed to 'const char *'.
6886 (x86_64_register_name2nr): Rename to x86_64_register_number.
6887 (x86_64_gdbarch_init): Update to reflect the change.
6888 * x86-64-tdep.h: Ditto.
6889 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6890 (supply_fpregset): Ditto.
6891
3fadccb3
AC
68922002-06-19 Andrew Cagney <cagney@redhat.com>
6893
6894 * regcache.h: Update copyright.
6895 (struct regcache, struct gdbarch): Add opaque declarations.
6896 (current_regcache): Declare global variable.
6897 (regcache_read, regcache_write): Add gdbarch parameter.
6898 (regcache_save, regcache_save_no_passthrough)
6899 (regcache_restore, regcache_restore_no_passthrough)
6900 (regcache_dup, regcache_dup_no_passthrough)
6901 (regcache_cpy, regcache_cpy_no_passthrough)
6902 (deprecated_grub_regcache_for_registers)
6903 (deprecated_grub_regcache_for_register_valid)
6904 (regcache_valid_p): Add function declarations.
6905
6906 * regcache.c: Update copyright.
6907 (regcache_descr_handle): New global variable.
6908 (struct regcache_descr): Define.
6909 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6910 (regcache_descr, xfree_regcache_descr): New functions.
6911 (struct regcache): Define.
6912 (regcache_xmalloc, regcache_xfree): New functions.
6913 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6914 (regcache_dup, regcache_dup_no_passthrough): New functions.
6915 (regcache_valid_p, regcache_read_as_address): New functions.
6916 (deprecated_grub_regcache_for_registers): New function.
6917 (deprecated_grub_regcache_for_register_valid): New function.
6918 (current_regcache): New global variable.
6919 (register_buffer): Add regcache parameter. Update calls.
6920 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6921 (read_register_gen, write_register_gen): Update register_buffer
6922 call. Test for legacy_p instead of gdbarch_register_read_p or
6923 gdbarch_register_write_p.
6924 (regcache_collect): Update register_buffer call.
6925 (build_regcache): Rewrite. Use deprecated grub functions.
6926 (regcache_save, regcache_save_no_passthrough): New functions.
6927 (regcache_restore, regcache_restore_no_passthrough): New
6928 functions.
6929 (_initialize_regcache): Create the regcache_data_handle. Swap
6930 current_regcache global variable.
6931
6932 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6933 parameter to regcache_read and regcache_write calls.
6934 (sh4_register_read): Ditto.
6935 (sh64_pseudo_register_read): Ditto.
6936 (sh64_register_read): Ditto.
6937 (sh_pseudo_register_write): Ditto.
6938 (sh4_register_write): Ditto.
6939 (sh64_pseudo_register_write): Ditto.
6940 (sh64_register_write): Ditto.
6941
6942 * defs.h (XCALLOC): Define.
6943
152d9db6
GS
69442002-06-19 Grace Sainsbury <graces@redhat.com>
6945
6946 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6947 * m68k-tdep.c (m68k_gdbarch_init): Added.
6948 (m68k_dump_tdep): Added.
6949
170911c7
DJ
69502002-06-19 Daniel Jacobowitz <drow@mvista.com>
6951
6952 * ada-lang.c (fill_in_ada_prototype): Update comment.
6953
2e4ebe70
DJ
69542002-06-19 Daniel Jacobowitz <drow@mvista.com>
6955
6956 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6957 MIPS_ABI_LAST.
6958 (mips_abi_string, mips_abi_strings): New.
6959 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6960 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6961 tdep->mips_abi_string. Honor mips_abi_string. Default to
6962 O32 if no ABI is found.
6963 (mips_dump_tdep): Use mips_abi_strings.
6964 (mips_abi_update): New function.
6965 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6966 ``set mips abi'' and ``show mips abi''. Check the size of
6967 mips_abi_strings.
6968
16775908
AC
69692002-06-19 Andrew Cagney <cagney@redhat.com>
6970
6971 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6972 constant.
6973
5051bfa4 69742002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6975
5051bfa4
JB
6976 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6977 current frame using only the first stack size adjustment. All
6978 subsequent size adjustments are not considered to be part of
6979 the "static" part of the current frame.
6980 Compute the address of the saved registers relative to the
6981 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6982 in use in this frame.
6983
56468235
DH
69842002-06-18 Don Howard <dhoward@redhat.com>
6985
6986 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6987 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6988 suggesting this solution.
6989
0b624158
AC
69902002-06-18 Andrew Cagney <ac131313@redhat.com>
6991
6992 * config/romp/xm-rtbsd.h: Delete file.
6993 * config/romp/rtbsd.mh: Delete file.
6994
221ea385
KS
69952002-06-18 Keith Seitz <keiths@redhat.com>
6996
6997 * breakpoint.c (condition_command): Post breakpoint_modify
6998 when a condition is added to an existing breakpoint.
6999 (commands_command): Likewise for commands.
7000 (set_ignore_count): Likewise for ignore counts.
7001 If no tty, do not simply return, still need to send event
7002 notification.
7003 (ignore_command): Only print a newline if the command came
7004 from a tty.
7005 Don't call breakpoints_changed, since this is now properly
7006 handled by set_ignore_count.
7007
5402eed1
AC
70082002-06-18 Andrew Cagney <cagney@redhat.com>
7009
7010 * MAINTAINERS: Note that cris-elf target can be compiled with
7011 -Werror.
7012 * cris-tdep.c (cris_register_name): Make return type constant.
7013 (cris_breakpoint_from_pc): Ditto.
7014
cc22880b
ML
70152002-06-18 Michal Ludvig <mludvig@suse.cz>
7016
7017 * frame.h (struct frame_info): Change type of context to
7018 'struct context'.
7019
fa88f677
AC
70202002-06-17 Andrew Cagney <cagney@redhat.com>
7021
7022 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7023 pointer.
7024 * gdbarch.h, gdbarch.c: Regenerate.
7025 * config/mips/tm-mips.h (mips_register_name): Update.
7026 * i386-tdep.h (i386_register_name): Update.
7027 * mips-tdep.c (mips_register_name): Update
7028 * alpha-tdep.c (alpha_register_name): Update.
7029 * arch-utils.c (legacy_register_name): Update.
7030 * arch-utils.h (legacy_register_name): Update.
7031 * avr-tdep.c (avr_register_name): Update.
7032 * ia64-tdep.c (ia64_register_name): Update.
7033 * i386-tdep.c (i386_register_name): Update.
7034 * sparc-tdep.c (sparc32_register_name): Update.
7035 (sparc64_register_name): Update.
7036 (sparclite_register_name): Update.
7037 (sparclet_register_name): Update.
7038 * sh-tdep.c (sh_generic_register_name): Update.
7039 (sh_sh_register_name): Update.
7040 (sh_sh3_register_name): Update.
7041 (sh_sh3e_register_name): Update.
7042 (sh_sh_dsp_register_name): Update.
7043 (sh_sh3_dsp_register_name): Update.
7044 (sh_sh4_register_name): Update.
7045 (sh_sh64_register_name): Update.
7046 * s390-tdep.c (s390_register_name): Update.
7047 * rs6000-tdep.c (rs6000_register_name): Update.
7048 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7049 (ns32k_register_name_32382): Update.
7050 * d10v-tdep.c (d10v_ts2_register_name): Update.
7051 (d10v_ts3_register_name): Update.
7052 * xstormy16-tdep.c (xstormy16_register_name): Update.
7053 * vax-tdep.c (vax_register_name): Update.
7054 * v850-tdep.c (v850_register_name): Update.
7055 * m68hc11-tdep.c (m68hc11_register_name): Update.
7056 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7057 (am33_register_name): Update.
7058
ea1e7ef6
GS
70592002-06-17 Grace Sainsbury <graces@redhat.com>
7060
7061 * m68k-tdep.c: Reindented.
7062
9b02dd1b
AC
70632002-06-17 Andrew Cagney <ac131313@redhat.com>
7064
7065 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7066 list of predefined types.
7067
8758dec1
MK
70682002-06-16 Mark Kettenis <kettenis@gnu.org>
7069
b6197528
MK
7070 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7071 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7072 REGISTER_CONVERT_TO_RAW): Remove defines.
7073 (i386_register_virtual_type, i386_register_convertible,
7074 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7075 Remove prototypes.
7076 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7077 macros mentioned above.
7078
82b47e62
MK
7079 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7080 (i386lynx_saved_pc_after_call): Remove prototype.
7081 * i386ly-tdep.c: Include "i386-tdep.h".
7082 (i386lynx_saved_pc_after_call): Make static. Use
7083 read_memory_nobpt instead of read_memory. Use
7084 read_memory_unsigned_integer instead of read_memory_integer.
7085 (i386lynx_init_abi): New function.
7086 (i386lynx_coff_osabi_sniffer): New function.
7087 (_initialize_i386bsd_tdep): New function.
7088
8758dec1
MK
7089 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7090 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7091 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7092 (i386_fix_call_dummy): Remove prototype.
7093 * i386-tdep.c (i386_call_dummy_words): New variable.
7094 (i386_gdbarch_init): Adjust for removal of the
7095 macros mentioned above.
7096
e9e68a56
AC
70972002-06-15 Andrew Cagney <ac131313@redhat.com>
7098
7099 * command.h (add_setshow_auto_boolean_cmd): Replace
7100 add_set_auto_boolean_cmd.
7101 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7102 add_set_auto_boolean_cmd.
7103 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7104 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7105 mask-address'' command.
7106 (show_mask_address): Add cmd parameter.
7107 * remote.c (add_packet_config_cmd): Update. Change type of
7108 set_func and show_func to cmd_sfunc_ftype.
7109 (_initialize_remote): Update `set remote Z-packet'
7110 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7111 (show_remote_protocol_e_packet_cmd): Ditto.
7112 (show_remote_protocol_E_packet_cmd): Ditto.
7113 (show_remote_protocol_P_packet_cmd): Ditto.
7114 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7115 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7116 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7117 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7118 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7119 (show_remote_protocol_Z_packet_cmd): Ditto.
7120 (show_remote_protocol_binary_download_cmd): Ditto.
7121 (show_remote_cmd): Pass NULL to all of above.
7122
fc08ec52
MK
71232002-06-15 Mark Kettenis <kettenis@gnu.org>
7124
7125 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7126 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7127 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7128 POP_FRAME): Remove defines.
7129 (i386_push_arguments, i386_store_struct_return,
7130 i386_extract_return_value, i386_store_return_value,
7131 i386_extract_struct_value_address, i386_push_dummy_frame,
7132 i386_pop_frame): Renove prototypes.
7133 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7134 macros mentioned above.
7135
e707bbc2
AC
71362002-06-15 Andrew Cagney <ac131313@redhat.com>
7137
7138 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7139 add_set_boolean_cmd.
7140 (add_setshow_cmd): New function.
7141 * command.h (add_setshow_boolean_cmd): Replace
7142 add_set_boolean_cmd.
7143 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7144 and ``set rdiromatzero''.
7145 * maint.c (_initialize_maint_cmds): Update commented out code.
7146 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7147 * target.c (initialize_targets): Update `set
7148 trust-readonly-sections'.
7149 * remote.c (_initialize_remote): Update `set remotebreak'.
7150
42fdc8df
MK
71512002-06-15 Mark Kettenis <kettenis@gnu.org>
7152
93924b6b
MK
7153 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7154 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7155 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7156 fit into multi-arch framework.
7157 (i386_breakpoint_from_pc): New function.
7158 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7159 above.
7160
42fdc8df
MK
7161 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7162 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7163 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7164 (i386_frameless_function_invocation, i386_frame_num_args,
7165 i386_frame_init_saved_regs): Remove prototypes.
7166 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7167 macros mentioned above.
7168
9773a94b
AC
71692002-06-15 Andrew Cagney <ac131313@redhat.com>
7170
7171 * cli/cli-decode.c (set_cmd_cfunc): Update.
7172 (set_cmd_sfunc): Update.
7173 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7174 (set_cmd_sfunc, set_cmd_cfunc): Update.
7175 * cli/cli-decode.h: Update.
7176
6e157172
MK
71772002-06-15 Mark Kettenis <kettenis@gnu.org>
7178
7179 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7180 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7181
7f19b9a2
AC
71822002-06-15 Andrew Cagney <ac131313@redhat.com>
7183
7184 * defs.h (auto_boolean): Declare enum.
7185 * command.h (cmd_auto_boolean): Delete enum.
7186 * mips-tdep.c (mask_address_var): Update.
7187 (mips_mask_address_p): Update.
7188 (show_mask_address): Update.
7189 * remote.c (struct packet_config): Update.
7190 (update_packet_config): Update.
7191 (show_packet_config_cmd): Update.
7192 (packet_ok): Update.
7193 (add_packet_config_cmd): Update.
7194 (_initialize_remote):
7195 * command.h: Update.
7196 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7197 (do_setshow_command): Update.
7198 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7199 * cli/cli-decode.h: Update.
7200
1cf88de5
MK
72012002-06-15 Mark Kettenis <kettenis@gnu.org>
7202
22ba8cf2
MK
7203 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7204 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7205 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7206 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7207 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7208 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7209
762c5349
MK
7210 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7211 list of DJGPP COFF targets.
7212
091198bb
MK
7213 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7214 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7215 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7216 (FP0_REGNUM): Remove define.
7217 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7218 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7219 (i386_register_virtual_size): Remove protoype.
7220 * i386-tdep.c (i386_register_virtual_size): Removed.
7221 (i386_extract_return_value, i386_store_return_value): Use
7222 FP0_REGNUM instead of NUM_FREGS to determine whether the
7223 floating-point registers are available.
7224 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7225 Adjust for removal of macros mentioned above.
7226
72272002-06-15 Mark Kettenis <kettenis@gnu.org>
7228
fcc9bf01
MK
7229 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7230 comments.
7231 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7232 Remove prototypes.
7233 (supply_gregset, fill_gregset): Remove use of register keyword and
7234 remove declaration for regmap. Use I386_NUM_GREGS instead of
7235 NUM_REGS and NUM_FREGS.
7236 (FPREGSET_FSAVE_OFFSET): Remove.
7237 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7238 NUM_FREGS to determine whether the floating-point registers are
7239 available.
7240
65e78234
MK
7241 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7242 gnu_store_registers): Replace usage of NUM_GREGS with
7243 I386_NUM_GREGS.
7244
98df6387
MK
7245 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7246 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7247 usage of NUM_GREGS with I386_NUM_GREGS.
7248
099a9414
MK
7249 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7250
57976e88
MK
7251 * i386bsd-nat.c: Include "i386-tdep.h".
7252 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7253 I386_NUM_GREGS.
7254
b335f4a6
MK
7255 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7256 and associated comment. They no longer make any sense, since we
7257 don't use this file anymore on Linux.
7258
1cf88de5
MK
7259 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7260 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7261 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7262 elements in these arrays.
7263 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7264 MAX_NUM_REGS.
7265
daa66587
MK
72662002-06-15 Mark Kettenis <kettenis@gnu.org>
7267
7268 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7269 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7270
26e9b323
AC
72712002-06-14 Andrew Cagney <cagney@redhat.com>
7272
7273 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7274 EXTRACT_RETURN_VALUE.
7275 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7276 EXTRACT_STRUCT_VALUE_ADDRESS.
7277 * gdbarch.h, gdbarch.c: Regenerate.
7278
7279 * values.c (value_being_returned): Handle
7280 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7281 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7282
7283 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7284 * arm-tdep.c (arm_gdbarch_init): Update.
7285 * avr-tdep.c (avr_gdbarch_init): Update.
7286 * cris-tdep.c (cris_gdbarch_init): Update.
7287 * d10v-tdep.c (d10v_gdbarch_init): Update.
7288 * ia64-tdep.c (ia64_gdbarch_init): Update.
7289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7290 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7291 * s390-tdep.c (s390_gdbarch_init): Update.
7292 * sh-tdep.c (sh_gdbarch_init): Update.
7293 * s390-tdep.c (s390_gdbarch_init): Update.
7294 * sparc-tdep.c (sparc_gdbarch_init): Update.
7295 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7296 * v850-tdep.c (v850_gdbarch_init): Update.
7297 * vax-tdep.c (vax_gdbarch_init): Update.
7298 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7300
7301 * config/arc/tm-arc.h: Update.
7302 * config/d30v/tm-d30v.h: Update.
7303 * config/fr30/tm-fr30.h: Update.
7304 * config/h8300/tm-h8300.h: Update.
7305 * config/h8500/tm-h8500.h: Update.
7306 * config/i386/tm-i386.h: Update.
7307 * config/i386/tm-ptx.h: Update.
7308 * config/i386/tm-symmetry.h: Update.
7309 * config/i960/tm-i960.h: Update.
7310 * config/m32r/tm-m32r.h: Update.
7311 * config/m68k/tm-delta68.h: Update.
7312 * config/m68k/tm-linux.h: Update.
7313 * config/m68k/tm-m68k.h: Update.
7314 * config/m88k/tm-m88k.h: Update.
7315 * config/mcore/tm-mcore.h: Update.
7316 * config/mips/tm-mips.h: Update.
7317 * config/mn10200/tm-mn10200.h: Update.
7318 * config/pa/tm-hppa.h: Update.
7319 * config/pa/tm-hppa64.h: Update.
7320 * config/sparc/tm-sp64.h: Update.
7321 * config/sparc/tm-sparc.h: Update.
7322 * config/sparc/tm-sparclet.h: Update.
7323 * config/z8k/tm-z8k.h: Update.
7324
5179e78f
AC
73252002-06-14 Andrew Cagney <cagney@redhat.com>
7326
7327 * Makefile.in (i386_linux_tdep_h): Define.
7328 (i386_tdep_h, i387_tdep_h): Define.
7329 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7330 $(i386_tdep_h) and $(i387_tdep_h).
7331 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7332
8201327c
MK
73332002-06-14 Mark Kettenis <kettenis@gnu.org>
7334
edf393ac
MK
7335 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7336 Already covered by the default.
7337
896fb97d
MK
7338 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7339 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7340 (i386_gdbarch_init): Initialize long_double_format and long_double
7341 bit.
7342
8201327c
MK
7343 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7344 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7345 Move these to ...
7346 * config/i386/i386sol2.mh: ... here.
7347 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7348 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7349 (SIGCONTEXT_PC_OFFSET): Remove define.
7350 (IN_SIGTRAMP): Remove define.
7351 * i386-sol2-tdep.c: New file.
7352
7353 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7354 * config/i386/tm-i386nw.h: Removed.
7355
7356 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7357 USE_STRUCT_CONVENTION): Remove defines.
7358 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7359 (get_longjmp_target): Remove prototype.
7360 (IN_SIGTRAMP): Remove define.
7361 (i386bsd_in_sigtramp): Remove prototype.
7362 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7363 function. Update comment accordingly
7364 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7365 (FRAME_SAVED_PC): Remove define.
7366 (i386bsd_frame_saved_pc): Remove prototype.
7367 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7368 GET_LONGJMP_TARGET): Remove defines.
7369 (get_longjmp_target): Remove prototype.
7370 (IN_SIGTRAMP): Remove define.
7371 (i386bsd_in_sigtramp): Remove prototype.
7372 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7373 function. Update comment accordingly
7374 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7375 (FRAME_SAVED_PC): Remove define.
7376 (i386bsd_frame_saved_pc): Remove prototype.
7377 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7378 Remove prototype.
7379 (USE_STRUCT_CONVENTION): Remove prototype.
7380 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7381 declaration.
7382 (_initialize_i386bsd_nat): Revise logic to determine some
7383 constants at compile time when compiling a native GDB. Warn if
7384 things don't match up with what we expect.
7385 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7386 Remove variables.
7387 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7388 to use date stored in `struct gdbarch_tdep'.
7389 (i386bsd_sigcontext_offset): Remove varaible.
7390 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7391 stored in `struct gdbarch_tdep'.
7392 (i386bsd_frame_saved_pc): Make static.
7393 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7394 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7395 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7396 i386fbsd4_sc_pc_offset): New variables.
7397 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7398 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7399 functions.
7400 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7401 functions.
7402 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7403 Modify the value of i386fbsd_sigtramp_start and
7404 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7405 i386fbsd_sigtramp_end.
7406 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7407 function.
7408
7409 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7410 define to i386-linux-tdep.h.
7411 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7412 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7413 defines.
7414 (i386_linux_register_name, i386_linux_register_byte,
7415 i386_linux_register_raw_size): Remove prototypes.
7416 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7417 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7418 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7419 TARGET_WRITE_PC): Remove defines.
7420 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7421 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7422 i386_linux_write_pc): Remove prototypes.
7423 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7424 (get_longjmp_target): Remove prototype.
7425 * i386-linux-tdep.h: New file.
7426 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7427 * i386-linux-tdep.c: Include "i386-tdep.h" and
7428 "i386-linux-tdep.h".
7429 (i386_linux_register_name, i386_linux_register_byte,
7430 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7431 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7432 Make static.
7433 (i386_linux_init_abi): New function.
7434 (_initialize_i386_linux_tdep): New function.
7435
7436 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7437 (i386_saved_pc_after_call): Remove prototype.
7438 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7439 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7440 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7441 (i386_register_name, i386_stab_reg_to_regnum,
7442 i386_dwarf_reg_to_regnum): Remove prototypes.
7443 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7444 SIZEOF_SSE_REGS): Remove defines.
7445 (REGISTER_BYTES): Remove define.
7446 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7447 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7448 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7449 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7450 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7451 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7452 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7453 (get_longjmp_target): Remove prototype.
7454 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7455 (sigtramp_saved_pc): Remove define.
7456 (i386v4_sigtramp_saved_pc): Remove prototype.
7457 * config/i386/tm-go32.h (FRAME_CHAIN,
7458 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7459 (i386go32_frame_saved_pc): Remove prototype.
7460 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7461 (get_longjmp_target): Remove prototype.
7462 * i386-tdep.h: Include "osabi.h".
7463 (enum i386_abi): Removed.
7464 (enum struct_return): New enum.
7465 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7466 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7467 sc_pc_offset members.
7468 (i386_gdbarch_register_os_abi): Remove prototype.
7469 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7470 I386_SSE_NUM_REGS): New defines.
7471 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7472 I386_SSE_SIZEOF_REGS): New defines.
7473 (i386_register_name, i386_register_byte, i386_register_raw_size):
7474 New prototypes.
7475 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7476 (i386bsd_sigtramp_saved_pc): New prototype.
7477 * i386-tdep.c: Don't include "elf-bfd.h".
7478 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7479 i386_frame_chain, i386_saved_pc_after_call): Make static.
7480 (i386_frame_saved_pc): Rewrite to call architecture dependent
7481 function to deal with signal handlers. Make static.
7482 (i386go32_frame_saved_pc): Removed.
7483 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7484 Removed.
7485 (i386_get_longjmp_target): New function.
7486 (default_struct_convention, pcc_struct_convention,
7487 reg_struct_convention, valid_conventions, struct_convention): New
7488 variables.
7489 (i386_use_struct_convention): New function.
7490 (i386v4_sigtramp_saved_pc): Renamed to
7491 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7492 (i386_pc_in_sigtramp): New function.
7493 (i386_abi_names): Removed.
7494 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7495 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7496 Removed.
7497 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7498 i386_gdbarch_register_os_abi): Removed.
7499 (struct i386_abi_handler): Removed.
7500 (i386_abi_handler_list): Removed.
7501 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7502 functions.
7503 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7504 i386_nw_init_abi): New functions.
7505 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7506 Use set_gdbarch_xxx() calls instead of relying on macros for a
7507 number of calls.
7508 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7509 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7510 Register the various architecture variants defined in this file.
7511
ad2f7632
DJ
75122002-06-14 Daniel Jacobowitz <drow@mvista.com>
7513
7514 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7515 (struct main_type): Remove arg_types member. Update comments for
7516 struct field.
7517 (TYPE_ARG_TYPES): Remove.
7518 (TYPE_FN_FIELD_ARGS): Update.
7519 (smash_to_method_type): Update prototype.
7520
7521 * c-typeprint.c (cp_type_print_method_args): Take method type
7522 instead of argument list. Use new argument layout. Simplify.
7523 (c_type_print_args): Use new argument layout. Simplify.
7524 (c_type_print_base): Update call to cp_type_print_method_args.
7525 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7526 argument; use die->type instead. Update call to
7527 smash_to_method_type.
7528 (read_structure_scope): Update call to dwarf2_add_member_fn.
7529 * gdbtypes.c (allocate_stub_method): Update comment.
7530 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7531 Use new argument layout.
7532 (check_stub_method): Use new argument layout. Don't count
7533 void as an argument.
7534 (print_arg_types): Update comments. Use new argument layout.
7535 (recursive_dump_type): Don't print arg_types member.
7536 * hpread.c (hpread_read_struct_type): Use new argument layout.
7537 (fixup_class_method_type): Likewise.
7538 (hpread_type_lookup): Likewise.
7539 * stabsread.c (read_type): Update calls to read_args and
7540 smash_to_method_type.
7541 (read_args): Use new argument layout. Simplify.
7542 * valops.c (typecmp): Use new argument layout. Update parameters
7543 and comments. Simplify.
7544 (hand_function_call): Use new argument layout.
7545 (search_struct_method): Update call to typecmp.
7546 (find_overload_match): Use new argument layout.
7547
6da02953
DJ
75482002-06-13 Daniel Jacobowitz <drow@mvista.com>
7549
7550 * NEWS: Mention multithreaded debug support for gdbserver.
7551
519b2366
DJ
75522002-06-13 Daniel Jacobowitz <drow@mvista.com>
7553
7554 * MAINTAINERS: Mention NEWS.
7555
6c0d6680
DJ
75562002-06-13 Daniel Jacobowitz <drow@mvista.com>
7557
7558 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7559 (struct mips_objfile_private, compare_pdr_entries): New.
7560 (non_heuristic_proc_desc): Read the ".pdr" section if it
7561 is present.
7562
6529d2dd
AC
75632002-06-12 Andrew Cagney <ac131313@redhat.com>
7564
7565 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7566 (arm_debug): New static variable.
7567 (_initialize_arm_tdep): Add ``set debug arm'' command.
7568
26216b98
AC
75692002-06-12 Andrew Cagney <ac131313@redhat.com>
7570
7571 * Makefile.in (sim_arm_h): Define.
7572 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7573 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7574 (arm_register_sim_regno): New function, map an internal REGNUM
7575 onto a simulator register number.
7576 (arm_gdbarch_init): Set register_sim_regno.
7577
814b3ba0
AH
75782002-06-09 Aldy Hernandez <aldyh@redhat.com>
7579
7580 * MAINTAINERS: Add self.
7581
475b0867
JB
75822002-06-11 Jim Blandy <jimb@redhat.com>
7583
919d772c
JB
7584 * source.c (source_info): Mention whether the symtab has
7585 information about preprocessor macros.
7586
475b0867
JB
7587 Call the command `info macro', not `show macro'.
7588 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7589 Fix error message.
7590 (_initialize_macrocmd): Register `info_macro_command' in
7591 `infolist', not `showlist'.
7592
9e364162
DJ
75932002-06-11 Daniel Jacobowitz <drow@mvista.com>
7594
7595 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7596 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7597 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7598 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7599 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7600 unconditionally.
7601 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7602 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7603 (_initialize_mips_tdep): Remove dead code.
7604 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7605 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7606 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7607 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7608 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7609 MIPS_LAST_FP_ARG_REGNUM): Remove.
7610
23aa4c72
ML
76112002-06-11 Michal Ludvig <mludvig@suse.cz>
7612
7613 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7614 (unwind_tmp_obstack_free, parse_frame_info)
7615 (update_context, cfi_read_fp, cfi_write_fp)
7616 (cfi_frame_chain, cfi_init_extra_frame_info)
7617 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7618 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7619
70eb15a4
CV
76202002-06-11 Corinna Vinschen <vinschen@redhat.com>
7621
7622 * v850-tdep.c (v850_type_is_scalar): New function.
7623 (v850_use_struct_convention): Match current gcc implementation
7624 as close as possible.
7625 (v850_push_arguments): Fix stack_offset handling. Don't write
7626 struct_addr into register. This is done by v850_store_struct_return.
7627 (v850_extract_return_value): Care for structs.
7628 (v850_store_return_value): Ditto.
7629 (v850_store_struct_return): Actually write address.
7630
482a4d06
ML
76312002-06-11 Michal Ludvig <mludvig@suse.cz>
7632
7633 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7634 without debug information too.
7635
d855c300
AC
76362002-06-10 Andrew Cagney <ac131313@redhat.com>
7637
7638 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7639 Make multi-arch pure.
7640 * gdbarch.h, gdbarch.c: Re-generate.
7641 * arm-tdep.c (arm_print_float_info): Update.
7642 * arch-utils.h (default_print_float_info): Update.
7643 * arch-utils.c (default_print_float_info): Update.
7644 * infcmd.c (float_info): Update call.
7645
dd12a101
AC
76462002-06-10 Andrew Cagney <ac131313@redhat.com>
7647
7648 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7649 the front of the initialize list.
7650
101dcfbe
AC
76512002-06-10 Andrew Cagney <ac131313@redhat.com>
7652
7653 * infrun.c (struct inferior_status): Replace fields
7654 selected_frame_address and selected_level with field
7655 selected_frame_id.
7656 (save_inferior_status): Update. Use get_frame_id.
7657 (struct restore_selected_frame_args): Delete.
7658 (restore_selected_frame): Update. Use frame_find_by_id.
7659 (restore_inferior_status): Update.
7660
7661 * breakpoint.h (struct breakpoint): Change type of
7662 watchpoint_frame to frame_id.
7663 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7664 call to get_current_frame.
7665 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7666 get_current_frame.
7667 (watchpoint_check): Use frame_find_by_id.
7668
7669 * frame.h (record_selected_frame): Delete declaration.
7670 * stack.c (record_selected_frame): Delete function.
7671
7672 * frame.h (struct frame_id): Define.
7673 (get_frame_id): Declare.
7674 (frame_find_by_id): Declare.
7675 * frame.c (frame_find_by_id): New function.
7676 (get_frame_id): New function.
7677
304270b6
AV
76782002-06-10 Andrey Volkov <avolkov@transas.com>
7679
7680 * ser-e7kpc.c: Fix duplicated define and call of
7681 _initialize_ser_e7000pc
7682
2f2cf184
DJ
76832002-06-09 Daniel Jacobowitz <drow@mvista.com>
7684
7685 * signals/signals.c (target_signal_from_host): Fix #ifdef
7686 SIGRTMIN case.
7687 (do_target_signal_to_host): Likewise.
7688
caaa3122
DJ
76892002-06-09 Daniel Jacobowitz <drow@mvista.com>
7690
7691 * mips-tdep.c (mips_find_abi_section): New function.
7692 (mips_gdbarch_init): Call it.
7693
6ac5df3a
MK
76942002-06-09 Mark Kettenis <kettenis@gnu.org>
7695
7696 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7697 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7698 after Andrew's 2002-06-08 gdbarch change.
7699
82ea117a
MK
77002002-06-09 Mark Kettenis <kettenis@gnu.org>
7701
7702 * i386-linux-nat.c (suppy_gregset): Don't supply
7703 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7704 register cache.
7705 (fill_gregset): Don't fetch it under the same circumstances.
7706
3c25f8c7
AC
77072002-06-09 Andrew Cagney <cagney@redhat.com>
7708
7709 * Makefile.in (callback_h): Define.
7710 (remote_sim_h): Update path to remote-sim.h.
7711 (remote-rdp.o): Add $(callback_h).
7712 (remote-sim.o): Use $(callback_h).
7713 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7714 * remote-rdp.c: Include "gdb/callback.h".
7715
1029b7fa
MK
77162002-06-09 Mark Kettenis <kettenis@gnu.org>
7717
7718 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7719 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7720
616675d3
AC
77212002-06-08 Andrew Cagney <ac131313@redhat.com>
7722
a3efda28
AC
7723 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7724 * rdi-share/serpardr.c: Ditto.
7725 * rdi-share/unixcomm.c: Ditto.
7726 * rdi-share/serdrv.c: Ditto.
7727 * rdi-share/hostchan.h: Ditto.
7728 * rdi-share/hostchan.c: Ditto.
7729 * rdi-share/host.h: Ditto.
7730 * rdi-share/devsw.c: Ditto.
7731
c5f10366
AC
7732 * objfiles.h: Change type of obj_private to void pointer.
7733 * pa64solib.c: Update copyright. Don't include "assert.h", use
7734 strcmp instead of STREQ, use LONGEST, do not use PTR
7735 * somsolib.c: Ditto.
7736
616675d3
AC
7737 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7738 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7739 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7740
e4b415d9
AC
77412002-06-08 Andrew Cagney <ac131313@redhat.com>
7742
7743 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7744 (default_get_saved_register): Delete function.
7745 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7746 generic_unwind_get_saved_register.
7747 * gdbarch.h, gdbarch.c: Re-generate.
7748
ca0d0b52
AC
77492002-06-08 Andrew Cagney <ac131313@redhat.com>
7750
7751 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7752 generic_func_frame_chain_valid.
7753 * gdbarch.h, gdbarch.c: Re-generate.
7754 * blockframe.c (generic_func_frame_chain_valid): Only check
7755 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7756 passing FP to PC_IN_CALL_DUMMY.
7757 Fix PR gdb/360.
7758
76860b5f
AC
77592002-06-08 Andrew Cagney <ac131313@redhat.com>
7760
7761 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7762 (register_gdbarch_data): Initialize init_p.
7763 (gdbarch_data): Initialize data pointer using the init function.
7764 (init_gdbarch_data): Delete function.
7765 (gdbarch_update_p): Update.
7766 (initialize_non_multiarch): Update.
7767 (struct gdbarch): Add field initialized_p.
7768 * gdbarch.h, gdbarch.c: Re-generate.
7769
8dda9770
ML
77702002-06-07 Michal Ludvig <mludvig@suse.cz>
7771
7772 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7773 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7774 better do the things actually here.
7775 * x86-64-tdep.c (x86_64_register_name2nr): New.
7776 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7777 (x86_64_gdbarch_init): Respect the above change.
7778 * x86-64-tdep.h (x86_64_register_name2nr)
7779 (x86_64_register_nr2name): Add prototypes.
7780 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7781
3d79a47c
MS
77822002-06-06 Michael Snyder <msnyder@redhat.com>
7783
7bd91a28
MS
7784 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7785 Delete extra braces and re-indent.
7786 (d10v_store_return_value): Char return values
3d79a47c
MS
7787 must be shifted over by one byte in R0.
7788 (d10v_extract_return_value): Delete extra braces, re-indent.
7789
095a4c96
EZ
77902002-06-06 Elena Zannoni <ezannoni@redhat.com>
7791
7792 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7793 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7794 (d10v_integer_to_address): Rewrite.
7795 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7796 the d10v specific functions which take care of converting to the
7797 correct space.
7798
e8a77ca4
EZ
77992002-06-06 Elena Zannoni <ezannoni@redhat.com>
7800
7801 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7802 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7803
4f2e4a4f
AC
78042002-06-02 Andrew Cagney <ac131313@redhat.com>
7805
7806 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7807 includes.
7808 * config/tm-linux.h: Ditto.
7809 * config/alpha/tm-alphalinux.h: Ditto.
7810 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7811 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7812 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7813 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7814 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7815 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7816 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7817 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7818 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7819 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7820 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7821 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7822 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7823 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7824 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7825 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7826 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7827 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7828 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7829 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7830 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7831 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7832 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7833 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7834 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7835 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7836 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7837 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7838 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7839 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7840 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7841 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7842 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7843 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7844 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7845 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7846 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7847
ae2ab2ce
AS
78482002-05-04 Aidan Skinner <aidan@velvet.net>
7849
7850 * ada-exp.tab.c: New file
7851 * ada-exp.y: New file
7852 * ada-lang.c: New file
7853 * ada-lang.h: New file
7854 * ada-lex.c: New file
7855 * ada-lex.l: New file
7856 * ada-tasks.c: New file
7857 * ada-typeprint.c: New file
7858 * ada-valprint.c: New file
7859
0ddd0135
JT
78602002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7861
7862 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7863 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7864
750fbacc
JT
78652002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7866
7867 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7868 insetead of ppc-linux-tdep.o.
7869 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7870 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7871
df94e18a
AC
78722002-06-02 Andrew Cagney <ac131313@redhat.com>
7873
7874 2002-05-07 Christian Groessler <chris@groessler.org>
7875 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7876 bit register contents for little endian hosts.
7877
1a38ab75
AC
78782002-06-01 Andrew Cagney <ac131313@redhat.com>
7879
7880 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7881 any maintainer.
7882
8b1632ac
AC
78832002-06-01 Andrew Cagney <ac131313@redhat.com>
7884
7885 * gdbarch.h: Regenerate.
7886
627054c8
AC
78872002-06-01 Andrew Cagney <ac131313@redhat.com>
7888
7889 * MAINTAINERS: Add everyone to write-after-approval list.
7890
4f460812
AC
78912002-06-01 Andrew Cagney <ac131313@redhat.com>
7892
7893 * stack.c (frame_info): Use frame_register_unwind instead of
7894 saved_regs. Mention when the SP is on the stack or in a register.
7895
7896 * frame.h (frame_register_unwind_ftype): Define. Document.
7897 (struct frame_info): Add field register_unwind and
7898 register_unwind_cache.
7899 (frame_register_unwind): Declare.
7900 (generic_unwind_get_saved_register): Declare.
7901
7902 * frame.c (frame_register_unwind): New function.
7903 (generic_unwind_get_saved_register): New function.
7904
7905 * blockframe.c (generic_call_dummy_register_unwind): New function.
7906 (frame_saved_regs_register_unwind): New function.
7907 (set_unwind_by_pc): New function.
7908 (create_new_frame): New function.
7909 (get_prev_frame): New function.
7910
de888f76
AC
79112002-05-30 Andrew Cagney <ac131313@redhat.com>
7912
7913 * a29k-share/: Delete directory.
7914 * remote-vx29k.c: Delete file.
7915
2f2c3626
JT
79162002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7917
7918 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7919 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7920
9ce5c36a
JT
79212002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7922
7923 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7924 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7925 (sparc64nbsd-nat.o)
7926 (sparcnbsd-nat.o)
7927 (sparcnbsd-tdep.o): New dependency lists.
7928 * NEWS: Note new UltraSPARC NetBSD native configuration.
7929 * configure.host (sparc64-*-netbsd*): New host.
7930 * configure.tgt (sparc-*-netbsdelf*)
7931 (sparc-*-netbsd*): Set gdb_target to nbsd.
7932 (sparc64-*-netbsd*): New target.
7933 * sparc64nbsd-nat.c: New file.
7934 * sparcnbsd-nat.c: New file.
7935 * sparcnbsd-tdep.c: New file.
7936 * sparcnbsd-tdep.h: New file.
7937 * config/sparc/nbsd.mt: New file.
7938 * config/sparc/nbsd64.mh: New file.
7939 * config/sparc/nbsd64.mt: New file.
7940 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7941 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7942 (HOST_IPC): Remove.
7943 * config/sparc/nbsdaout.mt: Remove.
7944 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7945 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7946 (HOST_IPC): Remove.
7947 * config/sparc/nbsdelf.mt: Remove.
7948 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7949 sparc-nat.c compatiblity defines.
7950 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7951 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7952 * config/sparc/tm-nbsd64.h: New file.
7953 * config/sparc/tm-nbsdaout.h: Remove.
7954 * config/sparc/xm-nbsd.h: Remove.
7955
ef3cf062
JT
79562002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7957
7958 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7959 * sparc-tdep.c: Include osabi.h.
7960 (gdbarch_tdep): Add osabi member.
7961 (_initialize_sparc_tdep): Use gdbarch_register.
7962 (sparc_gdbarch_init): Use generic OS ABI framework.
7963 (sparc_dump_tdep): New function.
7964
ee8ff470
KB
79652002-05-30 Kevin Buettner <kevinb@redhat.com>
7966
7967 * corefile.c (do_captured_read_memory_integer): Return non-zero
7968 result.
7969 (safe_read_memory_integer): Copy result of memory read when
7970 status is non-zero. Also, add comments.
7971
7b112f9c
JT
79722002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7973
7974 * Makefile.in (ppc_tdep_h): Define.
7975 (ppc-linux-nat.o)
7976 (ppc-linux-tdep.o)
7977 (rs6000-tdep.o): Use $(ppc_tdep_h).
7978 (ppc-sysv-tdep.o)
7979 (ppcnbsd-nat.o)
7980 (ppcnbsd-tdep.o): New dependency lists.
7981 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7982 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7983 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7984 (ppc_sysv_abi_broken_use_struct_convention)
7985 (ppc_sysv_abi_use_struct_convention)
7986 (ppc_sysv_abi_push_arguments): Move to...
7987 * ppc-sysv-tdep.c: ...here.
7988 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7989 * rs6000-tdep.c (process_note_abi_tag_sections)
7990 (get_elfosabi): Remove.
7991 (rs6000_gdbarch_init): Use generic OS ABI framework.
7992 (rs6000_dump_tdep): New function.
7993 (_initialize_rs6000_tdep): Use gdbarch_register.
7994 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7995 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7996 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7997 of ppc-linux-tdep.o.
7998 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7999 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8000 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8001 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8002 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8003 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8004
480dd42a
JB
80052002-05-29 Jim Blandy <jimb@redhat.com>
8006
8007 * macroscope.c (default_macro_scope): Put `void' in empty argument
8008 list.
8009
4182591f
AC
80102002-05-29 Andrew Cagney <ac131313@redhat.com>
8011
8012 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8013 * arch-utils.c: Include "sim-regno.h".
8014 * gdbarch.sh: Don't include "sim-regno.h".
8015 * gdbarch.h, gdbarch.c: Regenerate.
8016 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8017 here.
8018 * arch-utils.h (legacy_register_sim_regno): To here.
8019 * remote-sim.c (legacy_register_sim_regno): Move function from
8020 here.
8021 * arch-utils.c (legacy_register_sim_regno): To here.
8022
8238d0bf
AC
80232002-05-28 Andrew Cagney <ac131313@redhat.com>
8024
8025 * sim-regno.h: New file.
8026 * Makefile.in (sim_regno_h): Define.
8027 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8028 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8029 (legacy_register_sim_regno): New function.
8030 (one2one_register_sim_regno): New function.
8031 (gdbsim_fetch_register): Rewrite.
8032 (gdbsim_store_register): Only store a register when
8033 REGISTER_SIM_REGNO is valid.
8034 * d10v-tdep.c: Include "sim-regno.h".
8035 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8036 (d10v_ts3_register_sim_regno): Ditto.
8037 * gdbarch.sh: Include "sim-regno.h".
8038 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8039 * gdbarch.h, gdbarch.c: Regenerate.
8040 * arch-utils.h (default_register_sim_regno): Delete declaration.
8041 * arch-utils.c (default_register_sim_regno): Delete function.
8042
485721b1
JT
80432002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8044
8045 * ppcnbsd-nat.c: Rewrite.
8046 * ppcnbsd-tdep.c: New file.
8047 * ppcnbsd-tdep.h: New file.
8048 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8049 solib.o, and solib-svr4.o.
8050 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8051 nbsd-tdep.o, and corelow.o.
8052
697f244d
AC
80532002-05-28 Andrew Cagney <ac131313@redhat.com>
8054
8055 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8056 `tr' and `sed'. Mention that `broken' targets are not expected to
8057 build.
8058
f08caad1 80592002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8060
8061 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8062 Let PC point right after the prologue before looking up symbols.
8063
3139facc
MH
80642002-05-27 Martin M. Hunt <hunt@redhat.com>
8065
8066 * i386-tdep.c (i386_register_virtual_type): Return
8067 builtin_type_vec128i for SSE registers.
8068
8069 * gdbtypes.h (builtin_type_vec128i): Declare.
8070
8071 * gdbtypes.c (build_builtin_type_vec128i): New function.
8072 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8073 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8074 (build_gdbtypes): Initialize new builtin vector types.
8075 (_initialize_gdbtypes): Register new vector types with gdbarch.
8076
6e3ba3b8
JT
80772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8078
8079 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8080 since it has been multi-arch'd.
8081 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8082 Move Alpha and VAX multi-arch news entries to same section
8083 as other multi-arch news.
8084
93d5585d
JT
80852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8086
8087 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8088 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8089 static. Rename some register numbers to put them in ns32k-tdep
8090 private namespace.
8091 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8092 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8093 functions.
8094 (_initialize_ns32k_tdep): Use gdbarch_register.
8095 * ns32k-tdep.h: New file.
8096 * ns32knbsd-tdep.c: New file.
8097 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8098 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8099 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8100 REGISTER_BYTES, REGISTER_BYTE): Remove.
8101 * config/ns32k/tm-ns32k.h: New file.
8102 * config/ns32k/tm-umax.h: Remove.
8103
efb2c70e
JT
81042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8105
8106 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8107 ns32k_store_struct_return, ns32k_extract_return_value,
8108 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8109 functions.
8110 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8111 ns32k_saved_pc_after_call.
8112 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8113 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8114 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8115 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8116 ns32k_extract_struct_value_address.
8117
7bcc927b
JT
81182002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8119
8120 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8121 ns32k_fix_call_dummy): New.
8122 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8123 ns32k_call_dummy_words.
8124 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8125 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8126 CALL_DUMMY_NARGS): Remove.
8127 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8128
78f9d765
JT
81292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8130
8131 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8132 ns32k_frame_saved_pc, ns32k_frame_args_address,
8133 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8134 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8135 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8136 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8137 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8138 (BREAKPOINT): Remove..
8139 (FRAME_CHAIN): Define as ns32k_frame_chain.
8140 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8141 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8142 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8143 (FRAME_FIND_SAVED_REGS): Remove.
8144 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8145 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8146 (POP_FRAME): Define as ns32k_pop_frame.
8147
f2c762e0
JT
81482002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8149
8150 * ns32k-tdep.c (ns32k_register_byte_32082,
8151 ns32k_register_byte_32382, ns32k_register_raw_size,
8152 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8153 functions.
8154 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8155 ns32k_register_byte_32382.
8156 * config/ns32k/tm-umax.h: Update copyright years.
8157 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8158 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8159 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8160 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8161 (ns32k_get_enter_addr): Fix prototype.
8162
af137673
JT
81632002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8164
8165 * ns32k-tdep.c: Update copyright years.
8166 (ns32k_register_name_32082): New function.
8167 (ns32k_register_name_32382): Ditto.
8168 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8169 (REGISTER_NAME): Define as ns32k_register_name_32382.
8170 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8171 (REGISTER_NAME): Define as ns32k_register_name_32082.
8172
a8bc7b56
JB
81732002-05-24 Jim Blandy <jimb@redhat.com>
8174
8175 * dwarf2read.c (free_line_header): Use xfree, not free.
8176
83a45910
JT
81772002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8178
8179 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8180 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8181
0db71247
AC
81822002-05-23 Andrew Cagney <ac131313@redhat.com>
8183
8184 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8185
b9e5e4dd
AC
81862002-05-23 Andrew Cagney <ac131313@redhat.com>
8187
8188 From Ross Alexander at NEC Europe:
8189 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8190
de530e84
MS
81912002-05-23 Michael Snyder <msnyder@redhat.com>
8192
8193 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8194 for input, rather than parse_and_eval_address.
8195
b91b96f4
AC
81962002-05-23 Andrew Cagney <ac131313@redhat.com>
8197
8198 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8199 * Makefile.in (sim_d10v_h): Update definition.
8200
8b279e7a
AC
82012002-05-24 Andrew Cagney <cagney@redhat.com>
8202
8203 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8204 change `2002-05-22 Michael Snyder' below.
8205 (d10v_push_arguments): Ditto.
8206 (d10v_extract_return_value): Ditto.
8207
0a3d0425
JB
82082002-05-23 Jim Blandy <jimb@redhat.com>
8209
8210 * macrotab.c (check_for_redefinition): Don't complain if the new
8211 definition is the same as the previous one. Take more arguments
8212 to allow the comparison.
8213 (macro_define_object, macro_define_function): Pass more arguments
8214 to check_for_redefinition.
8215
78eac43e
MS
82162002-05-22 Michael Snyder <msnyder@redhat.com>
8217
8218 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8219 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8220 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8221 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8222 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8223 Add a temp variable to save a call (and a memory read).
8224 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8225 if possible (so that PC_IN_CALL_DUMMY will work).
8226
9bc1edb8
CV
82272002-05-22 Corinna Vinschen <vinschen@redhat.com>
8228
8229 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8230
005ef3d2
ML
82312002-05-22 Michal Ludvig <mludvig@suse.cz>
8232
8233 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8234 fde->cie_ptr.
8235 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8236 (dwarf2_build_frame_info): Add offset to fde->initial_location
8237 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8238 (execute_stack_op): Change type of 'result' from ULONGEST to
8239 CORE_ADDR.
005ef3d2 8240
fcf4f891
JT
82412002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8242
8243 * config/alpha/tm-nbsd.h: Include solib.h.
8244
cfef91e4
JT
82452002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8246
8247 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8248 assumptions about the host's byte order.
8249
9964235a
JT
82502002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8251
8252 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8253 to dependency list.
8254 * alphanbsd-tdep.c: Include solib-svr4.h.
8255 * shnbsd-tdep.c: Ditto.
8256
9eeef8ef
JT
82572002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8258
8259 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8260 nbsd-tdep.h to dependency list.
8261 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8262 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8263 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8264 nbsdaout.mh and nbsdelf.mh consistently.
8265 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8266 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8267 nbsdaout.mt and nbsdelf.mh consistently.
8268 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8269 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8270 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8271 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8272 a.out shared library stuff from here...
8273 * config/nm-nbsdaout.h: ...to here.
8274 * config/tm-nbsd.h: Remove.
8275 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8276 * config/arm/nbsd.mh: Remove.
8277 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8278 nbsd-tdep.o.
8279 * config/arm/nbsdaout.mh: New file.
8280 * config/arm/nbsdelf.mh: New file.
8281 * config/arm/nm-nbsdaout.h: New file.
8282 * config/i386/nbsd.mh: Remove.
8283 * config/i386/nbsd.mt: Remove.
8284 * config/i386/nbsdaout.mh: New file.
8285 * config/i386/nbsdaout.mt: New file.
8286 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8287 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8288 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8289 i386_register_u_addr): Remove.
8290 * config/i386/nm-nbsdaout.h: New file.
8291 * config/i386/nm-nbsdelf.h: Remove.
8292 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8293 (USE_STRUCT_CONVENTION): Remove.
8294 * config/i386/tm-nbsdaout.h: New file.
8295 * config/i386/tm-nbsdelf.h: Remove.
8296 * config/m68k/nbsd.mh: Remove.
8297 * config/m68k/nbsd.mt: Remove.
8298 * config/m68k/nbsdaout.mh: New file.
8299 * config/m68k/nbsdaout.mt: New file.
8300 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8301 * config/m68k/nm-nbsdaout.h: New file.
8302 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8303 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8304 * config/ns32k/nbsd.mh: Remove.
8305 * config/ns32k/nbsd.mt: Remove.
8306 * config/ns32k/nbsdaout.mh: New file.
8307 * config/ns32k/nbsdaout.mt: New file.
8308 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8309 * config/ns32k/nm-nbsdaout.h: New file.
8310 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8311 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8312 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8313 (SVR4_SHARED_LIBS): Remove.
8314 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8315 * config/sparc/nbsd.mh: Remove.
8316 * config/sparc/nbsd.mt: Remove.
8317 * config/sparc/nbsdaout.mh: New file.
8318 * config/sparc/nbsdaout.mt: New file.
8319 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8320 * config/sparc/nbsdelf.mt: New file.
8321 * config/sparc/nm-nbsdaout.h: New file.
8322 * config/sparc/nm-nbsdelf.h: Remove.
8323 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8324 * config/sparc/tm-nbsdaout.h: New file.
8325
257ce470
JT
83262002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8327
8328 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8329 mipsnbsd-tdep.c
8330 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8331
76a6d5fe
JT
83322002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8333
8334 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8335 shnbsd-nat.c.
8336 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8337
45888261
JT
83382002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8339
8340 * NEWS: Note new MIPS NetBSD native configuration.
8341 * configure.host (mips*-*-netbsd*): New host.
8342 * configure.tgt (mips*-*-netbsd*): New target.
8343 * mipsnbsd-nat.c: New file.
8344 * mipsnbsd-tdep.c: New file.
8345 * mipsnbsd-tdep.h: New file.
8346 * config/mips/nbsd.mh: New file.
8347 * config/mips/nbsd.mt: New file.
8348 * config/mips/nm-nbsd.h: New file.
8349 * config/mips/tm-nbsd.h: New file.
8350
70f80edf
JT
83512002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8352
8353 * Makefile.in (SFILES): Add osabi.c.
8354 (COMMON_OBS): Add osabi.o.
8355 (osabi.o): New dependency list.
8356 * osabi.c: New file.
8357 * osabi.h: New file.
8358 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8359
8360 * Makefile.in (alpha_tdep_h): Define and use instead of
8361 alpha-tdep.h.
8362 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8363 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8364 Remove.
8365 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8366 * alpha-tdep.h: Include osabi.h.
8367 (alpha_abi): Remove.
8368 (gdbarch_tdep): Use generic OS ABI framework.
8369 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8370 gdbarch_register_osabi.
8371 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8372 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8373 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8374
8375 * Makefile.in (sh_tdep_h): Add osabi.h.
8376 * sh-tdep.h (sh_osabi): Remove.
8377 (gdbarch_tdep): Use generic OS ABI framework.
8378 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8379 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8380 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8381 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8382
8383 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8384 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8385 gdbarch_register_osabi.
8386 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8387 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8388 (get_elfosabi): Rename to...
8389 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8390 ABI framework support routines.
8391 (arm_gdbarch_init): Use generic OS ABI framework.
8392 (arm_dump_tdep): Likewise.
8393 (_initialize_arm_tdep): Likewise.
8394 * arm-tdep.h: Include osabi.h.
8395 (arm_abi): Remove.
8396 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8397 osabi member.
8398 (arm_gdbarch_register_os_abi): Remove prototype.
8399 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8400 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8401
8402 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8403 * mips-tdep.c: Include osabi.h.
8404 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8405 OS ABI framework.
8406
d194345b
KH
84072002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8408
8409 * h8300-tdep.c: Fix formatting.
8410
70c6b0d1
EZ
84112002-05-20 Elena Zannoni <ezannoni@redhat.com>
8412
8413 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8414 printing vector registers.
8415
165b8e33
AC
84162002-05-19 Andrew Cagney <ac131313@redhat.com>
8417
8418 From Fernando Nasser:
8419 * remote.c (remote_async_open_1): Re-throw the exception when the
8420 connection fails.
8421 (remote_cisco_open): Ditto.
8422 (remote_open_1): Ditto.
8423
36918e70
AC
84242002-05-19 Andrew Cagney <ac131313@redhat.com>
8425
8426 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8427 (remote_start_remote): Add uiout parameter. Pass through to
8428 remote_start_remote_dummy.
8429 (remote_open_1): Use catch_exception instead of catch_errors.
8430 (remote_async_open_1): Ditto.
8431 (remote_cisco_open): Ditto.
8432
ae44c0c4
AC
84332002-05-19 Andrew Cagney <ac131313@redhat.com>
8434
8435 * remote.c (remote_start_remote): Replace PTR with void pointer.
8436 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8437 static.
8438
8efe637d
AC
84392002-05-18 Andrew Cagney <ac131313@redhat.com>
8440
8441 * gdb_indent.sh: Allow the script to be run in the sim directory.
8442
2f1b5984
MK
84432002-05-18 Mark Kettenis <kettenis@gnu.org>
8444
f0f625e2
MK
8445 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8446 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8447
2f1b5984
MK
8448 * corelow.c (core_open): Only call set_gdbarch_from_file if
8449 exec_bfd is NULL.
8450
fc974602
AV
84512002-05-17 Andrey Volkov <avolkov@transas.com>
8452
8453 * h8300-tdep.c: Add support of EXR register
8454 * config/h8300/tm-h8300.h: Ditto.
8455
906709f4
AV
84562002-05-17 Andrey Volkov <avolkov@transas.com>
8457
8458 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8459
6e591d68
AV
84602002-05-17 Andrey Volkov <avolkov@transas.com>
8461
8462 * h8300-tdep.c: Change literal regnums to REGNO.
8463
84f0252a
JB
84642002-05-17 Jim Blandy <jimb@redhat.com>
8465
e0e9281e
JB
8466 * NEWS: Note addition of macro support.
8467
84f0252a
JB
8468 Expand preprocessor macros in C expressions.
8469 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8470 (scan_macro_expansion, scanning_macro_expansion,
8471 finished_macro_expansion): New function declarations.
8472 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8473 variable declarations.
8474 * parser-defs.h (expression_context_pc): New declaration.
8475 * parse.c (expression_context_pc): New variable.
8476 (parse_exp_1): Set expression_context_pc, as well as
8477 expression_context_block.
8478 * c-exp.y (yylex): If we're not already reading the result of a
8479 macro expansion, try to macro-expand the next token. When we're
8480 done scanning a macro expansion, switch back to the mainline text.
8481 Commas and `if's in a macro's expansion don't terminate the input.
8482 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8483 (macro_original_text, macro_expanded_text,
8484 expression_macro_lookup_func, expression_macro_lookup_baton): New
8485 variables.
8486 (scan_macro_expansion, scanning_macro_expansion,
8487 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8488 c_preprocess_and_parse): New functions.
8489 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8490 c_preprocess_and_parse, instead of c_parse.
8491 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8492 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8493
1c509ca8
JR
8494Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8495
8496 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8497 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8498 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8499
2250ee0c
CV
85002002-05-17 Corinna Vinschen <vinschen@redhat.com>
8501
8502 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8503
ab3b8126
JT
85042002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8505
8506 * Makefile.in (sh_tdep_h): Define and use.
8507 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8508 register enum): Move to...
8509 * * sh-tdep.h: ...here.
8510 * sh-tdep.c: Include sh-tdep.h.
8511 * sh3-rom.c: Likewise.
8512 * shnbsd-tdep.c: Likewise.
8513
ed9d4749
MS
85142002-05-16 Michael Snyder <msnyder@redhat.com>
8515
8516 * arm-tdep.c: Spelling fix in comment.
8517
2e276125
JB
85182002-05-16 Jim Blandy <jimb@redhat.com>
8519
6821892e
JB
8520 Add commands for manually expanding macros and showing their
8521 definitions.
8522 * macrocmd.c, macroscope.c, macroscope.h: New files.
8523 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8524 (macroscope_h): New variable.
8525 (HFILES_NO_SRCDIR): Add macroscope.h.
8526 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8527 (macroscope.o, macrocmd.o): New rules.
8528
2e276125
JB
8529 Teach the Dwarf 2 reader to read macro information.
8530 * dwarf2read.c: #include "macrotab.h".
8531 (dwarf_macinfo_buffer): New variable.
8532 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8533 dwarf_macinfo_size.
8534 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8535 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8536 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8537 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8538 dwarf2_macro_spaces_in_definition): New complaints.
8539 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8540 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8541 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8542 the partial symbol table.
8543 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8544 from what's recorded in the partial symbol table.
8545 (read_file_scope): If the compilation unit has a
8546 `DW_AT_macro_info' attribute, read its macro information.
8547 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8548
2f53fe6c
DJ
85492002-05-16 Daniel Jacobowitz <drow@mvista.com>
8550
8551 Fix PR gdb/546
8552 * ser-tcp.c: Don't include <netinet/udp.h>.
8553
2be99286
SC
85542002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8555
8556 * MAINTAINERS: Update my email address.
8557
c9af212b 85582002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8559
8560 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8561 include file of the same name.
8562
bf5f1a52
CV
85632002-05-16 Corinna Vinschen <vinschen@redhat.com>
8564
8565 * configure.tgt: Mark v850 as multi-arched.
8566 * config/v850/tm-v850.h: Remove file.
8567 * config/v850/v850.mt: Eliminate TM_FILE.
8568
435e042a
CV
85692002-05-16 Corinna Vinschen <vinschen@redhat.com>
8570
8571 * v850-tdep.c: Full multi-arch.
8572 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8573 Define GDB_MULTI_ARCH to 2.
8574
9819c6c8
PM
85752002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8576
8577 * p-exp.y (current_type): New static variable.
8578 Carries the type of the expression at the position that is parsed.
8579 (push_current_type, pop_current_type): Two new functions. Used
8580 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8581 (search_field): New static variable. Set to one after parsing a point
8582 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8583 (FIELDNAME): New token. After a point only a token belonging to
8584 current_type type definition is allowed.
8585 (all over token rules): reset and change current_type according
8586 to rules.
8587 (exp '[' rule): insert implicit array index field if
8588 exp is a pascal string type.
8589
3a06899a
CV
85902002-05-16 Corinna Vinschen <vinschen@redhat.com>
8591
8592 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8593 frame info. Use frame_info's saved_regs instead of matching member
8594 in extra_frame_info throughout.
8595 (v850_frame_init_saved_regs): New function.
8596 (v850_init_extra_frame_info): Move most functionality into
8597 v850_frame_init_saved_regs().
8598 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8599 (v850_frame_find_saved_regs): Remove declaration.
8600 (FRAME_FIND_SAVED_REGS): Remove definition.
8601 (v850_frame_init_saved_regs): Add declaration.
8602 (FRAME_INIT_SAVED_REGS): Add definition.
8603
6ed14b0e
CV
86042002-05-16 Corinna Vinschen <vinschen@redhat.com>
8605
8606 * v850-tdep.c: Begin multi-arch'ing v850.
8607 (v850_target_architecture_hook): Remove function.
8608 (v850_gdbarch_init): New function. Add code previously in
8609 v850_target_architecture_hook().
8610 (_initialize_v850_tdep): Don't set target_architecture_hook.
8611 Call register_gdbarch_init() instead.
8612
42725910
DJ
86132002-05-16 Daniel Jacobowitz <drow@mvista.com>
8614
8615 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8616 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8617 (fixup_class_method_type): Likewise.
8618
99d9066e
JB
86192002-05-15 Jim Blandy <jimb@redhat.com>
8620
8621 Add macro structures to GDB's symbol tables. Nobody puts anything
8622 in them yet.
8623 * symtab.h (struct symtab): New member: `macro_table'.
8624 * buildsym.h (pending_macros): New global variable.
8625 * buildsym.c: #include "macrotab.h".
8626 (buildsym_init): Initialize `pending_macros'.
8627 (end_symtab): If we found macro information while reading a CU's
8628 debugging info, do build a symtab structure for it. Make the
8629 symtab point to the macro information, and clear the
8630 `pending_macros' pointer which held it while we were reading the
8631 debug info.
8632 (really_free_pendings): Free any pending macro table.
8633 * objfiles.h (struct objfile): New member: `macro_cache'.
8634 * objfiles.c (allocate_objfile): Set allocate and free functions
8635 for the macro cache's objstack.
8636 (free_objfile): Empty the macro cache's obstack.
8637 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8638 set new allocate and free functions for it.
8639 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8640 free functions for the macro cache's objstack. (Why is this
8641 function building its own objfile?)
8642 * symmisc.c (print_objfile_statistics): Print statistics on the
8643 macro bcache.
8644 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8645
c899585b
RE
86462002-05-15 Richard Earnshaw <rearnsha@arm.com>
8647
8648 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8649 (REGISTER_U_ADDR): Delete definition.
8650 (arm_register_u_addr): Delete declaration.
8651
a6cdd8c5
RE
86522002-05-15 Richard Earnshaw <rearnsha@arm.com>
8653
8654 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8655 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8656
c97dcfc7
AC
86572002-05-14 Andrew Cagney <ac131313@redhat.com>
8658
8659 * regcache.c (register_valid): Revise comments refering to "Not
8660 available" and "unavailable".
8661 * frame.c (frame_register_read): Ditto.
8662 * findvar.c (value_of_register): Ditto.
8663
93021b7d
AC
86642002-05-15 Andrew Cagney <cagney@redhat.com>
8665
8666 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8667 (remote-sim.o): Update dependencies.
8668 (d10v-tdep.o): Specify dependencies.
8669 (sim_d10v_h): Define.
8670
a86bc61c
JB
86712002-05-14 Jim Blandy <jimb@redhat.com>
8672
8673 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8674 * macrotab.c (macro_lookup_inclusion, find_definition,
8675 new_macro_table): Same.
8676
8677 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8678 not `! strcmp ()'. This is a dubious improvement.
8679 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8680
8681 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8682 although it's not necessary, to avoid a warning.
8683
2fdde8f8
DJ
86842002-05-14 Daniel Jacobowitz <drow@mvista.com>
8685
8686 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8687 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8688 TYPE_INSTANCE_FLAGS.
8689 (struct main_type): New.
8690 (struct type): Move most members to struct main_type. Change
8691 cv_type and as_type to new type_chain member. Add instance_flags.
8692 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8693 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8694 (finish_cv_type): Remove prototype.
8695 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8696 Set TYPE_CHAIN.
8697 (alloc_type_instance): New function.
8698 (smash_type): New function.
8699 (make_pointer_type, make_reference_type, make_function_type)
8700 (smash_to_member_type, smash_to_method_type): Call smash_type.
8701 (make_qualified_type): New function.
8702 (make_type_with_address_space): Call make_qualified_type.
8703 (make_cv_type): Likewise.
8704 (finish_cv_type): Remove unnecessary function.
8705 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8706 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8707 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8708 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8709 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8710 * hpread.c (hpread_read_struct_type): Likewise.
8711 * stabsread.c (read_struct_type): Likewise.
8712
843fedf4
EZ
87132002-05-14 Elena Zannoni <ezannoni@redhat.com>
8714
8715 * configure.tgt: Add a catch all sh* target, for cases like
8716 sh[2,3,4]-elf and sh-hms.
8717
05a6c72c
KS
87182002-05-14 Keith Seitz <keiths@redhat.com>
8719
8720 * event-loop.c (create_file_handler): Don't do anything but
8721 update data when we are given a fd which we are already
8722 monitoring.
8723
5d085aaf
ML
87242002-05-14 Michal Ludvig <mludvig@suse.cz>
8725
8726 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8727 (update_context): Use __func__ in warnings.
8728
9db8d71f
DJ
87292002-05-14 Daniel Jacobowitz <drow@mvista.com>
8730
8731 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8732 and tcp_close to net_open and net_close.
8733 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8734 using UDP if requested. Don't try to disable Nagle on UDP
8735 sockets.
8736 * remote.c (remote_serial_open): New function. Warn about UDP.
8737 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8738
5dbc6baa
EZ
87392002-05-13 Elena Zannoni <ezannoni@redhat.com>
8740
8741 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8742
cc3023f7
EZ
87432002-05-13 Elena Zannoni <ezannoni@redhat.com>
8744
8745 * configure.tgt: Remove sh-hms target.
8746 * MAINTAINERS: Don't list sh-hms as a separate target.
8747
ec2bcbe7
JB
87482002-05-13 Jim Blandy <jimb@redhat.com>
8749
8750 Add first preprocessor macro-expansion files.
8751 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8752 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8753 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8754 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8755 (COMMON_OBS): Add macrotab.o, macroexp.o.
8756 (macroexp.o, macrotab.o): New rules.
8757
6d531722
AC
87582002-05-13 Andrew Cagney <ac131313@redhat.com>
8759
8760 * config/m88k/tm-m88k.h: Update copyright.
8761 (m88k_target_write_pc): Declare
8762 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8763 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8764 (SHIFT_INST_REGS): Update definition.
8765 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8766 using old definition of TARGET_WRITE_PC.
8767 * regcache.c (generic_target_write_pc): Delete code handling
8768 NNPC_REGNUM.
8769 * gdbarch.sh (NNPC_REGNUM): Delete.
8770 * gdbarch.h, gdbarch.c: Regenerate.
8771
3e3f2739
RE
87722002-05-13 Richard Earnshaw <rearnsha@arm.com>
8773
8774 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8775 builtin reg number.
8776
0004e5a2
DJ
87772002-05-13 Daniel Jacobowitz <drow@mvista.com>
8778
8779 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8780 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8781 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8782 access macros.
8783 * c-typeprint.c (cp_type_print_method_args): Likewise.
8784 (c_type_print_args): Likewise.
8785 * d10v-tdep.c (d10v_push_arguments): Likewise.
8786 (d10v_extract_return_value): Likewise.
8787 * expprint.c (print_subexp): Likewise.
8788 * gdbtypes.c (lookup_primitive_typename): Likewise.
8789 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8790 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8791 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8792 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8793 (TYPE_VECTOR): Likewise.
8794 * hpread.c (hpread_read_struct_type)
8795 (fix_static_member_physnames, fixup_class_method_type)
8796 (hpread_type_lookup): Likewise.
8797 * mdebugread.c (parse_symbol, parse_type): Likewise.
8798 * p-lang.c (is_pascal_string_type): Likewise.
8799 * valops.c (hand_function_call): Likewise.
8800 * x86-64-tdep.c (classify_argument): Likewise.
8801
8802 * hpread.c (hpread_read_function_type)
8803 (hpread_read_doc_function_type): Call replace_type.
8804 * dstread.c (create_new_type): Delete.
8805 (decode_dst_structure, process_dst_function): Call alloc_type.
8806 Use type access macros.
8807
dff95cc7
MK
88082002-05-12 Mark Kettenis <kettenis@gnu.org>
8809
8810 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8811 the're not supported by the current architecture.
8812 (i387_fill_fxsave): Likewise.
8813
bbcd32ad
FF
88142002-05-12 Fred Fish <fnf@redhat.com>
8815
8816 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8817 sect_index_xxx members to index the first slot in section_offsets
8818 if all of the section_offsets are zero.
8819
89cf4787
MK
88202002-05-12 Mark Kettenis <kettenis@gnu.org>
8821
8822 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8823 checked in with last change.
8824
1f77ffc5
MK
88252002-05-12 Mark Kettenis <kettenis@gnu.org>
8826
8827 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8828 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8829 config.sub.
8830
89b8b4a9
DJ
88312002-05-12 Daniel Jacobowitz <drow@mvista.com>
8832
8833 * Makefile.in: Update dependencies.
8834
14a5e767
AC
88352002-05-11 Andrew Cagney <ac131313@redhat.com>
8836
8837 * language.c (local_hex_string_custom): Simplify. Do not depend
8838 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8839
8840 * memattr.c (mem_info_command): Replace calls to
8841 longest_local_hex_string and longest_local_hex_string_custom.
8842 * buildsym.c (make_blockvector): Ditto.
8843 * solib.c (info_sharedlibrary_command): Ditto.
8844 * tracepoint.c (tracepoints_info): Ditto.
8845 * symtab.c (print_msymbol_info): Ditto.
8846
8847 * language.c (local_hex_string): Delete.
8848 (local_hex_string_custom): Delete.
8849 (longest_local_hex_string): Rename to local_hex_string.
8850 (longest_local_hex_string_custom): Rename to
8851 local_hex_string_custom.
8852 * language.h (local_hex_string): Change parameter type to LONGEST.
8853 (local_hex_string_custom): Ditto.
8854 (longest_local_hex_string): Delete declaration.
8855 (longest_local_hex_string_custom): Ditto.
8856
8857 * solib.c: Update copyright.
8858 * memattr.c: Update copyright.
8859
13d01224
AC
88602002-05-11 Andrew Cagney <ac131313@redhat.com>
8861
8862 * arch-utils.h (legacy_register_to_value): Declare.
8863 (legacy_value_to_register): Declare.
8864 (legacy_convert_register_p): Declare.
8865 * arch-utils.c (legacy_register_to_value): New function.
8866 (legacy_value_to_register): New function.
8867 (legacy_convert_register_p): New function.
8868
8869 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8870 (VALUE_TO_REGISTER): Define.
8871 (CONVERT_REGISTER_P): Define.
8872 * gdbarch.h, gdbarch.c: Regenerate.
8873
8874 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8875 VALUE_TO_REGISTER.
8876 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8877 CONVERT_REGISTER_P.
8878
4a1970e4
DJ
88792005-05-11 Daniel Jacobowitz <drow@mvista.com>
8880 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8881
8882 * Makefile.in: Update dependencies for valops.c.
8883 * valops.c: Include "gdb_assert.h".
8884 (typecmp): Skip THIS parameter to methods.
8885 (find_method_list): Remove static_memfuncp argument,
8886 update callers. Check for stub methods.
8887 (find_value_oload_method_list): Don't set *static_memfuncp.
8888 (find_overload_match): Don't check for stub methods. Assert
8889 that methods are not stubbed. Handle static methods.
8890 (value_find_oload_method_list): Remove static_memfuncp argument.
8891 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8892 to the argument list for static stub methods.
8893 * value.h (value_find_oload_method_list): Update prototype.
8894
b2e75d78
AC
88952002-05-11 Andrew Cagney <ac131313@redhat.com>
8896
8897 * arch-utils.h (generic_register_size): Declare.
8898 (generic_register_raw_size, generic_register_virtual_size): Delete
8899 declarations.
8900 * arch-utils.c (generic_register_raw_size): Delete.
8901 (generic_register_size): New function.
8902 (generic_register_virtual_size): Delete.
8903
8904 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8905 default generic_register_size.
8906 * gdbarch.h, gdbarch.c: Re-generate.
8907
8908 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8909 register_virtual_size.
8910 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8911 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8912
451fbdda
AC
89132002-05-11 Andrew Cagney <ac131313@redhat.com>
8914
8915 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8916 * gdbarch.h, gdbarch.c: Regenerate.
8917 * gnu-v3-abi.c: Update copyright.
8918 (vtable_address_point_offset): Update.
8919 (gnuv3_rtti_type): Update.
8920 (gnuv3_baseclass_offset): Update.
8921 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8922 (init_fetch_link_map_offsets): Update.
8923 * remote.c (get_remote_state): Update.
8924
6d2f5cea
DJ
89252002-05-11 Daniel Jacobowitz <drow@mvista.com>
8926
8927 * TODO: Remove value_headof/value_from_vtable_info comment.
8928 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8929 * values.c (value_headof, value_from_vtable_info): Delete.
8930 * value.h (value_from_vtable_info): Delete prototype.
8931
d2324da4
AC
89322002-05-11 Andrew Cagney <ac131313@redhat.com>
8933
8934 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8935 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8936 $(gdb_regex_h).
8937 (gdb_assert_h): Define.
8938 (gdb_wait_h): Define.
8939 (gdb_regex_h): Define.
8940
5c717440
DJ
89412002-05-11 Daniel Jacobowitz <drow@mvista.com>
8942
8943 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8944 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8945
6c7861b3
JT
89462002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8947
8948 * nbsd-tdep.c: Fix comment.
8949
ea5bc2a6
JT
89502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8951
8952 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8953 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8954 (nbsd-tdep.o): New dependency list.
8955 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8956 nbsd-tdep.h.
8957 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8958 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8959 * nbsd-tdep.c: New file.
8960 * nbsd-tdep.h: New file.
8961 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8962 nbsd-tdep.h.
8963 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8964 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8965 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8966 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8967
b28da865
JT
89682002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8969
8970 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8971 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8972 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8973 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8974 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8975 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8976
4b8ff1fa
JT
89772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8978
8979 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8980 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8981 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8982 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8983 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8984 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8985 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8986
dfe6eb1f
JT
89872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8988
8989 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8990 fetch_elfcore_registers to...
8991 * i386nbsd-tdep.c: ...here.
8992 (i386nbsd_use_struct_convention): Rename to...
8993 (i386nbsd_aout_use_struct_convention): ...this.
8994 (i386nbsd_supply_reg): New function.
8995 (i386nbsd_fill_reg): New function.
8996 (fetch_core_registers): Use i386nbsd_supply_reg.
8997 (fetch_elfcore_registers): Likewise.
8998 (_initialize_i386nbsd_tdep): New function.
8999 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9000 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9001 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9002 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9003 (i386nbsd_aout_use_struct_convention): ...this.
9004
20cb8cda
JT
90052002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9006
9007 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9008 (store_inferior_registers): Use shnbsd_fill_reg.
9009 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9010 sh_nbsd_supply_register): Collapse into...
9011 (shnbsd_supply_reg): ...this.
9012 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9013 (shnbsd_fill_reg): ...this.
9014 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9015 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9016 (fetch_core_registers): Use shnbsd_supply_reg.
9017 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9018 (sh_nbsd_core_fns): Rename to...
9019 (shnbsd_core_fns): ...this.
9020 (sh_nbsd_elfcore_fns): Rename to...
9021 (shnbsd_elfcore_fns): ...this.
9022 (sh_nbsd_init_abi): Rename to...
9023 (shnbsd_init_abi): ...this.
9024 (_initialize_sh_nbsd_tdep): Rename to...
9025 (_initialize_shnbsd_tdep): ...this.
9026 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9027 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9028 sh_nbsd_fill_register): Remove prototypes.
9029 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9030
e750d25e
JT
90312002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9032
9033 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9034 (i387-nat.o): Delete dependency list.
9035 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9036 (x86-64-linux-nat.o): Likewise.
9037 * i387-nat.c: Delete file, moving contents to...
9038 * i387-tdep.c: ...here.
9039 * i387-nat.h: Rename...
9040 * i387-tdep.h: ...to this.
9041 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9042 * i386-linux-nat.c: Likewise.
9043 * i386bsd-nat.c: Likewise.
9044 * i386gnu-nat.c: Likewise.
9045 * i386nbsd-nat.c: Likewise.
9046 * i386v4-nat.c: Likewise.
9047 * x86-64-linux-nat.c: Likewise.
9048 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9049 * config/i386/go32.mh (NATDEPFILES): Likewise.
9050 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9051 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9052 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9053 * config/i386/linux.mh (NATDEPFILES): Likewise.
9054 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9055 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9056 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9057 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9058
1aee598a
JT
90592002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9060
9061 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9062 (alphanbsd-nat.o): Remove dependency list.
9063 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9064 * alphanbsd-nat.c: Delete. Contents moved to...
9065 * alphanbsd-tdep.c: ...here.
9066 (_initialize_alphanbsd_tdep): Register core functions.
9067 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9068
12bcb0fe
JT
90692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9070
9071 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9072 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9073 (alphanbsd-nat.o): Likewise.
9074 (alphabsd-tdep.o): New dependency list.
9075 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9076 (fill_gregset): Use alphabsd_fill_reg.
9077 (supply_fpregset): Use alphabsd_supply_fpreg.
9078 (fill_fpregset): Use alphabsd_fill_fpreg.
9079 (fetch_inferior_registers): Use struct reg and struct fpreg
9080 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9081 and alphabsd_supply_fpreg.
9082 (store_inferior_registers): Use struct reg and struct fpreg
9083 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9084 and alphabsd_fill_fpreg.
9085 * alphabsd-tdep.c: New file.
9086 * alphabsd-tdep.h: New file.
9087 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9088 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9089 alphabsd_supply_fpreg.
9090 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9091 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9092
361d1df0
EC
90932002-05-11 Eric Christopher <echristo@redhat.com>
9094
9095 * mips-tdep.c (mips_double_register_type): Fix thinko.
9096 (mips_single_register_type): Ditto.
9097 * MAINTAINERS: Add self.
9098
92dd7cee
MK
90992002-05-11 Mark Kettenis <kettenis@gnu.org>
9100
9101 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9102 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9103 right thing on architectures with different endianness and/or
9104 integer sizes.
9105
e27da16d
JT
91062002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9107
9108 From Christian Limpach <chris@Pin.LU>
9109 * configure.in: Change sed expression which comments out
9110 NATDEPFILES to also comment out continuation lines.
9111 * configure: Regenerate.
9112
ddde02bd
EZ
91132002-05-10 Elena Zannoni <ezannoni@redhat.com>
9114
9115 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9116 big patch.
9117
1c922164
EZ
91182002-05-10 Elena Zannoni <ezannoni@redhat.com>
9119
9120 * sh-tdep.c: Include correct file.
9121
283150cd
EZ
91222002-05-10 Elena Zannoni <ezannoni@redhat.com>
9123
9124 New support for sh64-elf (sh5) target.
9125
9126 * configure.tgt: For sh64-elf target, default to sh-elf.
9127
9128 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9129 (struct gdbarch_tdep): Add new fields for new registers and ABI
9130 info.
361d1df0 9131
283150cd
EZ
9132 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9133 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9134 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9135 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9136 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9137 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9138 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9139 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9140 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9141 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9142 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9143 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9144 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9145 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9146 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9147 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9148 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9149 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9150 sign_extend, sh64_nofp_frame_init_saved_regs,
9151 sh64_init_extra_frame_info, sh64_get_saved_register,
9152 sh64_extract_struct_value_address, sh64_pop_frame,
9153 sh64_push_arguments, sh64_extract_return_value,
9154 sh64_store_return_value, sh64_show_media_regs,
9155 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9156 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9157 sh_sh64_register_virtual_type,
9158 sh_sh64_register_convert_to_virtual,
9159 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9160 sh64_register_read, sh64_pseudo_register_write,
9161 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9162 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9163 sh64_do_pseudo_register, sh_compact_do_registers_info,
9164 sh64_do_registers_info, sh_gdbarch_init): New functions.
9165
3117ed25
EZ
91662002-05-10 Elena Zannoni <ezannoni@redhat.com>
9167
9168 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9169
2654e6d4
DJ
91702002-05-10 Daniel Jacobowitz <drow@mvista.com>
9171
9172 * linespec.c (decode_line_1): Check for a double quote after
9173 a filename correctly.
9174
9ab3e532
JB
91752002-05-10 Jim Blandy <jimb@redhat.com>
9176
9177 Properly track the size of the current objfile's .debug_line section.
9178 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9179 (DWARF_LINE_SIZE): New macro.
9180 (dwarf2_build_psymtabs_hard): Record the line section's size in
9181 the partial symbol table.
9182 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9183 symbol table.
9184
126fa72d
PS
91852002-05-10 Petr Sorfa <petrs@caldera.com>
9186
9187 * ia64-tdep.c: Handle breakpoints on L instruction type
9188 in MLX instruction bundle by moving the breakpoint to
9189 the third slot (X instruction type) as L holds only data.
9190
1f077a3e
KB
91912002-05-10 Kevin Buettner <kevinb@redhat.com>
9192
9193 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9194 (process_one_symbol): Complain about discarding local symbols
9195 due to a misplaced N_LBRAC entry.
9196
8120c9d5 91972002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9198
9199 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9200 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9201 decrease the depth we are at, in the case of templates.
361d1df0 9202
67b2c998
DJ
92032002-05-09 Daniel Jacobowitz <drow@mvista.com>
9204
9205 * mips-tdep.c (mips_float_register_type): New function.
9206 (mips_double_register_type): New function.
9207 (mips_print_register): Use them.
9208 (do_fp_register_row): Likewise.
9209
fd326606
DJ
92102002-05-09 Daniel Jacobowitz <drow@mvista.com>
9211
6609d9af 9212 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9213 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9214 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9215
bef35864
MS
92162002-05-09 Michael Snyder <msnyder@redhat.com>
9217
9218 * remote-rdp.c (remote_rdp_can_run): Remove.
9219
c55a3f73
TT
92202002-05-09 Tom Tromey <tromey@redhat.com>
9221
9222 * jv-valprint.c (java_val_print): Handle `char' as a special case
9223 of TYPE_CODE_INT.
9224
b8d5e71d
MS
92252002-05-09 Michael Snyder <msnyder@redhat.com>
9226
9227 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9228 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9229 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9230 str r(0123),[sp,#nn].
361d1df0 9231 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9232 order-independent by placing it in a loop.
9233
e2cd42dd
MS
92342002-05-06 Michael Snyder <msnyder@redhat.com>
9235
9236 * stabsread.c (read_type): Add recognition for new attribute:
9237 "@V;" means that an array type is actually a vector.
9238 This is analogous to the vector flag that's been added to dwarf2.
9239
3ce1502b
MK
92402002-05-09 Mark Kettenis <kettenis@gnu.org>
9241
9242 * i386-tdep.h (i386_abi): New enum.
9243 (struct gdbarch_tdep): Replace os_ident member with abi.
9244 (i386_gdbarch_register_os_abi): New prototype.
9245 * i386-tdep.c (i386_abi_names): New array.
9246 (process_note_abi_tag_sections): Removed.
9247 (process_note_sections): New function.
9248 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9249 (struct i386_abi_handler): New struct.
9250 (i386_abi_handler_list): New variable.
9251 (i386_gdbarch_register_os_abi): New function.
9252 (i386_gdbarch_init): Adapt for the changes given above.
9253
084c156a
DJ
92542002-05-08 Daniel Jacobowitz <drow@mvista.com>
9255
9256 * gregset.h: Say "GNU/Linux".
9257
6599f021
EZ
92582002-05-08 Elena Zannoni <ezannoni@redhat.com>
9259
9260 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9261 (build_gdbtypes): Build builtin_type_v2_float.
9262 (_initialize_gdbtypes): Register new builtin type.
9263
40af4b0c
AC
92642002-05-08 Andrew Cagney <ac131313@redhat.com>
9265
9266 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9267 (clear_gdbarch_swap): New function.
9268 (initialize_non_multiarch): Call.
9269 (gdbarch_update_p): Before calling init(), swap out and clear the
9270 existing architecture.
9271 * gdbarch.c: Regenerate.
9272
4fe84f46
JT
92732002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9274
9275 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9276 alphanbsd-tdep.c.
9277
4015edd1
JT
92782002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9279
9280 * sh-nbsd-nat.c: Rename to...
9281 * shnbsd-nat.c: ...this.
9282 * sh-nbsd-tdep.c: Rename to...
9283 * shnbsd-tdep.c: ...this.
9284 * sh-nbsd-tdep.h: Rename to...
9285 * shnbsd-tdep.h: ...this.
9286 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9287 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9288
0e2bd219
RE
92892002-05-08 Richard Earnshaw <rearnsha@arm.com>
9290
9291 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9292 concatenation for command help messages.
9293
13a38d45
JT
92942002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9295
9296 * NEWS: Note new sh*-*-netbsdelf* configuration.
9297 * configure.host: Set gdb_host_cpu to sh for all sh*.
9298 (sh*-*-netbsdelf*): New host.
9299 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9300 (sh*-*-netbsdelf*): New target.
9301 * sh-nbsd-nat.c: New file.
9302 * sh-nbsd-tdep.c: New file.
9303 * sh-nbsd-tdep.h: New file.
9304 * config/sh/nbsd.mh: New file.
9305 * config/sh/nbsd.mt: New file.
9306 * config/sh/nm-nbsd.h: New file.
9307 * config/sh/tm-nbsd.h: New file.
9308
d658f924
JT
93092002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9310
9311 * sh-tdep.c (sh_osabi_names): Declare.
9312 (process_note_abi_tag_sections): New function.
9313 (get_elfosabi): Ditto.
9314 (sh_gdbarch_register_os_abi): Ditto.
9315 (sh_dump_tdep): Ditto.
9316 _initialize_sh_tdep): Use gdbarch_register to register
9317 sh_gdbarch_init and sh_dump_tdep.
9318 * config/sh/tm-sh.h (sh_osabi): Declare.
9319 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9320
848cfffb
AC
93212002-05-07 Andrew Cagney <ac131313@redhat.com>
9322
9323 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9324 (thumb_scan_prologue): Ditto.
9325 (arm_find_callers_reg): Ditto.
9326 (arm_frame_chain): Ditto.
9327 (arm_init_extra_frame_info): Ditto.
9328 (arm_frame_saved_pc): Ditto.
9329 (arm_pop_frame): Ditto.
9330 (arm_push_return_address): New function.
9331 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9332 call_dummy_location, call_dummy_breakpoint_offset_p,
9333 call_dummy_breakpoint_offset, call_dummy_p,
9334 call_dummy_stack_adjust_p, call_dummy_words,
9335 sizeof_call_dummy_words, call_dummy_start_offset,
9336 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9337 call_dummy_address, push_return_address and push_dummy_frame for
9338 generic dummy frames.
9339
e7d717c0
JT
93402002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9341
9342 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9343 size computation for alloca.
9344 (sh_fp_frame_init_saved_regs): Likewise.
9345
7bbcf283
RE
93462002-05-07 Richard Earnshaw <rearnsha@arm.com>
9347
9348 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9349 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9350 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9351 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9352 * remote-rdp.c (remote_rdp_fetch_register): Use
9353 ARM_MAX_REGISTER_RAW_SIZE.
9354 (remote_rdp_store_register): Likewise.
9355
4657573b
ML
93562002-05-07 Michal Ludvig <mludvig@suse.cz>
9357
361d1df0 9358 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9359 added default labels to switch {} statements.
9360 * x86-64-tdep.c: Ditto.
9361 * x86-64-linux-nat.c: Ditto.
9362
010f3b2f
JT
93632002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9364
9365 * solib.h: Protect against multiple inclusion.
9366
debd256d
JB
93672002-05-06 Jim Blandy <jimb@redhat.com>
9368
9ab3e532
JB
9369 Add first preprocessor macro-expansion files.
9370 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9371 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9372 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9373 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9374 (COMMON_OBS): Add macrotab.o, macroexp.o.
9375 (macroexp.o, macrotab.o): New rules.
9376
debd256d
JB
9377 Separate the job of reading the line number info statement program
9378 header (...expialidocious) out into its own function.
9379 * dwarf2read.c (struct line_head, struct filenames, struct
9380 directories): Replace with...
9381 (struct line_header): New structure, containing the full
9382 contents of the statement program header, including the
9383 include directory and file name tables.
9384 (read_file_scope): If we have line number info, instead of just
9385 calling dwarf_decode_lines to do all the work, call
9386 dwarf_decode_line_header first to get a `struct line_header'
9387 containing the data in the statement program header, and then
9388 pass that to dwarf_decode_lines, which will pick up where that
9389 left off. Be sure to clean up the `struct line_header' object.
9390 (dwarf_decode_line_header, free_line_header, add_include_dir,
9391 add_file_name): New functions.
9392 (dwarf_decode_lines): Move all the code to read the statement
9393 program header into dwarf_decode_line_header. Take the line
9394 header it built as the first argument, instead of the offset to
9395 the compilation unit's line number info. Use the new `struct
9396 line_header' type instead of the old structures. No need to do
9397 cleanups here now, since we don't allocate anything.
9398 (dwarf2_statement_list_fits_in_line_number_section,
9399 dwarf2_line_header_too_long): New complaints.
9400
ac3aafc7
EZ
94012002-05-06 Elena Zannoni <ezannoni@redhat.com>
9402
9403 * gdbtypes.c (init_vector_type): New function.
9404 (build_builtin_type_vec128): Simplify the representation of SIMD
9405 registers.
9406 (build_gdbtypes): Initialize new builtin vector types.
9407 (_initialize_gdbtypes): Register new vector types with gdbarch.
9408 (builtin_type_v4_float, builtin_type_v4_int32,
9409 builtin_type_v8_int16, builtin_type_v16_int8,
9410 builtin_type_v2_int32, builtin_type_v4_int16,
9411 builtin_type_v8_int8): New (renamed) SIMD types.
9412
13e49980
MK
94132002-05-06 Mark Kettenis <kettenis@gnu.org>
9414
9415 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9416 (i387_fill_fxsave): Likewise.
9417
997b20b8
AO
94182002-05-05 Alexandre Oliva <aoliva@redhat.com>
9419
9420 * alpha-tdep.c (alpha_extract_return_value): Don't use
9421 non-constant array size in prototype.
9422
535c96ce
AC
94232002-05-04 Andrew Cagney <ac131313@redhat.com>
9424
9425 From Brian Taylor <briant at model dot com>:
9426 * ui-out.c (ui_out_field_core_addr): Use the function
9427 longest_local_hex_string_custom'to format addresses > 32 bits
9428 wide.
9429
9430 * ui-out.c (ui_out_field_core_addr): Update comment.
9431
bedfa57b
AC
94322002-05-04 Andrew Cagney <ac131313@redhat.com>
9433
9434 * stack.c (select_and_print_frame): Make static. Delete the
9435 parameter `level'.
9436 (func_command): Update call.
9437 (select_frame_command): Delete code computing the frame level.
9438 * frame.h (select_and_print_frame): Delete declaration.
9439
f621c63e
AC
94402002-05-04 Andrew Cagney <ac131313@redhat.com>
9441
9442 * sparc-tdep.c (sparc_get_saved_register): Comment why
9443 get_prev_frame call is safe.
9444
0f7d239c
AC
94452002-05-04 Andrew Cagney <ac131313@redhat.com>
9446
9447 * frame.h (select_frame): Delete level parameter.
9448 * stack.c (select_frame): Update. Use frame_relative_level to
9449 obtain the frame's level.
9450 (select_and_print_frame): Update call.
9451 (select_frame_command): Ditto.
9452 (up_silently_base): Ditto.
9453 (down_silently_base): Ditto.
9454 * ocd.c (ocd_start_remote): Ditto.
9455 * remote-rdp.c (remote_rdp_open): Ditto.
9456 * remote-mips.c (mips_initialize): Ditto.
9457 (common_open): Ditto.
9458 * remote-e7000.c (e7000_start_remote): Ditto.
9459 * m3-nat.c (select_thread): Ditto.
9460 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9461 (child_get_current_exception_event): Ditto.
9462 * varobj.c (varobj_create): Ditto.
9463 (varobj_update): Ditto.
9464 (c_value_of_root): Ditto.
9465 * tracepoint.c (finish_tfind_command): Ditto.
9466 * corelow.c (core_open): Ditto.
9467 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9468 * thread.c (info_threads_command): Ditto.
9469 (switch_to_thread): Ditto.
9470 * infrun.c (normal_stop): Ditto.
9471 (restore_selected_frame): Ditto.
9472 (restore_inferior_status): Ditto.
9473 * breakpoint.c (insert_breakpoints): Ditto.
9474 (watchpoint_check): Ditto.
9475 (bpstat_stop_status): Ditto.
9476 (do_enable_breakpoint): Ditto.
9477 * blockframe.c (flush_cached_frames): Ditto.
9478 (reinit_frame_cache): Ditto.
9479
71d6c7b1
AC
94802002-05-04 Andrew Cagney <ac131313@redhat.com>
9481
9482 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9483 maintainer.
9484
cda6c68a
JB
94852002-05-04 Jim Blandy <jimb@redhat.com>
9486
9487 * gdbtypes.c (replace_type): Doc fix.
9488
5c1c87f0
AC
94892002-05-04 Andrew Cagney <ac131313@redhat.com>
9490
9491 * valprint.c (strcat_longest): Delete commented out function.
9492 Update copyright.
9493
cd9bfe15
AC
94942002-05-04 Andrew Cagney <ac131313@redhat.com>
9495
9496 * MAINTAINERS: Mark a29k as deleted.
9497 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9498 Move new configurations to the top.
9499 * configure.tgt: Remove a29k.
9500 * config/a29k/tm-vx29k.h: Delete.
9501 * config/a29k/vx29k.mt: Delete.
9502 * config/a29k/tm-a29k.h: Delete.
9503 * config/a29k/a29k-udi.mt: Delete.
9504 * config/a29k/a29k.mt: Delete.
9505 * a29k-tdep.c: Delete.
9506 * remote-udi.c: Delete.
9507 * remote-mm.c: Delete.
9508 * remote-eb.c: Delete.
9509 * remote-adapt.c: Delete.
9510 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9511 * config/s390/s390x.mt: Ditto.
9512 * config/s390/s390.mt: Ditto.
9513 * config/sparc/sparclynx.mh: Ditto.
9514 * config/sparc/linux.mh: Ditto.
9515 * config/pa/hppaosf.mh: Ditto.
9516 * config/pa/hppabsd.mh: Ditto.
9517 * config/ns32k/nbsd.mt: Ditto.
9518 * config/mips/vr5000.mt: Ditto.
9519 * config/m68k/sun3os4.mh: Ditto.
9520 * config/m68k/nbsd.mt: Ditto.
9521 * config/m68k/m68klynx.mh: Ditto.
9522 * config/m32r/m32r.mt: Ditto.
9523 * config/i386/x86-64linux.mt: Ditto.
9524 * config/i386/nbsdelf.mt: Ditto.
9525 * config/i386/nbsd.mt: Ditto.
9526 * config/i386/i386lynx.mh: Ditto.
9527
bf0c5130
AC
95282002-05-04 Andrew Cagney <ac131313@redhat.com>
9529
9530 * target.c (debug_print_register): New function. Handle oversize
9531 registers.
9532 (debug_to_fetch_registers): Call.
9533 (debug_to_store_registers): Call.
9534
2ae1c2d2
JB
95352002-05-03 Jim Blandy <jimb@redhat.com>
9536
13a393b0
JB
9537 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9538 (read_type): Doc fix.
9539 * gdbtypes.c (replace_type): Doc fix.
9540
2ae1c2d2
JB
9541 * stabsread.c (multiply_defined_struct): New complaint.
9542 (read_struct_type): If the type we were passed isn't empty, or
9543 incomplete, don't read the new struct type into it; complain,
9544 and return the original type unchanged. Take a new `type_code'
9545 argument, which is the type code for the new type.
9546 (read_type): Rather than storing the type's type code here, pass
9547 it as an argument to read_struct_type, and let that take care of
9548 storing it. That way, we don't overwrite the original type code,
9549 so read_struct_type can use it to decide whether we're overwriting
9550 something we shouldn't.
9551 (complain_about_struct_wipeout): New function.
9552
8de9bdc4
AC
95532002-05-03 Andrew Cagney <ac131313@redhat.com>
9554
9555 * gdbarch.sh: Assert that gdbarch is non-NULL.
9556 * gdbarch.c: Regenerate.
9557
f773fdbb
JM
95582002-05-03 Jason Merrill <jason@redhat.com>
9559
9560 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9561 and return NULL.
9562
0e04a514
ML
95632002-05-03 Michal Ludvig <mludvig@suse.cz>
9564
9565 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9566 (x86_64_dwarf2gdb_regno_map_length),
9567 (x86_64_dwarf2_reg_to_regnum): Added.
9568 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9569 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9570 (_initialize_x86_64_tdep): Synced with the change above.
9571 (x86_64_skip_prologue): Reformulated message.
9572
065432a8
PM
95732002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9574
9575 * f-exp.y: Also use new prev_lexptr variable
9576 to improve error reporting. Based on Michael Snyder
9577 2002-04-24 dated patch to c-exp.y.
9578 * jv-exp.y: Likewise.
9579 * m2-exp.y: Likewise.
9580
a3162708
EZ
95812002-05-02 Elena Zannoni <ezannoni@redhat.com>
9582
9583 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9584 we are dealing with vectors.
9585
03620c38
PM
95862002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9587
9588 * config/m68k/tm-nbsd.h: Obvious fix,
9589 correct machine name.
9590
6604db2e
PM
95912002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9592
9593 * p-typeprint.c (pascal_type_print_base): Add support
9594 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9595
0906b739
PM
95962002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9597
9598 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9599 for fondamental pascal 'char' type.
9600
e2625b33
PM
96012002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9602
9603 * p-lang.h (is_pascal_string_type): Declaration changed,
9604 new sixth argument of type char ** added.
361d1df0 9605 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9606 changed. Args length_pos, length_size, string_pos, char_size
9607 can now be NULL. New argument arrayname set to the field
9608 name of the char array. Return value set to char array
9609 field index plus one.
361d1df0 9610 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9611 is_pascal_string_type function.
9612
cf17c188
AC
96132002-05-02 Andrew Cagney <cagney@redhat.com>
9614
9615 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9616 <cagney@redhat.com> change.
9617 * gdbarch.c: Regenerate.
9618
52bca491
AC
96192002-05-02 Andrew Cagney <cagney@redhat.com>
9620
9621 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9622 before probing for a new one. Detect errorenous gdbarch_init
9623 functions.
9624 * gdbarch.c: Regenerate.
9625
d5e72505
AC
96262002-05-01 Andrew Cagney <cagney@redhat.com>
9627
9628 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9629 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9630 * config/v850/tm-v850.h: Ditto. Update copyright.
9631
af566d9f
AC
96322002-04-30 Andrew Cagney <ac131313@redhat.com>
9633
9634 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9635 current_gdbarch.
9636
880d85fa
MS
96372002-04-30 Michael Snyder <msnyder@redhat.com>
9638
94c30b78
MS
9639 * arm-tdep.c: Whitespace clean-ups.
9640 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9641 should have been removed as part of 4/24 change.
9642
6f5987a6
KB
96432002-04-30 Kevin Buettner <kevinb@redhat.com>
9644
9645 * rs6000-tdep.c: Added comment describing how fpscr register
9646 numbers were chosen.
9647
1a113c93
MS
96482002-04-30 Michael Snyder <msnyder@redhat.com>
9649
9650 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9651
9a6f53fe
EZ
96522002-04-29 Elena Zannoni <ezannoni@redhat.com>
9653
9654 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9655 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9656 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9657
11ed25ac
KB
96582002-04-29 Kevin Buettner <kevinb@redhat.com>
9659
9660 From Louis Hamilton <hamilton@redhat.com>:
9661 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9662 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9663 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9664 not bfd-private xcoff data, to determine wordsize.
9665 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9666
ae232405
AC
96672002-04-29 Andrew Cagney <ac131313@redhat.com>
9668
9669 GDB 5.2 released from 5.2 branch.
9670
91fd20f7
ML
96712002-04-29 Michal Ludvig <mludvig@suse.cz>
9672
9673 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9674 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9675 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9676
2dc5091b
EZ
96772002-04-29 Elena Zannoni <ezannoni@redhat.com>
9678
9679 * rs6000-tdep.c (rs6000_extract_return_value,
9680 rs6000_store_return_value): Handle returning vectors.
9681 (rs6000_gdbarch_init): Use
9682 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9683 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9684 New function.
9685 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9686 vectors.
9687 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9688 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9689
2b9848d8
PM
96902002-04-24 Pierre Muller <ics.u-strasbg.fr>
9691
9692 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9693 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9694 with fprintf_unfiltered (gdb_stderr,...).
9695
f8d17dc5
PM
96962002-04-24 Pierre Muller <ics.u-strasbg.fr>
9697
9698 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9699 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9700 Replace fprintf (stderr,...
9701 with fprintf_unfiltered (gdb_stderr,....
9702 * remote-es.c: Likewise.
9703 * remote-os9k.c: Likewise.
9704 * remote-st.c: Likewise.
9705
2f2f1ad1
AS
97062002-04-28 Andreas Schwab <schwab@suse.de>
9707
9708 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9709 linux-proc.o and gcore.o.
9710
b6779aa2
AC
97112002-04-26 Michal Ludvig <mludvig@suse.cz>
9712
9713 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9714 code without frame pointers.
9715
7e57f5f4
AC
97162002-04-26 Andrew Cagney <ac131313@redhat.com>
9717
9718 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9719 ON_STACK is needed.
9720
2ceb85d0
BE
97212002-04-26 Ben Elliston <bje@redhat.com>
9722
9723 * target.c (do_xfer_memory): Correct reference to the new option
9724 "trust-readonly-sections".
9725
f5f8a009
EZ
97262002-04-26 Elena Zannoni <ezannoni@redhat.com>
9727
9728 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9729 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9730 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9731 vectors.
9732 (read_array_type): Record the fact that this array type is really a
9733 vector (i.e. are passed in by value).
9734
5868c862
JT
97352002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9736
9737 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9738 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9739 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9740 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9741 * alpha-linux-tdep.c: Include frame.h.
9742 (alpha_linux_sigcontext_addr): New function.
9743 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9744 alpha_linux_sigcontext_addr.
9745 * alpha-osf1-tdep.c: Include gdbcore.h.
9746 (alpha_osf1_sigcontext_addr): New function.
9747 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9748 alpha_osf1_sigcontext_addr.
9749 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9750 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9751
bfb01f37
AC
97522002-04-26 Andrew Cagney <ac131313@redhat.com>
9753
361d1df0 9754 * stack.c (selected_frame_level):
bfb01f37
AC
9755 (select_frame): Do not set selected_frame_level.
9756 * frame.h (selected_frame_level): Delete declaration.
9757
15813d3f
AC
97582002-04-26 Andrew Cagney <ac131313@redhat.com>
9759
9760 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9761 convert_from_func_ptr-addr when AIX / PowerOpen.
9762
6096c27a
AC
97632002-04-25 Andrew Cagney <ac131313@redhat.com>
9764
9765 * valops.c (hand_function_call): Call
9766 generic_save_call_dummy_addr.
9767 * frame.h (generic_save_call_dummy_addr): Declare.
9768 * blockframe.c (struct dummy_frame): Add fields call_lo and
9769 call_hi.
9770 (generic_find_dummy_frame): Check for PC in range call_lo to
9771 call_hi instead of entry_point_address.
9772 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9773 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9774 (generic_save_call_dummy_addr): New function.
9775
f510d44e
DM
97762002-04-24 David S. Miller <davem@redhat.com>
9777
9778 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9779 sparc_skip_prologue.
9780 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9781 information to find prologue when possible.
9782 (sparc_prologue_frameless_p): Call examine_prologue directly.
9783 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9784 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9785 second argument.
9786 (SKIP_PROLOGUE): Likewise.
9787
15d72a92
JT
97882002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9789
9790 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9791 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9792 indicate that the condition it was testing is always true.
9793 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9794 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9795 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9796
accc6d1f
JT
97972002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9798
9799 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9800 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9801 tdep->jb_pc and tdep->jb_elt_size.
9802 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9803 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9804 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9805 * alpha-nat.c (get_longjmp_target): Remove.
9806 (JB_ELEMENT_SIZE): Ditto.
9807 (JB_PC): Ditto.
9808 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9809 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9810 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9811 to alpha_get_longjmp_target.
9812 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9813 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9814 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9815
1bfdc549
AC
98162002-04-25 Andrew Cagney <ac131313@redhat.com>
9817
9818 * README: Update to GDB 5.2.
9819
1bd316f0
AC
98202002-04-25 Andrew Cagney <ac131313@redhat.com>
9821
9822 * gdbarch.sh (LC_ALL): Set to `c'.
9823
2e5ff58c
TR
98242002-04-25 Theodore A. Roth <troth@verinet.com>
9825
9826 * avr-tdep.c: Ran through gdb_indent.sh.
9827
e33ce519
TR
98282002-04-25 Theodore A. Roth <troth@verinet.com>
9829
9830 * MAINTAINERS: Add myself as AVR maintainer.
9831 * NEWS: Note new target avr.
9832
8818c391
TR
98332002-04-25 Theodore A. Roth <troth@verinet.com>
9834
9835 * Makefile.in: Add support for AVR target.
9836 * configure.tgt: Add support for AVR target.
9837 * avr-tdep.c: New file
9838 * config/avr/avr.mt: New file.
9839
79509c2d
TR
98402002-04-25 Theodore A. Roth <troth@verinet.com>
9841
9842 * MAINTAINERS: Add myself to write-after-approval.
9843
dac8068e
PM
98442002-04-24 Pierre Muller <ics.u-strasbg.fr>
9845
9846 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9847 with fprintf_unfiltered (gdb_stderr,....
9848
25bf3106
PM
98492002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9850
9851 Fix PR gdb/508.
9852 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9853
24467a86
PM
98542002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9855
9856 * p-exp.y: Also use new prev_lexptr variable
9857 to improve error reporting. Based on Michael Snyder
9858 2002-04-24 dated patch to c-exp.y.
9859
95b80706
JT
98602002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9861
9862 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9863 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9864 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9865 to 0.
9866 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9867 and struct value.
9868 (FUNCTION_START_OFFSET): Remove.
9869 (BREAKPOINT): Ditto.
9870
e90cc612
JT
98712002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9872
9873 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9874 * NEWS: Ditto.
9875
6c72f9f9
JT
98762002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9877
9878 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9879 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9880 alpha_linux_pc_in_sigtramp.
9881 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9882 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9883 alpha_osf1_pc_in_sigtramp.
9884 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9885 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9886 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9887 alphafbsd_pc_in_sigtramp.
9888 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9889 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9890 alphanbsd_pc_in_sigtramp.
9891 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9892 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9893
5e4f3379
JT
98942002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9895
9896 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9897
da8ca43d
JT
98982002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9899
9900 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9901 alphanbsd-tdep.c.
9902 (alphanbsd-nat.o): New dependency list.
9903 (alphanbsd-tdep.o): Ditto.
9904 * NEWS: Note new native NetBSD/alpha configuration.
9905 * alphanbsd-nat.c: New file.
9906 * alphanbsd-tdep.c: Ditto.
9907 * configure.host (alpha*-*-netbsd*): New host.
9908 * configure.tgt (alpha*-*-netbsd*): New target.
9909 * config/alpha/nbsd.mh: New file.
9910 * config/alpha/nbsd.mt: Ditto.
9911 * config/alpha/nm-nbsd.h: Ditto.
9912 * config/alpha/tm-nbsd.h: Ditto.
9913
36a6271d
JT
99142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9915
9916 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9917 (alpha-osf1-tdep.o): New dependency list.
9918 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9919 and skip_sigtramp_frame members.
9920 * alpha-linux-tdep.c: Include gdbcore.h.
9921 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9922 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9923 * alpha-osf1-tdep.c: New file.
9924 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9925 alpha-osf1-dep.c.
9926 (alpha_frame_past_sigtramp_frame): New function.
9927 (alpha_dynamic_sigtramp_offset): Ditto.
9928 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9929 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9930 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9931 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9932 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9933 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9934 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9935 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9936 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9937 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9938 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9939 to find_solib_trampoline_target.
9940 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9941 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9942 (SKIP_TRAMPOLINE_CODE): Remove.
9943 (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 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9948 (PROC_SIGTRAMP_MAGIC): Ditto.
9949 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9950 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9951 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9952 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9953 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9954
2f4bc57b
JT
99552002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9956
9957 * NEWS: Note that Alpha targets are now multi-arch.
9958
665132f9
MS
99592002-04-24 Michael Snyder <msnyder@redhat.com>
9960
9961 * parser-defs.h (prev_lexptr): New external variable.
9962 * parse.c (parse_exp_1): Set prev_lexptr to null before
9963 calling the language-specific parser.
9964 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9965 (yyerror): Use prev_lexptr in error reporting.
9966
32872fa7
DJ
99672002-04-24 Daniel Jacobowitz <drow@mvista.com>
9968
9969 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9970 * gregset.h: If FILL_FPXREGSET is defined, provide
9971 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9972 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9973 is defined, call fill_fpxregset.
9974
57e76fac
MS
99752002-04-24 Roland McGrath <roland@frob.com>
9976
9977 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9978 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9979 (supply_gregset, supply_fpregset): New functions.
9980
9981 * gnu-nat.c (gnu_find_memory_regions): New function.
9982 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9983 (gnu_xfer_memory): Add a cast.
9984
f43845b3
MS
99852002-04-24 Michael Snyder <msnyder@redhat.com>
9986
361d1df0 9987 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9988 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9989 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9990 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9991 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9992 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9993
a0abec03
AC
9994Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9995
9996 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9997 NUM_PSEUDO_REGS can be used.
9998
d7bd68ca
AC
99992002-04-24 Andrew Cagney <ac131313@redhat.com>
10000
10001 * arch-utils.h: Update copyright.
10002
10003 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10004 * gdbarch.h, gdbarch.c: Re-generate.
10005
10006 * inferior.h (IN_SIGTRAMP): Delete definition.
10007 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10008 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10009
10010 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10011 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10012 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10013 (find_proc_framesize): Ditto.
10014 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10015 (alpha_init_extra_frame_info): Ditto.
10016 * infrun.c (handle_inferior_event): Ditto.
10017 (handle_inferior_event): Ditto.
10018 (check_sigtramp2): Ditto.
10019 * blockframe.c (create_new_frame): Ditto.
10020 (get_prev_frame): Ditto.
10021 * ppc-linux-tdep.c: Update comments.
10022 * i386-linux-tdep.c: Update comments.
10023 * breakpoint.c (bpstat_what): Update comment.
10024
4867e41e
DM
100252002-04-24 David S. Miller <davem@redhat.com>
10026
21d83aa5
DM
10027 * i960-tdep.c (register_in_window_p): New function.
10028 (i960_find_saved_register): Use it instead of
10029 REGISTER_IN_WINDOW_P.
10030 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10031
4867e41e
DM
10032 * symtab.h (find_stab_function_addr): Kill extern.
10033 * minsyms.c (find_stab_function_addr): Remove from here...
10034 * dbxread.c: ... to here, and mark it static.
10035
69cdf6a2
DM
100362002-04-20 David S. Miller <davem@redhat.com>
10037
10038 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10039 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10040
5a595886
DM
100412002-04-21 David S. Miller <davem@redhat.com>
10042
10043 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10044 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10045 (vx_write_register): Likewise.
10046
1da1a192
JB
100472002-04-23 J. Brobecker <brobecker@gnat.com>
10048
10049 * source.c (is_regular_file): New function.
10050 (openp): Check wether file to open is a regular file
10051 to avoid opening directories.
10052
baa6f10b
JT
100532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10054
10055 * findvar.c (extract_signed_integer): Cast printf argument
10056 to suppress format warning.
10057 (extract_unsigned_integer): Likewise.
10058 * infcmd.c (registers_info): Likewise.
10059 * top.c (get_prompt_1): Likewise.
10060 * valops.c (value_assign): Likewise.
10061 * valprint.c (print_decimal): Likewise.
10062
b2c4da81
L
100632002-04-22 H.J. Lu (hjl@gnu.org)
10064
10065 * c-exp.y (typebase): Support
361d1df0 10066
b2c4da81
L
10067 [long|long long|short] [signed|unsigned] [int|]
10068
10069 and
10070
10071 signed [long|long long|short] int
10072
f267bd6a
JT
100732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10074
10075 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10076 and vax-tdep.h.
10077 * vax-tdep.h: New file.
10078 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10079 Make several routines static.
10080 (vax_get_saved_register): New function.
10081 (vax_gdbarch_init): New function.
10082 (_initialize_vax_tdep): Register vax_gdbarch_init.
10083 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10084 Remove macros now under the control of gdbarch.
10085
da3c6d4a
MS
100862002-04-22 Michael Snyder <msnyder@redhat.com>
10087
11d3b27d
MS
10088 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10089 Some whitespace and coding standards tweaks.
da3c6d4a 10090
a33f7558
JT
100912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10092
10093 * vax-tdep.c: Include regcache.h.
10094 (vax_call_dummy_words): New.
10095 (sizeof_vax_call_dummy_words): New.
10096 (vax_fix_call_dummy): New function.
10097 (vax_saved_pc_after_call): Ditto.
10098 * config/vax/tm-vax.h: Don't include regcache.h.
10099 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10100 (CALL_DUMMY): Remove.
10101 (CALL_DUMMY_WORDS): Define.
10102 (SIZEOF_CALL_DUMMY_WORDS): Define.
10103 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10104
47a73475
MS
101052002-04-18 Michael Snyder <msnyder@redhat.com>
10106
10107 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10108
52efde73
JT
101092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10110
10111 * vax-tdep.c (vax_frame_chain): New function.
10112 (vax_push_dummy_frame): Ditto.
10113 (vax_pop_frame): Ditto.
10114 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10115 (FRAMELESS_FUNCTION_INVOCATION): Use
10116 generic_frameless_function_invocation_not.
10117 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10118 (POP_FRAME): Use vax_pop_frame.
10119
ea74468c
JT
101202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10121
10122 * vax-tdep.c (vax_store_struct_return): New function.
10123 (vax_extract_return_value): Ditto.
10124 (vax_store_return_value): Ditto.
10125 (vax_extract_struct_value_address): Ditto.
10126 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10127 vax_store_struct_return.
10128 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10129 (STORE_RETURN_VALUE): Use vax_store_return_value.
10130 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10131
5516aa92
JT
101322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10133
10134 * vax-tdep.c (vax_frame_saved_pc): New function.
10135 (vax_frame_args_address_correct): Ditto.
10136 (vax_frame_args_address): Ditto.
10137 (vax_frame_locals_address): Ditto.
10138 (vax_frame_num_args): Move code to be in proximity to
10139 other frame-related functions.
10140 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10141 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10142 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10143 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10144 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10145
36af0b35
L
101462002-04-22 H.J. Lu (hjl@gnu.org)
10147
10148 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10149 includedir.
10150
ab62c900
JT
101512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10152
10153 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10154 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10155 (FRAME_INIT_SAVED_REGS): New macro.
10156
7232b100
JT
101572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10158
10159 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10160
b70d2aee
JT
101612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10162
10163 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10164 where needed.
10165 (fetch_osf_core_registers): Likewise.
10166 (supply_gregset): Likewise.
10167
a0e8a2d1 101682002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10169
a0e8a2d1
JB
10170 * symfile.h (get_section_index): Define.
10171 * symfile.c (get_section_index): New function.
10172 * mdebugread.c (SC_IS_SBSS): New macro.
10173 (SC_IS_BSS): Return true for the scBss storage class only, as
10174 the scSBss storage class refers to the .sbss section.
10175 (parse_partial_symbols): Discard the symbols which associated
10176 section does not exist.
10177 Make sure to use the .sbss section index for symbols which
10178 storage class is scBss, rather than using the .bss section index.
10179
51eb8b08
JT
101802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10181
10182 * vax-tdep.c: Update copyright years.
10183 (vax_register_name): New function.
10184 (vax_register_byte): Ditto.
10185 (vax_register_raw_size): Ditto.
10186 (vax_register_virtual_size): Ditto.
10187 (vax_register_virtual_type): Ditto.
10188 * config/vax/tm-vax.h: Update copyright years.
10189 (REGISTER_NAMES): Remove.
10190 (REGISTER_NAME): Define.
10191 (REGISTER_BYTE): Use vax_register_byte.
10192 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10193 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10194 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10195
6cc1c0a8
AC
101962002-04-21 Andrew Cagney <ac131313@redhat.com>
10197
10198 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10199 declaration
10200 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10201
9319a2fe
DM
102022002-04-21 David S. Miller <davem@redhat.com>
10203
10204 * arch-utils.c (generic_prologue_frameless_p): Kill
10205 SKIP_PROLOGUE_FRAMELESS_P code.
10206 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10207 references.
10208 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10209 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10210 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10211 references.
10212 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10213 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10214 (sparc_gdbarch_init): Pass it to
10215 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10216
e9ed6d01
JT
102172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10218
10219 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10220 (alphabsd-nat.o): New dependency list.
10221
36012033
JT
102222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10223
10224 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10225 alphafbsd-tdep.c.
10226 (alpha-linux-tdep.o): New dependency list.
10227 (alphafbsd-tdep.o): Likewise.
10228
3379287a
JT
102292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10230
10231 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10232 to here...
10233 * alpha-tdep.c: ...from here.
10234 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10235
4bcbd6cb
JT
102362002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10237
10238 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10239 prototype from here...
10240 * alpha-tdep.h: ...to here.
10241
b31da25e
AC
102422002-04-21 Andrew Cagney <ac131313@redhat.com>
10243
10244 * frame.h (selected_frame_level): Document as deprecated.
10245 (frame_relative_level): Declare.
10246 * stack.c (frame_relative_level): New function.
10247 (selected_frame_level): Document as deprecated.
10248 (select_frame): Do not set the selected_frame_level.
10249
10250 * stack.c (frame_info, record_selected_frame): Update.
10251 (frame_command, current_frame_command): Update.
10252 (up_silently_base, up_command, down_silently_base): Update.
10253 (down_command): Update.
10254 * inflow.c (kill_command): Update.
10255 * tracepoint.c (finish_tfind_command): Update.
10256 * corelow.c (core_open): Update.
10257 * thread.c (info_threads_command): Update.
10258 (do_captured_thread_select): Update.
10259 * infcmd.c (finish_command): Update.
10260 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10261
9c1d6fe5
JT
102622002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10263
10264 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10265
ab89facf
AC
102662002-04-21 Andrew Cagney <ac131313@redhat.com>
10267
10268 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10269 type const.
10270
82a4efa1
JT
102712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10272
10273 * alphafbsd-tdep.c: Update copyright years. Include
10274 alpha-tdep.h.
10275 (alphafbsd_use_struct_convention): Make static.
10276 (alphafbsd_init_abi): New function.
10277 (_initialize_alphafbsd_tdep): New function.
10278 * config/alpha/tm-fbsd.h: Update copyright years.
10279 (USE_STRUCT_CONVENTION): Remove.
10280
44dffaac
JT
102812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10282
10283 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10284 an Alpha ABI variant.
10285 (alpha_abi_handler_list): Declare.
10286 (alpha_gdbarch_register_os_abi): New function.
10287 (alpha_gdbarch_init): Give registered ABI variant handlers a
10288 chance to tweak the gdbarch once we have set up defaults.
10289 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10290
65585be4
JT
102912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10292
10293 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10294 to standard_coerce_float_to_double.
10295 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10296
d9b023cc
JT
102972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10298
10299 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10300 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10301 from gdbarch_tdep rather than a constant.
10302 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10303 the default text address for all Alpha Unix ABIs.
10304 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10305 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10306
dc129d82
JT
103072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10308
10309 * alpha-tdep.h: New file. Includes several Alpha target constants
10310 taken from...
10311 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10312 let gdbarch deal with.
10313 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10314 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10315 to dependency list.
10316 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10317 Alpha target register names.
10318 * alphabsd-nat.c: Likewise.
10319 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10320 Alpha target register names. Make serveral routines static.
10321 (alpha_get_saved_register): New function.
10322 (alpha_abi_names): New.
10323 (process_note_abi_tag_sections): New function.
10324 (get_elfosabi): New function.
10325 (alpha_gdbarch_init): New function.
10326 (alpha_dump_tdep): New function.
10327 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10328
d49d1e0a
AC
103292002-04-21 Andrew Cagney <ac131313@redhat.com>
10330
10331 * frame.c (find_saved_register): Delete #ifdef
10332 HAVE_REGISTER_WINDOWS code.
10333 * config/sparc/tm-sparc.h: Update comments.
10334 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10335
92e8c9ed
AC
103362002-04-21 Andrew Cagney <ac131313@redhat.com>
10337
10338 * i960-tdep.c (i960_find_saved_register): New function.
10339 (i960_get_saved_register): New function.
10340 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10341 (i960_get_saved_register): Declare.
10342 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10343
e1925118
DM
103442002-04-20 David S. Miller <davem@redhat.com>
10345
10346 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10347
29673b29
AC
103482002-04-20 Andrew Cagney <ac131313@redhat.com>
10349
10350 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10351 instead of NUM_PSEUDO_REGS.
10352
6c86dcd5
DM
103532002-04-20 David S. Miller <davem@redhat.com>
10354
10355 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10356 GDB_MULTI_ARCH_PARTIAL
10357 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10358 define, let tm-sp64.h do it.
10359
aa40ec90
JT
103602002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10361
10362 * frame.c (find_saved_register): Avoid a NULL pointer
10363 dereference and actually walk the frame list.
10364
0f79675b
AC
103652002-04-20 Andrew Cagney <ac131313@redhat.com>
10366
10367 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10368 sorted in most most-recent-used order. Document.
10369 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10370
f91305dd 103712002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10372
10373 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10374 instead of ->prev.
10375 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10376 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10377 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10378 instead of ->prev.
10379
73d322b1
EZ
103802002-04-19 Elena Zannoni <ezannoni@redhat.com>
10381
10382 Fix PR gdb/471.
10383 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10384 (build_builtin_type_vec128): Ditto.
10385 (append_composite_type_field): Fix calculation of type length in
10386 union case.
10387
ccd9a834
EZ
103882002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10389
10390 * config/djgpp/README: Update.
10391
10392 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10393 compiler warnings.
10394
a57f9e49
JT
103952002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10396
10397 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10398 (alpha_setup_arbitrary_frame): ...to this.
10399 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10400 for alpha_setup_arbitrary_frame.
10401
f4f9705a
AC
104022002-04-18 Andrew Cagney <cagney@redhat.com>
10403
10404 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10405 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10406
f4f9705a
AC
10407 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10408 * target.h (memory_breakpoint_from_pc): Update declaration.
10409 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10410
10411 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10412 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10413 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10414 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10415 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10416 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10417 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10418 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10419 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10420 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10421 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10422 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10423
10424 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10425 const pointer.
10426 * monitor.c (monitor_insert_breakpoint): Ditto.
10427 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10428
10429 * config/mcore/tm-mcore.h: Update copyright.
10430 * mem-break.c: Ditto.
10431 * xstormy16-tdep.c: Ditto.
10432
29f319b8
PM
104332002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10434
10435 * p-exp.y: Add precedence rule for '^' token.
10436 This removes the shift/reduce conflicts.
10437 Remove the comment concerning these shift/reduce conflicts.
10438
ebeac11a
EZ
104392002-04-18 Elena Zannoni <ezannoni@redhat.com>
10440
10441 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10442 (registers_powerpc_nofp): New register set for processors
10443 without floating point unit.
10444
27c31547
DM
104452002-04-18 David S. Miller <davem@redhat.com>
10446
10447 * MAINTAINERS: Add myself to write-after-approval.
10448
47a73475
MS
104492002-04-17 Michael Snyder <msnyder@redhat.com>
10450
10451 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10452
953836b2
AC
104532002-04-17 Andrew Cagney <ac131313@redhat.com>
10454
10455 * rs6000-tdep.c (frame_initial_stack_address): Use
10456 frame_register_read to read the alloca_reg.
10457
8b0d4340
AC
104582002-04-17 Andrew Cagney <ac131313@redhat.com>
10459
10460 * frame.c (find_saved_register): Find saved registers in the next
10461 not prev frame.
10462 Fix PR gdb/365.
10463
d8864532
AC
104642002-04-17 Andrew Cagney <ac131313@redhat.com>
10465
10466 * gdbarch.sh (LANG): Set to ``c''.
10467
36cc83a3 104682002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10469
36cc83a3 10470 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10471
2f4150cc 104722002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10473
10474 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10475 Update copyright.
10476
628703c6 10477 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10478 Also fix PR gdb/391.
361d1df0 10479
56157b4a
AC
104802002-04-14 Andrew Cagney <ac131313@redhat.com>
10481
10482 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10483 * aclocal.m4, configure: Re-generate.
10484 Fix PR gdb/391.
361d1df0 10485
6d1e3329
EZ
104862002-04-14 Elena Zannoni <ezannoni@redhat.com>
10487
10488 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10489 instead of tm_print_insn.
10490
cb06fa07
EZ
104912002-04-14 Elena Zannoni <ezannoni@redhat.com>
10492
10493 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10494
f208ba17
AC
104952002-04-14 Andrew Cagney <ac131313@redhat.com>
10496
10497 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10498 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10499 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10500
20f01a46
DH
105012002-04-12 Don Howard <dhoward@redhat.com>
10502
10503 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10504 max_user_call_depth.
10505 (init_cmd_lists): Initialize the new value;
10506 * cli/cli-script.c (execute_user_command): Limit the call depth of
10507 user defined commands. This avoids a core-dump when user commands
10508 are infinitly recursive.
10509
a88376a3
KB
105102002-04-12 Kevin Buettner <kevinb@redhat.com>
10511
10512 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10513 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10514 from tdep struct instead of DEFAULT_LR_SAVE.
10515 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10516 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10517 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10518
f2172603
MS
105192002-04-12 Michael Snyder <msnyder@redhat.com>
10520
694f61fb 10521 * Remote.c: Spelling fix.
20fe79c8
MS
10522 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10523 If no symbol found for "sbrk", try "_sbrk".
10524 (make_output_phdrs): Use bfd_section_name.
10525 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10526 * eval.c: Indentation fix-ups.
169a7369
MS
10527 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10528 in case it gets applied to an address that is already
10529 in the instruction space.
de74f71f
MS
10530 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10531 * symfile.c: Fix indentation, long lines.
f2172603
MS
10532 * source.c: White space fix-up.
10533
cda5a58a
AC
105342002-04-12 Andrew Cagney <cagney@redhat.com>
10535
10536 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10537 * frame.c (frame_register_read): New function. Return non-zero on
10538 success.
10539 (read_relative_register_raw_bytes_for_frame): Delete.
10540 (read_relative_register_raw_bytes): Delete.
10541 * frame.h (frame_register_read): Declare.
10542 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10543 * sh-tdep.c: Ditto.
10544 * infcmd.c (do_registers_info): Ditto.
10545 * hppa-tdep.c: Ditto.
10546 * rs6000-tdep.c: Ditto.
10547 * h8500-tdep.c: Ditto.
10548 * mips-tdep.c: Ditto.
10549 * h8300-tdep.c: Ditto.
10550 * z8k-tdep.c: Ditto.
10551
2ea5f656
KB
105522002-04-12 Kevin Buettner <kevinb@redhat.com>
10553
10554 From Jimi X <jimix@watson.ibm.com>:
10555 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10556 64-bit SysV ABI.
10557
27b15785
KB
105582002-04-12 Kevin Buettner <kevinb@redhat.com>
10559
10560 From Jimi X <jimix@watson.ibm.com>:
10561 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10562 bfd info.
10563
5d57ee30
KB
105642002-04-12 Kevin Buettner <kevinb@redhat.com>
10565
10566 From Jimi X <jimix@watson.ibm.com>:
10567 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10568 register sets for these processor variants.
10569
bc1e36ca
DJ
105702002-04-11 Daniel Jacobowitz <drow@mvista.com>
10571
bc1e36ca
DJ
10572 * regformats/reg-ppc.dat: Support FPSCR.
10573
e3f36dbd
KB
105742002-04-11 Kevin Buettner <kevinb@redhat.com>
10575
10576 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10577 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10578 Add fpscr as an invalid/unfetchable register.
10579 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10580 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10581 (fill_fpregset): Add support for register fpscr.
10582 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10583 (fill_gregset): Account for the fact that register ``mq'' might
10584 not exist.
10585 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10586 (registers_power): Add fpscr to register set at slot 71.
10587 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10588 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10589
943c9c25
MS
105902002-04-11 Michael Snyder <msnyder@redhat.com>
10591
10592 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10593 * configure: Regenerate.
10594 * config.in: Regenerate.
10595 * acconfig.h: Add define for _SYSCALL32.
10596 * core-sol2.c: Remove #define _SYSCALL32.
10597 * solib-legacy.c: Remove #define _SYSCALL32.
10598
d8c0a2e7
AC
105992002-04-10 Andrew Cagney <ac131313@redhat.com>
10600
10601 * stack.c (select_frame): Cleanup internal error message, do not
10602 use %p.
10603
7cc19214
AC
106042002-04-10 Andrew Cagney <ac131313@redhat.com>
10605
10606 * stack.c (select_frame): Check that selected_frame and the
10607 specified level are as expected.
10608 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10609 Update copyright.
10610 * frame.h (struct frame_info): Add field `level'. Update
10611 copyright.
10612 Work-in-progress PR gdb/464.
10613
67a2b77e
AC
106142002-04-10 Andrew Cagney <ac131313@redhat.com>
10615
10616 * maint.c (maint_print_section_info): Rename print_section_info.
10617 (print_bfd_section_info, print_objfile_section_info): Update.
10618 * inferior.h (struct gdbarch): Add opaque declaration.
10619 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10620 * gdbarch.h: Regenerate.
10621
8cfda98c
ML
106222002-04-10 Michal Ludvig <mludvig@suse.cz>
10623
10624 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10625 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10626 (kernel_u_size): Added.
10627 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10628 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10629
ca439ad2 106302002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10631
ca439ad2
JI
10632 * valarith.c (find_size_for_pointer_math): New function, either returns
10633 the size for a pointer's target, returns 1 for void *, or errors for
10634 incomplete types.
10635 (value_add, value_sub): use find_size_for_pointer_math.
10636
2f2893d9
DJ
106372002-04-09 Daniel Jacobowitz <drow@mvista.com>
10638
10639 * linux-low.c (linux_look_up_symbols): New hook.
10640 (linux_target_ops): Add linux_look_up_symbols.
10641 * remote-utils.c (decode_address): New function.
10642 (look_up_one_symbol): New function.
10643 * server.c (handle_query): Call target look_up_symbols hook.
10644 * server.h (look_up_one_symbol): Add prototype.
10645 * target.h (struct target_ops): Add look_up_symbols hook.
10646
96cb11df
AC
106472002-04-09 Andrew Cagney <ac131313@redhat.com>
10648
10649 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10650 override FP_REGNUM with frame->fp. Update copyright.
10651 * parse.c (num_std_regs, std_regs): Delete.
10652 (target_map_name_to_register): Do not search std_regs. Update
10653 function description.
10654 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10655 declarations. Update copyright.
10656 Fix PR gdb/251.
361d1df0 10657
97658e92
DJ
106582002-04-09 Daniel Jacobowitz <drow@mvista.com>
10659
10660 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10661 after the last symbol in a block.
10662
6044e3eb
PM
106632002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10664
10665 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10666 is non zero as a found symbol.
10667
0406ec40
AC
106682002-04-08 Andrew Cagney <ac131313@redhat.com>
10669
10670 * findvar.c: Include "builtin-regs.h".
10671 (value_of_register): Call value_of_builtin_reg when applicable.
10672 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10673 (target_map_name_to_register): Call
10674 builtin_reg_map_name_to_regnum.
10675 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10676 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10677 (builtin_regs_h): Define.
10678 (builtin-regs.o): New target.
10679 (findvar.o): Add $(builtin_regs_h).
10680 * builtin-regs.c, builtin-regs.h: New files.
10681 * std-regs.c: New file.
10682 Partial fix for PR gdb/251.
10683
56a6dfb9
KB
106842002-04-08 Kevin Buettner <kevinb@redhat.com>
10685
10686 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10687 it's no longer required.
10688
3a808432
AC
106892002-04-08 Andrew Cagney <ac131313@redhat.com>
10690
10691 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10692
7c40d541
KB
106932002-04-08 Kevin Buettner <kevinb@redhat.com>
10694
10695 From Jimi X <jimix@watson.ibm.com>:
10696 * rs6000-tdep.c (rs6000_software_single_step): Use
10697 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10698 and size. Use target_insert_breakpoint() and
10699 target_remove_breakpoint() to insert and remove breakpoints
10700 instead of explicit memory reads and writes.
10701
cc9836a8
KB
107022002-04-08 Kevin Buettner <kevinb@redhat.com>
10703
10704 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10705 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10706 ELF_OBJECT_FORMAT ifdef.
10707
7495d1dc
KB
107082002-04-08 Kevin Buettner <kevinb@redhat.com>
10709
10710 From Jimi X <jimix@watson.ibm.com>:
10711 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10712
4288e836
KB
107132002-04-08 Kevin Buettner <kevinb@redhat.com>
10714
10715 From Jimi X <jimix@watson.ibm.com>:
10716 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10717 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10718
a4e4e501
MK
107192002-04-07 Mark Kettenis <kettenis@gnu.org>
10720
10721 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10722 s/asprintf/xasprintf/.
10723 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10724
006defba
AC
107252002-04-07 Andrew Cagney <ac131313@redhat.com>
10726
10727 I believe Jeff Law denies responsability for this one:
10728 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10729 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10730 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10731 Work-around for PR gdb/366.
10732
7aa83cac
EZ
107332002-04-07 Elena Zannoni <ezannoni@redhat.com>
10734
10735 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10736 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10737 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10738
cf1fcca1
EZ
107392002-04-07 Elena Zannoni <ezannoni@redhat.com>
10740
10741 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10742 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10743 information.
10744
3f289e6f
AC
107452002-04-07 Andrew Cagney <ac131313@redhat.com>
10746
10747 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10748 maintainer.
10749
129188f6
AC
107502002-04-07 Andrew Cagney <ac131313@redhat.com>
10751
10752 * README (Reporting Bugs in GDB): Document the bug web page as the
10753 prefered way of submitting bugs.
10754 Fix PR gdb/402.
10755
1200cd6e
AC
107562002-04-06 Andrew Cagney <ac131313@redhat.com>
10757
10758 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10759 -1. Update comment.
10760 * gdbarch.h, gdbarch.c: Re-generate.
10761
2853c33c
AS
107622002-04-07 Andreas Schwab <schwab@suse.de>
10763
10764 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10765 buffer to regcache_collect.
10766
c2169756
AC
107672002-04-06 Andrew Cagney <ac131313@redhat.com>
10768
10769 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10770 * gdbarch.c, gdbarch.h: Re-generate.
10771
25f1b008
AC
107722002-04-06 Andrew Cagney <ac131313@redhat.com>
10773
10774 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10775 declaration. Fix -Werror.
10776
59263426
DJ
107772002-04-05 Daniel Jacobowitz <drow@mvista.com>
10778
10779 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10780 * gdbarch.c: Regenerate.
10781
f5db4da3
MS
107822002-04-05 Michael Snyder <msnyder@redhat.com>
10783
80f8a6eb
MS
10784 * breakpoint.c (clear_command): Rewrite middle section to
10785 combine two loops with identical control conditions.
10786 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10787 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10788
ad3dcc5c
L
107892002-04-05 H.J. Lu (hjl@gnu.org)
10790
10791 * solib-svr4.c (bkpt_names): Add "__start".
10792
f32e7a74
AC
107932002-04-04 Andrew Cagney <ac131313@redhat.com>
10794
10795 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10796 as test for 64 bit target.
10797
8227c0ff
AC
107982002-04-05 Andrew Cagney <ac131313@redhat.com>
10799
10800 * h8500-tdep.c (h8500_write_fp): Delete function.
10801 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10802 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10803 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10805 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10806 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10807 (s390_write_fp):
10808 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10809 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10810 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10811 (d10v_write_fp): Delete function.
10812 * inferior.h (write_fp, generic_target_write_fp): Delete
10813 declarations.
10814 * regcache.c (generic_target_write_fp): Delete function.
10815 (write_fp): Delete function.
10816 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10817 * gdbarch.h, gdbarch.c: Regenerate.
10818 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10819 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10820 (sparc64_write_fp): Delete declaration.
10821 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10822 (h8500_write_fp): Delete declaration.
10823
2757dd86
AC
108242002-04-04 Andrew Cagney <ac131313@redhat.com>
10825
10826 * sparc-tdep.c (sparc64_write_fp): Delete.
10827 (sparc_push_dummy_frame): Replace write_fp call with code to store
10828 the FP directly.
10829 (sparc_gdbarch_init): Do not initialize write_fp.
10830
c69255e1
KB
108312002-04-05 Kevin Buettner <kevinb@redhat.com>
10832
10833 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10834 clause.
10835
ae767bfb
JB
108362002-03-29 Jim Blandy <jimb@redhat.com>
10837
10838 * stack.c (get_selected_block): Add new argument `addr_in_block',
10839 used to return the exact code address we used to select the block,
10840 not just the block.
10841 * blockframe.c (get_frame_block, get_current_block): Same.
10842 * frame.h (get_frame_block, get_current_block,
10843 get_selected_block): Update declarations.
10844 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10845 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10846
84d2ac95
MS
108472002-04-05 Michael Snyder <msnyder@redhat.com>
10848
10849 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10850 warning message.
10851
596aa3bf
JB
108522002-04-05 J. Brobecker <brobecker@gnat.com>
10853
10854 * utils.c (xfullpath): New function.
10855 * defs.h (xfullpath): Add declaration.
10856 * source.c (openp): Use xfullpath in place of gdb_realpath to
10857 avoid resolving the basename part of filenames when the
10858 associated file is a symbolic link. This fixes a potential
10859 inconsistency between the filenames known to GDB and the
10860 filenames it prints in the annotations.
10861 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10862 to be able to match a filename with either the real filename, or
10863 the name of any symbolic link to this file.
10864 (lookup_partial_symtab): Ditto.
10865
c02f5703
MS
108662002-04-04 Michael Snyder <msnyder@redhat.com>
10867
10868 * breakpoint.c: Add support for hardware breakpoints in overlays.
10869 (overlay_events_enabled): New state variable.
10870 (insert_breakpoints): Use overlay_events_enabled to decide
10871 whether to attempt to set a breakpoint at the overlay load addr.
10872 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10873 (remove_breakpoint): Use overlay_events_enabled to decide
10874 whether breakpoints need to be removed from overlay load addr.
10875 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10876 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10877 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10878 disable_overlay_breakpoints): Update overlay_events_enabled.
10879
5fb290d7
DJ
108802002-04-04 Daniel Jacobowitz <drow@mvista.com>
10881
10882 * dwarf2read.c (struct function_range): New.
10883 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10884 (check_cu_functions): New.
10885 (read_file_scope): Initialize global function lists.
10886 Call dwarf_decode_line after processing children.
10887 (read_func_scope): Add to global function list.
10888 (dwarf_decode_lines): Call check_cu_functions everywhere
10889 record_line is called. Call record_line with a linenumber
10890 of 0 to mark sequence ends.
10891
7b3fabf0
ML
108922002-04-04 Michal Ludvig <mludvig@suse.cz>
10893
361d1df0 10894 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10895 change sync with glibc.
10896
bce58c09
JB
108972002-04-03 Jim Blandy <jimb@redhat.com>
10898
10899 * configure.in: Call AC_C_INLINE.
10900 * configure: Regenerated.
361d1df0 10901
2fccf04a
DJ
109022002-04-01 Daniel Jacobowitz <drow@mvista.com>
10903
10904 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10905 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10906
2d1bfe2e
MK
109072002-03-31 Mark Kettenis <kettenis@gnu.org>
10908
a5941fbf
MK
10909 * NEWS: Mention gcore support on FreeBSD/i386.
10910
a90cd31d
MK
10911 * fbsd-proc.c: New file.
10912 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10913 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10914
2d1bfe2e
MK
10915 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10916 while statement.
10917
9eb6e5a1
JB
109182002-03-29 Jim Blandy <jimb@redhat.com>
10919
10920 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10921 unescaped newlines in string literals, but newer ones don't. So
10922 escape them.
10923
f02df580
MS
109242002-03-26 Michael Snyder <msnyder@redhat.com>
10925 Andrew Cagney <cagney@redhat.com>
10926
361d1df0 10927 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10928 restore file to memory.
10929 * cli/cli-dump.h: New file.
10930 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10931 * NEWS: Mention new commands.
f02df580 10932
109f874e
MS
109332002-03-28 Michael Snyder <msnyder@redhat.com>
10934
10935 * symfile.c (symbol_file_add): Move test for null symbols to later.
10936
520f6ade
AC
109372002-03-27 Andrew Cagney <ac131313@redhat.com>
10938
10939 From veksler at il.ibm.com:
10940 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10941 the xstrduped original path.
10942 Fix PR gdb/417.
10943
d4654627
MS
109442002-03-27 Michael Snyder <msnyder@redhat.com>
10945
10946 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10947 * infcmd.c (_initialize_infcmd): Ditto.
10948 * language.c (_initialize_language): Ditto.
10949 * symfile.c (_initialize_symfile): Ditto.
10950 * top.c (_init_main): Ditto.
10951 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10952
6be8bc0c
EZ
109532002-03-27 Elena Zannoni <ezannoni@redhat.com>
10954
10955 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10956 vector registers handling.
10957 (skip_prologue): Handle new AltiVec instructions. Fill in new
10958 fields of frame data.
10959 (frame_get_saved_regs): Fill in information for AltiVec registers.
10960
12af6855
JB
109612002-03-27 Jim Blandy <jimb@redhat.com>
10962
10963 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10964 a function; leave this macro here to invoke that function.
10965 (symbol_init_mangled_name): Declaration for that function.
10966 * symtab.c (symbol_init_mangled_name): New function.
10967
dc672865
AC
109682002-03-27 Andrew Cagney <ac131313@redhat.com>
10969
10970 * valarith.c: Replace strerror with safe_strerror.
10971 * tracepoint.c: Ditto.
10972 * lin-lwp.c: Ditto.
10973 * go32-nat.c: Ditto.
10974 * inflow.c: Ditto.
10975 * gnu-nat.c: Ditto.
10976
d96429cd
AS
109772002-03-27 Andreas Schwab <schwab@suse.de>
10978
10979 * event-top.c (command_line_handler): Remove useless if.
10980
7e336ba1
AJ
109812002-03-27 Andreas Jaeger <aj@suse.de>
10982
10983 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10984 comment.
10985
de220d0f
ML
109862002-03-27 Michal Ludvig <mludvig@suse.cz>
10987
10988 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10989 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10990 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10991 (x86_64_linux_dr_get_status, supply_gregset),
10992 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10993 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10994 (x86_64_register_info_table): Add.
10995 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10996 (x86_64_register_raw_size, x86_64_register_virtual_type),
10997 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10998 general x86_64_register_info_table.
10999 (i386_gdbarch_init): gdbarch_register_bytes is now set
11000 dynamicaly during initialization.
11001 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11002 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11003
0e98d0a7
DJ
110042002-03-27 Daniel Jacobowitz <drow@mvista.com>
11005
11006 * gdbserver/server.c (main): Call target_signal_to_host_p
11007 and target_signal_to_host on signals received from the remote.
11008 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11009 target_signal_from_host on signals sent to the remote.
11010 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11011 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11012
3130066b
DJ
110132002-03-27 Daniel Jacobowitz <drow@mvista.com>
11014
11015 * signals/signals.c: Include "server.h" in gdbserver build.
11016 (target_signal_from_name): Don't use STREQ.
11017 (_initialize_signals): Likewise. Don't include function in
11018 gdbserver build.
11019
9aedf4f4
DJ
110202002-03-27 Daniel Jacobowitz <drow@mvista.com>
11021
11022 * signals.c: Moved to...
11023 * signals/signals.c: Here.
7e336ba1 11024 * Makefile (signals.o): Update.
9aedf4f4 11025
3fa41cdb
JL
110262002-03-26 Jeff Law (law@redhat.com)
11027
11028 * somread.c (som_symtab_read): Remove some commented out code and
11029 updated related comments. Do not set the minimal symbol table to
11030 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11031 in a dynamic executable.
11032 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11033 where we are unable to find the minimal symbol for the given
11034 PC value.
11035
ee677e8d
MS
110362002-03-25 Jeff Law (law@redhat.com)
11037
11038 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11039
e76e1718
ML
110402002-03-25 Michal Ludvig <mludvig@suse.cz>
11041
11042 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11043
18a642a1
AC
110442002-03-23 Andrew Cagney <ac131313@redhat.com>
11045
11046 * command.h: Update copyright.
11047 (struct cmd_list_element): Replace definition with opaque
11048 declaration.
11049 (enum cmd_types): Document that it will eventually be moved to
11050 cli/cli-decode.h
11051 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11052 (MALLOCED_REPLACEMENT): Delete macro.
11053 * Makefile.in (cli_decode_h): Add $(command_h).
11054 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11055 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11056 * completer.c: Include "cli/cli-decode.h".
11057 * maint.c: Include "cli/cli-decode.h".
11058 * cli/cli-decode.h: Include "command.h".
11059 (enum command_class): Delete.
11060 (enum cmd_types): Comment out.
11061 (enum cmd_auto_boolean): Delete.
11062 (enum var_types): Delete.
11063
b2875cc0
AC
110642002-03-23 Andrew Cagney <ac131313@redhat.com>
11065
11066 * cli/cli-decode.c: Include "gdb_assert.h".
11067 (add_set_or_show_cmd): New static function.
11068 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11069 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11070 all fields, such as func, from the set command.
11071
3b45974e
AC
110722002-03-23 Andrew Cagney <ac131313@redhat.com>
11073
11074 * MAINTAINERS (sh-elf): Change warning flag to -w.
11075
823ca731
AC
110762002-03-23 Andrew Cagney <cagney@redhat.com>
11077
11078 * defs.h (error): Add printf format attribute.
11079 * thread-db.c (thread_from_lwp): Fix error format string.
11080 * stack.c (parse_frame_specification): Ditto.
11081 * cli/cli-decode.c (undef_cmd_error): Ditto.
11082 * scm-lang.c (scm_lookup_name): Ditto.
11083 * tracepoint.c (trace_error): Ditto.
11084 * remote-utils.c (usage): Ditto.
11085 * remote.c (compare_sections_command): Ditto.
11086 Fix PR gdb/328.
11087
0e101458
AC
110882002-03-22 Andrew Cagney <ac131313@redhat.com>
11089
11090 * gdbtypes.c (append_composite_type_field): New function.
11091 (init_composite_type): New function.
11092 * gdbtypes.h (append_composite_type_field): Declare.
11093 (init_composite_type): Ditto.
11094
8e0662df
EZ
110952002-03-22 Elena Zannoni <ezannoni@redhat.com>
11096
11097 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11098 function.
8e0662df
EZ
11099 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11100 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11101 structure returning convention for SYSV ABI case, but not
11102 for GNU/Linux, FreeBSD, or NetBSD.
11103
3121eff0
DJ
111042002-03-22 Daniel Jacobowitz <drow@mvista.com>
11105
11106 * symtab.h (lookup_block_symbol): Add mangled_name argument
11107 to prototype.
11108
11109 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11110 with new mangled_name argument.
11111 * linespec.c (decode_line_1): Likewise.
11112 * valops (value_of_this): Likewise.
11113 * symtab.c (lookup_transparent_type): Likewise.
11114 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11115 (lookup_symbol): If we are given a mangled name, pass it down
11116 to lookup_symbol_aux.
11117 (lookup_block_symbol): If we are given a mangled name to check
11118 against, only return symbols which match it.
11119
349b409f
CF
111202002-03-22 Christopher Faylor <cgf@redhat.com>
11121
11122 * win32-nat.c (child_create_inferior): Check for proper shell to use
11123 here, in case the user changes it on the fly.
11124 (_initialize_inftarg): Remove shell path considerations.
11125
2a873819
EZ
111262002-03-21 Elena Zannoni <ezannoni@redhat.com>
11127
11128 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11129 for gdbarch_max_register_raw_size and max_register_virtual_size.
11130 Adjust copyright year.
11131
a1b9830c
DJ
111322002-03-21 Daniel Jacobowitz <drow@mvista.com>
11133
11134 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11135 in a function to cover the entire beginning of the function
11136 as well if it does not already.
11137
8b5790f2
TR
111382002-03-21 Tom Rix <trix@redhat.com>
11139
11140 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11141 (rs6000_ptrace64): Renamed from ptrace64.
11142
bdbe5747
MH
111432002-03-20 Martin M. Hunt <hunt@redhat.com>
11144
11145 * gdbserver/remote-utils.c (remote_open): Don't call
11146 getprotobyname, we're all using TCP here so just use
11147 IPPROTO_TCP.
7e336ba1 11148 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11149
111502002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11151
bdbe5747
MH
11152 * regcache.c (_initialize_regcache): No need to call
11153 build_regcache() at this time; it gets called whenever
11154 the gdbarch changes.
11155
7781cd62
DB
111562002-03-20 David O'Brien <obrien@FreeBSD.org>
11157
11158 * sparc-nat.c: Include sys/param.h where possible.
11159
f65ca430
DJ
111602002-03-20 Daniel Jacobowitz <drow@mvista.com>
11161
11162 Fix PR gdb/422.
11163 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11164 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11165 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11166 complex types.
11167 * stabsread.c (rs6000_builtin_type): Likewise.
11168 (read_sun_floating_type): Likewise.
11169
0c867556
PS
111702002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11171
11172 * stabsread.c (read_member_functions): Remove skip code for duplicate
11173 constructor/destructor methods. Use standard parsing for these
11174 methods and just do not chain them to the list of methods after
11175 parsing.
11176
12b9c64f
AO
111772002-03-19 Alexandre Oliva <aoliva@redhat.com>
11178
11179 * coffread.c: Remove redundant static declarations. Replace
11180 occurrences of `PTR' with `void *'.
11181 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11182 * top.h (quit_cover): Likewise.
11183 * defs.h (catch_errors): Likewise.
11184
349c5d5f
AC
111852002-03-18 Andrew Cagney <ac131313@redhat.com>
11186
11187 * defs.h (XMALLOC): Define.
11188 * gdb-events.sh (XMALLOC): Delete macro.
11189 * gdb-events.c, gdb-events.h: Regenerate.
11190 * gdbarch.sh (XMALLOC): Delete macro.
11191 * gdbarch.c: Regenerate.
11192 * serial.c (XMALLOC): Delete macro.
11193 * ui-file.c (XMALLOC): Ditto.
11194 * ser-unix.h (XMALLOC): Ditto.
11195 * sh-tdep.c (XMALLOC): Ditto.
11196 * ui-out.c (XMALLOC): Ditto.
11197 * utils.c (XMALLOC): Ditto.
11198 * i386-tdep.c (XMALLOC): Ditto.
11199 * gdb-events.c (XMALLOC): Ditto.
11200 * d10v-tdep.c (XMALLOC): Ditto.
11201 * cli-out.c (XMALLOC): Ditto.
11202
11203 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11204 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11205 * ui-file.c, ui-out.c: Ditto.
11206
7d0766f3
AC
112072002-03-18 Andrew Cagney <ac131313@redhat.com>
11208
11209 * command.h (struct cmd_list_element): Add field context.
11210 (set_cmd_context, get_cmd_context): Declare.
11211 * cli/cli-decode.h: Ditto.
11212 * cli/cli-decode.c (get_cmd_context): New function.
11213 (set_cmd_context): New function.
11214 (add_cmd): Initialize context.
11215 Part of fixing PR gdb/145 and PR gdb/146.
11216
5913bcb0
AC
112172002-03-17 Andrew Cagney <ac131313@redhat.com>
11218
1868c04e
AC
11219 * cli/cli-decode.c (cmd_type): New function.
11220 * command.h (cmd_type): Declare.
11221 * infrun.c (set_schedlock_func): Call function cmd_type.
11222 * kod.c (kod_set_os): Call cmd_type.
11223 * cris-tdep.c (cris_version_update): Use function cmd_type.
11224 (cris_mode_update, cris_abi_update): Ditto.
11225
5913bcb0
AC
11226 * command.h: (execute_cmd_post_hook): Declare.
11227 (execute_cmd_pre_hook): Declare.
11228 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11229 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11230 functions. Execute pre/post hook while ensuring that afterwords
11231 hook_in is cleared.
11232 * top.c (execute_command): Use execute_cmd_post_hook, and
11233 execute_cmd_pre_hook to execute pre/post commands.
11234 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11235 hook_stop_stub.
11236 (hook_stop_stub): Call execute_cmd_pre_hook.
11237
b51450c9
AC
112382002-03-17 Andrew Cagney <ac131313@redhat.com>
11239
11240 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11241 set'' and this leads to a core dump. Move xstrdup of
11242 operating_system to after check that it is not NULL.
11243
f66c9f11
AC
112442002-03-17 Andrew Cagney <ac131313@redhat.com>
11245
8e694ecf
AC
11246 * kod.c (kod_set_os): Remove unnecessary check that
11247 ``command->type'' is set_cmd.
11248
f66c9f11
AC
11249 * valprint.c (set_input_radix): Use input_radix.
11250 (set_output_radix): Use output_radix.
11251 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11252 isn't reverted.
11253
9d01611c
AC
112542002-03-16 Andrew Cagney <ac131313@redhat.com>
11255
11256 * value.h (struct value): Delete field ``substring_addr''. Change
11257 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11258 force_core_addr_align and force_pointer_aligh.
11259
11260 * value.h (struct value): Fix typo in above change.
9d01611c 11261
4156bb53
PS
112622002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11263
11264 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11265 to fix internal_error from ``maintenance print architecture''.
11266
0e5e3ea6
PS
112672002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11268
11269 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11270 for gcc versions after gcc-2.8.1.
11271
9b013045
PS
112722002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11273
11274 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11275 for method resolution. Restore adjustment of ``this'' pointer after
11276 calling value_struct_elt, which was accidentally removed during the
11277 HP merge.
11278
376c9600
AC
112792002-03-15 Andrew Cagney <ac131313@redhat.com>
11280
11281 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11282 value_of_register.
11283 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11284 get_saved_register.
11285 * value.h (value_of_register): Update.
11286
a4db0f07
RH
112872002-03-14 Richard Henderson <rth@redhat.com>
11288
11289 * configure.in: Detect declaration for canonicalize_file_name.
11290 * utils.c (canonicalize_file_name): Declare, if needed.
11291 (gdb_realpath): Prefer realpath if available and usable.
11292 * config.in, configure: Rebuild.
11293
96383835
RH
112942002-03-14 Richard Henderson <rth@redhat.com>
11295
11296 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11297 a constant array bound.
11298
11299 * MAINTAINERS: Add myself to write-after-approval.
11300
75245b24
MS
113012002-03-14 Michael Snyder <msnyder@redhat.com>
11302
11303 * symfile.c (syms_from_objfile): Return immediately if no syms.
11304 (symbol_file_add): Return immediately if no syms.
11305 (find_sym_fns): Return immediately if no syms.
11306
e641a1ca
ML
113072002-03-13 Michal Ludvig <mludvig@suse.cz>
11308
11309 * gdbserver/remote-util.c (remote_open): Print remote-side's
11310 IP address when remote debugging over the network.
7e336ba1 11311
df08bfec
DB
113122002-03-12 David O'Brien <obrien@FreeBSD.org>
11313
11314 * config/sparc/fbsd.mh: Fix copyright.
11315 * config/sparc/fbsd.mt: Likewise.
11316
9a57864f
RE
113172002-03-11 Richard Earnshaw <rearnsha@arm.com>
11318
11319 * MAINTAINERS: Fix typo in name of gdb warnings option.
11320 (x86-64): Fix formating so that this can be parsed by awk.
11321
dd7bf85e
DJ
113222002-03-10 Daniel Jacobowitz <drow@mvista.com>
11323
11324 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11325 * defs.h: Include "gdb/signals.h".
11326 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11327
33a0a2ac
ML
113282002-03-10 Michal Ludvig <mludvig@suse.cz>
11329
11330 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11331 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11332 from x86-64-tdep.h
11333
dd824b04
DJ
113342002-03-10 Daniel Jacobowitz <drow@mvista.com>
11335 Don Howard <dhoward@redhat.com>
11336
11337 * mips-tdep.c (ST0_FR): Define.
11338 (mips2_fp_compat): New function, temporarily disabled.
11339 (mips_read_fp_register_single): New function.
11340 (mips_read_fp_register_double): New function.
11341 (mips_print_register): Use them.
11342 (do_fp_register_row): Likewise.
11343
6a41ff59
AC
113442002-03-09 Andrew Cagney <ac131313@redhat.com>
11345
11346 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11347 approval''.
11348
4ea09c10
PS
113492002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11350
11351 * stabsread.c (read_member_functions): Fix is_stub test for
11352 static member functions, improve comment.
11353
6ccc741d
RE
113542002-03-07 Richard Earnshaw <rearnsha@arm.com>
11355
11356 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11357 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11358 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11359 commands that set boolean values.
11360 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11361 (arm_rdi_resume): Always initialize PC.
11362 (arm_rdi_open): Don't use rslt as a boolean.
11363 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11364 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11365 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11366 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11367
438013df
AO
113682002-03-06 Alexandre Oliva <aoliva@redhat.com>
11369
11370 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11371 * configure: Rebuilt.
11372
70ed8774
SC
113732002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11374
11375 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11376 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11377
5ba2abeb
AC
113782002-03-06 Andrew Cagney <ac131313@redhat.com>
11379
11380 * cli/cli-decode.c (set_cmd_completer): New function.
11381 * command.h (set_cmd_completer): Declare.
11382 * cli/cli-decode.h (set_cmd_completer): Ditto.
11383
11384 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11385 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11386 * win32-nat.c (_initialize_inftarg): Ditto.
11387 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11388 * proc-api.c (_initialize_proc_api): Ditto.
11389 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11390 * source.c (_initialize_source): Ditto.
11391 * exec.c (_initialize_exec): Ditto.
11392 * solib.c (_initialize_solib): Ditto.
11393 * top.c (init_main): Ditto.
11394 * tracepoint.c (_initialize_tracepoint): Ditto.
11395 * symfile.c (_initialize_symfile): Ditto.
11396 * printcmd.c (_initialize_printcmd): Ditto.
11397 * infcmd.c (_initialize_infcmd): Ditto.
11398 * corefile.c (_initialize_core): Ditto.
11399
f779ca99
AC
114002002-03-05 Andrew Cagney <ac131313@redhat.com>
11401
11402 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11403
01a3934b
AC
114042002-03-05 Andrew Cagney <ac131313@redhat.com>
11405
11406 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11407
37057839
AC
114082002-03-05 Andrew Cagney <ac131313@redhat.com>
11409
11410 * NEWS: Update headings, 5.2 has branched.
11411
c6ecbae5
DJ
114122002-03-04 Daniel Jacobowitz <drow@mvista.com>
11413
11414 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11415 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11416 (register_addr, REGISTER_RAW_SIZE): Likewise.
11417 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11418 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11419
e9f30c21
ML
114202002-03-03 Michal Ludvig <mludvig@suse.cz>
11421
11422 * MAINTAINERS (x86-64): Add myself.
11423 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11424 changed value_ptr -> struct value *
11425
54394ac3
DB
114262002-03-01 David O'Brien <obrien@FreeBSD.org>
11427
11428 * configure.host (sparc64-*-freebsd): Add.
11429 * configure.tgt: Likewise.
11430 * config/sparc/fbsd.mh: New file.
11431 * config/sparc/fbsd.mt: Likewise.
11432 * config/sparc/nm-fbsd.h: Likewise.
11433 * config/sparc/tm-fbsd.h: Likewise.
11434
bfe95955
DJ
114352002-03-01 Daniel Jacobowitz <drow@mvista.com>
11436
11437 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11438 regformats/reg-s390x.dat.
11439
f33c6cbf
AC
114402002-03-01 Andrew Cagney <ac131313@redhat.com>
11441
11442 * utils.c: Add FIXME explaining true/false problem.
11443
5ecaa7dd
AC
114442002-02-28 Andrew Cagney <ac131313@redhat.com>
11445
11446 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11447
2a251cc2
MC
114482002-02-28 Michael Chastain <mec@shout.net>
11449
11450 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11451
6a8031a3 114522002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11453
11454 * gdbserver/linux-s390-low.c: New file.
11455 * regformats/reg-s390.dat: New file.
11456 * regformats/reg-s390x.dat: New file.
11457 * gdbserver/configure.srv: Add S/390.
11458 * gdbserver/Makefile.in: Add S/390.
11459 * configure.tgt: Enable gdbserver for S/390.
11460
ac469903
EZ
114612002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11462
11463 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11464 first line of the doc string for "info dos", except at the end of
11465 the sentence, since the short help stops at the first period.
11466
985cb1a3
JM
114672002-02-28 Jason Merrill <jason@redhat.com>
11468
11469 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11470
c570663e
FF
114712002-02-27 Fred Fish <fnf@redhat.com>
11472
11473 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11474 comment (dumy -> dummy).
11475
43630227
PS
114762002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11477
11478 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11479
b84911e8
RB
114802002-02-27 Rodney Brown <rbrown64@csc.com.au>
11481
11482 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11483
58caa3dc
DJ
114842002-02-27 Daniel Jacobowitz <drow@mvista.com>
11485
11486 * gdbserver/acconfig.h: New file.
11487 * gdbserver/i387-fp.c: New file.
11488 * gdbserver/i387-fp.h: New file.
11489 * gdbserver/linux-x86-64.c: New file.
11490 * regformats/reg-x86-64.dat: New file.
11491 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11492 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11493 * gdbserver/configure.in: Add support for regsets.
11494 * gdbserver/config.in: Regenerate.
11495 * gdbserver/configure: Regenerate.
11496 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11497 * gdbserver/linux-low.h: New file.
11498 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11499 for regsets.
11500 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11501 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11502 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11503 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11504 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11505 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11506 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11507 "i387-fp.h". Add PTRACE_GETREGS and friends.
11508 * gdbserver/regcache.c (supply_register): New function.
11509 (supply_register_by_name): New function.
11510 (collect_register): New function.
11511 (collect_register_by_name): New function.
11512
93652174
DJ
115132002-02-27 Daniel Jacobowitz <drow@mvista.com>
11514
11515 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11516 (config.status): Add configure.srv dependency.
11517 (server_h): Add config.h dependency.
11518
a02e4a61
DJ
115192002-02-27 Daniel Jacobowitz <drow@mvista.com>
11520
11521 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11522 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11523 * gdbserver/configure.srv: Change i386-*-linux* to use
11524 reg-i386-linux.o.
11525
ce0eebec
AC
115262002-02-26 Andrew Cagney <ac131313@redhat.com>
11527
11528 * x86-64-tdep.c: Re-indent. Update copyright date.
11529
82dbc5f7
AC
115302002-02-26 Andrew Cagney <ac131313@redhat.com>
11531
11532 From Michal Ludvig <mludvig@suse.cz>:
11533 * x86-64-tdep.c (value.h): Delete.
11534 (gdb_assert.h): Include.
11535 (x86_64_register_convert_to_virtual,
11536 x86_64_register_convert_to_raw ): Add check which lets only
11537 floating-point values to be converted.
11538 (value_push): Delete.
11539 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11540 (i386_gdbarch_init): Number of register_bytes fixed.
11541
e4621584
AC
115422002-02-26 Andrew Cagney <ac131313@redhat.com>
11543
11544 * MAINTAINERS: Add x86-64 target.
11545
81a9a963
AC
115462002-02-26 Andrew Cagney <ac131313@redhat.com>
11547
11548 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11549 * osfsolib.c (solib_map_sections): Ditto.
11550 * irix5-nat.c (solib_map_sections): Ditto.
11551 * corelow.c (gdb_check_format): Ditto.
11552 * symfile.c (symfile_bfd_open): Ditto.
11553 * solib.c (solib_map_sections): Ditto.
11554 Fix PR gdb/354.
7e336ba1 11555
0f017ab9
AC
115562002-02-26 Andrew Cagney <ac131313@redhat.com>
11557
11558 * remote.c (_initialize_remote): By default, disable ``e'' and
11559 ``E'' step out-of-range packets.
11560
75738c29
AS
115612002-02-26 Andreas Schwab <schwab@suse.de>
11562
11563 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11564 m68k_linux_frame_saved_pc.
11565 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11566 in_sigtramp.
11567 (SIGCONTEXT_PC_OFFSET): Remove.
11568 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11569 m68k_linux_sigtramp_saved_pc): New functions.
11570 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11571 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11572 (UCONTEXT_PC_OFFSET): Define.
11573 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11574 non-RT and RT signal trampolines.
11575
7e8ed687
RE
115762002-02-26 Richard Earnshaw <rearnsha@arm.com>
11577
11578 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11579 (TARGET_NBPG, STACK_END_ADDR): Delete
11580 (VARIABLES_INSIDE_BLOCK): Delete.
11581
6972bc8b
AC
115822002-02-25 Andrew Cagney <ac131313@redhat.com>
11583
11584 * utils.c (perror_with_name): Make string parameter constant.
11585 (print_sys_errmsg): Ditto.
11586 (query): Ditto.
11587 * defs.h (perror_with_name): Update.
11588 (print_sys_errmsg): Update.
11589 (query): Update.
11590
aa32f823
DJ
115912002-02-25 Daniel Jacobowitz <drow@mvista.com>
11592
11593 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11594 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11595
19caaa45
PS
115962002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11597
11598 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11599 if it already matches the current architecture from the exec file.
11600 Include arch-utils.h for gdbarch_info_init prototype.
11601 * Makefile.in (rs6000-nat.o): Update dependencies.
11602
d951901f
EZ
116032002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11604
11605 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11606 list of exported variables.
11607
7ea81414
DJ
116082002-02-24 Daniel Jacobowitz <drow@mvista.com>
11609
11610 * gdbserver/configure.srv: New file.
11611 * gdbserver/configure.in: Use configure.srv instead
11612 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11613 from it.
11614 * gdbserver/configure: Regenerated.
11615 * gdbserver/terminal.h: New file.
11616 * gdbserver/Makefile.in: Update for configure changes. Remove
11617 more unneeded include paths.
11618
080fe24b
AC
116192002-02-24 Andrew Cagney <ac131313@redhat.com>
11620
11621 From wiz at danbala:
11622 * config/sparc/tm-sp64.h: Fix grammar and typos.
11623 Fix PR gdb/287.
11624
8605d56e
AC
116252002-02-24 Andrew Cagney <ac131313@redhat.com>
11626
11627 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11628 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11629 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11630 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11631 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11632 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11633 * s390-tdep.c: Ditto.
92362027
AC
11634 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11635 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11636 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11637 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11638 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11639 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11640 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11641 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11642 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11643 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11644 Fix PR gdb/378.
7e336ba1 11645
8ed32cc0
AC
116462002-02-23 Andrew Cagney <ac131313@redhat.com>
11647
a3007b6f
AC
11648 * lin-thread.c: Delete file.
11649 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11650 to gdb_proc_service.h.
11651 * configure: Re-generate.
11652
50a9e2f1
AC
11653 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11654 * serial.c (serial_open): Delete check for "ocd".
11655 Fix PR gdb/349.
11656
8b6e7932
AC
11657 * Makefile.in (linux-thread.o): Delete target.
11658 * linux-thread.c: Delete file.
11659
d155c46b
AC
11660 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11661 renamed SH files to be consistent.
11662
8ed32cc0
AC
11663 * symtab.c (sort_search_symbols): Use xfree.
11664
0e18d038
RE
116652002-02-23 Richard Earnshaw <rearnsha@arm.com>
11666
11667 * arm-linux-tdep.c (arm_linux_init_abi): Register
11668 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11669 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11670 definition with undef, since we don't want the sysvr4 definition.
11671 (SKIP_TRAMPOLINE_CODE): Likewise.
11672
27aac7ff
AC
116732002-02-23 Andrew Cagney <ac131313@redhat.com>
11674
11675 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11676
11677 * configure.in: (AC_CHECK_FUNCS) Added test for
11678 canonicalize_file_name Regenerated.
11679 * config.in, configure: Regenerated.
11680 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11681 defined use canonicalize_file_name.
7e336ba1 11682
65a6e0ee
MC
116832002-02-23 Michael Chastain <mec@shout.net>
11684
11685 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11686
47b95330
AC
116872002-02-23 Andrew Cagney <ac131313@redhat.com>
11688
11689 * README: Remove references to cygnus.com.
11690 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11691 dot com'' form. Remove references to cygnus.com and sourceware.
11692
696f451b
AC
116932002-02-23 Andrew Cagney <ac131313@redhat.com>
11694
11695 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11696 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11697 1003.1-2001 no longer allows "head -1".
11698 * gdb/Makefile.in (version.c): Likewise.
11699 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11700 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11701 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11702
bbaca940
AC
117032002-02-23 Andrew Cagney <ac131313@redhat.com>
11704
11705 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11706 * command.h (cmd_cfunc_eq): Declare.
11707 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11708
11709 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11710 ``struct cmd_list_element *''.
11711 * cli/cli-cmds.c (is_complete_command): Update. Use
11712 cmd_cfunc_eq.
11713 * top.c (execute_command): Pass the command to
11714 is_complete_command.
11715 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11716
b8b8b047
AC
117172002-02-23 Andrew Cagney <ac131313@redhat.com>
11718
11719 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11720 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11721 architecture defines.
11722 * s390-tdep.c (s390_gdbarch_init): Likewise.
11723
19d3fc80
RE
117242002-02-23 Richard Earnshaw <rearnsha@arm.com>
11725
11726 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11727 (arm_linux_push_arguments): Likewise.
11728 (arm_linux_init_abi): Register them. Also register linux-specific
11729 call_dummy_words.
11730 (find_minsym_and_objfile): Use strcmp, not STREQ.
11731 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11732 (arm_linux_call_dummy_words): Delete declaration.
11733 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11734 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11735 declarations.
11736 (LOWEST_PC): Delete.
11737
3ab13650
PS
117382002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11739
11740 * maint.c (print_section_info): Do not prepend `0x' to filepos
11741 output, it will be handled by local_hex_string_custom.
11742
19d3fc80 117432002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11744
11745 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11746 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11747 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11748
d85a5daf
JB
117492002-02-22 Jim Blandy <jimb@redhat.com>
11750
11751 Indicate that the bcache functions don't change the strings
11752 they're passed.
11753 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11754 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11755
eeb25b8a
PM
117562002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11757
11758 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11759
6badb179
CF
117602002-02-21 Christopher Faylor <cgf@redhat.com>
11761
11762 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11763 find the complete path to a loaded DLL.
11764
e8717518
FF
117652002-02-21 Fred Fish <fnf@redhat.com>
11766
11767 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11768 that marks the end of the range of a function, enter a line number
11769 entry that has a line number of zero and a PC offset that matches
11770 the end of the function. This starts a range of PC's for which no
11771 line number information is known.
11772 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11773 PC's for which no line number info is found (line number is zero)
11774 then we didn't find any valid line information.
11775 * symtab.h: Document use of zero line number entry.
11776
9abe5450
EZ
117772002-02-21 Elena Zannoni <ezannoni@redhat.com>
11778
11779 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11780 (have_ptrace_getvrregs): Define for run time checks.
11781 (gdb_vrregset_t): New type for Altivec register handling.
11782 (fetch_register, store_register): Fetch/store altivec register
11783 when needed.
11784 (fetch_altivec_register, store_altivec_register): New functions.
11785 (supply_vrregset, fill_vrregset): New functions.
11786 (fetch_altivec_registers, store_altivec_registers): New functions.
11787 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11788 registers as well.
11789
aaa38bb5
AJ
117902002-02-21 Jiri Smid <smid@suse.cz>
11791
11792 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11793
b34db576
RE
117942002-02-21 Richard Earnshaw <rearnsha@arm.com>
11795
11796 * Makefile.in (armnbsd-nat.o): Update dependencies.
11797 * armnbsd-nat.c (supply_gregset): New function. Common code to
11798 supply the integer register set.
11799 (supply_fparegset): New function. Similar for FPA registers.
11800 (fetch_regs, fetch_fp_regs): Use them.
11801 (fetch_core_registers): Likewise.
11802 (fetch_elfcore_registers): New function.
11803 (arm_netbsd_elfcore_fns): New core-file type specification.
11804 (_initialize_arm_netbsd_nat): Register it.
11805
3e56fc4b
RE
118062002-02-21 Richard Earnshaw <rearnsha@arm.com>
11807
11808 * armnbsd-nat.c: Include gdbcore.h.
11809 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11810 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11811 'void' to declaration, to shut up ARI.
11812 (fetch_core_registers): Make static. Rewrite using supply_register.
11813 (arm_netbsd_core_fns): New core-file type specification.
11814 (_initialize_arm_netbsd_nat): New function.
11815
097f6b0b
CF
118162002-02-21 Christopher Faylor <cgf@redhat.com>
11817
11818 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11819 value.
11820
c914e0cc
CF
118212002-02-20 Christopher Faylor <cgf@redhat.com>
11822
11823 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11824 fails.
11825
385fa495
DJ
118262002-02-20 Daniel Jacobowitz <drow@mvista.com>
11827
11828 * jv-exp.y (parse_number): Change type of implicit longs
11829 to builtin_type_uint64.
11830
e5f1222d
DJ
118312002-02-20 Daniel Jacobowitz <drow@mvista.com>
11832
11833 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11834 to be an integer instead of a `union wait'.
11835
75c9abc6
DJ
118362002-02-20 Daniel Jacobowitz <drow@mvista.com>
11837
11838 * mips-linux-nat.c: Call the operating system GNU/Linux.
11839 * mips-linux-tdep.c: Likewise.
11840 * mips-tdep.c: Likewise.
11841
551792a5
DJ
118422002-02-20 Daniel Jacobowitz <drow@mvista.com>
11843
11844 Fix PR gdb/265.
11845 * jv-exp.y (parse_number): Handle 64-bit integers.
11846
ee6e2b82
DJ
118472002-02-20 Daniel Jacobowitz <drow@mvista.com>
11848
11849 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11850 AC_STDC_HEADERS to AC_HEADER_STDC.
11851 * gdbserver/configure: Regenerated.
11852
a48442a0
RE
118532002-02-20 Richard Earnshaw <rearnsha@arm.com>
11854
11855 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11856 is defined.
11857 * sparc-tdep.c (get_longjmp_target): Likewise.
11858
fe419ffc
RE
118592002-02-20 Richard Earnshaw <rearnsha@arm.com>
11860
11861 * News: Add news about ARM and Multi-arch. Mention the new target
11862 arm*-*-netbsd*.
11863
5832ed7e
JB
118642002-02-19 Jim Blandy <jimb@redhat.com>
11865
11866 * stabsread.c (error_type_complaint): Improve error message.
11867
84563040
DJ
118682002-02-19 Daniel Jacobowitz <drow@mvista.com>
11869
11870 * gdbserver/README: Update documentation.
11871 * gdbserver/configure.in: Update configury to match documentation.
11872 * gdbserver/Makefile.in: Likewise.
11873 * gdbserver/configure: Regenerated.
11874 * gdbserver/aclocal.m4: New file, generated by aclocal.
11875 * gdbserver/config.in: New file, generated by autoheader.
11876
375fd65b
RE
118772002-02-19 Richard Earnshaw <rearnsha@arm.com>
11878
11879 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11880 armnbsd-nat.c.
11881
08216dd7
RE
118822002-02-19 Richard Earnshaw <rearnsha@arm.com>
11883
11884 * arm-tdep.h (enum arm_float_model): New enum.
11885 (struct gdbarch_tdep): Add fp_model.
11886 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11887 up floating-point conversions until we know the floating-point model
11888 in use by the inferior. Don't complain about being unable to
11889 determine the ABI of the inferior when we don't have one.
11890 (arm_extract_return_value): Support different floating-point models.
11891 (arm_store_return_value): Likewise.
aaa38bb5 11892 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11893 ARM_FLOAT_SOFT.
11894 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11895
65d6d66a
PS
118962002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11897
11898 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11899 of ``current_gdbarch''.
11900
47221191
RE
119012002-02-19 Richard Earnshaw <rearnsha@arm.com>
11902
11903 * armnbsd-nat.c : ANSIfy all function declarations.
11904 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11905 (fetch_inferior_registers): Re-implement in terms of above.
11906 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11907 (store_inferior_registers): Re-implement in terms of above.
11908
fdf39c9a
RE
119092002-02-19 Richard Earnshaw <rearnsha@arm.com>
11910
aaa38bb5 11911 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11912 kernel.
11913 * arm-linux-tdep.c: Likewise.
11914 * config/arm/tm-linux.h: Likewise.
11915
93247f88
RE
119162002-02-19 Richard Earnshaw <rearnsha@arm.com>
11917
11918 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11919 * config/arm/nbsd.mt (TM_FILE): Delete.
11920 * config/arm/tm-nbsd.h: Delete.
11921
d7b486e7
RE
119222002-02-19 Richard Earnshaw <rearnsha@arm.com>
11923
11924 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11925 Initialize CALL_DUMMY_LENGTH.
11926
41d39a95
RE
119272002-02-19 Richard Earnshaw <rearnsha@arm.com>
11928
11929 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11930 function.
11931 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11932 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11933 defines one thing and that is incorrect for this port.
11934 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11935
e1195560
PM
119362002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11937
11938 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11939
c1748f97
PM
119402002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11941
11942 * win32-nat.c (display_selector): New function. Displays information
11943 about the information returned by GetThreadSelectorEntry API function.
11944 (display_selectors): New function. Displays the infomation of
11945 the selector given as argument, or of CS, DS ans FS selectors
11946 if no argument is given.
11947 ( _initialize_inftarg): Add "w32" as info prefix command.
11948 Add "info w32 selector" as command calling display_selectors.
11949
e41e6bbf
PM
119502002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11951
11952 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11953 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11954 if not defined.
11955
0d3a9f48
RE
119562002-02-18 Richard Earnshaw <rearnsha@arm.com>
11957
11958 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11959
3fb4b924
RE
119602002-02-18 Richard Earnshaw <rearnsha@arm.com>
11961
11962 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11963 (arm_fix_call_dummy): Call it.
11964 (arm_call_dummy_breakpoint_offset): Delete.
11965 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11966 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11967
7f55af32
AC
119682002-02-18 Andrew Cagney <ac131313@redhat.com>
11969
11970 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11971 Default to func_frame_chain_valid.
11972 * gdbarch.h, gdbarch.c: Re-generate.
11973 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11974
05f13b9c
EZ
119752002-02-18 Elena Zannoni <ezannoni@redhat.com>
11976
11977 * ppc-linux-nat.c: Update copyright.
11978 (fetch_register, store_register): Add tid parameter, don't compute
11979 tid here.
11980 (fetch_ppc_registers, store_ppc_registers): Add tid
11981 parameter. Pass it along to callees.
11982 (fetch_inferior_registers, store_inferior_registers): Compute tid
11983 here, and pass it to calleed functions.
11984 (fill_gregset, supply_fpregset): Clean up formatting.
11985
d7afb4c9
RE
119862002-02-18 Richard Earnshaw <rearnsha@arm.com>
11987
11988 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11989 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11990
9df628e0
RE
119912002-02-18 Richard Earnshaw <rearnsha@arm.com>
11992
11993 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11994 * gdbarch.c gdbarch.h: Regenerate.
11995 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11996 function.
11997 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11998 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11999 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12000
12001 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12002 * arm-tdep.c (arm_get_longjmp_target): New function.
12003 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12004 this to a positive value register arm_get_longjmp_target as the
12005 longjmp handler.
12006 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12007 (arm_linux_init_abi): Set up longjmp description in tdep.
12008 * armnbsd-nat.c (get_longjmp_target): Delete.
12009 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12010 description in tdep.
12011 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12012 (get_longjmp_target): Delete declaration.
12013 (GET_LONGJMP_TARGET): Delete.
12014 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12015 (GET_LONGJMP_TARGET): Delete.
12016
57bc8964
KB
120172002-02-17 Kevin Buettner <kevinb@redhat.com>
12018
12019 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12020 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12021 of ``current_gdbarch''.
12022
83d31a92
TT
120232002-02-17 Tom Tromey <tromey@redhat.com>
12024
12025 * cli/cli-cmds.c (compare_strings): New function.
12026 (complete_command): Only print each unique item once.
12027 * completer.h (complete_line): Declare.
12028 * completer.c (complete_line): New function.
12029 (line_completion_function): Use it.
12030
17ef5d92
AC
120312002-02-16 Andrew Cagney <ac131313@redhat.com>
12032
12033 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12034 * gdbarch.h, gdbarch.c: Re-generate.
12035
491b8946
DJ
120362002-02-16 Daniel Jacobowitz <drow@mvista.com>
12037
12038 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12039
120402002-02-16 Daniel Jacobowitz <drow@mvista.com>
12041
12042 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12043 * valops.c (value_arg_coerce): Don't take the address of a reference
12044 to convert an argument to a reference.
12045
dfe7f3ac
CF
120462002-02-15 Christopher Faylor <cgf@redhat.com>
12047
12048 * win32-nat.c (get_image_name): New function.
12049 (handle_load_dll): Use get_image_name function.
12050 (get_child_debug_event): Avoid registering debug events until possibly
12051 execed process is started.
12052 (child_create_inferior): Allow invocation via shell so that command
12053 line redirection, etc. works ok.
12054 (_initialize_inftarg): Add new command: "set shell" to control whether
12055 a shell is used to start a process.
12056
1d33e73a
DJ
120572002-02-15 Daniel Jacobowitz <drow@mvista.com>
12058
12059 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12060 instead of find_register_by_number.
12061 (cannot_store_register): Likewise.
12062
48cd0caa
PM
120632002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12064
aaa38bb5 12065 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12066 fprintf_unfiltered (gdb_stderr, ...).
12067
8656e7d8
DJ
120682002-02-15 Daniel Jacobowitz <drow@mvista.com>
12069
12070 * gdbserver/gdbserver.1: Document --attach.
12071
66e810cd
RE
120722002-02-15 Richard Earnshaw <rearnsha@arm.com>
12073
12074 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12075 descriptions.
12076 * arm-tdep.c (arm_default_arm_le_breakpoint)
12077 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12078 (arm_default_thumb_be_breakpoint): New. Initialize them from
12079 traditional breakpoint defines.
12080 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12081 (arm_gdbarch_init): Initialize new breakpoint variables.
12082 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12083 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12084 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12085 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12086 code out to ...
12087 (arm_netbsd_init_abi_common): ... here; new function.
12088 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12089 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12090 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12091 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12092
97e03143
RE
120932002-02-15 Richard Earnshaw <rearnsha@arm.com>
12094
12095 * arm-tdep.h (enum arm_abi): New enum.
12096 (struct gdbarch_tdep): New structure.
12097 (LOWEST_PC): Provide a default.
12098 (arm_gdbarch_register_os_abi): Declare new function.
12099 * arm-tdep.c (arm_abi_names): New array.
12100 (process_note_abi_tag_sections): New function.
12101 (get_elfosabi): New function.
12102 (arm_gdbarch_register_os_abi): New function.
12103 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12104 support for that ABI has been built in, then call the appropriate
12105 configuration routine. Use gdbarch_num_regs() to get the number
12106 of registers.
12107 (arm_dump_tdep): New function.
12108 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12109 place-holder functions.
12110 (_initialize_arm_tdep): Register them.
12111 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12112
12113 * armnbsd-tdep.c: New file.
12114 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12115 * config/arm/nbsd.mt (TDEPFILES): Add it.
12116 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12117
12118 * armnbsd-nat.c: Include regcache.h.
12119 * Makefile.in (armnbsd-nat.o): Update dependency list.
12120
12121 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12122
ad68be46
DJ
121232002-02-14 Daniel Jacobowitz <drow@mvista.com>
12124
12125 * gdbserver/Makefile.in: Fix typos in target rules.
12126
003d6d1d
DJ
121272002-02-14 Daniel Jacobowitz <drow@mvista.com>
12128
aaa38bb5 12129 Fix part of PR gdb/267.
003d6d1d
DJ
12130 * linespec.c (find_methods): Handle constructors specially for now.
12131
6b230f1b
CV
121322002-02-14 Corinna Vinschen <vinschen@redhat.com>
12133
12134 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12135 handling.
12136 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12137 standard_coerce_float_to_double().
12138
1ea98d12
CF
121392002-02-14 Christopher Faylor <cgf@redhat.com>
12140
12141 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12142 GDBINIT_FILENAME.
12143
dd47e6fd
EZ
121442002-02-14 Elena Zannoni <ezannoni@redhat.com>
12145
12146 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12147 find_variant_by_name, because it confuses the multiarch
12148 framework. Return NULL if there isn't an architecture with the
12149 user supplied name, instead of forcing a different one without
12150 recording the change with the multiarch machinery.
12151 (find_variant_by_name): Delete.
12152
d7e39b9e
PS
121532002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12154
12155 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12156 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12157
76e42a4f
MH
121582002-02-13 Martin M. Hunt <hunt@redhat.com>
12159
aaa38bb5 12160 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12161 print_frame_info_listing_hook, set current_source_symtab.
12162
0a30fbc4
DJ
121632002-02-14 Daniel Jacobowitz <drow@mvista.com>
12164
12165 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12166 and remove unused $(INCLUDE_DIR).
12167 Add regcache.c to OBS.
12168 Add generated register protocol files to clean target.
12169 Update dependencies for new objects, obsolete old target code.
12170
12171 * gdbserver/linux-low.c: Remove all platform-specific code to
12172 new files. Remove various dead code. Update to use regcache
12173 functionality.
12174 * gdbserver/remote-utils.c (fromhex): Add return statement
12175 to quiet warning.
12176 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12177 constant.
12178 (input_interrupt): Add integer parameter to match prototype
12179 of a signal handler.
12180 (outreg): Use register_data ().
12181 (prepare_resume_reply): Use gdbserver_expedite_regs.
12182 * gdbserver/server.c (main): Dynamically allocate own_buf because
12183 PBUFSIZ is no longer constant. Use registers_to_string () and
12184 registers_from_string ().
12185 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12186 for error (), fatal (), and warning (). Update definition of
12187 PBUFSIZ to use regcache functionality. Add include guard.
12188 * gdbserver/utils.c (fatal): Add missing ``const''.
12189 (warning): New function.
12190
12191 * regformats/regdat.sh: Include "regcache.h" in generated files.
12192 Provide init_registers () function.
12193 * regformats/regdef.h: Add prototype for set_register_cache ().
12194 Add include guard.
12195
12196 * gdbserver/linux-arm-low.c: New file.
12197 * gdbserver/linux-i386-low.c: New file.
12198 * gdbserver/linux-ia64-low.c: New file.
12199 * gdbserver/linux-m68k-low.c: New file.
12200 * gdbserver/linux-mips-low.c: New file.
12201 * gdbserver/linux-ppc-low.c: New file.
12202 * gdbserver/linux-sh-low.c: New file.
12203
12204 * gdbserver/regcache.c: New file.
12205 * gdbserver/regcache.h: New file.
12206
12207 * gdbserver/low-linux.c: Removed obsolete file.
12208
4cc841d0
DJ
122092002-02-14 Daniel Jacobowitz <drow@mvista.com>
12210
12211 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12212 * config/i386/linux.mt: Likewise.
12213 * config/ia64/linux.mt: Likewise.
12214 * config/m68k/linux.mh: Likewise.
12215 * config/powerpc/linux.mh: Likewise.
12216 * config/mips/linux.mt: Likewise.
12217
12218 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12219
12220 * config/i386/i386lynx.mh: Mark gdbserver variables
12221 as (currently) obsolete for this target.
12222 * config/i386/nbsd.mt: Likewise.
12223 * config/i386/nbsdelf.mt: Likewise.
12224 * config/m32r/m32r.mt: Likewise.
12225 * config/m68k/m68klynx.mh: Likewise.
12226 * config/m68k/nbsd.mt: Likewise.
12227 * config/m68k/sun3os4.mh: Likewise.
12228 * config/mips/vr5000.mt: Likewise.
12229 * config/ns32k/nbsd.mt: Likewise.
12230 * config/pa/hppabsd.mh: Likewise.
12231 * config/pa/hppaosf.mh: Likewise.
12232 * config/powerpc/nbsd.mt: Likewise.
12233 * config/rs6000/rs6000lynx.mh: Likewise.
12234 * config/s390/s390.mt: Likewise.
12235 * config/s390/s390x.mt: Likewise.
12236 * config/sparc/sparclynx.mh: Likewise.
12237 * config/sparc/sun4os4.mh: Likewise.
12238 * config/i386/x86-64linux.mt: Likewise.
12239 * config/sparc/linux.mh: Likewise.
12240
a85f51e7
DJ
122412002-02-14 Daniel Jacobowitz <drow@mvista.com>
12242
12243 * configure.tgt: Configure gdbserver only for known working
12244 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12245 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12246 SUBDIRS if it is configured. Update comment for ${nativefile}.
12247 * configure: Regenerated.
12248
65554fef
MS
122492002-02-13 Michael Snyder <msnyder@redhat.com>
12250
670a52db
MS
12251 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12252
6dbdc4a3
MS
12253 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12254 (default_gcore_mach): Just return 0, work around a problem in bfd.
12255 (default_gcore_target): OK to return NULL if exec_bfd is null.
12256 (make_mem_sec): Use a cast, avoid a warning.
12257
12258 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12259 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12260 sizeof (host pointer) != sizeof (target pointer)).
12261 (procfs_make_note_section): Avoid overflow in psargs string.
12262
aaa38bb5 12263 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12264 implementation return an error.
12265
122662002-02-13 Rodney Brown <rbrown64@csc.com.au>
12267
12268 * procfs.c (procfs_make_note_section): Provide a default definition
12269 (for alpha-dec-osf4.0f). Fix typos.
12270
1e4d76e7
EZ
122712002-02-13 Elena Zannoni <ezannoni@redhat.com>
12272
12273 * linux-proc.c: Add include of regcache.h.
12274 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12275
b6d1a1d5
AC
122762002-02-13 Andrew Cagney <ac131313@redhat.com>
12277
12278 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12279 * memattr.c (create_mem_region): Disallow useless empty region.
12280 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12281 non-overlapping.
b6d1a1d5 12282
6c6ea35e
MC
122832002-02-13 Michael Chastain <mec@shout.net>
12284
12285 * defs.h: Kill CONST_PTR.
12286 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12287 * c-lang.c (c_builtin_types): Likewise.
12288 * ch-lang.c (ch_builtin_types): Likewise.
12289 * f-lang.c (f_builtin_types): Likewise.
12290 * language.c (unknown_builtin_types): Likewise.
12291 * m2-lang.c (m2_builtin_types): Likewise.
12292 * p-lang.c (pascal_builtin_types): Likewise.
12293 * scm-lang.c (c_builtin_types): Likewise.
12294
3e0b0f48
KS
122952002-02-13 Keith Seitz <keiths@redhat.com>
12296
12297 * arm-tdep.h (arm_get_next_pc): Add declaration.
12298
67255d04
RE
122992002-02-13 Richard Earnshaw <rearnsha@arm.com>
12300
12301 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12302 with other related struct-returning functions.
12303 (arm_extract_struct_value_address): New function.
12304 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12305 initialize float_format, double_format and long_double_format as
12306 appropriate to the endianness of the target.
12307 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12308 (arm_use_struct_convention): Delete declaration.
12309 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12310
079777f6
KS
123112002-02-13 Keith Seitz <keiths@redhat.com>
12312
12313 * defs.h (core_addr_to_string_nz): New function.
12314
34588f23
MK
123152002-02-13 Mark Kettenis <kettenis@gnu.org>
12316
12317 Apply missing bits of 2002-01-15 patch.
12318 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12319 (fill_fpregset): Use i387_fill_fsave.
12320
49b563f9
KS
123212002-02-12 Keith Seitz <keiths@redhat.com>
12322
49b563f9
KS
12323 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12324 (core_addr_to_string_nz): New function.
12325
aeb98c60
RE
123262002-02-11 Richard Earnshaw <rearnsha@arm.com>
12327
12328 * arm-linux-nat.c: Really include arm-tdep.h.
12329 * config/arm/tm-linux.h (struct type, struct value): Declare.
12330
65554fef
MS
123312002-02-11 Michael Snyder <msnyder@redhat.com>
12332
12333 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12334 (gcore section): Ifdef for Solaris and Unixware only.
12335 (procfs_do_thread_registers): Unixware needs one lwpstatus
12336 per thread (not one prstatus or pstatus).
12337 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12338 not over all gdb threads. For unixware, call elfcore_write_pstatus
12339 once before iterating over threads.
12340
34e8f22d
RE
123412002-02-11 Richard Earnshaw <rearnsha@arm.com>
12342
12343 * arm-tdep.h: New file.
12344 * arm-tdep.c: Include arm-tdep.h.
12345 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12346 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12347 (arm_print_float_info, arm_register_type, convert_to_extended)
12348 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12349 (arm_extract_return_value, arm_register_name): Make static.
12350 (arm_software_single_step): Similarly. Fix types in declaration.
12351 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12352 (arm_store_return_value, arm_store_struct_return): New functions.
12353 (arm_gdbarch_init): Register the above functions. Also register
12354 call_dummy_start_offset, sizeof_call_dummy_words,
12355 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12356 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12357 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12358 prologue_cache.saved_regs here, rather than ...
12359 (_initialize_arm_tdep): ... here.
12360 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12361 declarations.
12362 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12363 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12364 (arm_print_float_info, arm_register_type, convert_to_extended)
12365 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12366 (arm_extract_return_value, arm_register_name): Delete declarations.
12367 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12368 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12369 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12370 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12371 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12372 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12373 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12374 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12375 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12376 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12377 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12378 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12379 interface.
12380 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12381 * remote-rdi.c remote-rdp.c: Likewise.
12382 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12383 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12384 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12385 definition.
12386
12387 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12388 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12389 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12390 from non-ARM_ prefixed definitions.
12391 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12392 all uses of above.
12393 * remote-rdi.c remote-rdp.c: Likewise.
12394 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12395
148754e5
RE
123962002-02-11 Richard Earnshaw <rearnsha@arm.com>
12397
12398 * arm-tdep.c (arm_frameless_function_invocation)
12399 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12400 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12401 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12402 (arm_pop_frame, arm_get_next_pc): Make static.
12403 (arm_gdbarch_init): Register above in gdbarch structure.
12404 (arm_read_fp): Renamed from arm_target_read_fp.
12405 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12406 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12407 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12408 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12409 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12410 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12411 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12412 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12413 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12414 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12415 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12416
434d2d4f
DJ
124172002-02-10 Daniel Jacobowitz <drow@mvista.com>
12418
12419 * symtab.c (compare_search_syms): New function.
12420 (sort_search_symbols): New function.
12421 (search_symbols): Sort symbols after searching rather than
12422 before.
12423
55241689
AC
124242002-02-10 Andrew Cagney <ac131313@redhat.com>
12425
12426 * NEWS: Linux -> GNU/Linux.
12427
028c194b
AC
124282002-02-10 Andrew Cagney <ac131313@redhat.com>
12429
12430 * gdbarch.sh: For for level one methods, disallow a definition
12431 when partially multi-arched. Add comments explaining rationale.
12432 * gdbarch.h: Re-generate.
12433
6acf50cd
AC
124342002-02-10 Andrew Cagney <ac131313@redhat.com>
12435
12436 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12437 multi-arch partial.
aaa38bb5 12438
50248794
AC
124392002-02-10 Andrew Cagney <ac131313@redhat.com>
12440
12441 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12442 field. Use diff -u.
12443 * gdbarch.c: Re-generate.
12444
c30e0066
AC
124452002-02-10 Andrew Cagney <ac131313@redhat.com>
12446
9b56c5f3 12447 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12448 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12449 partial.
12450
6e6d6484
AC
124512002-02-10 Andrew Cagney <ac131313@redhat.com>
12452
12453 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12454 multi-arch partial.
12455 (PUSH_ARGUMENTS): Switch to using predefault.
12456 * gdbarch.c: Regenerate.
12457
c203844d
AC
124582002-02-10 Andrew Cagney <ac131313@redhat.com>
12459
12460 * valops.c (PUSH_ARGUMENTS): Delete definition.
12461 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12462 partial. Default to default_push_arguments.
12463 * gdbarch.h, gdbarch.c: Regenerate.
12464
b5a2688f
AC
124652002-02-09 Andrew Cagney <ac131313@redhat.com>
12466
12467 * defs.h (throw_exception): Rename return_to_top_level. Update
12468 comments.
12469 * utils.c (error_stream, internal_verror, quit): Ditto.
12470 * top.c (throw_exception, catcher): Ditto.
12471 * sparclet-rom.c (sparclet_load): Ditto.
12472 * remote.c (interrupt_query, minitelnet): Ditto.
12473 * remote-sds.c (interrupt_query): Ditto.
12474 * remote-mips.c (mips_error, mips_kill): Ditto.
12475 * ocd.c (interrupt_query): Ditto.
12476 * monitor.c (monitor_interrupt_query): Ditto.
12477 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12478 * target.h: Update comment.
aaa38bb5 12479
b5a2688f 12480 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12481
2fa5c1e0
AC
124822002-02-09 Andrew Cagney <ac131313@redhat.com>
12483
12484 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12485 default_double_format.
12486 * gdbarch.h, gdbarch.c: Re-generate.
12487 * findvar.c (floatformat_unknown): Delete variable definition.
12488 * doublest.h (floatformat_unknown): Delete variable declaration.
12489
da966255
JB
124902002-02-09 Jim Blandy <jimb@redhat.com>
12491
12492 * stabsread.c (read_type): Add code to parse Sun's syntax for
12493 prototyped function types.
12494
123a4891
AC
124952002-02-09 Andrew Cagney <ac131313@redhat.com>
12496
12497 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12498 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12499
fb39c8f3
PS
125002002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12501
12502 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12503 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12504 now _initialize_xcoffsolib gets called again and overrides the
12505 commands from solib.c in a native configuration.
12506
0b87a11d
MK
125072002-02-09 Mark Kettenis <kettenis@gnu.org>
12508
12509 * doublest.c (store_typed_floating): Don't try to return a value.
12510 Fixes PR gdb/290.
12511
bdc2fc72
JB
125122002-02-08 Jim Blandy <jimb@redhat.com>
12513
12514 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12515 is prototyped and has no arguments, print its argument list as
12516 `(void)'.
12517
da69bbcf
CD
125182002-02-08 Chris Demetriou <cgd@broadcom.com>
12519
12520 * MAINTAINERS (write-after-approval): Add myself.
12521 (paper-trail): I've escaped!
aaa38bb5 12522
b69571f5
CF
125232002-02-08 Christopher Faylor <cgf@redhat.com>
12524
12525 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12526 changes.
12527 (_initialize_check_for_gdb_ini): Ditto.
12528
f6871398
MH
125292002-02-08 Martin M. Hunt <hunt@redhat.com>
12530
12531 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12532 xaprintf -> xasprintf.
12533
4e52d31c
PM
125342002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12535
12536 * win32-nat.c: Remove use of printf and sprintf functions.
12537
39bbf761
RE
125382002-02-08 Richard Earnshaw <rearnsha@arm.com>
12539
12540 * arm-tdep.c (arm_frame_chain_valid): Make static.
12541 (arm_push_arguments): Likewise.
12542 (arm_gdbarch_init): New function.
12543 (_initialize_arm_tdep): Call it.
12544 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12545 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12546 (FRAME_CHAIN_VALID): Delete.
12547 (arm_frame_chain_valid): Delete declaration.
12548 (PUSH_ARGUMENTS): Delete.
12549 (arm_push_arguments): Delete declaration.
12550 (CALL_DUMMY_P): Delete.
12551
9c9532c9
CV
125522002-02-08 Andrew Cagney <ac131313@redhat.com>
12553 Corinna Vinschen <vinschen@redhat.com>
12554
12555 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12556 on builtin float types.
12557
4e8f7a8b
DJ
125582002-02-08 Daniel Jacobowitz <drow@mvista.com>
12559
12560 * utils.c: Include <curses.h> before "bfd.h".
12561 * tui/tui-hooks.c: Likewise.
12562 * tui/tui.c: Likewise.
12563 * tui/tuiCommand.c: Likewise.
12564 * tui/tuiData.c: Likewise.
12565 * tui/tuiDataWin.c: Likewise.
12566 * tui/tuiDisassem.c: Likewise.
12567 * tui/tuiGeneralWin.c: Likewise.
12568 * tui/tuiIO.c: Likewise.
12569 * tui/tuiLayout.c: Likewise.
12570 * tui/tuiRegs.c: Likewise.
12571 * tui/tuiSource.c: Likewise.
12572 * tui/tuiSourceWin.c: Likewise.
12573 * tui/tuiStack.c: Likewise.
12574 * tui/tuiWin.c: Likewise.
12575
cd4bffcf
EZ
125762002-02-07 Elena Zannoni <ezannoni@redhat.com>
12577
12578 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12579 to include space for pseudoregs as well. Update loops accordingly.
12580 (sh_fp_frame_init_saved_regs): Ditto.
12581 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12582
26806ce2
AC
125832002-02-07 Andrew Cagney <ac131313@redhat.com>
12584
12585 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12586 Add Richard Earnshaw to Arm maintainers.
12587
97fdab62
AC
125882002-02-07 Andrew Cagney <ac131313@redhat.com>
12589
a6b98203
AC
12590 * defs.h (warning_begin): Delete declaration.
12591
97fdab62
AC
12592 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12593 Delete macro.
12594
78b29b40
MS
125952002-02-07 Michael Snyder <msnyder@redhat.com>
12596
aaa38bb5 12597 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12598 Logic bug, remove misplaced else.
12599
d8849953
KD
126002002-02-07 Klee Dienes <klee@apple.com>
12601
12602 * fork-inferior.c (fork_inferior): Add '!' to the list of
12603 characters that need to be quoted when building a string for the
12604 shell. Quote '!' specifically with a backslash, since CSH chokes
12605 when trying to evaluate "str!str".
aaa38bb5 12606
095778a0
NC
126072002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12608
12609 * rdi-share/host.h: Only provide a typedef for bool if it is not
12610 defined.
12611
1900040c
MS
126122002-02-04 Michael Snyder <msnyder@redhat.com>
12613
12614 * breakpoint.h (enum bptype): Add new overlay event bp type.
12615 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12616
1900040c
MS
12617 * breakpoint.c (create_internal_breakpoint): New function.
12618 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12619 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12620 (create_thread_event_breakpoint): Ditto.
12621 (create_solib_event_breakpoint): Ditto.
12622 (create_overlay_event_breakpoint): New function.
12623 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12624 (update_breakpoints_after_exec): Delete and re-initialize
12625 overlay event breakpoints after an exec. Add FIXME comment
12626 about longjmp breakpoint.
12627 (print_it_typical): Ignore overlay event breakpoints.
12628 (print_one_breakpoint): Ditto.
12629 (mention): Ditto.
12630 (bpstat_what): Do not stop for overlay event breakpoints.
12631 (delete_breakpoint): Don't delete overlay event breakpoints.
12632 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12633 (breakpoint_re_set): Re-create overlay event breakpoint.
12634
12635 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12636 (overlay_manual_command): Disable overlay breakpoints.
12637 (overlay_off_command): Disable overlay breakpoints.
12638
082fc60d
RE
126392002-02-06 Richard Earnshaw <rearnsha@arm.com>
12640
12641 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12642 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12643 to here from config/tm-arm.h.
12644 (coff_sym_is_thumb): Make static.
12645 (arm_elf_make_msymbol_special): New function.
12646 (arm_coff_make_msymbol_special): New function.
12647 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12648 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12649 (coff_sym_is_thumb): Delete declaration.
12650 (arm_elf_make_msymbol_special): Declare.
12651 (arm_coff_make_msymbol_special): Declare.
12652 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12653 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12654
039c5766
RE
126552002-02-06 Richard Earnshaw <rearnsha@arm.com>
12656
12657 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12658
126592002-02-06 Richard Earnshaw <rearnsha@arm.com>
12660
12661 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12662 * gdbarch.c gdbarch.h: Regenerate.
12663 * arch-utils.c (default_print_float_info): New function.
12664 * arch-utils.h (default_print_float_info): Prototype it.
12665 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12666 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12667 (PRINT_FLOAT_INFO): Document it.
12668
12669 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12670 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12671 (PRINT_FLOAT_INFO): Define.
12672
58fa08f0
PM
126732002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12674
aaa38bb5 12675 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12676 Add typecast to sprintf argument to suppress a warning.
12677
7393af7c
PM
126782002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12679
58fa08f0 12680 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12681 to allow easier handling of pass state.
12682 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12683 that gives exception name and address.
12684 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12685 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12686 exceptions added.
aaa38bb5
AJ
12687 (child_continue): Correctly report continue_status.
12688 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12689 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12690 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12691 the exception should be passed to debuggee or not.
12692
6af4589c
MS
126932002-02-05 Michael Snyder <msnyder@redhat.com>
12694
12695 * regcache.c (fetch_register): Call target_fetch_register
12696 only if we don't call FETCH_PSEUDO_REGISTER.
12697 (store_register): Call target_store_register only if we
12698 don't call STORE_PSEUDO_REGISTER.
12699
a2cf933a
EZ
127002002-02-05 Elena Zannoni <ezannoni@redhat.com>
12701
12702 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12703 ELF_MAKE_MSYMBOL_SPECIAL.
12704 * gdbarch.c, gdbarch.h: Regenerate.
12705 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12706 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12707 * elfread.c (elf_symtab_read): Compile use of
12708 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12709 multiarched.
12710 * coffread.c (coff_symtab_read): Ditto, for
12711 COFF_MAKE_MSYMBOL_SPECIAL.
12712
6bb7be43
JB
127132002-02-05 Jim Blandy <jimb@redhat.com>
12714
12715 * solib-svr4.c (svr4_truncate_ptr): New function.
12716 (svr4_relocate_section_addresses): Do the address arithmetic with
12717 the appropriate truncation for target addresses, even when
12718 CORE_ADDR is larger than a target address.
12719
e18651ec
DJ
127202002-02-05 Daniel Jacobowitz <drow@mvista.com>
12721
12722 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12723 to (int *).
12724
6b2725be
DJ
127252002-02-05 Daniel Jacobowitz <drow@mvista.com>
12726
12727 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12728 code.
12729
fca9e603
DJ
127302002-02-05 Daniel Jacobowitz <drow@mvista.com>
12731
12732 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12733
6c537a52
DJ
127342002-02-05 Daniel Jacobowitz <drow@mvista.com>
12735
12736 * gdbserver/linux-low.c: Remove unused include files.
12737
d844cde6
DJ
127382002-02-05 Daniel Jacobowitz <drow@mvista.com>
12739
12740 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12741 (read_inferior_memory): Use it.
12742 (write_inferior_memory): Likewise.
12743
d07c63e7
DJ
127442002-02-05 Daniel Jacobowitz <drow@mvista.com>
12745
12746 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12747 grubbing through sys_errlist.
12748
da6d8c04
DJ
127492002-02-05 Daniel Jacobowitz <drow@mvista.com>
12750
12751 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12752
5b421780
PM
127532002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12754 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12755
9f60d481
AC
127562002-02-04 Andrew Cagney <ac131313@redhat.com>
12757
12758 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12759 (do_sfunc, set_cmd_sfunc): New functions.
12760
12761 * command.h (struct cmd_list_element): Add field func.
12762 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12763 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12764 * cli/cli-decode.h: Ditto.
12765
12766 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12767 (help_all, help_cmd_list): Ditto.
12768 (find_cmd, complete_on_cmdlist): Ditto.
12769 * top.c (execute_command): Ditto.
12770
12771 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12772 function.sfunc.
12773
12774 * infcmd.c (notice_args_read): Fix function signature.
12775
12776 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12777 * cli/cli-decode.c (add_set_cmd): Ditto.
12778 * utils.c (initialize_utils): Ditto.
12779 * maint.c (_initialize_maint_cmds): Ditto.
12780 * infrun.c (_initialize_infrun): Ditto.
12781 * demangle.c (_initialize_demangler): Ditto.
12782 * remote.c (add_packet_config_cmd): Ditto.
12783 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12784 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12785 * proc-api.c (_initialize_proc_api): Ditto.
12786 * kod.c (_initialize_kod): Ditto.
12787 * valprint.c (_initialize_valprint): Ditto.
12788 * top.c (init_main): Ditto.
12789 * infcmd.c (_initialize_infcmd): Ditto.
12790 * corefile.c (_initialize_core): Ditto.
12791 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12792 * arch-utils.c (initialize_current_architecture): Ditto.
12793 (_initialize_gdbarch_utils): Ditto.
12794 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12795
12796 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12797 * wince.c (_initialize_inftarg): Ditto.
12798 * symfile.c (_initialize_symfile): Ditto.
12799 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12800 * language.c (_initialize_language): Ditto.
12801 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12802
f9ba0717
MS
128032002-02-04 Michael Snyder <msnyder@redhat.com>
12804
12805 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12806
0c74b2a7
DJ
128072002-02-04 Daniel Jacobowitz <drow@mvista.com>
12808
12809 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12810 Add rules for building the register data files.
12811
c638789f
DJ
128122002-02-04 Daniel Jacobowitz <drow@mvista.com>
12813
12814 * regformats/regdat.sh: Add braces to the definition of
12815 expedite_regs_${arch}.
12816
db253027
DJ
128172002-02-04 Daniel Jacobowitz <drow@mvista.com>
12818
12819 * regformats/regdef.h (struct reg): Add comment describing the
12820 requirements for offset and size fields.
12821
206be19c
AS
128222002-02-04 Andreas Schwab <schwab@suse.de>
12823
12824 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12825 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12826
181c1381
RE
128272002-02-04 Richard Earnshaw <rearnsha@arm.com>
12828
12829 * gdbarch.sh (copyright): Update years in generated header.
12830 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12831 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12832 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12833 * dbxread.c: Likewise.
12834 * dwarfread.c: Likewise.
12835 * elfread.c: Likewise.
12836 * somread.c: Likewise.
12837
12838 * arm-tdep.c (arm_smash_text_address): New function.
12839 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12840
fa4ba8da
PM
128412002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12842
12843 Add support for hardware watchpoints on win32 native.
aaa38bb5 12844 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12845 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12846 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12847 of debug registers.
12848 (debug_registers_changed): New variable. Reflects when debug registers
12849 are changed and need to be written to inferior.
aaa38bb5 12850 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12851 was set, used when new threads are created.
12852 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12853 i386-nat code.
12854 (thread_rec): Set dr array if id is the thread of current_event .
12855 (child_continue, child_resume): Change the debug registers for all
12856 threads if debug_registers_changed.
12857 (child_add_thread): Change the debug registers if debug_registers_used.
12858 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12859 Link nm.h to new nm-cygwin.h file.
12860 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12861 of hardware registers.
12862
a73c86fb
AC
128632002-02-03 Andrew Cagney <ac131313@redhat.com>
12864
12865 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12866 Restore behavour broken by 2002-01-20 Andrew Cagney
12867 <ac131313@redhat.com> IEEE_FLOAT removal.
12868
acf5ed49
DJ
128692002-02-03 Daniel Jacobowitz <drow@mvista.com>
12870
12871 * c-valprint.c (c_val_print): Pass a proper valaddr to
12872 cp_print_class_method.
12873 * valops.c (search_struct_method): If there is only one method
12874 and args is NULL, return that method.
12875
493d28d5
DJ
128762002-02-03 Daniel Jacobowitz <drow@mvista.com>
12877
12878 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12879 accessing tag_name directly.
12880
7495dfdb
DJ
128812002-02-03 Daniel Jacobowitz <drow@mvista.com>
12882
12883 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12884 of accessing tag_name directly.
12885
dd6bda65
DJ
128862002-02-03 Daniel Jacobowitz <drow@mvista.com>
12887
12888 PR gdb/280
12889 * gdbtypes.c (replace_type): New function.
12890 * gdbtypes.h (replace_type): Add prototype.
12891 * stabsread.c (read_type): Use replace_type.
12892
88fe217c
RE
128932002-02-03 Richard Earnshaw <rearnsha@arm.com>
12894
12895 * Makefile.in (memattr.o): Add missing dependencies rule.
12896
e5d66720
PS
128972002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12898
12899 * breakpoint.c (break_at_finish_command): Really export.
12900 (break_at_finish_at_depth_command): Ditto.
12901 (tbreak_at_finish_command): Ditto.
12902 * hppa-tdep.c: Include completer.h.
12903 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12904 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12905
fffee0be
AC
129062002-02-01 Andrew Cagney <ac131313@redhat.com>
12907
12908 * utils.c (do_write): New function.
12909 (error_stream): Rewrite combining the code from error_begin and
12910 verror.
12911 (verror): Rewrite using error_stream.
12912 (error_begin): Delete function.
12913
255e7dbf
AC
129142002-02-01 Andrew Cagney <ac131313@redhat.com>
12915
12916 * utils.c (error_begin): Make static.
12917 * defs.h (error_begin): Delete declaration.
12918
12919 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12920 (decode_line_1): Use cplusplus_error instead of error_begin,
12921 cplusplus_hint and return_to_top_level.
12922 * coffread.c (coff_symfile_read): Use error instead of error_begin
12923 and return_to_top_level.
12924 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12925
ddfe3c15
AC
129262002-02-01 Andrew Cagney <ac131313@redhat.com>
12927
12928 * language.h (type_error, range_error): Make string parameter
12929 constant.
12930 * language.c (warning_pre_print): Delete extern declaration.
12931 * dwarfread.c (warning_pre_print): Ditto.
12932 * language.c (type_error, range_error): Rewrite to use verror and
12933 vwarning instead of warning_begin.
12934
03ac34d5
MS
129352002-02-01 Michael Snyder <msnyder@redhat.com>
12936
261c4ca2
MS
12937 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12938 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12939
e00d1dc8
AC
129402002-02-01 Andrew Cagney <ac131313@redhat.com>
12941
12942 * command.h (NO_FUNCTION): Delete macro.
12943 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12944 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12945 * tracepoint.c (_initialize_tracepoint): Ditto.
12946 * cli/cli-decode.c (add_set_cmd): Ditto.
12947 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12948
76b79d6e
DJ
129492002-02-01 Daniel Jacobowitz <drow@mvista.com>
12950
12951 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12952 Update ``this'' pointer when calling virtual functions.
12953
799f9e91
MS
129542002-02-01 Michael Snyder <msnyder@redhat.com>
12955
c7bd442c 12956 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12957 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12958
3cf384d4
DJ
129592002-02-01 Daniel Jacobowitz <drow@mvista.com>
12960
12961 * regformats/reg-arm.dat: New file.
12962 * regformats/reg-i386.dat: New file.
12963 * regformats/reg-ia64.dat: New file.
12964 * regformats/reg-m68k.dat: New file.
12965 * regformats/reg-mips.dat: New file.
12966 * regformats/reg-ppc.dat: New file.
12967 * regformats/reg-sh.dat: New file.
12968 * regformats/regdef.h: New file.
12969 * regformats/regdat.sh: New file.
12970
0defa245
RE
129712002-02-01 Richard Earnshaw <reanrsha@arm.com>
12972
12973 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12974 (arm_frame_args_address, arm_frame_locals_address): New functions.
12975 (arm_frame_num_args): New function.
12976 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12977 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12978 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12979
405f26e6
MS
129802002-01-31 Michael Snyder <msnyder@redhat.com>
12981
502fd408
MS
12982 * breakpoint.c (break_at_finish_command): Export.
12983 (break_at_finish_at_depth_command): Export.
12984 (tbreak_at_finish_command): Export.
d6020d45 12985 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12986 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12987 "txbreak" commands, which are HPPA specific.
502fd408 12988
7d35e135
MS
12989 * printcmd.c (disassemble_command): Remove an ancient
12990 artifact of an old merge.
12991
aaa38bb5 12992 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12993 Define enum constant values for overlay mode.
12994 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12995 (overlay_is_mapped, overlay_auto_command,
12996 overlay_manual_command): Ditto.
d874f1e2 12997
aaa38bb5
AJ
12998 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12999 breakpoint_here_p, breakpoint_inserted_here_p,
13000 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13001 describe_other_breakpoints, check_duplicates, clear_command):
13002 Coding standard fixes.
13003
8add0441 13004 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13005 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13006 code: check bfd SEC_READONLY flag for section.
13007
e351066e
AC
130082002-01-31 Andrew Cagney <ac131313@redhat.com>
13009
7d35e135 13010 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13011
8a48e967
DJ
130122002-01-30 Daniel Jacobowitz <drow@mvista.com>
13013
13014 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13015 data symbols, since we search based on textlow and texthigh.
13016 (find_pc_sect_symtab): Likewise.
13017
f5a96129
AC
130182002-01-30 Andrew Cagney <ac131313@redhat.com>
13019
13020 * defs.h (vwarning): Declare.
f5a96129
AC
13021 * utils.c (vwarning): New function.
13022 (warning): Call vwarning.
13023 (warning_begin): Delete function.
13024
13025 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13026 the warning message.
13027 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13028 warning_begin.
13029
cefd4ef5
MS
130302002-01-30 Michael Snyder <msnyder@redhat.com>
13031
1a703748
MS
13032 * NEWS: Mention "set trust-readonly-sections" command.
13033 Mention generate-core-file command.
cefd4ef5 13034
3a11626d
MS
130352002-01-15 Michael Snyder <msnyder@redhat.com>
13036
13037 * target.c: New command, "set trust-readonly-sections on".
13038 (do_xfer_memory): Honor the suggestion to trust readonly sections
13039 by reading them from the object file instead of from the target.
13040 (initialize_targets): Register command "set trust-readonly-sections".
13041
d1c7e53b
AC
130422002-01-29 Andrew Cagney <ac131313@redhat.com>
13043
13044 * parse.c (target_map_name_to_register): Simplify, search regs and
13045 pseudo-regs using a single loop.
13046
e2c9a72c
AC
130472002-01-30 Andrew Cagney <ac131313@redhat.com>
13048
13049 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13050
69824b4e
MK
130512002-01-15 Rodney Brown <rbrown64@csc.com.au>
13052
13053 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13054 * config/i386/i386v42mp.mh: Add i387-nat.o .
13055 * i386v4-nat.c: Include i387-nat.h.
13056 (supply_fpregset): Use i387_supply_fsave.
13057 (fill_fpregset): Use i387_fill_fsave.
13058
6eb69eab
RE
130592002-01-30 Richard Earnshaw <rearnsha@arm.com>
13060
13061 * arm-tdep.c (arm_call_dummy_words): Define.
13062 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13063 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13064 (CALL_DUMMY_WORDS): Define.
13065 (arm_call_dummy_words): Declare.
13066 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13067 (arm_linux_call_dummy_words): Declare.
13068
9852326a
AS
130692002-01-30 Andreas Schwab <schwab@suse.de>
13070
13071 * m68klinux-nat.c: Fix last change to use regcache_collect
13072 instead of referencing registers[] directly.
13073
977a3030
AC
130742002-01-29 Andrew Cagney <ac131313@redhat.com>
13075
13076 * parse.c (target_map_name_to_register): Delete code wrapped in
13077 #ifdef REGISTER_NAME_ALIAS_HOOK.
13078
2076c72b
MS
130792002-01-28 Michael Snyder <msnyder@redhat.com>
13080
13081 * regcache.c (legacy_read_register_gen): Need to be able to
13082 read pseudo-register as well as real register.
13083 (legacy_write_register_gen): Ditto.
13084
8fcc723b
AC
130852002-01-28 Andrew Cagney <ac131313@redhat.com>
13086
13087 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13088 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13089 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13090 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13091 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13092 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13093 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13094 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13095 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13096 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13097 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13098 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13099 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13100 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13101 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13102 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13103 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13104 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13105 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13106 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13107
afe64c1a
AC
131082002-01-28 Andrew Cagney <ac131313@redhat.com>
13109
13110 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13111 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13112 (initialize_current_architecture): Update target_byte_order using
13113 information from BFD.
aaa38bb5 13114 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13115 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13116
75bc7ddf
AC
131172002-01-28 Andrew Cagney <ac131313@redhat.com>
13118
13119 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13120 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13121
13122 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13123 #ifdef INVALID_FLOAT.
13124 * infcmd.c (do_registers_info): Ditto.
13125 * values.c (unpack_double): Ditto. Add comment.
13126
13127 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13128 already commented out.
13129
0280a90a
AS
131302002-01-26 Andreas Schwab <schwab@suse.de>
13131
13132 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13133 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13134 registers and add support for PTRACE_GETREGS.
13135
7072a954
AC
131362002-01-24 Andrew Cagney <ac131313@redhat.com>
13137
13138 GDB 5.1.1 released from 5.1 branch.
13139 * NEWS: Add 5.1.1 news.
13140 * README: Sync with 5.1 branch.
13141
86f902e0
FF
131422002-01-23 Fred Fish <fnf@redhat.com>
13143
13144 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13145 stabstring on initial malloc. Reallocing will copy it for us,
13146 if necessary.
13147
8af51c36
EZ
131482002-01-23 Elena Zannoni <ezannoni@redhat.com>
13149
aaa38bb5 13150 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13151 (HFILES_NO_SRCDIR): Remove hpread.h.
13152 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13153 (hpread.o): Update dependencies.
13154 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13155
13156 * hp-psymtab-read.c: Remove file.
13157 * hp-symtab-read.c: Remove file.
13158 * hpread.h: Remove file.
13159
13160 * hpread.c: Merge all contents of hp-psymtab-read.c,
13161 hp-symtab-read.c and hpread.h into this file, as it was prior to
13162 January 1999.
13163
13164 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13165 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13166 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13167 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13168
dc5cfeb6
EZ
131692002-01-23 Elena Zannoni <ezannoni@redhat.com>
13170
13171 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13172 fill_gregset): Call gdbarch_tdep() just once, assign result to
13173 variable and use that, instead of calling the function several
13174 times.
13175
ea87b71b
AO
131762002-01-24 Alexandre Oliva <aoliva@redhat.com>
13177
13178 * configure.host: Accept sparcv9 as alias for sparc64.
13179 * configure.tgt: Likewise.
13180
13fc0c2f
KB
131812002-01-22 Kevin Buettner <kevinb@redhat.com>
13182
13183 * solib-aix5.c (build_so_list_from_mapfile)
13184 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13185 arguments is not reversed.
13186 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13187 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13188
7bd872fe
EZ
131892002-01-22 Elena Zannoni <ezannoni@redhat.com>
13190
13191 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13192 modified version of obsolete sh_fetch_pseudo_register.
13193 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13194 (sh4_register_read): New function.
13195 (sh_pseudo_register_write): New function. Renamed and modified
13196 version of obsolete sh_store_pseudo_register.
13197 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13198 (sh4_register_write): New function.
13199 (sh_gdbarch_init): Remove setting of gdbarch function
13200 fetch_pseudo_register and store_pseudo_register. Remove setting of
13201 register_convert_to_raw, register_convert_to_virtual,
13202 register_convertible.
13203 (sh_sh4_register_convertible): Delete. No longer needed. All is
13204 taken care by architecture specific functions
13205 register_read/register_write.
13206 (sh_sh4_register_convert_to_virtual): Make static.
13207 (sh_sh4_register_convert_to_raw): Ditto.
13208
069e84fd
AC
132092002-01-22 Andrew Cagney <ac131313@redhat.com>
13210
13211 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13212 (floatformat_is_nan, floatformat_mantissa): Ditto.
13213
13214 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13215 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13216 builtin_type_ieee_double_little,
13217 builtin_type_ieee_double_littlebyte_bigword,
13218 builtin_type_m68881_ext, builtin_type_i960_ext,
13219 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13220 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13221 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13222 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13223
211a4f69
CV
132242002-01-22 Corinna Vinschen <vinschen@redhat.com>
13225
13226 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13227 parameter. Set frameless flag if it exists and depended of
13228 whether the scanned function is frameless or not.
13229 (xstormy16_skip_prologue): If function is frameless, return
13230 result of xstormy16_scan_prologue().
13231 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13232 call.
13233
f81353e4
EZ
132342002-01-21 Elena Zannoni <ezannoni@redhat.com>
13235
13236 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13237 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13238 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13239 sh_sh4_register_byte, sh_sh4_register_raw_size,
13240 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13241 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13242 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13243 sh_store_pseudo_register, sh_do_pseudo_register): Call
13244 gdbarch_tdep() just once, assign result to variable and use that,
13245 instead of calling the function several times.
13246
63c73a17
MK
132472002-01-20 Mark Kettenis <kettenis@gnu.org>
13248
13249 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13250 macros instead of LAST_FPU_CTRL_REGNUM.
13251 (store_register): Likewise.
13252
39ad761d
JB
132532002-01-21 Jim Blandy <jimb@redhat.com>
13254
13255 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13256 is up-to-date before running the program, not just when a program
13257 exits.
13258
3d74b771
FF
132592002-01-21 Fred Fish <fnf@redhat.com>
13260
13261 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13262 when we have found all instructions we are looking for.
13263
966fbf70
RE
132642002-01-21 Richard Earnshaw <rearnsha@arm.com>
13265
13266 * arm-tdep.c (arm_register_name): New function.
13267 (arm_registers_names): Make static.
13268 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13269 (arm_register_name): Declare.
13270 (REGISTER_NAME): Use it.
13271
c3b4394c
RE
132722002-01-21 Richard Earnshaw <rearnsha@arm.com>
13273 Kevin Buettner <kevinb@redhat.com>
13274
13275 Convert arm targets to new FRAME interface.
13276 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13277 (arm_frame_find_save_regs): Delete.
13278 (arm_frame_init_saved_regs): New.
13279 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13280 Allocate extra_info as required. Convert all uses of fsr.regs
13281 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13282 to use extra_info.
13283 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13284 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13285 (check_prologue_cache, save_prologue_cache): Likewise.
13286 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13287 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13288 (FRAME_FIND_SAVED_REGS): Delete.
13289 (arm_frame_find_saved_regs): Delete prototype.
13290 (arm_frame_init_saved_regs): New prototype.
13291 (FRAME_INIT_SAVED_REGS): Define.
13292
61d99182
AC
132932002-01-20 Andrew Cagney <ac131313@redhat.com>
13294
13295 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13296
6aaea291
AC
132972002-01-20 Andrew Cagney <ac131313@redhat.com>
13298
13299 From Jeff Law <law@redhat.com>:
13300 * infttrace.c: Include <sys/pstat.h>.
13301 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13302 exec file if the ttrace equivalent fails.
13303
15f698d2
AC
133042002-01-20 Andrew Cagney <ac131313@redhat.com>
13305
13306 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13307 (closeLogFile): Ditto.
13308
f86ddd7c
MC
133092002-01-20 Michael Chastain <mec@shout.net>
13310
13311 * top.c (print_gdb_version): Bump copyright year to 2002.
13312
904507ce
AC
133132002-01-20 Andrew Cagney <ac131313@redhat.com>
13314
13315 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13316 Zannoni and Eli Zaretskii.
13317
d7f0b9ce
DJ
133182002-01-20 Daniel Jacobowitz <drow@mvista.com>
13319
13320 * buildsym.c: Update copyright years.
13321 * c-typeprint.c: Likewise.
13322 * dwarf2read.c: Likewise.
13323 * f-typeprint.c: Likewise.
13324 * gdbtypes.c: Likewise.
13325 * gdbtypes.h: Likewise.
13326 * hp-symtab-read.c: Likewise.
13327 * hpread.c: Likewise.
13328 * mdebugread.c: Likewise.
13329 * p-typeprint.c: Likewise.
13330
3fd3d7d2
AC
133312002-01-20 Andrew Cagney <ac131313@redhat.com>
13332
13333 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13334 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13335 byte-order selectable.
13336 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13337 * arch-utils.c: Ditto.
13338 (set_endian): Ditto.
13339 (set_endian_from_file): Ditto.
13340 * gdbserver/low-sim.c (create_inferior): Ditto.
13341 * gdbarch.sh: Ditto.
13342 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13343 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13344 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13345 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13346 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13347 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13348 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13349 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13350 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13351 macro definition.
13352 * config/mips/tm-wince.h: Remove #undef of macro
13353 TARGET_BYTE_ORDER_SELECTABLE.
13354 * config/sh/tm-wince.h: Ditto.
13355
b02dede2
DJ
133562002-01-20 Daniel Jacobowitz <drow@mvista.com>
13357
13358 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13359 member function fields. Add accessor macro
13360 TYPE_FN_FIELD_ARTIFICIAL.
13361 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13362 * c-typeprint.c (c_type_print_base): Skip artificial member
13363 functions.
13364
c3643761
DJ
133652002-01-20 Daniel Jacobowitz <drow@mvista.com>
13366
13367 * f-typeprint.c: Delete unused function f_type_print_args.
13368 * p-typeprint.c: Delete unused function pascal_type_print_args.
13369
8176bb6d
DJ
133702002-01-20 Daniel Jacobowitz <drow@mvista.com>
13371
13372 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13373 comment. Add ``artificial'' to ``union field_location''.
13374
13375 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13376
13377 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13378 * mdebugread.c (parse_symbol): Likewise.
13379 * stabsread.c (define_symbol): Likewise.
13380 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13381 initializing TYPE_FIELD_BITPOS to n (obsolete).
13382 (hpread_doc_function_type): Likewise.
13383 * hpread.c (hpread_function_type): Likewise.
13384
7fd60527
AC
133852002-01-20 Andrew Cagney <ac131313@redhat.com>
13386
13387 * configure.in (host_makefile_frag): Only require a host makefile
13388 fragment when a native build.
13389 * configure: Re-generate.
13390
c2f05ac9
AC
133912002-01-20 Andrew Cagney <ac131313@redhat.com>
13392
13393 * doublest.h (floatformat_from_type): Declare.
13394 * doublest.c (floatformat_from_type): New function.
13395 (convert_typed_floating): Use.
13396
13397 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13398 call to function floatformat_from_type.
13399
13400 * gdbarch.sh (IEEE_FLOAT): Delete.
13401 * gdbarch.h, gdbarch.c: Re-generate.
13402 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13403 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13404 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13405 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13406 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13407 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13408 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13409 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13410 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13411 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13412 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13413 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13414
13415 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13416 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13417 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13418 * sh-tdep.c (sh_gdbarch_init): Ditto.
13419 * mips-tdep.c (mips_gdbarch_init): Ditto.
13420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13421 * cris-tdep.c (cris_gdbarch_init): Ditto.
13422
abf22e64
AJ
134232002-01-20 Jiri Smid <smid@suse.cz>
13424
13425 * configure.host, configure.tgt: Support x86-64.
13426 * NEWS: Note new target x86-64.
13427
b7c4cbf8
AJ
13428 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13429 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13430 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13431 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13432 x86-64-linux-nat.o): Fix dependencies.
13433
82600034
AC
134342002-01-19 Andrew Cagney <ac131313@redhat.com>
13435
13436 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13437 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13438 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13439 * config/sparc/xm-sun4os4.h: Delete file.
13440 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13441
bbe5c628
AC
134422002-01-19 Andrew Cagney <ac131313@redhat.com>
13443
13444 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13445 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13446 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13447 * config/i386/i386lynx.mh (XM_FILE): Delete.
13448 * config/rs6000/xm-rs6000ly.h: Delete file.
13449 * config/sparc/xm-sparclynx.h: Delete file.
13450 * config/m68k/xm-m68klynx.h: Delete file.
13451 * config/i386/xm-i386lynx.h: Delete file.
13452 * config/xm-lynx.h: Delete file.
13453 * config/djgpp/fnchange.lst: Update.
13454
f8453e34
JT
134552002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13456
13457 * alpha-tdep.c (alpha_register_byte): New function.
13458 (alpha_register_raw_size): Ditto.
13459 (alpha_register_virtual_size): Ditto.
13460 (alpha_skip_prologue_internal): Renamed from
13461 alpha_skip_prologue.
13462 (alpha_skip_prologue): New version that calls
13463 alpha_skip_prologue_internal.
13464 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13465 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13466 second argument from alpha_skip_prologue.
13467 (REGISTER_BYTE): Use alpha_register_byte.
13468 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13469 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13470 (FRAMELESS_FUNCTION_INVOCATION): Use
13471 generic_frameless_function_invocation_not.
13472 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13473 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13474
52d9e613
AC
134752002-01-19 Andrew Cagney <ac131313@redhat.com>
13476
13477 * config/mips/xm-news-mips.h: Delete file.
13478 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13479
13480 * config/m88k/xm-m88k.h: Delete file.
13481 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13482 * config/m88k/xm-delta88v4.h: Ditto.
13483 * config/m88k/xm-delta88.h: Ditto.
13484
13485 * config/alpha/xm-fbsd.h: Delete file.
13486 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13487
13488 * config/sparc/xm-sparc.h: Delete file.
13489 * Makefile.in (xm-sun4os4.h): Delete dependency.
13490 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13491 * config/sparc/xm-sun4os4.h: Ditto.
13492 * config/sparc/xm-linux.h: Ditto.
13493
13494 * config/i386/xm-windows.h: Delete file.
13495
2d1b2124
AC
134962002-01-19 Andrew Cagney <ac131313@redhat.com>
13497
13498 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13499 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13500
ee1f65f0
JT
135012002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13502
13503 * alpha-tdep.c (alpha_call_dummy_words): New.
13504 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13505 (CALL_DUMMY_P): Define.
13506 (CALL_DUMMY_WORDS): Define.
13507 (SIZEOF_CALL_DUMMY_WORDS): Define.
13508
98081e55
PB
135092002-01-19 Per Bothner <per@bothner.com>
13510
13511 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13512 isn't NULL, which can happen with some gcj-3.x-produced code.
13513
0d056799
JT
135142002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13515
13516 * alpha-tdep.c (alpha_register_virtual_type): New function.
13517 (alpha_init_frame_pc_first): Ditto.
13518 (alpha_fix_call_dummy): Ditto.
13519 (alpha_store_struct_return): Ditto.
13520 (alpha_extract_struct_value_address): Ditto.
13521 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13522 alpha_register_virtual_type.
13523 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13524 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13525 alpha_extract_struct_value_address.
13526 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13527 (INIT_FRAME_PC): Use init_frame_pc_noop.
13528 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13529
4604bcad
MK
135302002-01-19 Mark Kettenis <kettenis@gnu.org>
13531
13532 * i386gnu-nat.c: Include "i386-tdep.h".
13533 (fetch_fpregs): Simplify code dealing with uninitialized floating
13534 point states such that it doesn't require FP7_REGNUM.
13535
140f9984
JT
135362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13537
abf22e64
AJ
13538 * alpha-tdep.c (frame_extra_info): New.
13539 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13540 frame->extra_info.
13541 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13542 (alpha_frame_saved_pc): Use frame->extra_info.
13543 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13544 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13545 (init_extra_frame_info): Rename to...
13546 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13547 (alpha_print_extra_frame_info): New function.
140f9984
JT
13548 (alpha_frame_locals_address): Ditto.
13549 (alpha_frame_args_address): Ditto.
abf22e64 13550 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13551 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13552 alpha_frame_args_address.
abf22e64 13553 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13554 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13555 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13556 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13557 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13558 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13559
d734c450
JT
135602002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13561
13562 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13563 (alpha_cannot_fetch_register): Ditto.
13564 (alpha_cannot_store_register): Ditto.
13565 (alpha_register_convertible): Ditto.
13566 (alpha_use_struct_convention): Ditto.
13567 * config/alpha/tm-alpha.h: Update copyright years.
13568 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13569 (INNER_THAN): Use core_addr_lessthan.
13570 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13571 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13572 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13573 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13574 (FRAME_CHAIN): Remove unnecessary cast.
13575
b4ceaee6
AC
135762002-01-18 Andrew Cagney <ac131313@redhat.com>
13577
13578 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13579 obsolete.
13580
0a65a603
AC
135812002-01-18 Andrew Cagney <ac131313@redhat.com>
13582
13583 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13584 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13585 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13586 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13587 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13588 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13589 * x86-64-linux-nat.c: Ditto.
13590
636a6dfc
JT
135912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13592
abf22e64 13593 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13594 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13595 (REGISTER_NAME): Define.
13596
acceddb6
JT
135972002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13598
13599 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13600
ec32e4be
JT
136012002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13602
13603 * alpha-tdep.c: Update copyright years.
13604 (alpha_next_pc): New function.
13605 (alpha_software_single_step): Ditto.
13606 * config/alpha/tm-alpha.h: Add prototype for
13607 alpha_software_single_step.
13608
e771a871
JT
136092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13610
13611 * alphabsd-nat.c: Update copyright years.
13612 (fill_gregset): Use regcache_collect.
13613 (fill_fpregset): Likewise.
13614 (fetch_inferior_registers): Only fetch integer registers
13615 if requested to do so.
13616 (store_inferior_registers): Only store integer registers
13617 if requested to do so.
13618
7708fa01
AC
136192002-01-17 Andrew Cagney <ac131313@redhat.com>
13620
13621 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13622 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13623 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13624 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13625 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13626 * config/arm/linux.mh (XDEPFILES): Delete.
13627 * config/arm/nbsd.mh (XDEPFILES): Delete.
13628 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13629 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13630 * config/i386/i386m3.mh (XDEPFILES): Delete.
13631 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13632 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13633 * config/i386/fbsd.mh (XDEPFILES): Delete.
13634 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13635 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13636 * config/i386/i386v4.mh (XDEPFILES): Delete.
13637 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13638 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13639 * config/i386/i386aix.mh (XDEPFILES): Delete.
13640 * config/i386/go32.mh (XDEPFILES): Delete.
13641 * config/i386/cygwin.mh (XDEPFILES): Delete.
13642 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13643 * config/i386/i386mach.mh (XDEPFILES): Delete.
13644 * config/i386/i386v32.mh (XDEPFILES): Delete.
13645 * config/i386/linux.mh (XDEPFILES): Delete.
13646 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13647 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13648 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13649 * config/i386/i386sco.mh (XDEPFILES): Delete.
13650 * config/i386/i386v.mh (XDEPFILES): Delete.
13651 * config/i386/nbsd.mh (XDEPFILES): Delete.
13652 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13653 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13654 * config/i386/symmetry.mh (XDEPFILES): Delete.
13655 * config/i386/obsd.mh (XDEPFILES): Delete.
13656 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13657 * config/ia64/linux.mh (XDEPFILES): Delete.
13658 * config/ia64/aix.mh (XDEPFILES): Delete.
13659 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13660 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13661 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13662 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13663 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13664 * config/m68k/linux.mh (XDEPFILES): Delete.
13665 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13666 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13667 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13668 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13669 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13670 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13671 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13672 * config/m88k/delta88.mh (XDEPFILES): Delete.
13673 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13674 * config/m88k/m88k.mh (XDEPFILES): Delete.
13675 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13676 * config/mips/linux.mh (XDEPFILES): Delete.
13677 * config/mips/irix6.mh (XDEPFILES): Delete.
13678 * config/mips/irix5.mh (XDEPFILES): Delete.
13679 * config/mips/irix4.mh (XDEPFILES): Delete.
13680 * config/mips/irix3.mh (XDEPFILES): Delete.
13681 * config/mips/decstation.mh (XDEPFILES): Delete.
13682 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13683 (NATDEPFILES): Move core-aout.o to here.
13684 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13685 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13686 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13687 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13688 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13689 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13690 * config/pa/hpux11.mh (XDEPFILES): Delete.
13691 * config/powerpc/aix.mh (XDEPFILES): Delete.
13692 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13693 * config/powerpc/linux.mh (XDEPFILES): Delete.
13694 * config/romp/rtbsd.mh: Rename XDEPFILES.
13695 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13696 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13697 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13698 * config/s390/s390.mh (XDEPFILES): Delete.
13699 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13700 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13701 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13702 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13703 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13704 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13705 * config/sparc/linux.mh (XDEPFILES): Delete.
13706 * config/vax/vaxult.mh (XDEPFILES): Delete.
13707 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13708 * Makefile.in (DEPFILES): Remove XDEPFILES.
13709
375fc983
AC
137102002-01-17 Andrew Cagney <ac131313@redhat.com>
13711
13712 * utils.c (internal_verror): Fix comments, default is yes not no.
13713 Update queries to match. Default to quit and dump core.
13714
8926118c
AC
137152002-01-17 Andrew Cagney <ac131313@redhat.com>
13716
13717 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13718 copyright.
13719 * defs.h, event-top.c, gdbcmd.h: Ditto.
13720 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13721 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13722 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13723 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13724 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13725 * mi/mi-main.c:Ditto.
13726
13727 * stack.c, symfile.c: Update copyright.
13728
45b7b345
DJ
137292002-01-17 Daniel Jacobowitz <drow@mvista.com>
13730
db728ff7
DJ
13731 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13732 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13733 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13734 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13735
db728ff7
DJ
137362002-01-17 Daniel Jacobowitz <drow@mvista.com>
13737
13738 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13739 * gdbserver/low-lynx.c (myattach): Likewise.
13740 * gdbserver/low-nbsd.c (myattach): Likewise.
13741 * gdbserver/low-sim.c (myattach): Likewise.
13742 * gdbserver/low-sparc.c (myattach): Likewise.
13743 * gdbserver/low-sun3.c (myattach): Likewise.
13744
13745 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13746
db728ff7 13747 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13748 (main): Handle "--attach".
13749
8de3c354
AC
137502002-01-16 Andrew Cagney <ac131313@redhat.com>
13751
13752 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13753 maintainer.
13754
b0129042
DJ
137552002-01-15 Daniel Jacobowitz <drow@mvista.com>
13756
13757 * c-typeprint.c (is_type_conversion_operator): Add additional
13758 check for non-conversion operators.
13759
ba8679fb 137602002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13761
13762 * linux-proc.c: Add "info proc" command, a la procfs.c.
13763 (read_mapping): New function, abstract and re-use code.
13764 (linux_find_memory_regions): Use new func read_mapping.
13765 (linux_info_proc_cmd): New function, implement "info proc".
13766 (_initialize_linux_proc): Add new command "info proc".
13767
e4f9b4d5
MS
137682002-01-15 Michael Snyder <msnyder@redhat.com>
13769
13770 * symfile.c (generic_load): Use bfd_map_over_sections method
13771 instead of manipulating bfd structure members directly.
13772 (add_section_size_callback): New function, bfd sections callback
13773 used by generic_load.
13774 (load_sections_callback): New function, bfd sections callback
13775 used by generic_load.
13776
08cf96df
EZ
137772002-01-15 Elena Zannoni <ezannoni@redhat.com>
13778
abf22e64 13779 [Based on work by Jim Blandy]
08cf96df
EZ
13780 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13781 (builtin_type_vec128): Export.
13782 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13783 types.
13784 (builtin_type_vec128): New builtin type for 128 bit vector
13785 registers.
13786 (build_gdbtypes): Initialize builtin_type_v16qi and
13787 builtin_type_v8hi. Create the vec128 register builtin type
13788 structure.
13789 (build_builtin_type_vec128): New function.
abf22e64 13790 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13791 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13792 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13793 AltiVec register to new builtin type.
13794
d7242108
DJ
137952001-01-15 Daniel Jacobowitz <drow@mvista.com>
13796
13797 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13798 to make_cv_type.
13799
4ee3352d
AC
138002002-01-14 Andrew Cagney <ac131313@redhat.com>
13801
13802 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13803 CLEAN_UP_REGISTER_VALUE.
13804 * regcache.c (supply_register): Update only call.
13805
f015b2e7
AC
138062002-01-14 Andrew Cagney <ac131313@redhat.com>
13807
13808 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13809 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13810 a29k-*-vxworks* targets as obsolete.
13811
356ae49d
MS
138122002-01-14 Michael Snyder <msnyder@redhat.com>
13813
13814 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13815 until we can resolve portability issues.
13816 * gregset.h: Remove references to fpxregs.
13817 * gcore.c (gcore_command): Initialize note_sec to NULL.
13818
ade8f45e
AC
138192002-01-13 Andrew Cagney <ac131313@redhat.com>
13820
13821 * signals.c (target_signal_to_name): Rewrite. Only use
13822 signals[].name when in bounds and non-NULL.
abf22e64 13823
89c49e7a
AC
138242002-01-13 Andrew Cagney <ac131313@redhat.com>
13825
13826 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13827 * signals.c (target_signal_to_name): Verify that SIG is within the
13828 bounds of the signals array.
13829
4daa9f9f
AC
138302002-01-13 Andrew Cagney <ac131313@redhat.com>
13831
13832 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13833
ba4bbdcb
KS
138342002-01-13 Keith Seitz <keiths@redhat.com>
13835
13836 * stack.c (print_frame_info_base): Print the frame's pc
13837 only if when print_frame_info_listing_hook is not defined.
13838
575bbeb6
KS
138392002-01-13 Keith Seitz <keiths@redhat.com>
13840
13841 * varobj.c (varobj_set_value): Make sure that there were no
13842 errors evaluating the object before attempting to set its
13843 value.
13844 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13845 so this offset adjustment is no longer necessary.
13846 (create_child): Don't set the error flag if the child is
13847 a CPLUS_FAKE_CHILD.
13848 (value_of_child): If value_fetch_lazy fails, return NULL
13849 so that callers will be notified that an error occurred.
13850 (c_value_of_variable): Delay check of variable's validity
13851 until later. We actually want all structs and unions to have
13852 the value "{...}".
13853 Do not return "???" for variables which could not be evaluated.
13854 This error condition must be returned to the caller so that it
13855 can get the error condition from gdb.
13856 (cplus_name_of_child): Adjust index for vptr before figuring
13857 out the name of the child.
13858 (cplus_value_of_child): If a child's (real) parent is not valid,
13859 don't even bother trying to give a value for it. Just return
13860 an error. Change all instances in this function.
13861 (cplus_type_of_child): If our parent is one of the "fake"
13862 parents, we need to get at the type of the real parent, and
13863 derive the child's true type using this information.
13864
b76898ab
AC
138652002-01-13 Andrew Cagney <ac131313@redhat.com>
13866
13867 From 2002-01-09 John Marshall <johnm@falch.net>:
13868 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13869 sources.redhat.com, and tweak some related URLs which had
13870 suffered from linkrot.
13871
b6649e88
AC
138722002-01-13 Andrew Cagney <ac131313@redhat.com>
13873
13874 From Jeff law:
13875 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13876 structures passed in registers.
13877
82cc5033
EZ
138782002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13879
13880 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13881 white space which prevented compilation. Reported by DSK
13882 <dsk@student.unsw.edu.au>.
13883
ba5f2f8a
MS
138842002-01-11 Michael Snyder <msnyder@redhat.com>
13885
fbd35540
MS
13886 * symfile.c (build_section_addr_info_from_section_tab):
13887 Use bfd access method instead of manipulating bfd directly.
13888 (syms_from_objfile): Ditto.
13889 (simple_overlay_update_1): Ditto.
13890 (simple_overlay_update): Ditto.
13891 (generic_load): Ditto.
13892 (overlay_unmapped_address): FIXME comment, bfd access methods.
13893 (sections_overlap): FIXME comment, bfd access methods.
13894 (pc_in_mapped_range): FIXME comment, bfd access methods.
13895 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13896 (section_is_mapped): FIXME comment, bfd access methods.
13897 (section_is_overlay): FIXME comment, bfd access methods.
13898
ba5f2f8a
MS
13899 * symfile.c (generic_load): Whitespace and long line cleanups.
13900 Remove duplicate variable, change several local variables to
13901 more appropriate data types.
13902 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13903
17df2af6
AC
139042002-01-12 Andrew Cagney <ac131313@redhat.com>
13905
13906 From Peter Schauer:
13907 * language.c (longest_local_hex_string_custom): Use phex_nz to
13908 convert NUM to a hex string.
13909
ec920329
EZ
139102002-01-12 Elena Zannoni <ezannoni@redhat.com>
13911
13912 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13913 the function.
538a76d6 13914 Update Copyright year.
ec920329 13915
3abd2e01
AC
139162002-01-12 Andrew Cagney <ac131313@redhat.com>
13917
13918 * language.c (longest_raw_hex_string): Delete unused function.
13919
b21b22e0
PS
139202002-01-11 Petr Sorfa <petrs@caldera.com>
13921
13922 * MAINTAINERS (write-after-approval): Add myself.
13923 * dwarf2read.c (read_tag_string_type): Handling of
13924 DW_AT_byte_size.
13925 (read_tag_string_type): FORTRAN fix to prevent propagation of
13926 first string size.
13927 (set_cu_language): Handling of DW_LANG_Fortran95
13928
747fe712
RE
139292002-01-11 Richard Earnshaw <rearnsha@arm.com>
13930
13931 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13932 GETPID(inferior_ptid).
13933 (store_inferior_registers): Likewise.
13934
f1bea926
JM
139352002-01-10 Jason Merrill <jason@redhat.com>
13936
13937 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13938 Fix DW_OP_minus.
13939
ae940673
AC
139402002-01-10 Andrew Cagney <ac131313@redhat.com>
13941
13942 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13943 and bfd/elf32-sh-nbsd.c.
13944
00546b04
MS
139452002-01-10 Michael Snyder <msnyder@redhat.com>
13946
352ed7b4
MS
13947 * NEWS: Mention --pid and corefile/proc-id behavior change.
13948
c18be923
MS
13949 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13950 * gcore.c: Include cli/cli-decode.h instead of command.h.
13951
00546b04
MS
13952 * main.c (captured_main): Add new command line option "--pid".
13953 If the second command line argument (following the symbol-file)
13954 begins with a digit, try to attach to it before trying to open
13955 it as a corefile.
13956 (print_gdb_help): Document the "--pid" argument.
13957
db60ec62
EZ
139582002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13959
13960 * completer.c (command_completer): New function.
13961
13962 * completer.h <command_completer>: Add prototype.
13963
13964 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13965 completer for the "help" command.
13966
39c22d1a
JM
139672002-01-09 Jason Merrill <jason@redhat.com>
13968
13969 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13970
c564377f
MS
139712002-01-09 Michael Snyder <msnyder@redhat.com>
13972
975aec09
MS
13973 * i386-linux-nat.c (fill_fpxregset): Make global.
13974 (store_fpxregset): Ditto.
13975
db4a10fa
MS
13976 * gregset.h (gdb_fpxregset_t): Define.
13977 (supply_fpxregset): Prototype.
13978 (fill_fpxregset): Prototype.
13979
c564377f
MS
13980 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13981
c3d45d70
RE
139822002-01-09 Richard Earnshaw <rearnsha@arm.com>
13983
13984 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13985 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13986 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13987
fcc87af1
AC
139882002-01-09 Andrew Cagney <ac131313@redhat.com>
13989
13990 * MAINTAINERS: Update target maintainer rules so that any
13991 Maintainer can approve a tested patch for a maintenance-only
13992 target.
13993
dd96c05b
RE
139942002-01-09 Richard Earnshaw <rearnsha@arm.com>
13995
d4297db9 13996 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13997
d4297db9 13998 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13999 IN_SIGTRAMP.
14000
145fdc6e
MS
140012002-01-08 Michael Snyder <msnyder@redhat.com>
14002
14003 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14004 real name of the executable, rather than the /proc name.
14005
be4d1333
MS
140062002-01-03 Michael Snyder <msnyder@redhat.com>
14007
14008 Implement a "generate-core-file" command in gdb, save target state.
14009 * gcore.c: New file. Implement new command 'generate-core-file'.
14010 Save a corefile image of the current state of the inferior.
14011 * linux-proc.c: Add linux-specific code for saving corefiles.
14012 * target.h (struct target_ops): Add new target vectors for saving
14013 corefiles; to_find_memory_regions and to_make_corefile_notes.
14014 (target_find_memory_regions): New macro.
14015 (target_make_corefile_notes): New macro.
14016 * target.c (update_current_target): Inherit new target methods.
14017 (dummy_find_memory_regions): New place-holder method.
14018 (dummy_make_corefile_notes): New place-holder method.
14019 (init_dummy_target): Initialize new dummy target vectors.
14020 * exec.c (exec_set_find_memory_regions): New function.
14021 Allow the exec_ops vector for memory regions to be taken over.
14022 (exec_make_note_section): New function, target vector method.
14023 * defs.h (exec_set_find_memory_regions): Export prototype.
14024 * procfs.c (proc_find_memory_regions): New function, corefile method.
14025 (procfs_make_note_section): New function, corefile method.
14026 (init_procfs_ops): Set new target vector pointers.
14027 (find_memory_regions_callback): New function.
14028 (procfs_do_thread_registers): New function.
14029 (procfs_corefile_thread_callback): New function.
14030 * sol-thread.c (sol_find_memory_regions): New function.
14031 (sol_make_note_section): New function.
14032 (init_sol_thread_ops): Initialize new target vectors.
14033 * inftarg.c (inftarg_set_find_memory_regions): New function.
14034 Allow to_find_memory_regions vector to be taken over.
14035 (inftarg_set_make_corefile_notes): New function.
14036 Allow to_make_corefile_notes vector to be taken over.
14037 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14038 interface layer if not target_has_execution (may be a corefile).
14039 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14040 * config/sparc/sun4sol2.mh: Ditto.
14041 * config/alpha/alpha-linux.mh: Ditto.
14042 * config/arm/linux.mh: Ditto.
14043 * config/i386/x86-64linux.mh: Ditto.
14044 * config/ia64/linux.mh: Ditto.
14045 * config/m68k/linux.mh: Ditto.
14046 * config/mips/linux.mh: Ditto.
14047 * config/powerpc/linux.mh: Ditto.
14048 * config/sparc/linux.mh: Ditto.
14049
c6b92abd
MS
140502002-01-07 Michael Snyder <msnyder@redhat.com>
14051
14052 * arm-linux-nat.c: Remove references to regcache.c internal data
14053 (registers[] and register_valid[]).
14054
4b09dc8c
MS
140552002-01-07 Michael Snyder <msnyder@redhat.com>
14056
abf22e64
AJ
14057 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14058 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14059 symbol file and shlibs.
14060 * Makefile.in: Add rule for linux-proc.o.
14061 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14062 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14063 * config/arm/linux.mh: Ditto.
14064 * config/i386/linux.mh: Ditto.
14065 * config/i386/x86-64linux.mh: Ditto.
14066 * config/ia64/linux.mh: Ditto.
14067 * config/m68k/linux.mh: Ditto.
14068 * config/mips/linux.mh: Ditto.
14069 * config/powerpc/linux.mh: Ditto.
14070 * config/sparc/linux.mh: Ditto.
14071
c25b74ac
PM
140722002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14073
14074 * win32-nat.c: Add i386-tdep.h dependency.
14075
94cd915f
MS
140762002-01-07 Michael Snyder <msnyder@redhat.com>
14077
c7cccb76
MS
14078 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14079 instead of bfd_get_arch_size. Don't bail out just because
14080 there's no exec_bfd.
abf22e64 14081
34c0bd93
MS
14082 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14083 * p-valprint.c (pascal_object_print_value): Ditto.
14084 * somread.c (som_symtab_read): Ditto.
14085 * symfile.c (simple_free_overlay_region_table): Ditto.
14086 * valops.c (value_assign): Ditto.
14087
21c1c920
MS
14088 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14089 use tilde_expand and strerror for opening save-tracepoints file.
14090
5bbd998e
MS
14091 * thread-db.c (thread_db_new_objfile): Indendation fix.
14092
94cd915f
MS
14093 * infptrace.c (GDB_MAX_ALLOCA): New define.
14094 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14095 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14096 can be overridden with whatever value is appropriate to the host).
14097 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14098 alloca to allocate potentially large buffer.
14099 * rs6000-nat.c (child_xfer_memory): Ditto.
14100 * symm-nat.c (child_xfer_memory): Ditto.
14101 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14102
494e8a93
JSC
141032002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14104
14105 From Nick Clifton <nickc@redhat.com>
14106 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14107
d0e1d48e
MS
141082002-01-07 Michael Snyder <msnyder@redhat.com>
14109
abf22e64 14110 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14111 Don't use exec_bfd if it's NULL.
14112
290b2c7a
MK
141132002-01-06 Mark Kettenis <kettenis@gnu.org>
14114
abf22e64 14115 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14116
aef21287
AC
141172002-01-06 Andrew Cagney <ac131313@redhat.com>
14118
14119 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14120 * gnu-nat.c: Ditto.
14121
30efa627
AC
141222002-01-06 Andrew Cagney <ac131313@redhat.com>
14123
14124 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14125 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14126 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14127 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14128 z8k-coff have not been multi-arched. Update z8k-coff build
14129 status.
14130
9b4ff276
AC
141312002-01-06 Andrew Cagney <ac131313@redhat.com>
14132
14133 * MAINTAINERS: Mark a29k target as obsolete.
14134 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14135 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14136 comments.
14137 * NEWS: Note that a29k targets are obsolete.
14138 * a29k-tdep.c: Mark as obsolete.
14139 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14140 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14141 a29k-*-vxworks* targets as obsolete.
14142 * remote-adapt.c: Obsolete.
14143 * remote-eb.c: Obsolete.
14144 * remote-mm.c: Obsolete.
14145 * remote-udi.c: Obsolete.
14146 * config/a29k/a29k-udi.mt: Obsolete.
14147 * config/a29k/a29k.mt: Obsolete.
14148 * config/a29k/tm-a29k.h: Obsolete.
14149 * config/a29k/tm-vx29k.h: Obsolete.
14150 * config/a29k/vx29k.mt: Obsolete.
14151
a9011d31
AC
141522002-01-05 Andrew Cagney <ac131313@redhat.com>
14153
14154 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14155 with BFD_ENDIAN_BIG.
14156
9299404e
AC
141572002-01-05 Andrew Cagney <ac131313@redhat.com>
14158
14159 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14160 * configure, config.in: Re-generate.
14161 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14162 * defs.h: Do not include <endian.h>.
14163
7e89e357
JT
141642002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14165
14166 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14167 * config.in: Regenerate.
14168 * configure.in: Update copyright years.
14169 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14170 * configure: Regenerate.
14171 * i386bsd-nat.c: Update copyright years.
14172 (fill_gregset): Use regcache_collect.
14173 (fetch_inferior_registers): Only fetch integer registers
14174 if requested to do so. Add support for XMM registers
14175 using PT_GETXMMREGS.
14176 (store_inferior_registers): Only store integer registers
14177 if requested to do so. Add support for XMM registers
14178 using PT_SETXMMREGS.
14179 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14180 (store_inferior_registers): Remove.
14181 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14182 (fetch_elfcore_registers): New function.
14183 (i386nbsd_elfcore_fns): New.
14184 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14185 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14186 i386bsd-nat.o.
14187 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14188 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14189 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14190 * config/i386/tm-nbsd.h: Update copyright years.
14191 (HAVE_SSE_REGS): Define.
14192 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14193 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14194 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14195 (SIGCONTEXT_PC_OFFSET): Remove.
14196 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14197
a752853e
AC
141982002-01-05 Andrew Cagney <ac131313@redhat.com>
14199
14200 * configure.tgt: Remove powerpc-*-macos* target.
14201 * config/m68k/xm-mpw.h: Delete file.
14202 * config/xm-mpw.h: Delete file.
14203 * ser-mac.c: Delete file.
14204 * mpw-make.sed: Delete file.
14205 * mpw-config.in: Delete file.
14206 * mac-xdep.c: Delete file.
14207 * mac-gdb.r: Delete file.
14208 * mac-defs.h: Delete file.
14209 * mac-nat.c: Delete file.
14210 * config/powerpc/macos.mh: Delete file.
14211 * config/powerpc/macos.mt: Delete file.
14212 * config/powerpc/nm-macos.h: Delete file.
14213 * config/powerpc/tm-macos.h: Delete file.
14214 * source.c (openp, open_source_file): Remove obsolete code.
14215 * top.c (gdb_readline): Ditto.
14216 * utils.c (query): Ditto.
14217 * event-top.c (display_gdb_prompt): Ditto.
14218 * Makefile.in (ser-mac.o): Delete obsolete target.
14219 * NEWS: Update.
14220
d7449b42
AC
142212002-01-04 Andrew Cagney <ac131313@redhat.com>
14222
14223 * defs.h (BIG_ENDIAN): Delete macro definition.
14224 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14225 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14226 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14227 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14228 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14229 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14230 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14231 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14232 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14233 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14234 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14235 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14236 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14237 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14238 * gdbarch.c: Re-generate.
14239
356374e8
DJ
142402002-01-04 Daniel Jacobowitz <drow@mvista.com>
14241
14242 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14243 for core files.
14244
a2b8f8f8
JT
142452002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14246
14247 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14248
12466af9
AC
142492002-01-04 Andrew Cagney <ac131313@redhat.com>
14250
14251 * value.h (value_ptr): Delete typedef.
14252
3549ab40
JT
142532002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14254
14255 * i386nbsd-nat.c: Update copyright years.
14256 Include i386-tdep.h.
14257
fedbd091
EZ
142582002-01-04 Elena Zannoni <ezannoni@redhat.com>
14259
14260 * stabsread.c: Update copyright years.
14261
14262 From Debashis Mahata <debashis.mahata@wipro.com>:
14263 (read_struct_fields): Deal with Sun C compiler erroneous stab
14264 output for structs and unions.
fec8b34f 14265 Fix PR gdb/269.
fedbd091 14266
eb43544b
DJ
142672002-01-04 Daniel Jacobowitz <drow@mvista.com>
14268
14269 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14270 prototype.
14271
1514d34e
DJ
142722002-01-04 Daniel Jacobowitz <drow@mvista.com>
14273
14274 * cp-abi.c: Fix whitespace.
14275 (baseclass_offset): New wrapper function.
14276 * cp-abi.h (baseclass_offset): Add prototype.
14277 (struct cp_abi_ops): Add baseclass_offset pointer.
14278
14279 * valops.c (vb_match): Move to...
14280 * gnu-v2-abi.c (vb_match): here.
14281 * valops.c (baseclass_offset): Move to...
14282 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14283
14284 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14285
14286 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14287 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14288 * hpacc-abi.c (init_hpacc_ops): Likewise.
14289
7f8c9282
DJ
142902002-01-04 Daniel Jacobowitz <drow@mvista.com>
14291
14292 * valops.c (find_overload_match): Accept obj as a
14293 reference parameter. Update it before returning.
14294 * value.h (find_overload_match): Update prototype.
14295 * eval.c (evaluate_subexp_standard): Pass object to
14296 find_overload_match by reference.
14297
f23631e4
AC
142982002-01-03 Andrew Cagney <ac131313@redhat.com>
14299
14300 * valarith.c: Replace value_ptr with struct value pointer. Remove
14301 register attribute from value declarations.
14302 * valops.c: Ditto.
14303 * value.h: Ditto.
14304 * scm-lang.c (scm_lookup_name): Ditto.
14305
79e10fab 143062002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14307
79e10fab
AC
14308 Abstract the functionality of iterating over mapped memory
14309 regions into a general purpose iterator function.
abf22e64 14310 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14311 iterator for memory sections.
14312 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14313 (solib_mappings_callback): New function, callback for above.
14314 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14315 (info_mappings_callback): New function, callback for above.
14316
14317 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14318
c5ad026a
MK
143192002-01-01 Mark Kettenis <kettenis@gnu.org>
14320
d2a7c97a
MK
14321 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14322 * i386-tdep.c: Include "elf-bfd.h".
14323 (process_note_abi_tag_sections): New function.
14324 (i386_gdbarch_init): Add code to recognize various OS/ABI
14325 combinations.
14326
c5ad026a
MK
14327 * maint.c (_initialize_maint_cmds): Add missing \ in
14328 string-literal.
14329
a1a5b71e 14330For older changes see ChangeLog-2001
c906108c
SS
14331\f
14332Local Variables:
14333mode: change-log
14334left-margin: 8
14335fill-column: 74
14336version-control: never
14337End:
This page took 0.9647 seconds and 4 git commands to generate.