]> Git Repo - binutils.git/blame - gdb/ChangeLog
2002-11-26 Andrew Cagney <[email protected]>
[binutils.git] / gdb / ChangeLog
CommitLineData
e92b0cc9
AC
12002-11-26 Andrew Cagney <[email protected]>
2
3 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
4 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
5 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
6 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
7 pc_in_call_dummy_at_entry_point.
8 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
9 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
10 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
11 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
12 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
13 pc_in_call_dummy_on_stack.
14 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
15 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
16 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
17 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
18 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
19
b4b88177
AC
202002-11-26 Andrew Cagney <[email protected]>
21
22 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
23 pc_in_call_dummy_before_text_end
24 (deprecated_pc_in_call_dummy_after_text_end): Rename
25 pc_in_call_dummy_after_text_end.
26 (deprecated_pc_in_call_dummy_on_stack): Rename
27 pc_in_call_dummy_on_stack.
28 (deprecated_pc_in_call_dummy_at_entry_point): Rename
29 pc_in_call_dummy_at_entry_point.
30 * m68k-tdep.c (m68k_gdbarch_init): Update.
31 * s390-tdep.c (s390_gdbarch_init): Update.
32 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
33 * vax-tdep.c (vax_gdbarch_init): Update.
34 * sparc-tdep.c (sparc_gdbarch_init): Update.
35 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
36 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
37 * i386-tdep.c (i386_gdbarch_init): Update.
38 * frv-tdep.c (frv_gdbarch_init): Update.
39 * cris-tdep.c (cris_gdbarch_init): Update.
40 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
41 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
42 (deprecated_pc_in_call_dummy_after_text_end)
43 (deprecated_pc_in_call_dummy_on_stack)
44 (deprecated_pc_in_call_dummy_at_entry_point): Update.
45 * alpha-tdep.c (alpha_gdbarch_init): Update.
46
eb784848
DJ
472002-11-25 Daniel Jacobowitz <[email protected]>
48
49 * acconfig.h (HAVE_PREAD64): Add.
50 * configure.in: Check for pread64.
51 * config.in: Regenerated.
52 * configure: Regenerated.
53 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
54 * linux-proc.c (linux_proc_xfer_memory): New function.
55 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
56
933c6fe4
DC
572002-11-25 David Carlton <[email protected]>
58
59 * dwarf2read.c (scan_partial_symbols): Descend into namespace
60 pdi's with no name.
61
158a8022
AC
622002-11-25 Andrew Cagney <[email protected]>
63
64 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
65 16:32:04 1999 Andrew Cagney <[email protected]>.
66
481d0f41
JB
672002-11-25 Jim Blandy <[email protected]>
68
e8289572
JB
69 * symfile.c (init_objfile_sect_indices): New function.
70 (default_symfile_offsets): Move the section-index-initializing
71 stuff into init_objfile_sect_indices, and call that.
72
b29c9944
JB
73 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
74 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
75
13de58df
JB
76 * symfile.c (syms_from_objfile): Adjust indentation.
77
481d0f41
JB
78 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
79 || info_verbose isn't true.
80
7d6a26a7
AC
812002-11-24 Andrew Cagney <[email protected]>
82
83 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
84 default to get_frame_base.
85 * gdbarch.h, gdbarch.c: Regenerate.
86 * arch-utils.c (default_frame_address): Delete function.
87 * arch-utils.h (default_frame_address): Delete declaration
88
6abe1021
PM
892002-11-24 Pierre Muller <[email protected]>
90
91 * varobj.c (find_frame_addr_in_frame_chain):
92 Use get_frame_base instead of FRAME_FP,
93 obvious fix.
94
c193f6ac
AC
952002-11-19 Andrew Cagney <[email protected]>
96
97 * frame.h (FRAME_FP): Delete macro.
98 (get_frame_base): New function declaration.
99 * frame.c (get_frame_base): New function.
100 (get_frame_id): Use ->frame.
101 (frame_find_by_id): Rewrite to use get_frame_id.
102 * blockframe.c: Use get_frame_base instead of FRAME_FP.
103 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
104 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
105 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
106 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
107 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
108 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
109
e5d2af14
AC
1102002-11-24 Andrew Cagney <[email protected]>
111
112 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
113
931d12c6
AC
1142002-11-24 Andrew Cagney <[email protected]>
115
116 * frame.c (set_unwind_by_pc): Revert change below, use
117 PC_IN_CALL_DUMMY.
118 (get_prev_frame): Ditto.
119
5e0f933e
AC
1202002-11-24 Andrew Cagney <[email protected]>
121
122 * dummy-frame.c (pc_in_dummy_frame): New function.
123 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
124 (find_dummy_frame): Update comment.
125 (generic_pop_current_frame): Use get_frame_type.
126 * dummy-frame.h (pc_in_dummy_frame): Declare.
127 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
128 (create_new_frame): Use pc_in_dummy_frame.
129 (get_prev_frame): Use pc_in_dummy_frame.
130 (frame_saved_regs_register_unwind): Use get_prev_frame.
131 (deprecated_generic_get_saved_register): Use get_prev_frame.
132
7d8547c9
AC
1332002-11-23 Andrew Cagney <[email protected]>
134
135 * blockframe.c (find_frame_addr_in_frame_chain): Move function
136 from here ...
137 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
138 (varobj_create): Note that frame ID should be used.
139 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
140
0225421b
AC
1412002-11-23 Andrew Cagney <[email protected]>
142
143 * breakpoint.c: Include "gdb_assert.h".
144 (deprecated_frame_in_dummy): Assert that generic dummy frames are
145 not being used.
146 * Makefile.in (breakpoint.o): Update dependencies.
147 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
148 deprecated_frame_in_dummy.
149 * stack.c (print_frame_info_base): Ditto.
150 (frame_info): Ditto.
151 (print_frame_info_base): Ditto. Delete dead code.
152
32eeb91a
AS
1532002-11-23 Andreas Schwab <[email protected]>
154
155 * Makefile.in (m68k_tdep_h): Define.
156 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
157 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
158 * m68k-tdep.c: Move register number enum ...
159 * m68k-tdep.h: ... to this new file and rename the constants from
160 E_* to M68K_*. All uses changed.
161 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
162 * abug-rom.c: Include "m68k-tdep.h". Use
163 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
164 * cpu32bug-rom.c: Likewise.
165 * dbug-rom.c: Likewise.
166 * m68k-tdep.c: Likewise.
167 * m68klinux-nat.c: Likewise.
168 * remote-est.c: Likewise.
169 * rom68k-rom.c: Likewise.
170 * config/m68k/tm-linux.h: Likewise.
171
9648bac8
AC
1722002-11-23 Andrew Cagney <[email protected]>
173
174 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
175 dummy frame initialization code.
176 * mips-tdep.c (mips_gdbarch_init): Ditto.
177
91a175b3
CF
1782002-11-22 Christopher Faylor <[email protected]>
179
180 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
181 attach will hang.
182
f4ded5b1
AC
1832002-11-22 Andrew Cagney <[email protected]>
184
185 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
186 to default_frame_address.
187 * gdbarch.h, gdbarch.c: Re-generate.
188
189 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
190 or frame_locals_address to default_frame_address.
191 * m68k-tdep.c (m68k_gdbarch_init): Update.
192 * i386-tdep.c (i386_gdbarch_init): Update.
193 * frv-tdep.c (frv_gdbarch_init): Update.
194 * sh-tdep.c (sh_gdbarch_init): Update.
195 * v850-tdep.c (v850_gdbarch_init): Update.
196 * sparc-tdep.c (sparc_gdbarch_init): Update.
197 * mips-tdep.c (mips_gdbarch_init): Update.
198 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
199 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
201
202 * cris-tdep.c (cris_frame_args_address): Delete function.
203 (cris_frame_locals_address): Delete function.
204 (cris_gdbarch_init): Do not set frame_args_address or
205 frame_locals_address.
206
f7c1e0f3
MS
2072002-11-22 Michael Snyder <[email protected]>
208
209 * thread-db.c (thread_db_load): Tell the user what's going on
210 if dlopen fails on libthread_db.
211
03dac896
AS
2122002-11-23 Andreas Schwab <[email protected]>
213
214 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
215 invariant return values.
216
7a67d0fe
AS
2172002-11-22 Andreas Schwab <[email protected]>
218
219 * valops.c (value_slice): Move declaration of `offset' to avoid
220 warning.
221
5633f842
CF
2222002-11-22 Christopher Faylor <[email protected]>
223
224 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
225 (struct so_stuff): Add end_addr field.
226 (register_loaded_dll): Calculate and store end address of loaded dll.
227 (solib_address): New function.
228 (child_solib_loaded_library_pathname): Pass carefully constructed
229 section info to safe_symbol_file_add rather than ignoring it.
230 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
231 DLL is loaded.
232 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
233 (child_create_inferior): Fix a compiler warning.
234 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
235 (solib_address): Declare new function.
236
d85fe7f7
AS
2372002-11-22 Andreas Schwab <[email protected]>
238
239 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
240 and FPS registers.
241
8308e54c
DJ
2422002-11-21 Daniel Jacobowitz <[email protected]>
243
244 * maint.c (_initialize_maint_cmds): Fix typo. From
245 Francesco Potorti` <[email protected]>.
246
8997bd5e
AC
2472002-11-21 Andrew Cagney <[email protected]>
248
249 * mips-tdep.c (mips_dump_tdep): Delete references to
250 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
251 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
252 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
253 * printcmd.c (build_address_symbolic): Delete calls to
254 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
255 (address_info): Ditto.
256 Fix PR gdb/773.
257
4e87b832
KD
2582002-11-19 Klee Dienes <[email protected]>
259 Adam Fedor <[email protected]>
260
261 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
262 the ability to explicitly specify the quote characters and word
263 break characters; if NULL is specified for either, use the old
264 behavior of using the characters used by the completer.
265 (skip_chars): New function. Convenience wrapper around
266 skip_quoted_chars to provide the original skip_chars behavior.
267 * completer.h (skip_quoted_chars): Add prototype.
268
9ba8d803
AC
2692002-11-19 Andrew Cagney <[email protected]>
270
271 Problems reported by Paul Eggert.
272 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
273
0a595803
AS
2742002-11-19 Andreas Schwab <[email protected]>
275
276 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
277 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
278 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
279 (m68k_linux_frame_saved_pc): Move to ...
280 * m68klinux-tdep.c: ... here. New file.
281 * Makefile.in (m68klinux-tdep.o): Add dependencies.
282 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
283
e8afa4d7
AF
2842002-11-19 Adam Fedor <[email protected]>
285
286 * objc-exp.y: Revert to old skip_quoted usage.
287
a76c9d72
AF
2882002-11-19 Adam Fedor <[email protected]>
289
290 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
291 (objc_lang_h): Define.
292 (YYFILES): Add objc-exp.tab.c.
293 (local-maintainer-clean): Remove objc-exp.tab.c.
294 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
295
fd0e9d45
PM
2962002-11-19 Pierre Muller <[email protected]>
297
298 * p-exp.y (typecast rule): Add automatic dereference of
299 pascal classes if needed.
300 (THIS): Set current_type.
301 Automatically dereference pascal classes.
302 (typebase rule): Add ^typebase recognition.
303
82eeeb94
AF
3042002-11-18 Adam Fedor <[email protected]>
305
306 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
307 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
308 (op_name): Handle OP_OBJC_SELF.
309 * Makefile.in (expprint.o): Add additional depends.
310
646df18d
AF
3112002-11-18 Adam Fedor <[email protected]>
312
313 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
314 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
315 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
316 * objc-exp.y: Likewise.
317
379b85df
AF
3182002-11-18 Adam Fedor <[email protected]>
319
320 * gdb/parser-defs.h: (struct objc_class_str): New structure
321 for parsing ObjC classes.
322
85cf597a
AC
3232002-11-18 Andrew Cagney <[email protected]>
324
325 * stack.c (frame_relative_level): Copy function from here ...
326 * frame.c (frame_relative_level): ...to here.
327
5a203e44
AC
3282002-11-18 Andrew Cagney <[email protected]>
329
330 * frame.h (enum frame_type): Define.
331 (get_frame_type): Declare.
332 (struct frame_info): Add field `type'. Delete field
333 signal_handler_caller.
334 (deprecated_set_frame_signal_handler_caller): Declare.
335 * frame.c (get_frame_type): New function.
336 (deprecated_set_frame_type): New function.
337 (create_new_frame): Set the frame's type.
338 (get_prev_frame): Similar.
339 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
340 * s390-tdep.c: Ditto.
341 * m68klinux-nat.c: Ditto.
342 * ns32k-tdep.c: Ditto.
343 * x86-64-linux-tdep.c: Ditto.
344 * vax-tdep.c: Ditto.
345 * rs6000-tdep.c: Ditto.
346 * ppc-linux-tdep.c: Ditto.
347 * i386-interix-tdep.c: Ditto.
348 * mips-tdep.c: Ditto.
349 * m68k-tdep.c: Ditto.
350 * hppa-tdep.c: Ditto.
351 * ia64-tdep.c: Ditto.
352 * cris-tdep.c: Ditto.
353 * arm-tdep.c: Ditto.
354 * alpha-tdep.c: Ditto.
355 * i386-tdep.c: Ditto.
356 * stack.c: Ditto.
357 * ada-lang.c: Ditto.
358 * blockframe.c: Update.
359 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
360 deprecated_set_frame_type instead of signal_handler_caller.
361 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
362 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
363 * breakpoint.h: Delete FIXME suggesting get_frame_type.
364
bf4ae8b2
KD
3652002-11-18 Klee Dienes <[email protected]>
366
367 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
368
a672ef13
KD
3692002-11-18 Klee Dienes <[email protected]>
370
371 * buildsym.c (pop_context): Add comment.
372
0c5e171a
KD
3732002-11-18 Klee Dienes <[email protected]>
374
375 * buildsym.h (pop_context): Convert to function, defined in
376 buildsym.c.
377 * buildsym.c: Include gdb_assert.h.
378 (pop_context): Implement as C function. Add check for stack
379 underflow.
380 * dbxread.c (process_one_symbol): Complain and stop processing
381 that symbol if we are already at the top of the context stack for
382 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
383 when processing N_RBRAC.
384
8a1f4c4c
DJ
3852002-11-16 Daniel Jacobowitz <[email protected]>
386
387 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
388 define.
389 (struct target_waitstatus): Add opaque definition.
390 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
391 * exec.c (init_exec_ops): Likewise.
392 * fork-child.c (clone_and_follow_inferior): Remove.
393 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
394 * inferior.h (clone_and_follow_inferior): Remove prototype.
395 * infrun.c (follow_fork_mode_both): Remove.
396 (follow_fork_mode_kind_names): Remove commented out "both".
397 (follow_inferior_fork): Remove follow_fork_mode_both support.
398 * inftarg.c (child_clone_and_follow_inferior): Remove.
399 (child_post_follow_inferior_by_clone): Remove.
400 (init_child_ops): Don't set to_clone_and_follow_inferior
401 or to_post_follow_inferior_by_clone.
402 * target.c (default_clone_and_follow_inferior): Remove.
403 (cleanup_target): Don't set to_clone_and_follow_inferior
404 or to_post_follow_inferior_by_clone.
405 (find_default_clone_and_follow_inferior): Remove.
406 (init_dummy_target): Don't set to_clone_and_follow_inferior.
407 (debug_to_clone_and_follow_inferior): Remove.
408 (debug_to_post_follow_inferior_by_clone): Remove.
409 (setup_target_debug): Don't set to_clone_and_follow_inferior
410 or to_post_follow_inferior_by_clone.
411 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
412 and to_post_follow_inferior_by_clone.
413 (child_clone_and_follow_inferior): Remove prototype.
414 (child_post_follow_inferior_by_clone): Remove prototype.
415 (target_clone_and_follow_inferior): Remove macro.
416 (target_post_follow_inferior_by_clone): Remove macro.
417 (find_default_clone_and_follow_inferior): Remove prototype.
418
47932f85
DJ
4192002-11-16 Daniel Jacobowitz <[email protected]>
420
421 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
422 inferior_has_vforked, and inferior_has_execd instead of
423 target_has_forked, target_has_vforked, and target_has_execd.
424 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
425 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
426 (CHILD_WAIT): Define.
427 (child_wait): Add prototype.
428 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
429 Add prototype.
430 (hpux_has_vforked): Likewise, from child_has_vforked.
431 (hpux_has_execd): Likewise, from child_has_execd.
432 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
433 (not_same_real_pid, child_wait): New, copied from inftarg.c.
434 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
435 and hpux_has_syscall_event instead of the target hooks.
436 * infrun.c (inferior_has_forked, inferior_has_vforked)
437 (inferior_has_execd): New functions.
438 * inftarg.c (not_same_real_pid): Remove.
439 (child_wait): Remove references to not_same_real_pid,
440 target_has_forked, target_has_vforked, target_has_execd,
441 and target_has_syscall_event.
442 (child_has_forked, child_has_vforked, child_has_execd)
443 (child_has_syscall_event): Remove.
444 (init_child_ops): Remove references to child_has_forked,
445 child_has_vforked, child_has_execd, and child_has_syscall_event.
446 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
447 (hpux_has_vforked): Likewise, from child_has_vforked.
448 (hpux_has_execd): Likewise, from child_has_execd.
449 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
450 * target.c (cleanup_target): Remove references to
451 to_has_forked, to_has_vforked, to_has_execd, and
452 to_has_syscall_event.
453 (update_current_target): Likewise.
454 (setup_target_debug): Likewise.
455 (debug_to_has_forked): Remove.
456 (debug_to_has_vforked): Remove.
457 (debug_to_has_execd): Remove.
458 (debug_to_has_syscall_event): Remove.
459 * target.h (struct target_ops): Remove to_has_forked.
460 to_has_vforked, to_has_execd, and to_has_syscall_event.
461 (child_has_forked, child_has_vforked, child_has_execd)
462 (child_has_syscall_event): Remove prototypes.
463 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
464 prototypes.
465 (target_has_forked, target_has_vforked, target_has_execd)
466 (target_has_syscall_event): Remove macros.
467
4088142a
DJ
4682002-11-16 Daniel Jacobowitz <[email protected]>
469
470 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
471 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
472 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
473 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
474 * target.c (cleanup_target): Remove reference to
475 to_can_follow_vfork_prior_to_exec.
476 (update_current_target): Likewise.
477 (debug_to_can_follow_vfork_prior_to_exec): Remove.
478 (setup_target_debug): Remove reference to
479 to_can_follow_vfork_prior_to_exec.
480 * target.h (struct target_ops): Remove
481 to_can_follow_vfork_prior_to_exec.
482 (child_can_follow_vfork_prior_to_exec): Remove prototype.
483 (target_can_follow_vfork_prior_to_exec): Remove definition.
484 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
485 define.
486 * infrun.c (follow_vfork_when_exec): Remove.
487 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
488 (follow_exec): Likewise.
489 (handle_inferior_event): Likewise.
490 (keep_going): Likewise.
491
18cde8d5
AC
4922002-11-15 Andrew Cagney <[email protected]>
493
494 * frame.c (generic_unwind_get_saved_register): Make static.
495 * frame.h (generic_unwind_get_saved_register): Delete declaration.
496 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
497 defaults to generic_unwind_get_saved_register.
498 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
499 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
500 * frv-tdep.c (frv_gdbarch_init): Ditto.
501 * i386-tdep.c (i386_gdbarch_init): Ditto.
502 * s390-tdep.c (s390_gdbarch_init): Ditto.
503 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
504 * v850-tdep.c (v850_gdbarch_init): Ditto.
505 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
506 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
507 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
508
a6b063af
AC
5092002-11-15 Andrew Cagney <[email protected]>
510
511 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
512 i386-tdep.c.
513
f407986f
AC
5142002-11-15 Andrew Cagney <[email protected]>
515
516 * frame.h (sigtramp_saved_pc): Delete declaration.
517 * blockframe.c (sigtramp_saved_pc): Delete function.
518 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
519 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
520 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
521 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
522
f18c5a73
AC
5232002-11-15 Andrew Cagney <[email protected]>
524
525 * frame.c (frame_pc_unwind): New function.
526 (frame_saved_regs_pc_unwind): New function.
527 (frame_register_unwind): Pass unwind_cache instead of
528 register_unwind_cache.
529 (set_unwind_by_pc): Add unwind_pc parameter, set.
530 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
531 (get_prev_frame): Ditto.
532 * frame.h (frame_pc_unwind_ftype): Declare.
533 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
534 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
535 (frame_pc_unwind): Declare.
536 * dummy-frame.c (dummy_frame_pc_unwind): New function.
537 (struct dummy_frame): Add comment mentioning that values are for
538 previous frame.
539 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
540 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
541 (generic_file_frame_chain_valid): Ditto.
542 * stack.c (frame_info): Ditto.
543
d9285969 5442002-11-15 David Carlton <[email protected]>
0960f083
DC
545
546 * linespec.c (locate_first_half): New function.
547 (decode_line_1): Move code into locate_first_half.
548
d741b867
AC
5492002-11-15 Andrew Cagney <[email protected]>
550
551 * complaints.h: Add comment explaining how to eliminate a
552 deprecated_complain call.
24382c5c 553 * complaints.h: Fix spelling errors.
d741b867 554
82d03c99
DC
5552002-11-15 David Carlton <[email protected]>
556
557 * printcmd.c: Remove #include "disasm.h".
558
c97eb5d9
AC
5592002-11-14 Andrew Cagney <[email protected]>
560
561 * frame.h: Move the most relevant interface functions to the start
562 of the file.
563
524d7c18
AC
5642002-11-14 Andrew Cagney <[email protected]>
565
566 * regcache.h (deprecated_registers): Rename registers.
567 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
568 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
569 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
570 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
571 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
572 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
573 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
574 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
575 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
576 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
577 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
578 * v850ice.c: Update.
579
6411e720
AC
580Wed Nov 13 19:51:05 2002 Andrew Cagney <[email protected]>
581
582 * utils.c (gdb_realpath): Add comment mentioning realpath with a
583 NULL buffer.
584
73937e03
AC
5852002-11-13 Andrew Cagney <[email protected]>
586
587 * regcache.h (deprecated_read_register_bytes): Rename
588 read_register_bytes.
589 (deprecated_write_register_bytes): Rename write_register_bytes.
590 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
591 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
592 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
593 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
594 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
595 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
596 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
597 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
598 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
599 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
600 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
601 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
602 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
603 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
604
fb0cd46e
JB
6052002-11-13 Jim Blandy <[email protected]>
606
607 * findvar.c (read_var_value): Doc fix.
608
2d28509a
AC
6092002-11-13 Andrew Cagney <[email protected]>
610
611 * regcache.c (struct regcache): Replace passthough_p with
612 readonly_p.
613 (regcache_xmalloc): Initialize readonly_p.
614 (build_regcache): Initialize readonly_p.
615 (regcache_save): New function.
616 (regcache_restore): New function.
617 (regcache_cpy): Re-implement using regcache_save and
618 regcache_restore.
619 (regcache_raw_read): Update.
620 (regcache_cooked_read): When a read-only cache, checked for cached
621 pseudo register values.
622 (regcache_raw_write): Assert that the cache is not read-only.
623 Remove code handling a non-passthrough cache.
624 * regcache.h (regcache_save): Declare.
625 (regcache_restore): Declare.
626
067df2e5
AC
6272002-11-13 Andrew Cagney <[email protected]>
628
629 * regcache.c (struct regcache_descr): Add fields
630 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
631 (init_legacy_regcache_descr): Compute the size of a cooked
632 register cache and then assign that to sizeof_raw_registers. Set
633 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
634 (init_legacy_regcache_descr): Ditto.
635
51b1fe4e
AC
6362002-11-13 Andrew Cagney <[email protected]>
637
638 * regcache.c (register_buffer): Move to near start of file, update
639 description.
640 (regcache_raw_read): Use.
641 (regcache_raw_write): Use.
642 (struct regcache): Rename raw_registers to registers and
643 raw_register_valid_p to register_valid_p.
644 (regcache_xmalloc): Update.
645 (regcache_xfree): Update.
646 (register_buffer): Update.
647 (regcache_cpy): Update.
648 (regcache_cpy_no_passthrough): Update.
649 (regcache_valid_p): Update.
650 (deprecated_grub_regcache_for_registers): Update.
651 (deprecated_grub_regcache_for_register_valid): Update.
652 (set_register_cached): Update.
653 (regcache_raw_write): Update.
654
80b4c677
PM
6552002-11-13 Pierre Muller <[email protected]>
656
657 * p-exp.y (name_not_typename): Use copy_name to
658 set current_type variable for fields of THIS.
659
0f3fafde
DJ
6602002-11-12 Daniel Jacobowitz <[email protected]>
661
662 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
663 * monitor.c (init_base_monitor_ops): Likewise.
664 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
665 * remote-array.c (init_array_ops): Likewise.
666 * remote-e7000.c (init_e7000_ops): Likewise.
667 * remote-es.c (init_es1800_ops): Likewise.
668 (init_es1800_child_ops): Likewise.
669 * remote-rdp.c (init_remote_rdp_ops): Likewise.
670 * remote-sim.c (init_gdbsim_ops): Likewise.
671 * remote-st.c (init_st2000_ops): Likewise.
672 * sol-thread.c (init_sol_core_ops): Likewise.
673 (init_sol_thread_ops): Likewise.
674 * v850ice.c (init_850ice_ops): Likewise.
675 * win32-nat.c (init_child_ops): Likewise.
676 * wince.c (init_child_ops): Likewise.
677
82c0260e
AC
6782002-11-12 Andrew Cagney <[email protected]>
679
680 * utils.c (gdb_realpath): Make rp a constant pointer.
681
70d35819
AC
6822002-11-12 Andrew Cagney <[email protected]>
683
684 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
685 a constant buffer; cannonicalize_file_name(); realpath() with a
686 pathconf() defined buffer, xstrdup().
687
9835a8b0
AC
6882002-11-12 Andrew Cagney <[email protected]>
689
690 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
691 to hang2.C; hang3.c to hang3.C.
692
3f47be5c
EZ
6932002-11-11 Elena Zannoni <[email protected]>
694
695 * findvar.c (read_var_value): Reenable TLS code.
696
6972002-11-11 Elena Zannoni <[email protected]>
698 Jim Blandy <[email protected]>
699
700 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
701 * target.c (update_current_target): Add
702 to_get_thread_local_address.
703 * target.h (to_get_thread_local_address): Export.
704 (target_get_thread_local_address): Define.
705 (target_get_thread_local_address_p): Define.
706 * thread-db.c: Include solib-svr4.h.
707 (td_thr_tls_get_addr_p): Define.
708 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
709 (thread_db_get_thread_local_address): New function.
710 (init_thread_db_ops): Initialize to_get_thread_local_address.
711 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
712 * configure: Regenerate.
713 * config.in: Regenerate.
714
636b1a6d
DC
7152002-11-11 David Carlton <[email protected]>
716
717 * linespec.c (set_flags): New function.
718 (decode_line_1): Move code into set_flags.
719
44fe14ab
DC
7202002-11-11 David Carlton <[email protected]>
721
722 * linespec.c (decode_line_1): Move chunks of code to separate
723 functions.
724 (initialize_defaults): New function.
725 (decode_indirect): New function.
726
e6f181f5
AC
7272002-11-11 Andrew Cagney <[email protected]>
728
8971b011
AC
729 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
730 instead of void_code_ptr.
731 (sigtramp_saved_pc): Ditto.
732
e6f181f5
AC
733 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
734 i386_fp_regnum_p.
735
01ad7f36
DJ
7362002-11-10 Daniel Jacobowitz <[email protected]>
737
738 * gdbtypes.h (struct main_type): Move artificial flag out of
739 loc. New member of ``struct field'' named static_kind. Reduce
740 overloaded meaning of bitsize.
741 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
742 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
743 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
744
745 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
746 new fields.
747 (template_to_fixed_record_type, template_to_static_fixed_type)
748 (to_record_with_fixed_variant_part): Likewise.
749 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
750 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
751 * dwarfread.c (struct_type, enum_type): Likewise.
752 * hpread.c (hpread_read_enum_type)
753 (hpread_read_function_type, hpread_read_doc_function_type)
754 (hpread_read_struct_type): Likewise.
755 * mdebugread.c (parse_symbol): Likewise.
756
bf1e52be
AC
7572002-11-10 Andrew Cagney <[email protected]>
758
759 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
760 * stack.c (print_frame_info_base): Update.
761 (print_frame_info_base, frame_info): Update.
762 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
763 (sparc_frame_saved_pc): Update.
764 * ada-lang.c (find_printable_frame): Update.
765 * breakpoint.c (deprecated_frame_in_dummy): Update.
766
ce556f85
MK
7672002-11-09 Mark Kettenis <[email protected]>
768
769 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
770 defined.
771 (regmap): Extend to cover all registers.
772 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
773 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
774 definitions.
775 (fetch_register, sore_register): Simplify.
776 (old_fetch_inferior_registers, old_store_inferior_registers):
777 Remove functions.
778 (cannot_fetch_register, cannot_store_register): Change
779 implementation to use regmap array to decide which registers
780 cannot be fetched/stored. This removes $orig_eax from the
781 registers that cannot be fetched/stored.
782 (fetch_inferior_registers): Call fetch_register directly instead
783 of calling old_fetch_inferior_registers.
784 (store_inferior_registers): Call store_register directly instead
785 of calling old_store_inferior_registers.
786 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
787 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
788 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
789
932bb524
KD
7902002-11-09 Klee Dienes <[email protected]>
791
792 * i387-tdep.c (i387_supply_register): When called with NULL as a
793 buffer, mark the register as not provided (to mirror the behavior
794 of supply_register).
795 (i387_supply_fxsave): Ditto.
796 (i387_supply_fsave): Ditto (inherits the behavior from
797 i387_supply_register).
798
ebe68b27
KD
7992002-11-09 Klee Dienes <[email protected]>
800
801 * blockframe.c (sigtramp_saved_pc): Use
802 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
803 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
804 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
805
15220c65
AC
8062002-11-09 Andrew Cagney <[email protected]>
807
808 * frame.c (get_prev_frame): Test prev_p to identify a previously
809 unwound frame. Initialize prev_p.
810 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
811 comment.
812
95adb866
AC
8132002-11-09 Andrew Cagney <[email protected]>
814
815 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
816 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
817 more comments. Zap dead code.
818
e71ecd70
MK
8192002-11-09 Mark Kettenis <[email protected]>
820
821 * infcmd.c (print_vector_info, print_float_info): Move code that
822 checks whether the target has any registers and whether there is a
823 selected frame up, such that it is also used if a target provides
824 multi-arch definitions of these functions.
825
c525330d
AC
8262002-11-08 Andrew Cagney <[email protected]>
827
72bdd927
AC
828 * Makefile.in (DESTDIR): Define.
829 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
830 prefix.
831
c525330d
AC
832 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
833 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
834
38c968cf
AC
8352002-11-08 Andrew Cagney <[email protected]>
836
837 * i386-linux-tdep.c: Include "reggroups.h".
838 (i386_linux_register_reggroup_p): New function.
839 (i386_linux_init_abi): Set register_reggroup_p to
840 i386_linux_register_reggroup_p.
841 * i386-tdep.h (i386_register_reggroup_p): Declare.
842 * i386-tdep.c: Include "reggroups.h".
843 (i386_init_reggroups): New function.
844 (i386_add_reggroups): New function.
845 (i386_register_reggroup_p): New function.
846 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
847 (_initialize_i386_tdep): Call i386_init_reggroups.
848 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
849 specific reggroups.
850
19e33363
MK
8512002-11-09 Mark Kettenis <[email protected]>
852
371a6e84
MK
853 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
854 request that's available in *BSD.
855
94ba925a
MK
856 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
857
19e33363
MK
858 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
859 FDOFF_REGNUM.
860
8779790c
AC
8612002-11-08 Andrew Cagney <[email protected]>
862
863 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
864 * dummy-frame.c (find_dummy_frame): Rename
865 generic_find_dummy_frame, make static. Return the dummy frame
866 instead of the regcache.
867 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
868 (cached_find_dummy_frame): New function. Use find_dummy_frame.
869 (dummy_frame_register_unwind): Rename
870 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
871 * dummy-frame.h (dummy_frame_register_unwind): Rename
872 generic_call_dummy_register_unwind.
873
8674b74f
MK
8742002-11-08 Mark Kettenis <[email protected]>
875
876 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
877 except the inclusion of "i386/tm-i386.h", to...
878 * config/i386/nm-i386v42mp.h: ...here.
879 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
880
4c1e7e9d
AC
8812002-11-08 Andrew Cagney <[email protected]>
882
883 * Makefile.in (frame.o): Update dependencies.
884 * blockframe.c (current_frame, frame_obstack_alloc)
885 (frame_saved_regs_zalloc, get_current_frame)
886 (set_current_frame, create_new_frame)
887 (set_unwind_by_pc, get_next_frame)
888 (flush_cached_frames, reinit_frame_cache)
889 (frame_saved_regs_register_unwind)
890 (deprecated_generic_get_saved_register)
891 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
892 (_initialize_blockframe): Move frame code from here...
893 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
894 "annotate.h" and "dummy-frame.h".
895 (_initialize_frame): New function.
896
921e78cf
JB
8972002-11-08 Jim Blandy <[email protected]>
898
899 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
900 when we finish a function a context.
901 * buildsym.h (outermost_context_p): New macro.
902 (Bug analyzed by David Edelsohn.)
903
9c1412c1
AC
9042002-11-08 Andrew Cagney <[email protected]>
905
906 * blockframe.c: Include "dummy-frame.h".
907 (struct dummy_frame, dummy_frame_stack)
908 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
909 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
910 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
911 (generic_save_call_dummy_addr, generic_pop_current_frame)
912 (generic_pop_dummy_frame, generic_fix_call_dummy)
913 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
914 dummy frame code from here...
915 * dummy-frame.c: ...to here. New file.
916 * dummy-frame.h: New file.
917 (generic_call_dummy_register_unwind): Declare.
918 (generic_find_dummy_frame): Declare.
919 * Makefile.in (SFILES): Add dummy-frame.c.
920 (dummy-frame.o): Specify dependencies.
921 (dummy_frame_h): Define.
922 (COMMON_OBS): Add dummy-frame.o.
923 (blockframe.o): Update dependencies.
924
208d8187
JB
9252002-11-08 Jim Blandy <[email protected]>
926
927 * dwarf2read.c (read_func_scope): Restore local_symbols and
928 param_symbols after we finish the function context. (Based on a
929 patch from David Edelsohn.)
930
413dad4d
DC
9312002-11-08 David Carlton <[email protected]>
932
933 * linespec.c (symbol_found): New function.
934 (minsym_found): New function.
935 (decode_line_1): Separate out some code into separate functions.
936
5512c44a
JB
9372002-11-08 Joel Brobecker <[email protected]>
938
939 * i386-tdep.c (i386_frameless_signal_p): Make non static for
940 the benefit of the interix target.
941 * i386-tdep.h (i386_frameless_signal_p): Declare.
942
1b33ef47
AC
9432002-11-08 Andrew Cagney <[email protected]>
944
945 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
946 declaration that snuck in from change below.
947
23a34459
AC
9482002-11-06 Andrew Cagney <[email protected]>
949
950 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
951 all callers.
952 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
953 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
954 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
955 (i386_mxcsr_regnum_p): new function. Use instead of
956 MXCSR_REGNUM_P.
957 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
958 (i386_sse_regnum_p): Declare.
959 (i386_mxcsr_regnum_p): Declare.
960 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
961 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
962 (IS_FP_REGNUM): Update definition.
963 (IS_FPU_CTRL_REGNUM): Update definition..
964 (IS_SSE_REGNUM): Update definition..
965 * i386v-nat.c (register_u_addr): Update.
966 * go32-nat.c (fetch_register): Update.
967 (store_register): Update.
968
d709c020
JB
9692002-11-07 Joel Brobecker <[email protected]>
970
971 Preparation work to convert the hppa targets to multiarch partial.
972
973 * hppa-tdep.c: Add new functions replacing macro bodies from
974 config/pa/tm-hppa.h. These function will be used to initialize
975 the gdbarch structure. Import some comments from tm-hppa.h,
976 and place them where appropriate, to avoid loosing them when
977 we cleanup this file.
978 (hppa_reg_struct_has_addr): New function.
979 (hppa_inner_than): New function.
980 (hppa_stack_align): New function.
981 (hppa_pc_requires_run_before_use): New function.
982 (hppa_instruction_nullified): New function.
983 (hppa_register_byte): New function.
984 (hppa_register_virtual_type): New function.
985 (hppa_store_struct_return): New function.
986 (hppa_cannot_store_register): New function.
987 (hppa_frame_args_address): New function.
988 (hppa_frame_locals_address): New function.
989 (hppa_smash_text_address): New function.
990 (hppa_coerce_float_to_double): New function. Requires the inclusion
991 of "language.h".
992
993 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
994
995 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
996 gdbarch-eligible macro to a call to the new associated function
997 created in hppa-tdep.c.
998 (INNER_THAN): Likewise.
999 (STACK_ALIGN): Likewise.
1000 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1001 (INSTRUCTION_NULLIFIED): Likewise.
1002 (REGISTER_BYTE): Likewise.
1003 (REGISTER_VIRTUAL_TYPE): Likewise.
1004 (STORE_STRUCT_RETURN): Likewise.
1005 (CANNOT_STORE_REGISTER): Likewise.
1006 (FRAME_ARGS_ADDRESS): Likewise.
1007 (FRAME_LOCALS_ADDRESS): Likewise.
1008 (SMASH_TEXT_ADDRESS): Likewise.
1009 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1010 (ABOUT_TO_RETURN): Delete, as no longer used.
1011
83c31e7d
FN
10122002-11-07 Fernando Nasser <[email protected]>
1013
1014 * printcmd.c (disassemble_command): Remove obsolete function.
1015 (_initialize_printcmd): Do not create disassemble command here.
1016 * cli/cli-cmds.c (disassemble_command): New function. Implements
1017 disassemble command.
1018 (init_cli_cmds): Create disassemble command here instead.
1019
0ec30a36
AC
10202002-11-07 Andrew Cagney <[email protected]>
1021
1022 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1023
e600bd34
AC
10242002-11-07 Andrew Cagney <[email protected]>
1025
1026 * regcache.h (regcache_cooked_read_using_offset_hack)
1027 (regcache_cooked_write_using_offset_hack): Delete declarations.
1028 (register_changed): Delete declaration.
1029 * regcache.c (regcache_cooked_read_using_offset_hack)
1030 (regcache_cooked_write_using_offset_hack): Delete functions.
1031 (cooked_xfer_using_offset_hack): Delete function.
1032 (register_changed): Delete function.
1033
568f8739
JB
10342002-11-07 Jim Blandy <[email protected]>
1035
1036 * macroscope.c: #include "complaints.h".
1037 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1038 but not in the macro table.
1039 * Makefile.in (macroscope.o): Record dependency.
1040
b0718b7b
JB
10412002-11-07 Joel Brobecker <[email protected]>
1042
1043 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1044
2b9e5f3f
AC
10452002-11-07 Andrew Cagney <[email protected]>
1046
1047 * regcache.c (deprecated_registers_fetched): Update.
1048 * regcache.h (deprecated_registers_fetched): Rename
1049 registers_fetched.
1050 * remote-vxsparc.c (vx_read_register): Update.
1051 * remote-vxmips.c (vx_read_register): Update.
1052 * remote-vx68.c (vx_read_register): Update.
1053 * irix5-nat.c (fetch_core_registers): Update.
1054 * mipsm3-nat.c (fetch_inferior_registers): Update.
1055 * sun3-nat.c (fetch_inferior_registers): Update.
1056 * symm-nat.c (fetch_inferior_registers): Update.
1057 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1058 (fetch_core_registers): Update.
1059 (fetch_kcore_registers): Update.
1060 * mips-nat.c (fetch_inferior_registers): Update.
1061 * corelow.c (get_core_registers): Update.
1062 * a68v-nat.c (fetch_inferior_registers): Update.
1063
e6e68f1f
JB
10642002-11-06 Joel Brobecker <[email protected]>
1065
1066 Put in place the framework necessary for multiarching the hppa targets.
1067 * hppa-tdep.c (hppa_gdbarch_init): New function.
1068 (hppa_dump_tdep): New function.
1069 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1070 tdep structure dumper.
1071 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1072 until the multi-arching conversion has partially been completed.
1073
492254e9
AC
10742002-11-06 Andrew Cagney <[email protected]>
1075
1076 * valops.c (value_assign): Merge lval_register case into
1077 lval_reg_frame_relative. Use frame_register and
1078 regcache_cooked_write instead of get_saved_register and
1079 write_register_bytes. After flushing the register cache, try to
1080 re-select the selected frame.
1081
8262ee23
AC
10822002-11-06 Andrew Cagney <[email protected]>
1083
1084 * regcache.h (deprecated_register_valid): Rename register_valid.
1085 * regcache.c: Update.
1086 * ia64-aix-nat.c: Update.
1087 * i386gnu-nat.c: Update.
1088 * alpha-nat.c: Update.
1089 * sparc-nat.c: Update.
1090 * lynx-nat.c: Update.
1091 * remote-mips.c: Update.
1092
4facf7e8
JB
10932002-11-06 Joel Brobecker <[email protected]>
1094
1095 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1096 to end of file, to be more consistent with the pratice followed
1097 by other targets.
1098
f9418c0f
AC
10992002-11-06 Andrew Cagney <[email protected]>
1100
1101 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1102 (print_float_info): Print registers in float_reggroup.
1103 (print_vector_info): Print registers in vector_reggroup.
1104 (default_print_registers_info): When all, print registers in
1105 all_reggroup. Otherwize, print registers in general_reggroup.
1106 (registers_info): Rewrite. Add support for register groups.
1107 Eliminate a goto.
1108
3fe235a7
EZ
11092002-11-06 Elena Zannoni <[email protected]>
1110
1111 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1112 ages.
1113 (symtab_symbol_info): Remove eons old ifdeffed out code.
1114 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1115 command.
1116
ef944135
TR
11172002-11-06 Theodore A. Roth <[email protected]>
1118
1119 * c-exp.y: Add missing semi-colons.
1120 * f-exp.y: Add missing semi-colons.
1121 * m2-exp.y: Add missing semi-colons.
1122 * p-exp.y: Add missing semi-colons.
1123 Add empty action to start rule to avoid a type clash error when
1124 building with bison >= 1.50.
1125
f8302a57
JB
11262002-11-06 Jim Blandy <[email protected]>
1127
1128 * macrotab.h (struct macro_source_file): Doc fix.
1129
6e382aa3
JJ
11302002-11-05 Jeff Johnston <[email protected]>
1131
1132 * varobj.c (child_exists, cplus_number_of_children): Change
1133 STREQ macro references to strcmp.
1134 (cplus_name_of_child): Change code to handle the fact that
1135 fields are not necessarily contiguous with regards to their
1136 access control. This is a fix for PR gdb/792.
1137
a216a322
AC
11382002-11-05 Andrew Cagney <[email protected]>
1139
1140 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1141 * gdbarch.h, gdbarch.c: Regnerate.
1142 * frame.h (frame_register): Declare.
1143 * frame.c (frame_register): New function.
1144 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1145 GET_SAVED_REGISTER, otherwize call
1146 generic_unwind_get_saved_register.
1147 (frame_register_read): Use frame_register instead of
1148 get_saved_register.
1149
7d5b6fdd
EZ
11502002-11-05 Elena Zannoni <[email protected]>
1151
1152 From Jim Ingham <[email protected]>:
1153 * event-top.c (gdb_disable_readline): New function.
1154 (_initialize_event_loop): Move comment.
1155
b7c64260
EZ
11562002-11-05 Elena Zannoni <[email protected]>
1157
1158 * event-loop.c (start_event_loop): Add comment.
1159 Update copyright.
1160
c2e1b8f2
AC
11612002-11-05 Andrew Cagney <[email protected]>
1162
1163 * infcmd.c (default_print_registers_info): Do not call
1164 PRINT_REGISTER_HOOK.
1165
87647bb0
AC
11662002-11-05 Andrew Cagney <[email protected]>
1167
1168 * sparc-tdep.c (sparc_print_register_hook): Make static.
1169 (sparc_print_registers_info): New function.
1170 (sparc_do_registers_info): New function.
1171 (sparclet_print_registers_info): New function.
1172 (sparclet_do_registers_info): New function.
1173 (do_sparc_print_registers_info): New function.
1174 (sparc_print_registers): New static function, clone of infcmd.c's
1175 default_print_registers_info.
1176 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1177 (sparclet_do_registers_info): Declare.
1178 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1179 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1180 Re-define.
1181 (sparc_do_registers_info): Declare.
1182 (PRINT_REGISTER_HOOK): Delete macro.
1183 (sparc_print_register_hook): Delete declaration.
1184
8155455b
DC
11852002-11-05 David Carlton <[email protected]>
1186
1187 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1188 functions.
1189 (lookup_symbol_aux_local): New function.
1190 (lookup_symbol_aux_symtabs): New function.
1191 (lookup_symbol_aux_psymtabs): New function.
1192
29924310
DC
11932002-11-05 David Carlton <[email protected]>
1194
1195 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1196 previous values of 'objfile' and 'block'.
1197
cc303028
PM
11982002-11-05 Pierre Muller <[email protected]>
1199
1200 * values.c (value_change_enclosing_type): Set
1201 enclosing_type field correctly also for the case where
1202 more memory needs to be allocated.
1203
1d70089a
MK
12042002-11-03 Mark Kettenis <[email protected]>
1205
f16a25ae
MK
1206 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1207 of puts_filtered.
1208
1d70089a
MK
1209 * i387-tdep.c (i387_print_float_info): Replace calls to
1210 register_read and deprecated_read_register_gen with calls to
1211 frame_register_read, and make the necessary adjustments to the
1212 surrounding code.
1213
7e20f3fb
AC
12142002-11-02 Andrew Cagney <[email protected]>
1215
1216 * gdbarch.sh (register_reggroup_p): Allow default value.
1217 * gdbarch.h, gdbarch.c: Regenerate.
1218
192dbe33
AC
12192002-11-02 Andrew Cagney <[email protected]>
1220
1221 * regcache.h: Add coment indicating replacements for deprecated
1222 functions.
1223
b59ff9d5
AC
12242002-11-02 Andrew Cagney <[email protected]>
1225
1226 * reggroups.h, reggroups.c: New files.
1227 * regcache.c: Include "reggroups.h".
1228 (enum regcache_dump_what): Add `regcache_dump_groups'.
1229 (regcache_dump): Contract size of the "Type" column. When
1230 specified, dump the register's groups.
1231 (maintenance_print_register_groups): New function.
1232 (_initialize_regcache): Add command `maint print register-groups'.
1233 * Makefile.in (COMMON_OBS): Add reggroups.o
1234 (SFILES): Add reggroups.c.
1235 (reggroups_h): Define.
1236 (regcache.o, gdbarch.o): Update dependencies.
1237 (reggroups.o): Specify dependencies.
1238 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1239 Add opaque declaration for `struct reggroup' in generated .h file.
1240 Include "reggroups.h" in generated .c file.
1241 gdbarch.h, gdbarch.c: Re-generate.
1242
4caf0990
AC
12432002-11-02 Andrew Cagney <[email protected]>
1244
1245 * regcache.h (deprecated_read_register_gen): Rename
1246 read_register_gen.
1247 (deprecated_write_register_gen): Rename write_register_gen.
1248 * i387-tdep.c: Update.
1249 * x86-64-linux-nat.c: Update
1250 * wince.c: Update.
1251 * thread-db.c: Update.
1252 * win32-nat.c: Update.
1253 * mips-tdep.c: Update.
1254 * d10v-tdep.c: Update.
1255 * cris-tdep.c: Update.
1256 * remote-sim.c: Update.
1257 * remote-rdi.c: Update.
1258 * remote-rdp.c: Update.
1259 * frame.c: Update.
1260 * target.c: Update.
1261 * blockframe.c: Update.
1262 * x86-64-tdep.c: Update.
1263 * xstormy16-tdep.c: Update.
1264 * sh-tdep.c: Update.
1265 * s390-tdep.c: Update.
1266 * rs6000-tdep.c: Update.
1267 * sparc-tdep.c: Update.
1268 * i386-tdep.c: Update.
1269 * dwarf2cfi.c: Update.
1270 * regcache.c: Update.
1271
7a7adcdf
JB
12722002-11-01 Joel Brobecker <[email protected]>
1273
1274 New interix-specific files:
1275 * config/i386/nm-interix.h: New file.
1276 * config/i386/interix.mh: New file.
1277 * config/i386/interix.mt: New file.
1278 * i386-interix-nat.c: New file.
1279 * i386-interix-tdep.c: New file.
1280
bdcdd535
AC
12812002-11-01 Andrew Cagney <[email protected]>
1282
1283 * frame.h (deprecated_generic_get_saved_register): Rename
1284 generic_get_saved_register.
1285 * blockframe.c (deprecated_generic_get_saved_register): Update.
1286 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1287 (xstormy16_frame_saved_register): Update.
1288 * sh-tdep.c (sh_gdbarch_init): Update.
1289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1290 * ia64-tdep.c (ia64_get_saved_register): Update.
1291 * cris-tdep.c (cris_gdbarch_init): Update.
1292 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1293 * arm-tdep.c (arm_gdbarch_init): Update.
1294
2a4b7c45
DJ
12952002-10-31 Daniel Jacobowitz <[email protected]>
1296
1297 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1298
ef17e74b
DJ
12992002-10-31 Daniel Jacobowitz <[email protected]>
1300
1301 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1302 trampolines in sigaction.
1303
4904ba5b
AC
13042002-10-31 Andrew Cagney <[email protected]>
1305
1306 * h8300-tdep.c: Include "gdb_assert.h".
1307 (h8300_print_register): Add gdbarch, file and frame parameters.
1308 Use frame_read_unsigned_register to read the register's value.
1309 Use fprintf_filtered to display output.
1310 (h8300_print_registers_info): Replace h8300_do_registers_info.
1311 (h8300_gdbarch_init): Set print_registers_info.
1312
f908a0eb
AC
13132002-10-31 Andrew Cagney <[email protected]>
1314
1315 * frame.c (frame_read_unsigned_register): New function.
1316 (frame_read_signed_register): New function.
1317 * frame.h (frame_read_unsigned_register): Declare.
1318 (frame_read_signed_register): Declare.
1319
c5646e11
AC
13202002-10-31 Andrew Cagney <[email protected]>
1321
1322 * h8500-tdep.c (h8500_print_registers_info): New static function,
1323 clone of infcmd.c's default_print_registers_info.
1324 (h8500_do_registers_info): New funtion.
1325 (h8500_print_register_hook): Rename print_register_hook, make
1326 static.
1327
1328 * config/h8500/tm-h8500.h: Update copyright.
1329 (DEPRECATED_DO_REGISTERS_INFO): Define.
1330 (h8500_do_registers_info: Declare.
1331 (PRINT_REGISTER_HOOK): Delete macro.
1332 (print_register_hook): Delete function.
1333
0bdd672b
AC
13342002-10-31 Andrew Cagney <[email protected]>
1335
1336 * z8k-tdep.c (z8k_print_register_hook): Make static.
1337 (z8k_print_registers_info): New static function, clone of
1338 infcmd.c's default_print_registers_info.
1339 (z8k_do_registers_info): New function. Wrap
1340 z8k_print_registers_info.
1341 * config/z8k/tm-z8k.h: Update copyright.
1342 (PRINT_REGISTER_HOOK): Delete macro.
1343 (z8k_print_register_hook): Delete declaration.
1344 (DEPRECATED_DO_REGISTERS_INFO): Define.
1345 (z8k_do_registers_info): Declare.
1346
bf9c25dc
JB
13472002-10-30 Joel Brobecker <[email protected]>
1348
1349 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1350 as this is already provided by value.h, and was actually causing
1351 a compilation error because of a conflict in parameter type
1352 declaration due to a missing const keyword.
1353 (low_text_segment_addres): Fix a compilation warning.
1354
2c665b51
DJ
13552002-10-29 Daniel Jacobowitz <[email protected]>
1356
1357 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1358 registers without a name.
1359 (mips_linux_cannot_store_register): Don't store registers without
1360 a name.
1361
e70ea697
DC
13622002-10-28 David Carlton <[email protected]>
1363
1364 * symtab.c (find_addr_symbol): Delete. (It was already commented
1365 out.)
1366 * symtab.h: Delete prototype for find_addr_symbol.
1367
903ad3a6
AC
13682002-10-26 Andrew Cagney <[email protected]>
1369
1370 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1371 DO_REGISTERS_INFO.
1372 gdbarch.h, gdbarch.c: Re-generate.
1373 * infcmd.c (default_print_registers_info): Update reference.
1374 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1375 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1376 * sh-tdep.c (sh_gdbarch_init): Ditto.
1377 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1378 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1379
ab91194c
MK
13802002-10-26 Mark Kettenis <[email protected]>
1381
e3033f15
MK
1382 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1383 cfi_init_extra_frame_info.
1384 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1385 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1386
b83b026c
MK
1387 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1388 target where necessary. Add more comments and remove the ones
1389 that don't provide any useful information.
1390
267bf4bb
MK
1391 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1392 deprecated_read_register_dummy with
1393 frame_unwind_unsigned_register.
1394
751f1375
MK
1395 * i386-tdep.c (i386_extract_struct_value_address): Use
1396 regcache_raw_read_unsigned instead of
1397 regcache_cooked_read_unsigned since we know that the register
1398 we're reading isn't a pseudo register. Rename variable 'val' into
1399 the more descriptive 'addr'.
1400
26abbdc4
MK
1401 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1402 (x86_64_push_return_address): Add comment.
1403 (x86_64_pop_frame): Make static.
1404 (examine_argument): Clarify comment.
1405 (x86_64_skip_prologue): Make prolog_expact variable static.
1406
9f1549cc
MK
1407 * dwarf2cfi.c: Fix some formatting problems.
1408 (context_cpy, read_encoded_pointer): Clarify comments.
1409
ab91194c
MK
1410 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1411 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1412 i386 target back into x86_64_gdbarch_init. Add some comments and
1413 remove meaningless ones.
1414
72367fb4
AC
14152002-10-25 Andrew Cagney <[email protected]>
1416
1417 * complaints.h (struct deprecated_complaint): Rename `struct
1418 complaint'.
1419 * complaints.c (complain): Update.
1420 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1421 incorrect comment indicating that "symfile.h" was being included
1422 for the `struct complaint' definition.
1423 * remote-vx.c: Update.
1424 * objc-lang.c: Update.
1425 * xcoffread.c: Update.
1426 * hpread.c: Update.
1427 * mdebugread.c: Update.
1428 * stabsread.c: Update.
1429 * dwarf2read.c: Update.
1430 * dwarfread.c: Update.
1431 * elfread.c: Update.
1432 * coffread.c: Update.
1433 * stabsread.h: Update.
1434 * dbxread.c: Update.
1435 * buildsym.c: Update.
1436 * gdbtypes.c: Update.
1437 * macrotab.c: Update.
1438
1f2baacc
MK
14392002-10-25 Mark Kettenis <[email protected]>
1440
0c1a73d6
MK
1441 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1442 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1443 (x86_64_init_abi): ...new function.
1444
6aee4d54 1445 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1446 * i386v-nat.c: Include "i386-tdep.h".
1447
8f9cbe01
AC
14482002-10-25 Andrew Cagney <[email protected]>
1449
5f11f355
AC
1450 * gdbtypes.c (address_space_name_to_int): Update.
1451 (address_space_int_to_name): Update.
1452 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1453 multi-arch predicate.
1454 (address_class_name_to_type_flags): Ditto.
1455 * gdbarch.h, gdbarch.c: Re-generate.
1456
8f9cbe01
AC
1457 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1458
e8d96a5d
MH
14592002-10-24 Martin M. Hunt <[email protected]>
1460
1461 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1462
fe39c653
EZ
14632002-10-24 Elena Zannoni <[email protected]>
1464
1465 * symtab.h (INIT_SAL): Delete macro.
1466 (init_sal): Export.
1467 * symtab.c (init_sal): New function.
1468
1469 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1470 to init_sal function call.
1471 (find_sal_from_funcs_and_line): Ditto.
1472 (all_sals_for_line): Ditto.
1473 * breakpoint.c (create_internal_breakpoint): Ditto.
1474 (create_fork_vfork_event_catchpoint): Ditto.
1475 (create_exec_event_catchpoint): Ditto.
1476 (parse_breakpoint_sals): Ditto.
1477 (watch_command_1): Ditto.
1478 (handle_gnu_4_16_catch_command): Ditto.
1479 (clear_command): Ditto.
1480 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1481 * infcmd.c (run_stack_dummy): Ditto.
1482 * infrun.c (process_event_stop_test): Ditto.
1483 (check_sigtramp2): Ditto.
1484 (step_over_function): Ditto.
1485 * linespec.c (decode_line_2): Ditto.
1486 (decode_line_1): Ditto.
1487 * source.c (line_info): Ditto.
1488 * symtab.c (find_pc_sect_line): Ditto.
1489
baed091b
ML
14902002-10-24 Michal Ludvig <[email protected]>
1491
1492 * dwarf2cfi.c (struct context)
1493 (struct context_reg): Moved to dwarf2cfi.h
1494 (context_alloc, frame_state_alloc, context_cpy):
1495 Made extern instead of static, removed prototypes.
1496 * dwarf2cfi.h (struct context)
1497 (struct context_reg): New, moved from dwarf2cfi.c
1498 (context_alloc, frame_state_alloc, context_cpy):
1499 New prototypes.
1500 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1501 Changed from static to extern.
1502 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1503 (LINUX_SIGCONTEXT_FP_OFFSET)
1504 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1505 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1506 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1507 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1508 set_gdbarch_*() calls now use x86-64 specific functions
1509 instead of DWARF2 CFI ones.
1510 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1511 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1512 (x86_64_init_extra_frame_info): New prototypes.
1513
c38da1af
DC
15142002-10-23 David Carlton <[email protected]>
1515
1516 * linespec.c: #include "parser-defs.h".
1517 Delete prototype for find_template_name_end.
1518 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1519
fb9b6b35
JJ
15202002-10-23 Jeff Johnston <[email protected]>
1521
1522 * NEWS: add recent mi fixes.
1523 * varobj.c (struct varobj): Add new "updated" flag.
1524 (new_variable): Default "updated" flag to 0.
1525 (varobj_set_value): Set "updated" flag to 1 if value
1526 changes.
1527 (varobj_update): Check varobj "updated" flag before
1528 comparing old and refreshed values. Fix for
1529 PR gdb/702.
1530
8da065d5
DC
15312002-10-23 David Carlton <[email protected]>
1532
1533 * parse.c (parse_exp_1): Use BLOCK_START.
1534 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1535 SYMBOL_BLOCK_VALUE.
1536 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1537
87f2f08c
DC
15382002-10-23 David Carlton <[email protected]>
1539
1540 * symtab.c: Delete cplusplus_hint.
1541 Delete prototype for find_template_name_end.
1542
88cda038
EZ
15432002-10-23 Elena Zannoni <[email protected]>
1544
1545 * symtab.h: Update comment.
1546
2625d86c
MS
15472002-10-23 Michael Snyder <[email protected]>
1548
1549 * printcmd.c (address_info): Restore quotes in output.
1550 * valops.c (value_of_local): Restore quotes in error message.
1551
9cc0d196
EZ
15522002-10-23 Elena Zannoni <[email protected]>
1553
1554 * symtab.c (symbol_demangled_name): New function.
1555 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1556 turning most of it into a function.
1557 (symbol_demangled_name): Export.
1558
19de93d0
MS
15592002-10-23 Michael Snyder <[email protected]>
1560
1561 * valops.c (value_of_local): Restore quotes in error message.
1562
89aad1f9
EZ
15632002-10-23 Elena Zannoni <[email protected]>
1564
1565 * symtab.c (symbol_init_language_specific): New function.
1566 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1567 turning most of it into a function.
1568 (symbol_init_language_specific): Export.
1569
d9fa45fe
DC
15702002-10-23 David Carlton <[email protected]>
1571
1572 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1573 (dwarf_attr_name): Ditto.
1574 (dwarf_type_encoding_name): Ditto.
1575 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1576 (process_die): Handle DW_TAG_namespace,
1577 DW_TAG_imported_declaration, DW_TAG_imported_module.
1578 (read_namespace): New function.
1579
1045b512
JB
15802002-10-22 Joel Brobecker <[email protected]>
1581
1582 * configure.in: Define NEW_PROC_API on Interix too.
1583 * configure: Regenerate.
1584
15852002-10-21 Joel Brobecker <[email protected]>
8ec41317
JB
1586
1587 * configure: Regenerate using the proper version of autoconf.
1588
3987b9d4
EZ
15892002-10-21 Elena Zannoni <[email protected]>
1590
1591 * findvar.c (read_var_value): Temporarily disable TLS code, until
1592 complete TLS support is added.
1593
9d774e44
EZ
15942002-10-21 Jim Blandy <[email protected]>
1595 Elena Zannoni <[email protected]>
1596
1597 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1598 for thread local storage locations.
1599 (struct symbol): Add objfile field.
1600 (SYMBOL_OBJFILE): Define.
1601 * dwarf2read.c (is_thread_local): New static variable.
1602 (new_symbol): If variable is in thread local fill in address class
1603 and objfile appropriately.
1604 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1605 stack operation.
1606 * printcmd.c (address_info): Print the information for thread
1607 local storage variable.
1608 * findvar.c (read_var_value): In case of thread local variable,
1609 defer to the target vector code to compute address.
1610
bc4a16ae
EZ
16112002-10-21 Elena Zannoni <[email protected]>
1612
1613 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1614 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1615
407caf07
EZ
16162002-10-21 Elena Zannoni <[email protected]>
1617
1618 * symtab.h (address_class): Rename
1619 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1620 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1621 * printcmd.c (address_info): Ditto.
1622 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1623
005328e3
MK
16242002-10-20 Mark Kettenis <[email protected]>
1625
afdb036a
MK
1626 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1627 DBREG_DRX macro to acces debug registers.
1628
ca02e098
MK
1629 * Makefile.in (i386obsd-tdep.o): New target.
1630
03cc47f7
MK
1631 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1632 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1633
005328e3
MK
1634 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1635 * config/i386/obsd.mt: New file.
1636 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1637 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1638 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1639 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1640 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1641 * i386obsd-tdep.c: New file.
1642
9c96f9f2
AF
16432002-10-19 Adam Fedor <[email protected]>
1644
1645 * objc-exp.y (name_not_typename): Fix invalid comment.
1646
ce1ed485
MK
16472002-10-20 Mark Kettenis <[email protected]>
1648
1649 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1650 to allocate partial syms and macro byte caches.
1651
1efc7aaa
DC
16522002-10-18 David Carlton <[email protected]>
1653
1654 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1655
7e1d63ec
AF
16562002-10-18 Adam Fedor <[email protected]>
1657
1658 * stabsread.c (find_name_end): New function.
1659 (define_symbol): Use it.
1660
6e8d29a9
DJ
16612002-10-18 Daniel Jacobowitz <[email protected]>
1662
1663 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1664 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1665 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1666 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1667
1efc7aaa 16682002-10-17 David Carlton <[email protected]>
63ca651f
DC
1669
1670 * symfile.h: Add opaque declaration for struct obstack.
1671 Declare obsavestring to take a const char *.
1672 * symfile.c (obsavestring): Make first argument a const char *.
1673
1aeae86e
AF
16742002-10-16 Adam Fedor <[email protected]>
1675
1676 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1677 names when matching breakpoints in current file.
1678
8b2dbe47
KB
16792002-10-16 Kevin Buettner <[email protected]>
1680
1681 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1682 (read_tag_pointer_type): Add address class support.
1683 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1684 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1685 New methods.
1686 * gdbarch.h, gdbarch.c: Regenerate.
1687 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1688 (make_type_with_address_space, recursive_type_dump): Add address
1689 class support.
1690 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1691 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1692 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1693
74451869
KD
16942002-10-16 Klee Dienes <[email protected]>
1695
1696 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1697 to get the last character of a char[] buffer, not
1698 name[sizeof(vptr_name)-1].
1699
ff4cb3e8
AF
17002002-10-14 Adam Fedor <[email protected]>
1701
1702 * symtab.h: New objc_specific struct.
1703 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1704 (SYMBOL_DEMANGLED_NAME): Likewise.
1705
da2cf7e0
AF
17062002-10-14 Adam Fedor <[email protected]>
1707
1708 * symfile.c (init_filename_language_table): Add ObjC file extension.
1709
4a351cef
AF
17102002-10-14 Adam Fedor <[email protected]>
1711
1712 * utils.c (puts_filtered_tabular): New function.
1713 (fprintf_symbol_filtered): Get ObjC demangled name.
1714 * defs.h (puts_filtered_tabular): Declared.
1715
9750e763
KB
17162002-10-14 Kevin Buettner <[email protected]>
1717
1718 * c-lang.h (c_type_print_varspec_prefix): Delete.
1719 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1720 ``need_post_space'' parameter. Adjust all callers.
1721
eee771c1
DJ
17222002-10-14 Daniel Jacobowitz <[email protected]>
1723
1724 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1725 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1726 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1727 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1728
46c82446
AF
17292002-10-13 Adam Fedor <[email protected]>
1730
1731 * source.c (print_source_lines): Update comments.
1732
d069f99d
AF
17332002-10-13 Adam Fedor <[email protected]>
1734
1735 * valops.c (value_of_local): New function.
1736 (value_of_this): Use it.
1737 * value.h (value_of_local): Declared.
1738
53c551b7
AF
17392002-10-13 Adam Fedor <[email protected]>
1740
1741 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1742 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1743
eb392fbf
AF
17442002-10-12 Adam Fedor <[email protected]>
1745
1746 * language.c (binop_result_type): Add language_objc to case.
1747 (integral_type): Likewise.
1748 (character_type): Likewise.
1749 (string_type): Likewise.
1750 (boolean_type): Likewise.
1751 (structured_type): Likewise.
1752 (binop_type_check): Likewise.
1753
e2b23ee9
AF
17542002-10-11 Adam Fedor <[email protected]>
1755
1756 * printcmd.c (address_info): Print 'self' for ObjC.
1757
b01ab485
AF
17582002-10-11 Adam Fedor <[email protected]>
1759
1760 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1761 OP_SELF.
1762
806e6073
AF
17632002-10-11 Adam Fedor <[email protected]>
1764
1765 * language.h (CAST_IS_CONVERSION): Add language_objc.
1766
50f85cdf
AF
17672002-10-11 Adam Fedor <[email protected]>
1768
1769 * defs.h (enum language): Add language_objc.
1770
0d540cdf
KD
17712002-10-11 Klee Dienes <[email protected]>
1772
69266111 1773 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1774 * gdbcore.h (read_memory_typed_address): Add prototype.
1775 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1776 to read a value destined for a CORE_ADDR, not read_memory_integer.
1777 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1778 (f77_get_dynamic_lowerbound): Ditto.
1779
d5dc7960
MH
17802002-10-11 Martin M. Hunt <[email protected]>
1781
1782 * utils.c (string_to_core_addr): After turning string into
1783 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1784 which will do necessary sign-extension, etc.
1785
8343f86c
DJ
17862002-10-11 Daniel Jacobowitz <[email protected]>
1787
1788 * c-exp.y (THIS): Delete token and grammar rule.
1789 (yylex): Don't return THIS.
1790 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1791 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1792 * demangle.c (cplus_markers): Update comment. Put '$'
1793 first. Remove CPLUS_MARKER.
1794 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1795 * jv-exp.y (THIS): Delete token and grammar rule.
1796 (yylex): Don't return THIS.
1797 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1798 * objc-exp.y (THIS): Delete token and grammar rule.
1799 (yylex): Don't return THIS.
1800 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1801 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1802 (read_member_functions): Likewise for opname.
1803 (read_tilde_fields): Use is_cplus_marker.
1804
1805 * defs.h (CPLUS_MARKER): Don't define.
1806 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1807 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1808 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1809 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1810 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1811
1812 * config/i386/tm-i386v4.h: Delete file.
1813 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1814 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1815 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1816 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1817 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1818 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1819 * config/i386/i386v4.mt (TM_FILE): Likewise.
1820 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1821
967c0d83
MM
18222002-10-10 Marko Mlinar <[email protected]>
1823
1824 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1825 accidentially not commited 2002-10-09
1826 * gdbarch.h, gdbarch.c: Re-generate.
1827
f74fa174
MM
18282002-10-09 Marko Mlinar <[email protected]>
1829
1830 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1831 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1832 * gdbarch.h, gdbarch.c: Re-generate.
1833
57349743
JB
18342002-10-08 Petr Sorfa <[email protected]>
1835
1836 Revised and re-submitted by John Wolfe <[email protected]>
1837
1838 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1839 so we can work on more than one compilation unit at a time. This
1840 helps prepare GDB to handle inter-CU die references.
1841 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1842 the code to be defined before struct comp_unit_head.
1843 (comp_unit_head): Added new members - offset, cu_head,
1844 begin_die, next and dwarf2_abbrevs.
1845 (dwarf2_abbrevs): Removed single static var; now member of
1846 struct comp_unit_head.
1847 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1848 members.
1849 (psymtab_to_symtab_1): Changed to work with the new
1850 struct comp_unit_head.
1851 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1852 constructs the dwarf2_abbrevs[] inside the cu_header.
1853 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1854 dwarf2_abbrev table to clean up.
1855 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1856 handling of dwarf2_abbrevs inside the cu_header.
1857 (read_partial_die): Now supports the call to the new
1858 dwarf2_lookup_abbrev.
1859 (read_full_die): Now supports the call to the new
1860 dwarf2_lookup_abbrev.
1861
4092aadb
CF
18622002-10-06 Christopher Faylor <[email protected]>
1863
1864 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1865 insure that shell variables, such as "transformed_name" are propagated
1866 to later shell statements in rule.
1867
af0b2512
MK
18682002-10-06 Mark Kettenis <[email protected]>
1869
1870 * config/i386/nm-i386sco.h: Add protection against
1871 multiple-inclusion. Include "i386/nm-i386v.h".
1872 (REGISTER_U_ADDR): Remove define.
1873 (i386_register_u_addr): Remove prototype.
1874
d6020d45
MS
18752002-10-04 Michael Snyder <[email protected]>
1876
1877 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1878 before treating it as a single-step event.
1879
7248f48e
AF
18802002-10-03 Adam Fedor <[email protected]>
1881
1882 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1883 (objc_demangle): Remove assignment in if statements, Replace
1884 free with xfree.
1885 (add_msglist): Likewise.
1886 (end_msglist): Likewise.
1887 (complare_selectors): Likewise.
1888 (selectors_info): Likewise.
1889 (compare_classes): Likewise.
1890 (classes_info): Likewise.
1891 (print_object_command): Likewise.
1892 (find_objc_msgcall_submethod): Replace PTR with void *.
1893 * objc-lang.h: Remove check for __STDC__.
1894
52c6a6ac
JJ
18952002-10-03 Jeff Johnston <[email protected]>
1896
1897 * ui-out.h (ui_out_field_fmt_int): New prototype.
1898 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1899 of field width and alignment.
1900 * stack.c (print_frame_info_base): When printing frame level, use
1901 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1902 PR gdb/192
1903
7e3cec17
JJ
19042002-10-03 Jeff Johnston <[email protected]>
1905
1906 * MAINTAINERS: Add self to Write After Approval list.
1907
a58dd373
EZ
19082002-10-02 Elena Zannoni <[email protected]>
1909
1910 * infcmd.c (interrupt_target_command_wrapper): Delete.
1911 (interrupt_target_command): Make non static.
1912 (nofp_registers_info): Make static.
1913 * stack.c (return_command_wrapper): Delete.
1914 (return_command): Make non static.
1915
cee6ddeb
EZ
19162002-10-02 Elena Zannoni <[email protected]>
1917
1918 * event-top.c (gdb_setup_readline): New function. Code moved from
1919 _initialize_event_loop().
1920 (_initialize_event_loop): Call gdb_setup_readline().
1921
c4ed33b9
AC
19222002-10-02 Andrew Cagney <[email protected]>
1923
1924 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1925 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1926 * gdbarch.h, gdbarch.c: Re-generate.
1927
cef4f5dd
DJ
19282002-10-02 Daniel Jacobowitz <[email protected]>
1929
1930 Fix PR gdb/778
1931 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1932 before recursing.
1933 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1934 of fill_in_vptr_fieldno.
1935
36dc181b 19362002-10-02 Elena Zannoni <[email protected]>
cee6ddeb 1937
36dc181b
EZ
1938 * inferior.h (registers_info, stepi_command, nexti_command,
1939 continue_command, interrupt_target_command): Export from infcmd.c.
1940 * frame.h (args_info, selected_frame_level_changed_hook,
1941 return_command): Export from stack.c.
1942 * v850ice.c (stepi_command, nexti_command, continue_command): use
1943 prototypes from inferior.h.
1944 * tracepoint.c (registers_info, args_info, locals_info): Use
1945 prototypes from frame.h and inferior.h.
1946 * Makefile.in (mi-main.o): Add dependency on frame.h.
1947
6f99cb26
AC
19482002-10-02 Andrew Cagney <[email protected]>
1949
da3eff49
AC
1950 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1951 value in register 3 adjusted by ppc_gp0_regnum.
1952
6f99cb26
AC
1953 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1954
da615bee
MM
19552002-10-02 Marko Mlinar <[email protected]>
1956
1957 * MAINTAINERS: Add myself to the Write After Approval list.
1958
d154bee2
AO
19592002-10-01 Alexandre Oliva <[email protected]>
1960
62a49b2c
AO
1961 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1962 of the section for the N64 ABI, fixed.
1963
d154bee2
AO
1964 * config/mips/tm-irix6.h: Include solib.h.
1965
ed348acc
EZ
19662002-10-01 Elena Zannoni <[email protected]>
1967
1968 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1969 GNU operators.
1970
da0f9dcd
AC
19712002-10-01 Andrew Cagney <[email protected]>
1972
1973 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1974 and that "mi0" syntax has been removed.
1975
bdf64bac
DC
19762002-09-30 David Carlton <[email protected]>
1977
1978 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1979 * ppc-sysv-tdep.c: #include "gdb_string.h".
1980 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1981 pacify GCC.
1982
54c2a1e6
AC
19832002-10-01 Andrew Cagney <[email protected]>
1984
1985 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1986 "vrsave"'s register number.
1987
cedea778
AC
19882002-09-30 Andrew Cagney <[email protected]>
1989
1990 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1991 use frame_unwind_signed_register to obtain the PC.
1992 (mips_frame_chain): Handle a generic dummy frame.
1993 (mips_init_extra_frame_info): When a generic dummy frame, don't
1994 re-compute the frame base.
1995 (mips_pop_frame): Handle generic dummy frames.
1996 (mips_gdbarch_init): When generic dummy frames, set
1997 use_generic_dummy_frames, push_dummy_frame to
1998 generic_push_dummy_frame, pc_in_call_dummy to
1999 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2000 generic_save_dummy_frame_tos.
2001
68315eb8
AC
20022002-09-30 Andrew Cagney <[email protected]>
2003
2004 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2005 against TOP when TOP was explictly set.
2006 (generic_push_dummy_frame): Set TOP to zero.
2007
3b8630c3
EZ
20082002-09-30 Elena Zannoni <[email protected]>
2009
2010 * event-loop.c (start_event_loop): Rename variable 'result' to
2011 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2012
28ee05e9
KS
20132002-09-30 Keith Seitz <[email protected]>
2014
2015 * gdb-events.sh (selected_thread_changed): New event.
2016 * gdb-events.c: Regenerated.
2017 * gdb-events.h: Regenerated.
2018
6eecb1c8
HPN
20192002-09-30 Hans-Peter Nilsson <[email protected]>
2020
2021 * MAINTAINERS: Add self to Write After Approval list.
2022
92df71f0
FN
20232002-09-30 Fernando Nasser <[email protected]>
2024
3b8630c3
EZ
2025 * disasm.c: New file.
2026 * disasm.h: New file.
92df71f0
FN
2027 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2028 (compare_lines): Ditto.
2029 (dump_insns): Ditto.
3b8630c3
EZ
2030 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2031 argument.
92df71f0 2032 (do_assembly_only): Ditto.
3b8630c3
EZ
2033 (do_disassembly): Renamed to gdb_disassembly and moved to
2034 disasm.c. Sdded uiout argument.
2035 * Makefile.in: Add new files. Reorder SFILES list. Update
2036 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2037
0c22854d
AC
20382002-09-29 Andrew Cagney <[email protected]>
2039
2040 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2041 bfd/elf64-alpha-fbsd.c.
2042
e67f2023
AC
20432002-09-29 Andrew Cagney <[email protected]>
2044
2045 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2046 i386gnu-tdep.c.
2047
89396210
AC
20482002-09-29 Andrew Cagney <[email protected]>
2049
2050 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2051 __FUNCTION__.
2052 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2053 function name.
2054 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2055 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2056 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2057 (S_msg_sig_post_reply): Ditto.
2058
7079c36c
CV
20592002-09-28 Corinna Vinschen <[email protected]>
2060
89396210
AC
2061 * sh-tdep.c (sh_use_struct_convention): Use definition according
2062 to ABI.
7079c36c
CV
2063 (sh_push_arguments): Store in register with correct endianess.
2064 (sh_default_store_return_value): Ditto.
2065 (sh_gdbarch_init): Set sizeof long double to 8.
2066
975ac915
MK
20672002-09-27 Mark Kettenis <[email protected]>
2068
2069 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2070 Fix some whitespace problems.
2071
9bbe19fb
DC
20722002-09-27 David Carlton <[email protected]>
2073
2074 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2075 (mcore-tdep.o): Ditto.
2076 (ns32k-tdep.o): Ditto.
2077 (ns32knbsd-tdep.o): Ditto.
2078 (sh3-rom.o): Ditto.
2079 (vax-tdep.o): Ditto.
2080 * cris-tdep.c: #include "gdb_string.h"
2081 * mcore-tdep.c: Ditto.
2082 * ns32k-tdep.c: Ditto.
2083 * ns32knbsd-tdep.c: Ditto.
2084 * sh3-rom.c: Ditto.
2085 * vax-tdep.c: Ditto.
2086
43b2fdc7
DC
20872002-09-27 David Carlton <[email protected]>
2088
2089 * config/djgpp/fnchange.lst: Add entries for
2090 gdb/testsuite/gdb.c++/m-static files.
2091
e8cfbbd9
JW
20922002-09-27 Jim Wilson <[email protected]>
2093
2094 * MAINTAINERS: Add myself to the Write After Approval list.
2095
43b2fdc7 20962002-09-26 Martin M. Hunt <[email protected]>
4e0df2df
MH
2097
2098 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2099
2100
9f3b7f07
AC
21012002-09-26 Andrew Cagney <[email protected]>
2102
2103 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2104 frame.
2105
11269d7e
AC
21062002-09-26 Andrew Cagney <[email protected]>
2107
2108 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2109 (rs6000_struct_return_address): Delete variable.
2110 (rs6000_store_struct_return): Update.
2111 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2112 deprecated_extract_struct_value_address.
2113 (rs6000_frame_align): New function.
2114 (rs6000_gdbarch_init): Set frame_align.
2115
f15ab4a7
AC
21162002-09-26 Andrew Cagney <[email protected]>
2117
2118 From Grace Sainsbury <[email protected]>:
2119 * Makefile.in (gdbtk-main.o): New target.
2120 (gdb.o): New target.
2121 (main_h): Define.
2122 (main.o): Update dependencies.
2123 (gdb$(EXEEXT)): Add gdb.o.
2124 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2125 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2126 (SUBDIR_GDBTK_CLEAN): Set.
2127 (install-gdbtk): Install the insight binary.
2128 (uninstall-gdbtk): New target.
2129 (all-gdbtk, clean-gdbtk): New rule.
2130 * top.c (use_windows): Default to zero.
2131 * main.c: Include "main.h".
2132 (main): Delete.
2133 (struct captured_main_args): Delete.
2134 (gdb_main): New function.
2135 * main.h: New file.
2136 * gdb.c: New File.
2137
e36180d7
AC
21382002-09-25 Andrew Cagney <[email protected]>
2139
2140 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2141 (frame_map_regnum_to_name): New function.
2142 (frame_map_name_to_regnum): New function.
2143 * frame.h (frame_map_name_to_regnum): Declare.
2144 (frame_map_regnum_to_name): Declare.
2145 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2146 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2147 * parse.c: Do not include "builtin-regs.h".
2148 (target_map_name_to_register): Delete function.
2149 (write_dollar_variable): Use frame_map_name_to_regnum.
2150 * parser-defs.h (target_map_name_to_register): Delete declaration.
2151 * expprint.c: Include "frame.h".
2152 (print_subexp): Use frame_map_regnum_to_name.
2153 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2154 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2155
8b69000d
AC
21562002-09-25 Andrew Cagney <[email protected]>
2157
2158 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2159 wasn't saved, and the next innermost frame is a dummy, return the
2160 dummy frame's link register.
2161
046ca86a
JB
21622002-09-24 Jim Blandy <[email protected]>
2163
2164 Fix from Paul Breed:
2165 * main.c (captured_main): Add a `break' after the case for 'b'.
2166
94b66fa7
KS
21672002-09-24 Keith Seitz <[email protected]>
2168
2169 * varobj.c (c_type_of_child): Use get_target_type instead
2170 of TYPE_TARGET_TYPE.
2171
c214a6fd
FN
21722002-09-22 Fernando Nasser <[email protected]>
2173
53cb0458
FN
2174 * source.c (get_current_or_default_source_symtab_and_line): Remove
2175 function.
2176 (set_default_source_symtab_and_line): New function. Attempts to
2177 determine a source file to list lines from if one is not currently
2178 defined.
2179 (get_current_source_symtab_and_line): Initialize sal.pc and
2180 sal.end fields.
2181 (set_current_source_symtab_and_line): Mark argument as const.
2182 * source.h: Update declarations and comments.
2183 * linespec.c (decode_line_1): Replace call to removed routine above.
2184 * stack.c (print_frame_info_base): Ditto.
2185 * cli/cli-cmds.c (edit_command): Ditto.
2186 (list_command): Ditto.
2187
21882002-09-22 Fernando Nasser <[email protected]>
2189
d6020d45 2190 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2191 sal.pc and sal.end fields.
c214a6fd
FN
2192 (get_current_or_default_source_symtab_and_line): Ditto.
2193 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2194 so we do not cause a new source symtab to be searched for (reverting an
2195 unintentional change from the 2002-09-20 patch).
2196 * scm-lang.c (scm_unpac): Ditto.
2197
cc3b68a5
AC
21982002-09-21 Andrew Cagney <[email protected]>
2199
2200 * complaints.c (symfile_explanations): Remove new-line from
2201 ``isolated_message''.
2202 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2203 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2204
5835abe7
NC
22052002-09-20 Nick Clifton <[email protected]>
2206
2207 * NEWS: Announce that V850EA ISA is no longer supported.
2208 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2209
a15ef5f5
DC
22102002-09-20 David Carlton <[email protected]>
2211
06ba1b39
DC
2212 * Makefile.in (c-lang.o): Correct dependencies.
2213 (utils.o): Gather dependencies.
2214 (charset.o): Move.
a15ef5f5
DC
2215 * c-lang.c: #include "gdb_string.h"
2216
87885426
FN
22172002-09-20 Fernando Nasser <[email protected]>
2218
2219 From 2002-07-02 George Helffrich <[email protected]>
2220 * cli/cli-cmds.c (list_command): New function. Implements the new
2221 cli edit command.
2222 (_init_cli_cmds): Add new command definition.
2223 * gdb.1: Document edit command.
2224 * doc/gdb.texinfo: Document edit command.
2225
22262002-09-20 Fernando Nasser <[email protected]>
0378c332
FN
2227
2228 * source.c: Make global variables current_source_symtab and
2229 current_source_line static.
2230 (list_command): Moved to cli/cli-cmds.c.
2231 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2232 (get_first_line_listed): New accessor function.
2233 (get_lines_to_list): New accessor function.
2234 (get_current_source_symtab_and_line): New function. Retrieves the
2235 position in the source code that we consider current.
2236 (get_current_or_default_source_symtab_and_line): New function.
2237 Like the above but attempts to determine a default position if one
2238 is not currently defined.
2239 (set_current_source_symtab_and_line): New function. Sets the source
2240 code position considered current and returns the previously set one.
2241 (clear_current_source_symtab_and_line): Reset stored information about
2242 a current source line.
2243 (_initialize_source): Remove registration for the "list" command and
2244 its alias.
2245 * source.h: Add declarations for the new functions above.
2246 * symtab.h: Remove declarations for the global variables mentioned
2247 above.
2248 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2249 obtain current source line.
2250 * linespec.c (decode_line_1): Ditto.
2251 * macroscope.c (default_macro_scope): Ditto.
2252 * scm-lang.c (scm_unpac): Ditto.
2253 * stack.c (print_frame_info_base): Ditto.
2254 * symfile.c (clear_symtab_users): Ditto.
2255 * symtab.c (decode_line_spec): Ditto.
2256 * cli/cli-cmds.c (list_command): Moved here from source.c.
2257 (ambiguous_line_spec): Moved here from source.c.
2258 (_init_cli_cmds): Add definition for "list" and its alias.
2259 * Makefile.in: Update dependencies.
2260
ddd216ea
CV
22612002-09-20 Corinna Vinschen <[email protected]>
2262
2263 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2264 with what gcc thinks is correct.
2265
6d305052
CV
22662002-09-20 Corinna Vinschen <[email protected]>
2267
2268 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2269 multiple register push instruction.
2270
234b45d4
KB
22712002-09-19 Jim Blandy <[email protected]>
2272
2273 Add support for distinct host and target character sets.
2274 * charset.c, charset.h: New files.
2275 * c-exp.y: #include "charset.h".
2276 (yylex): Convert character and string literals to the target
2277 character set, before returning them as the semantic value of the
2278 token.
2279 * c-lang.c: #include "charset.h".
2280 (c_emit_char): Use charset-specific methods to recognize
2281 characters with backslash escape forms, to decide which characters
2282 to print literally and which to print using numeric escape
2283 sequences, and to convert target characters to host characters
2284 before printing.
2285 * utils.c: #include "charset.h".
2286 (no_control_char_error): New function.
2287 (parse_escape): Use charset-specific methods to recognize
2288 backslash escapes, parse `control character' notation, and convert
2289 characters from the host character set to the target character set.
2290 * configure.in: Set the default host character set.
2291 Check where to find iconv, and what its argument types might be.
2292 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2293 * Makefile.in (SFILES): List charset.c.
2294 (COMMON_OBS): List charset.o.
2295 (charset.o): New rule.
2296 (charset_h): New header dependency variable.
2297 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2298 (LIBICONV): New variable, set by configure.
2299 (CLIBS): Include $(LIBICONV) here.
2300 * aclocal.m4, config.in, configure: Regenerated.
2301
525d6a61
JB
23022002-09-19 Joel Brobecker <[email protected]>
2303
2304 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2305 bison 1.35 warning.
2306
3ed93867
RE
23072002-09-19 Richard Earnshaw <[email protected]>
2308
2309 * gdb_mbuild.sh: New file.
2310
437666f8
AC
23112002-09-19 Andrew Cagney <[email protected]>
2312
2313 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2314
389e51db
AC
23152002-09-18 Andrew Cagney <[email protected]>
2316
2317 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2318 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2319 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2320 valops.c, value.h: Revert previous change.
2321
3b4efeaa
MS
23222002-09-18 Michael Snyder <[email protected]>
2323
2324 Preliminary support for Objective-C:
2325 * defs.h (language_objc): New enum value.
2326 (puts_filtered_tabular): Declaration only, exported from utils.c.
2327 (skip_quoted): Delete, declared in completer.h.
2328 * c-exp.y: Include completer.h.
2329 * p-exp.y: Ditto.
2330 * jv-exp.y: Ditto.
2331 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2332 New operator enum values.
2333 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2334 * language.c (binop_result_type): Handle language_objc case.
2335 (integral_type, character_type, string_type, boolean_type,
2336 structured_type, binop_type_check): Ditto.
2337 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2338 (struct objc_specific): Add to general_symbol_info.
2339 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2340 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2341 * parser-defs.h (struct objc_class_str): New struct type.
2342 (start_msglist, end_msglist, add_msglist): Declaration only,
2343 exported from objc-lang.c.
2344 * value.h (value_of_local, value_nsstring,
2345 call_function_by_hand_expecting_type): Exported from valops.c.
2346 * valops.c (find_function_addr): Export.
2347 (call_function_by_hand_expecting_type): New function.
2348 (value_of_local): New function.
2349 * symfile.c (init_filename_language_table): Add ".m" extension
2350 for Objective-C.
2351 * utils.c (puts_filtered_tabular): New function.
2352 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2353 (set/show demangle): Extend help-string to refer to ObjC.
2354 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2355 * stabsread.c (symbol_reference_defined): Objective-C symbols
2356 may contain colons: make allowances when scanning stabs strings
2357 for colons.
2358 (objc_find_colon): New function.
2359 * printcmd.c (address_info): If language == objc then print
2360 "self" instead of "this".
2361 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2362 OP_NSSTRING, and OP_SELF.
2363 (prefixify_subexp): Ditto.
2364 * source.c (print_source_lines): Mention objc in comment.
2365 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2366 method names.
2367
b9caf505
AC
23682002-09-18 Andrew Cagney <[email protected]>
2369
2370 * complaints.h: Update copyright.
2371 (struct complaints): Declare.
2372 (struct complaint): Make `message' constant.
2373 (internal_complaint): Declare.
2374 (complaint): Declare.
2375 (complaint_root): Delete declaration.
2376 (symfile_complaints): Delete declaration.
2377 (struct complaints): Add opaque declaration.
2378 (clear_complaints): Add a complaints parameter.
2379 * complaints.c: Update copyright.
2380 (enum complaint_series): Define.
2381 (complaint_root): Delete.
2382 (struct complaints): Define.
2383 (complaint_sentinel, symfile_complaint_book): New variables.
2384 (symfile_explanations, symfile_complaints): New variables.
2385 New variables.
2386 (get_complaints): New function.
2387 (vcomplaint): New function.
2388 (complaint): New function.
2389 (internal_complaint): New function.
2390 (complain): Call vcomplain with symfile_complaint.
2391 (clear_complaints): Rewrite.
2392 (_initialize_complaints): Use add_setshow_command.
2393 * Makefile.in (complaints.o): Update dependencies.
2394 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2395 to call to clear_complaints.
2396 (new_symfile_objfile, reread_symbols): Ditto.
2397 (oldsyms_complaint): Delete.
2398 (empty_symtab_complaint, unknown_option_complaint): Delete.
2399 (free_named_symtabs): Use complaint instead of complain.
2400
d2e6263c
MS
24012002-09-18 Michael Snyder <[email protected]>
2402
5fb2031a
AC
2403 Contributed by Apple Computer, Inc. Merged with current sources
2404 by Adam Fedor <[email protected]> [cagney].
2405
d2e6263c
MS
2406 * objc-lang.c: First clean-up round: comments, indentation.
2407 * objc-lang.h: Ditto.
2408 * objc-lang.y: Ditto.
2409
dec43320
AC
24102002-09-18 Andrew Cagney <[email protected]>
2411
2412 * maint.c (maintenance_internal_error): Print the parameter as the
2413 error message.
2414 (maintenance_internal_warning): New function.
2415 (_initialize_maint_cmds): Add command `maint internal-warning'.
2416
2417 * defs.h (internal_warning, internal_vwarning): Declare.
2418 * utils.c (struct internal_problem): Define.
2419 (internal_vproblem): New function.
2420 (internal_warning): New function.
2421 (internal_vwarning): New function.
2422 (internal_warning_problem, internal_error_problem): New variables.
2423 (internal_verror): Just call internal_vproblem.
2424
b81654f1
MS
24252002-09-18 Michael Snyder <[email protected]>
2426
2427 * objc-lang.c: New file, support for Objective-C.
2428 Preliminary check-in, not yet integrated into gdb.
2429 * objc-lang.h: New file.
2430 * objc-exp.y: New file.
2431
0542c381
AC
24322002-09-18 Andrew Cagney <[email protected]>
2433
7bda5e4a
AC
2434 * infrun.c (signal_stop_update): Convert definition to ISO C.
2435 (signal_print_update): Ditto.
2436 (signal_pass_update): Ditto.
2437 * inflow.c (terminal_save_ours): Ditto.
2438
5247b418
AC
2439 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2440 comments.
2441
fc60962c
AC
2442 * config/djgpp/fnchange.lst: Handle name clashes between
2443 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2444 bfd/coff-tic80.c.
2445
0542c381
AC
2446 * i386-linux-tdep.h: Fix tipo.
2447
5b924b9b
AF
24482002-09-18 Adam Fedor <[email protected]>
2449
2450 * MAINTAINERS: Add myself to the Write After Approval list.
2451
5afc051b
JB
24522002-09-18 Jim Blandy <[email protected]>
2453
2454 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2455 texthigh and textlow to reader-specific structs caused
2456 objfile_relocate to miss them. This is fixable, but the work that
2457 the change was supposed to prepare GDB for never got done anyway.
2458
eb944380
DC
24592002-09-18 David Carlton <[email protected]>
2460
2461 * MAINTAINERS: Alphabetize Write After Approval list.
2462
948e66d9
DJ
24632002-09-18 Daniel Jacobowitz <[email protected]>
2464
2465 Fix PR gdb/709
2466 * values.c (value_static_field): Call read_var_value.
2467
dc604539
AC
24682002-09-18 Andrew Cagney <[email protected]>
2469
2470 * valops.c (hand_function_call): Align the initial stack pointer
2471 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2472 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2473 return value.
2474 * mips-tdep.c (mips_frame_align): New function.
2475 (mips_gdbarch_init): Set frame_align.
2476 * gdbarch.sh (FRAME_ALIGN): New method.
2477 * gdbarch.h, gdbarch.c: Re-generate.
2478
cb7e422f
ML
24792002-09-18 Michal Ludvig <[email protected]>
2480
2481 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2482 registers.
2483
a094c6fb
AC
24842002-09-17 Andrew Cagney <[email protected]>
2485
2486 * NEWS: Mention that MIPS $fp behavior changed.
2487 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2488 reference to FP_REGNUM.
2489 (mipsnbsd_cannot_store_register): Ditto.
2490 * mips-linux-nat.c: Update copyright.
2491 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2492 (mips_linux_cannot_store_register): Ditto.
2493 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2494 * config/mips/tm-mips.h: Update copyright.
2495 (FP_REGNUM): Delete macro.
2496 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2497 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2498 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2499 (mips_r3041_reg_names, mips_r3051_reg_names)
2500 (mips_r3081_reg_names): Replace "fp" with "".
2501 Fix PR gdb/480.
2502
45cf40d1
TR
25032002-09-17 Theodore A. Roth <[email protected]>
2504
2505 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2506 generic_read_register_dummy() (PR gdb/703).
2507 (avr_push_return_address): #if 0 out unused vars.
2508 (avr_gdbarch_init): Enable use of avr_push_return_address().
2509
c7e701b5
MS
25102002-09-17 Michael Snyder <[email protected]>
2511
d76ba2a5 2512 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2513 RTE will take care of it.
2514
20bcf01c
AC
25152002-09-17 Andrew Cagney <[email protected]>
2516
2517 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2518 invalid, return SP_REGNUM.
2519
009a9971 25202002-09-17 Michael Snyder <[email protected]>
21f87145
MS
2521
2522 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2523 point registers without sign extension.
2524
135c175f
AC
25252002-09-17 Andrew Cagney <[email protected]>
2526
2527 * blockframe.c (deprecated_read_register_dummy): Rename
2528 generic_read_register_dummy.
2529 * frame.c (frame_unwind_signed_register): New function.
2530 (frame_unwind_unsigned_register): New function.
2531 * frame.h (frame_unwind_signed_register): Declare.
2532 (frame_unwind_unsigned_register): Declare.
2533 (deprecated_read_register_dummy): Rename
2534 generic_read_register_dummy.
2535
2536 * h8300-tdep.c (h8300_frame_chain): Update.
2537 (h8300_frame_saved_pc): Update.
2538 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2539 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2540 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2541 (s390_frame_chain): Update.
2542 * v850-tdep.c (v850_find_callers_reg): Update.
2543 (v850_frame_saved_pc): Update.
2544 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2545 (m32r_find_callers_reg): Update.
2546 (m32r_frame_saved_pc): Update.
2547 * sh-tdep.c (sh_find_callers_reg): Update.
2548 (sh64_get_saved_pr): Update.
2549 (sh_init_extra_frame_info): Update.
2550 (sh_init_extra_frame_info): Update.
2551 (sh64_init_extra_frame_info): Update.
2552 (sh64_init_extra_frame_info): Update.
2553 * mcore-tdep.c (mcore_find_callers_reg): Update.
2554 (mcore_frame_saved_pc): Update.
2555 (mcore_init_extra_frame_info): Update.
2556 * i386-tdep.c (i386_frame_saved_pc): Update.
2557 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2558 (ia64_init_extra_frame_info): Update.
2559 (ia64_init_extra_frame_info): Update.
2560 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2561 * cris-tdep.c (cris_init_extra_frame_info): Update.
2562 * avr-tdep.c (avr_frame_chain): Update.
2563 (avr_init_extra_frame_info): Update.
2564 (avr_frame_saved_pc): Update.
2565 * arm-tdep.c (arm_find_callers_reg): Update.
2566 (arm_init_extra_frame_info): Update.
2567 (arm_frame_saved_pc): Update.
2568
a741e514
TT
25692002-09-17 Tom Tromey <[email protected]>
2570
2571 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2572 is "'".
2573
d1a8e808
CV
25742002-09-17 Corinna Vinschen <[email protected]>
2575
2576 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2577 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2578 NEXT_PROLOGUE_INSN.
2579 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2580 NEXT_PROLOGUE_INSN.
2581
d9025a18
JB
25822002-09-16 Joel Brobecker <[email protected]>
2583
2584 * osfsolib.c: Remove file, replaced by solib-osf.c.
2585 * Makefile.in: Remove compilation rules for osfsolib.c.
2586
1b2ef1b6
DC
25872002-09-16 David Carlton <[email protected]>
2588
2589 * cp-valprint.c (cp_print_class_method): Correct args to
2590 check_stub_method_group.
2591
928e48af
CV
25922002-09-16 Corinna Vinschen <[email protected]>
2593
2594 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2595 `set architecture'. Unify naming convention of functions.
2596 (h8300_skip_prologue): Improve prologue analysis.
2597 (h8300_push_arguments): Rewritten to more closely match GCC's
2598 bizarre argument-passing behavior, along with the comment describing
2599 said behavior.
2600 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2601 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2602 sim, remote-e7000.c, remote-hms.c and remote.c
2603
5e3397bb
MK
26042002-09-15 Mark Kettenis <[email protected]>
2605
2606 * i386-tdep.c (gdb_print_insn_i386): Removed.
2607 (i386_print_insn): New function.
2608 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2609 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2610 tm_print_insn_info.
2611
f710f4fc
MK
26122002-09-14 Mark Kettenis <[email protected]>
2613
2614 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2615 zero.
2616
db54fef4
CV
26172002-09-14 Corinna Vinschen <[email protected]>
2618
2619 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2620 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2621 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2622
2becadee
CF
26232002-09-13 Christopher Faylor <[email protected]>
2624
2625 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2626
de17c821
DJ
26272002-09-13 Daniel Jacobowitz <[email protected]>
2628
2629 * gdbtypes.c (check_stub_method): Make static.
2630 (check_stub_method_group): New function.
2631 * gdbtypes.h: Update prototypes.
2632 * cp-support.c: New file.
2633 * cp-support.h: New file.
2634
2635 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2636 (update_method_name_from_physname): New function.
2637 (read_member_functions): Correct method names for operators
2638 and v3 constructors/destructors. Separate v2 constructors and
2639 destructors.
2640 * Makefile.in (stabsread.o): Update dependencies.
2641 (SFILES): Add cp-support.c.
2642 (COMMON_OBS): Add cp-support.o.
2643 (cp_support_h, cp-support.o): Add.
2644
2645 * cp-valprint.c (cp_print_class_method): Call
2646 check_stub_method_group instead of check_stub_method. Remove
2647 extraneous QUITs.
2648 * p-valprint.c (pascal_object_print_class_method): Likewise.
2649 * valops.c (search_struct_method): Likewise.
2650 (find_method_list, value_struct_elt_for_reference): Likewise.
2651
e76cff22
AC
26522002-09-13 Andrew Cagney <[email protected]>
2653
2654 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2655 * gdbarch.h, gdbarch.c: Regenerate.
2656
905abb3f
AC
26572002-09-13 Andrew Cagney <[email protected]>
2658
2659 * frame.c (find_saved_register): Delete function.
2660 * frame.h (find_saved_register): Delete declaration.
2661 Fix PR gdb/631.
2662
64159455
AC
2663Fri Sep 13 14:59:55 2002 Andrew Cagney <[email protected]>
2664
2665 * mips-tdep.c (read_next_frame_reg): Re-hack using
2666 frame_register_unwind.
2667
795e1e11
AC
2668Fri Sep 13 07:42:09 2002 Andrew Cagney <[email protected]>
2669
2670 * mips-tdep.c (mips_get_saved_register): Re-hack using
2671 frame_register_unwind.
2672
5720643c
JB
26732002-09-12 Joel Brobecker <[email protected]>
2674
2675 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2676 vector. Will be useful for Interix.
2677 * gdbarch.h, gdbarch.c: Regenerate.
2678
2679 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2680 name of the malloc function by NAME_OF_MALLOC.
2681
3bada2a2
JB
26822002-09-12 Joel Brobecker <[email protected]>
2683
2684 * value.h (find_function_in_inferior): Add const keyword to
2685 one of the parameters. Allows us to invoke this function with
2686 a const char *.
2687 * valops.c (find_function_in_inferior): Likewise.
2688
3db26b01
JB
26892002-09-12 Joel Brobecker <[email protected]>
2690
2691 * exec.c (xfer_memory): Fix compilation warning with old versions
2692 of GCC.
2693 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2694
17c5ed2c
DC
26952002-09-12 David Carlton <[email protected]>
2696
2697 * symtab.h: Run through gdb_indent.h.
2698 Add 2002 to Copyright year list.
2699
ecd1107e
AM
27002002-09-12 Alan Modra <[email protected]>
2701
2702 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2703 mach constants.
2704 * MAINTAINERS: Add myself to write after approval list.
2705
e64f66d1
JB
27062002-09-11 J. Brobecker <[email protected]>
2707
2708 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2709
f9395794
JB
27102002-09-11 J. Brobecker <[email protected]>
2711
2712 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2713 Interix.
2714
1a303dec
MS
27152002-06-05 Paul N. Hilfinger <[email protected]>
2716
2717 * procfs.c (do_detach): Clear current signal, not just fault.
2718 Corrects problem with breakpoint trap signal leaking to detached
2719 process on Tru64.
2720
c0219d42
MS
27212002-09-10 Michael Snyder <[email protected]>
2722
2723 * buildsym.c (finish_block): Protect against null pointer.
2724
9d84ac84
AC
27252002-09-10 Andrew Cagney <[email protected]>
2726
2727 * infcmd.c (default_print_registers_info): Send all output to
2728 ``file'' instead of ``gdb_stdout''.
2729
77d8f2b4
MS
27302002-09-10 Michael Snyder <[email protected]>
2731
2732 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2733 LONGEST, and use signed register read (addresses are sign-
2734 extended for mips).
2735
99656a61
SC
27362002-09-10 Stephane Carrez <[email protected]>
2737
2738 * event-loop.c (gdb_do_one_event): Make public.
2739 * event-loop.h (gdb_do_one_event): Declare.
2740
da12f4d8
JL
27412002-09-10 Jeff Law <[email protected]>
2742
2743 * infttrace.c (child_resume): Simplify and rework to avoid
2744 TT_PROC_CONTINUE.
2745
d0aee0c4
FF
27462002-09-09 Fred Fish <[email protected]>
2747
2748 * printcmd.c (print_scalar_formatted): "len" is the number of
2749 target bytes, NOT the number of target bits.
2750
7cb3ec5e
EZ
27512002-09-09 Elena Zannoni <[email protected]>
2752
2753 From: Emmanuel Thome' <[email protected]>
2754 * top.c (init_main): Set rl_terminal_name.
2755
4dc81987
AS
27562002-09-08 Aidan Skinner <[email protected]>
2757
2758 * ada-lang.c (ada_array_bound, ada_type_match,
2759 _initialize_ada_language): Fix K&R definitions.
2760 * ada-tasks.c (get_current_task): Fix K&R definitions.
2761 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2762
842330b4
CF
27632002-09-07 Christopher Faylor <[email protected]>
2764
2765 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2766 Add XP.
2767
43156d82
MK
27682002-09-06 Mark Kettenis <[email protected]>
2769
66da5fd8
MK
2770 * i386-tdep.c (i386_register_virtual_type,
2771 i386_register_convertible, i386_register_convert_to_virtual,
2772 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2773 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2774 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2775 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2776 Don't set push_arguments twice.
2777
4b218c18
MK
2778 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2779 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2780 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2781 sigtramp_end to NULL.
2782 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2783 defines.
2784 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2785
4cc314d5
MK
2786 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2787 whitespace.
2788
43156d82
MK
2789 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2790 * gdbarch.h, gdbarch.c: Re-generate.
2791 * blockframe.c (find_pc_sect_partial_function): Convert to use
2792 SIGTRAMP_START_P predicate.
2793
6672060b
MS
27942002-09-05 Michael Snyder <[email protected]>
2795
a90c3637
MS
2796 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2797 generic_dummy_frame method and old method. Also distinguish
2798 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2799 (arm_extract_return_value): Use new regcache method.
a90c3637 2800
6672060b
MS
2801 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2802 adjustment that doesn't conform to the ABI.
2803 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2804 saved regcache, not from current regcache.
2805
299ffc64
AC
28062002-09-05 Andrew Cagney <[email protected]>
2807
2808 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2809 * README: Update.
2810
a3a2ee65
JT
28112002-09-04 Jason Thorpe <[email protected]>
2812
2813 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2814 if arm_apcs_32 is false.
2815
2bc7eea9
AC
28162002-09-04 Andrew Cagney <[email protected]>
2817
2818 GDB 5.3 branch created.
2819
8a55a7c5
TR
28202002-09-03 Theodore A. Roth <[email protected]>
2821
2822 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2823 generic_unwind_get_saved_register.
2824
e26fb1d7
DC
28252002-09-03 David Carlton <[email protected]>
2826
2827 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2828 argument (PR gdb/653). Update call to smash_to_method_type.
2829 (read_structure_scope): Update call to dwarf2_add_member_fn.
2830
30d52491
ML
28312002-09-03 Michal Ludvig <[email protected]>
2832
2833 * x86-64-linux-tdep.c: Include gdb_string.h
2834 * x86-64-linux-nat.c: Ditto.
2835
06891d83
JT
28362002-09-02 Jason Thorpe <[email protected]>
2837
2838 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2839 when YYDEBUG is set to 1.
2840 * c-exp.y: Likewise.
2841 * f-exp.y: Likewise.
2842 * jv-exp.y: Likewise.
2843 * m2-exp.y: Likewise.
2844 * p-exp.y: Likewise.
2845
7d400e77
JT
28462002-09-02 Jason Thorpe <[email protected]>
2847
2848 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2849 dependency list.
2850 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2851 solib_svr4_fetch_link_map_offsets to
2852 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2853 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2854 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2855 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2856 solib-svr4.o, and solib-legacy.o.
2857 * config/i386/tm-nbsd.h: Include solib.h.
2858
704a27c4
JT
28592002-09-02 Jason Thorpe <[email protected]>
2860
2861 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2862 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2863 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2864 comment noting that this needs its own target configuration.
2865 * config/i386/nbsd.mt: New file.
2866 * config/i386/nbsdaout.mt: Remove.
2867 * config/i386/nbsdelf.mt: Ditto.
2868 * config/i386/tm-nbsdaout.h: Ditto.
2869
d66198e1
JT
28702002-09-02 Jason Thorpe <[email protected]>
2871
2872 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2873 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2874 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2875 tdep->sigtramp_end.
2876 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2877 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2878 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2879
3cac699e
JT
28802002-09-02 Jason Thorpe <[email protected]>
2881
2882 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2883 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2884 * i386-tdep.h (i386bsd_init_abi): New prototype.
2885 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2886 function declaration.
2887 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2888 for NetBSD-a.out or NetBSD-ELF.
2889 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2890 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2891 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2892 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2893 and nbsd-tdep.h.
2894 (i386nbsd_pc_in_sigtramp): New function.
2895 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2896 i386nbsd_pc_in_sigtramp.
2897 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2898 and i386nbsdelf_init_abi OS ABI handlers.
2899 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2900 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2901
7010ca0a
MK
29022002-09-02 Mark Kettenis <[email protected]>
2903
2904 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2905 registers if the target really has them.
2906
6dd93b72
JT
29072002-08-31 Jason Thorpe <[email protected]>
2908
2909 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2910 than nbsd-tdep.h.
2911
2ca8ae21
JT
29122002-08-31 Jason Thorpe <[email protected]>
2913
2914 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2915 list.
2916 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2917 (alphanbsd_skip_sigtramp_frame): New functions.
2918 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2919 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2920 to alphanbsd_sigcontext_addr.
2921
3d9b49b0
JT
29222002-08-31 Jason Thorpe <[email protected]>
2923
2924 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2925 list.
2926 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2927 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2928 nbsd_pc_in_sigtramp.
2929 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2930 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2931 * nbsd-tdep.c: Include gdb_string.h.
2932 (nbsd_pc_in_sigtramp): New function.
2933 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2934 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2935 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2936 ppcnbsd_pc_in_sigtramp.
2937 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2938 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2939 shnbsd_pc_in_sigtramp.
2940 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2941 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2942 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2943
c860120c
PM
29442002-08-30 Pierre Muller <[email protected]>
2945
2946 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2947 watchpoints to NULL.
2948 (insert_breakpoints): set val field of watchpoints if NULL.
2949
2950
c7612d53
JB
29512002-08-29 Jim Blandy <[email protected]>
2952
2953 * symtab.c (lookup_symbol_aux): In the cases where we find a
2954 minimal symbol of an appropriate name and use its address to
2955 select a symtab to read and search, use `name' (as passed to us)
2956 as the demangled name when searching the symtab's global and
2957 static blocks, not the minsym's name.
2958
66609862
KS
29592002-08-29 Keith Seitz <[email protected]>
2960
2961 * stack.c (print_frame_info_base): Always set current_source_symtab
2962 and current_source_line.
2963
151fefe2
JB
29642002-08-29 Donn Terry <[email protected]>
2965
2966 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2967
bfb3754e
KS
29682002-08-28 Keith Seitz <[email protected]>
2969
2970 * stack.c (select_frame): Add FIXME concerning selected-frame
2971 events.
2972 (select_frame_command): Send selected-frame-level-changed
2973 event notification, but only if the level actually changed.
2974 (up_silently_base): Add selected-frame-level-changed event
2975 notification.
2976 (down_silently_base): Likewise.
2977
e822a2a0
AC
29782002-08-28 Andrew Cagney <[email protected]>
2979
2980 * Makefile.in: Update dependencies for all gdb/*.c files.
2981
309367d4
TT
29822002-08-27 Tom Tromey <[email protected]>
2983
2984 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2985 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2986 Update dependencies.
2987 * i387-tdep.c: Include gdb_string.h.
2988 * osabi.c: Likewise.
2989 * i386-linux-nat.c: Likewise.
2990 * lin-lwp.c: Likewise.
2991 * ax-gdb.c: Likewise.
2992 * signals/signals.c: Likewise.
2993 * jv-valprint.c: Likewise.
2994 * p-lang.c: Likewise.
2995 * c-valprint.c: Likewise.
2996 * cp-abi.c: Likewise.
2997
e1507482
EZ
29982002-08-27 Elena Zannoni <[email protected]>
2999
3000 * cli/cli-script.h (copy_command_lines): Export.
3001 * breakpoint.c: Include cli/cli-script.h.
3002 * Makefile.in (breakpoint.o): Update dependencies.
3003
c6510018
MS
30042002-08-26 Michael Snyder <[email protected]>
3005
3006 * breakpoint.c (insert_breakpoints): Protect all references
3007 to 'process_warning'. Shorten long lines.
3008
c2b8ed2c
MS
30092002-08-26 Joel Brobecker <[email protected]>
3010
3011 * cli/cli-script.c (copy_command_lines): New function.
3012 * defs.h (copy_command_lines): Export.
3013 * testsuite/gdb.base/commands.exp: New tests for commands
3014 attached to a temporary breakpoint, and for commands that
3015 delete the breakpoint they are attached to.
3016
30172002-08-26 Michael Snyder <[email protected]>
3018
3019 * breakpoint.c (bpstat_stop_status): Instead of copying the
3020 pointer to the breakpoint commands struct, make a new copy
3021 of the struct and point to that.
3022 (bpstat_clear): Free the commands struct.
3023 (bpstat_clear_actions): Free the commands struct.
3024 (bpstat_do_actions): Free the command actions. Also execute
3025 the local cleanups, instead of deleting them.
3026 (delete_breakpoint): Leave the commands field of the bpstat
3027 chain alone -- it will be freed later.
3028
64b84175
KB
30292002-08-26 Kevin Buettner <[email protected]>
3030
3031 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3032 deleted in 2002-08-20 commit. This function is still used by
3033 ppc-linux-nat.c.
3034
55970da6
KS
30352002-08-26 Keith Seitz <[email protected]>
3036
3037 * gdb-events.sh: Add selected-frame-level-changed event.
3038 * gdb-events.c: Regenerated.
3039 * gdb-events.h: Regenerated.
3040
a790ad35
SC
30412002-08-26 Stephane Carrez <[email protected]>
3042
3043 Fix PR gdb/393:
3044 * inflow.c (terminal_save_ours): New function to save terminal
3045 settings.
3046 * inferior.h (terminal_save_ours): Declare.
3047 * target.c (debug_to_terminal_save_ours): New function.
3048 (cleanup_target): Defaults to_terminal_save_ours.
3049 (update_current_target): Inherit to_terminal_save_ours.
3050 (setup_target_debug): Set to_terminal_save_ours.
3051 * target.h (target_terminal_save_ours): New to save terminal settings.
3052 (target_ops): New member to_terminal_save_ours.
3053 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3054 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3055 * inftarg.c (init_child_ops): Likewise.
3056 * m3-nat.c (init_m3_ops): Likewise.
3057 * procfs.c (init_procfs_ops): Likewise.
3058 * wince.c (init_child_ops): Likewise.
3059 * win32-nat.c (init_child_ops): Likewise.
3060 * sol-thread.c (init_sol_thread_ops): Likewise.
3061
c00dcbe9
MK
30622002-08-26 Mark Kettenis <[email protected]>
3063
3d7f4f49
MK
3064 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3065 use regcache_* functions.
3066 (i386_gdbarch_init): Set store_return_value instead of
3067 deprecated_store_return_value.
3068
c00dcbe9
MK
3069 * regcache.c (regcache_raw_write_signed,
3070 regcache_raw_write_unsigned): New functions.
3071 * regcache.h (regcache_raw_write_signed,
3072 regcache_raw_write_unsigned): New prototypes.
3073
0e0d15ca
AC
30742002-08-25 Andrew Cagney <[email protected]>
3075
3076 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3077 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3078 source file dependencies. Cleanup corresponding generator rules.
3079
d3b22ed5
AC
30802002-08-25 Andrew Cagney <[email protected]>
3081
3082 * regcache.h (register_offset_hack): Declare.
3083 (regcache_cooked_read_using_offset_hack): Declare.
3084 (regcache_cooked_write_using_offset_hack): Declare.
3085
3086 * regcache.c (register_offset_hack): New function.
3087 (regcache_cooked_read_using_offset_hack): New function.
3088 (regcache_cooked_write_using_offset_hack): New function.
3089 (regcache_dump): Check that the registers, according to their
3090 offset, are packed hard against each other.
3091 (cooked_xfer_using_offset_hack): New function.
3092
bb425013
AC
30932002-08-25 Andrew Cagney <[email protected]>
3094
3095 * regcache.c (struct regcache_descr): Add field register_type.
3096 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3097 in as a parameter
3098 (init_regcache_descr): Initialize register_type. Pass the descr
3099 to init_legacy_regcache_descr. Use register_type instead of
3100 REGISTER_VIRTUAL_TYPE.
3101 (register_type): New function.
3102 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3103 * regcache.h (register_type): Declare.
3104
d0403e00
AC
31052002-08-25 Andrew Cagney <[email protected]>
3106
3107 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3108 instead of deprecated_store_return_value. Fix fallout from
3109 2002-08-23 Andrew Cagney <[email protected]>.
3110
0ed04cce
AC
31112002-08-25 Andrew Cagney <[email protected]>
3112
3113 * regcache.c (max_register_size): New function.
3114 (init_legacy_regcache_descr): Ensure that max_register_size is
3115 large enough for REGISTER_VIRTUAL_SIZE.
3116 * regcache.h (max_register_size): Declare.
3117
46d79c04
AC
31182002-08-24 Andrew Cagney <[email protected]>
3119
3120 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3121 store_return_value.
3122 (e500_extract_return_value): Change type of valbuf pointer to
3123 void.
3124
853c7bd0
MK
31252002-08-24 Mark Kettenis <[email protected]>
3126
cd87e769
MK
3127 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3128 workaround.
3129
853c7bd0
MK
3130 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3131 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3132 long long) to prevent compiler warning on 64-bit systems.
3133
ebba8386
AC
31342002-08-23 Andrew Cagney <[email protected]>
3135
3136 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3137 (DEPRECATED_STORE_RETURN_VALUE): New method.
3138 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3139 * gdbarch.h, gdbarch.c: Re-generate.
3140
3141 * values.c (set_return_value): Pass current_regcache to
3142 STORE_RETURN_VALUE.
3143 * arch-utils.h (legacy_store_return_value): Declare.
3144 * arch-utils.c (legacy_store_return_value): New function.
3145 (legacy_extract_return_value): Update parameters.
3146
3147 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3148 STORE_RETURN_VALUE.
3149 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3150 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3151 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3152 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3153 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3154 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3155 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3156 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3157 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3158 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3159
3160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3161 * i386-tdep.c (i386_extract_return_value): Update.
3162 * arch-utils.c (legacy_extract_return_value): Update.
3163 * frv-tdep.c (frv_gdbarch_init): Update.
3164 * cris-tdep.c (cris_gdbarch_init): Update.
3165 * d10v-tdep.c (d10v_gdbarch_init): Update.
3166 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3167 * m68k-tdep.c (m68k_gdbarch_init): Update.
3168 * mcore-tdep.c (mcore_gdbarch_init): Update.
3169 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3170 * s390-tdep.c (s390_gdbarch_init): Update.
3171 * sparc-tdep.c (sparc_gdbarch_init): Update.
3172 * sh-tdep.c (sh_gdbarch_init): Update.
3173 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3174 * v850-tdep.c (v850_gdbarch_init): Update.
3175 * avr-tdep.c (avr_gdbarch_init): Update.
3176 * ia64-tdep.c (ia64_gdbarch_init): Update.
3177 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3178 * vax-tdep.c (vax_gdbarch_init): Update.
3179 * alpha-tdep.c (alpha_gdbarch_init): Update.
3180 * arm-tdep.c (arm_gdbarch_init): Update.
3181 * mips-tdep.c (mips_gdbarch_init): Update.
3182 * i386-tdep.c (i386_gdbarch_init): Update.
3183
5bd8c6d0
AC
31842002-08-23 Andrew Cagney <[email protected]>
3185
3186 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3187 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3188
e73e1724
MK
31892002-08-24 Mark Kettenis <[email protected]>
3190
3191 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3192 problems.
3193
3e6564e1
JB
31942002-08-23 Joel Brobecker <[email protected]>
3195
3196 * infrun.c (handle_inferior_event): Move a comment outside of a
3197 function call, in order to avoid indent reformatting this part
3198 of the code in an unreadable way.
3199
81d0cc19
GS
32002002-08-23 Grace Sainsbury <[email protected]>
3201
3202 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3203 when breakpoints fail. Move general breakpoint error messages to
3204 insert_breakpoints.
3205 * breakpoint.c (insert_breakpoints): Change warnings when
3206 breakpoints are nto inserted to specify the type. Remove call to
3207 memory_error when hardware breakpoints can't be inserted. Remove
3208 multiple calls to warning so all messages are sent to the user at
3209 once.
3210 (delete_breakpoints): Make insert error messsages more explicit.
3211
17574093
DJ
32122002-08-23 Daniel Jacobowitz <[email protected]>
3213
3214 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3215 gdbserver/ChangeLog.
3216
8acc2935
MK
32172002-08-23 Mark Kettenis <[email protected]>
3218
dfe01d39
MK
3219 * i386-tdep.c: Include "objfiles.h".
3220 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3221 skip_trampoline_code.
3222 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3223 (CPLUS_MARKER): Define to '.'.
3224
8acc2935
MK
3225 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3226 member.
3227 (linux_corefile_thread_callback): Increase args->num_notes.
3228 (linux_make_note_section): Initialize thread_args.num_notes, and
3229 use it to determine whether notes for any threads were created.
3230
151fefe2 32312002-08-23 Donn Terry <[email protected]>
640b227f
JB
3232
3233 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3234 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3235 and PCUNKILL.
3236 (write_with_trace): Conditionalize out the switch branch handling
3237 PCSHOLD if the corresponding macro is not defined. Likewise for
3238 PRSABORT and PRSTOP.
3239 This change will be needed by the Interix port.
3240
e1507482
EZ
32412002-08-22 Elena Zannoni <[email protected]>
3242
3243 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3244 write_register wherever possible instead of manipulating the
3245 register bytes directly.
3246 Assign VALUE_CONTENTS to a variable and use that.
3247 The GPR numbers are now dependent on the architecture.
3248
96ff0de4
EZ
32492002-08-22 Elena Zannoni <[email protected]>
3250
3251 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3252 ev_offset fields.
3253 (skip_prologue): Add support for BookE/e500 instructions.
3254 (e500_extract_return_value): New function.
3255 (frame_get_saved_regs): Add support for saving ev registers and
3256 pseudo gpr's.
3257 (e500_store_return_value): New function.
3258 (rs6000_gdbarch_init): Move up default intializations of
3259 deprecated_extract_return_value and store_return_value. Overwrite
3260 init of store_return_value with e500 specific version.
3261 Set extract_return_value for e500.
3262
fbefca5b
EZ
32632002-08-22 Elena Zannoni <[email protected]>
3264
3265 * blockframe.c (generic_call_dummy_register_unwind): Use
3266 regcache_cooked_read to catch cases in which the variable is
3267 stored in a pseudo register.
3268
4d210288
AC
32692002-08-22 Andrew Cagney <[email protected]>
3270
3271 * NEWS: Mention that the i960 has been made obsolete.
3272 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3273 i960-tdep.c
3274 (remote-nrom.o): Obsolete target.
3275 (remote-nindy.o, i960-tdep.o): Ditto.
3276 * remote-nrom.c: Make file obsolete.
3277 * remote-nindy.c, remote-vx960.c: Ditto.
3278 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3279 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3280 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3281 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3282 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3283 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3284 i960-*-vxworks* obsolete.
3285 * MAINTAINERS: Note that the i960 is obsolete.
3286
6c0c456d
CV
32872002-08-21 Corinna Vinschen <[email protected]
3288
3289 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3290 detach to allow reinitialization.
3291
9f9d12b3
AC
32922002-08-22 Andrew Cagney <[email protected]>
3293
3294 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3295 attempt).
3296
ebeb39fe
JB
32972002-08-22 Jim Blandy <[email protected]>
3298
3299 * coffread.c (coff_symfile_read): Don't try to read the line
3300 number table from disk if the image file doesn't have a symbol
3301 table; we'll never actually look at the info anyway, and Windows
3302 ships DLL's with bogus file offsets for the line number data.
3303
5bf1c677
EZ
33042002-08-21 Elena Zannoni <[email protected]>
3305
3306 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3307 an e500 executable.
3308
71b8ef93
MS
33092002-08-21 Michael Snyder <[email protected]>
3310
3311 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3312 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3313 (DEFAULT_MIPS_TYPE): Delete unused macro.
3314 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3315 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3316
d174216d
JB
33172002-08-21 Jim Blandy <[email protected]>
3318
3319 * valops.c (value_cast): Simplify and correct logic for doing a
3320 static cast from a pointer to a base class to a pointer to a
3321 derived class.
3322
0ab7a791
AC
33232002-08-21 Andrew Cagney <[email protected]>
3324
3325 * infcmd.c (default_print_registers_info): Replace
3326 do_registers_info.
3327 (registers_info): Use gdbarch_print_registers_info instead of
3328 DO_REGISTERS_INFO.
3329 * inferior.h (default_print_registers_info): Replace
3330 do_registers_info.
3331 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3332 (DO_REGISTERS_INFO): Change to a predicate function.
3333 * gdbarch.h, gdbarch.c: Regenerate.
3334
e23792cc
KS
33352002-08-21 Keith Seitz <[email protected]>
3336
3337 * gdb-events.sh: Add target-changed event.
3338 * gdb-events.c: Regenerated.
3339 * gdb-events.c: Regenerated.
3340 * valops.c (value_assign): Add target-changed event notification
3341 to inlval_register, lval_memory, and lval_reg_frame_relative.
3342
9fb14e79
JB
33432002-08-21 Joel Brobecker <[email protected]>
3344
3345 * NEWS: Add an entry regarding the improvement of the next/step
3346 operation on Alpha Tru64 multi-processor machines.
3347
6d39a69f
AC
33482002-08-21 Andrew Cagney <[email protected]>
3349
72acd513
AC
3350 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3351 directores.
342af04b 3352 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3353 * Makefile.in (install-gdbtk): Move to install section.
3354 (rdi-share/libangsd.a): Move to end of file.
3355
fa5f27c7
AC
33562002-08-19 Andrew Cagney <[email protected]>
3357
3358 * frame.c (frame_register_unwind): When a register, set addrp to
3359 the register's byte.
3360
5a89d8aa
MS
33612002-08-20 Michael Snyder <[email protected]>
3362
3363 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3364 used locally, so move them from the target machine header to here.
3365 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3366 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3367 Make static.
3368 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3369
822e978b
AC
33702002-08-20 Andrew Cagney <[email protected]>
3371
3372 * NEWS: Mention that the Apollo line was made obsolete.
3373 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3374 m68*-hp-hpux* obsolete.
3375 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3376 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3377 * buildsym.c (make_blockvector): Make static.
3378 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3379 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3380 (ALLDEPFILES): Remove dstread.c.
3381 (dstread.o): Obsolete make rule.
3382 * dstread.c: Makefile obsolete.
3383 * dst.h: Ditto.
3384 * config/m68k/hp300hpux.mt: Ditto.
3385 * config/m68k/hp300hpux.mh: Ditto.
3386 * config/m68k/hp300bsd.mt: Ditto.
3387 * config/m68k/hp300bsd.mh: Ditto.
3388 * config/m68k/apollo68b.mt: Ditto.
3389 * config/m68k/apollo68v.mh: Ditto.
3390 * config/m68k/apollo68b.mh: Ditto.
3391
e41b17f0
MS
33922002-08-20 Michael Snyder <[email protected]>
3393
3394 * mips-tdep.c (mips_in_return_stub): Make static.
3395 (mips_gdbarch_init): Set in_solib_return_trampoline.
3396 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3397
d50355b6
MS
33982002-08-20 Michael Snyder <[email protected]>
3399
3400 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3401 * gdbarch.c, gdbarch.h: Regenerate.
3402 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3403 Add.
3404 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3405
757a7cc6
MS
34062002-08-20 Michael Snyder <[email protected]>
3407
3408 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3409 (mips_gdbarch_init): Set skip_trampoline_code,
3410 in_solib_call_trampoline.
3411 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3412 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3413
c8001721
EZ
34142002-08-20 Elena Zannoni <[email protected]>
3415
3416 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3417
3418 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3419 vector type for ev registers.
3420 (e500_pseudo_register_read): New function.
3421 (e500_pseudo_register_write): New function.
3422 (e500_dwarf2_reg_to_regnum): New function.
3423 (PPC_UISA_NOFP_SPRS): New macro.
3424 (PPC_EV_REGS): New macro.
3425 (PPC_GPRS_PSEUDO_REGS): New macro.
3426 (registers_e500): New register set for e500.
3427 (variants): Add e500 variant.
3428 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3429 before setting architectural dependent variations. Initialize ev
3430 registers numbers. Add case for e500 architecture. Set the
3431 number of pseudo registers.
3432
64366f1c
EZ
34332002-08-20 Elena Zannoni <[email protected]>
3434
3435 * rs6000-tdep.c: Clean up comments.
3436
7e78f0ca
AC
34372002-08-20 Andrew Cagney <[email protected]>
3438
3439 * h8300-tdep.c: Re-indent file.
3440
697f7479
JB
34412002-08-20 Jim Blandy <[email protected]>
3442
3443 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3444 default for this.
697f7479 3445
e86ae29f
KS
34462002-08-20 Keith Seitz <[email protected]>
3447
3448 * breakpoints.c (watch_command_1): Use internal breakpoint
3449 when setting a watchpoint_scope breakpoint.
3450
216b504f
EZ
34512002-08-20 Elena Zannoni <[email protected]>
3452
3453 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3454 (build_builtin_type_vec64i): Ditto.
3455 (build_builtin_type_vec128): Ditto.
3456 (build_builtin_type_vec128i): Ditto.
3457
f7ab6ec6
MS
34582002-08-19 Michael Snyder <[email protected]>
3459
3460 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3461 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3462 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3463 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3464 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3465 CALL_DUMMY_ADDRESS): Delete.
3466 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3467 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3468 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3469 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3470 push_return_address.
3471 (mips_register_raw_size, mips_eabi_use_struct_convention,
3472 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3473 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3474 mips_init_extra_frame_info, mips_eabi_push_arguments,
3475 mips_n32n64_push_arguments, mips_push_return_address,
3476 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3477 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3478
b5d1566e
MS
34792002-08-19 Michael Snyder <[email protected]>
3480
3481 * mips-tdep.c (mips_frame_num_args): New function.
3482 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3483 frame_saved_pc, frame_args_address, frame_locals_address,
3484 frame_num_args, and frame_args_skip.
3485 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3486 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3487 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3488 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3489
2f1488ce
MS
34902002-08-20 Michael Snyder <[email protected]>
3491
3492 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3493 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3494 * mips-tdep.c (mips_store_struct_return): New function.
3495 (mips_extract_struct_value_address): New function.
3496 (mips_gdbarch_init): Set store_struct_return and
3497 extract_struct_value_address.
3498
41ff2da1
DC
34992002-08-20 David Carlton <[email protected]>
3500
3501 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3502 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3503 (read_file_scope): Check that line_header is nonzero before
3504 decoding macro information.
3505
e5451d58
MK
35062002-08-20 Mark Kettenis <[email protected]>
3507
3508 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3509 flag the general-purpose registers as floating-point on targets
3510 that don't support the floating-point registers.
3511
4a6daafa
EZ
35122002-08-20 Elena Zannoni <[email protected]>
3513
3514 * rs6000-tdep.c (altivec_register_p): Delete.
3515 (rs6000_do_altivec_registers): Delete.
3516 (rs6000_altivec_registers_info): Delete.
3517 (rs6000_do_registers_info): Delete.
3518 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3519 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3520
ab4327e0
EZ
35212002-08-20 Elena Zannoni <[email protected]>
3522
3523 * infcmd.c (do_registers_info): Print vector registers in hex
3524 format only.
3525 (print_vector_info): Check that printing registers
3526 makes sense.
3527 (print_float_info): Ditto.
3528
cb1d2653
AC
35292002-08-20 Andrew Cagney <[email protected]>
3530
3531 * mips-tdep.c (mips_gdbarch_init): Update.
3532 (mips_o32_extract_return_value): Rewrite.
3533 (mips_o32_store_return_value): Rewrite.
3534 (mips_o32_xfer_return_value): New function.
3535 (mips_xfer_register): Tweak debug print message. Allow for
3536 buf_offset when dumping the value transfered.
3537
dfc3d9b2
AC
35382002-08-20 Andrew Cagney <[email protected]>
3539
3540 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3541 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3542 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3543 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3544 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3545
7807aa61
MS
35462002-08-14 Michael Snyder <[email protected]>
3547
3548 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3549
489461e2
EZ
35502002-08-19 Elena Zannoni <[email protected]>
3551
3552 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3553 register.
3554 (P): New macro to define a register as a pseudo register.
3555 (R, R4, R8, R16, FR32, R64, R0): Updated.
3556 (struct variant): Add new fields for number of pseudo registers
3557 and number of total registers.
3558 (tot_num_registers): New macro replacing....
3559 (num_registers): ...deleted macro.
3560 (num_registers): New function.
3561 (num_pseudo_registers): New function.
3562 (variants): Update all variants to intialize new fields correctly.
3563 Postpone initialization of number of pseudo regs and real regs.
3564 (init_variants): New function.
3565 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3566 registers offsets.
3567
fcaffe4c
DC
35682002-08-19 David Carlton <[email protected]>
3569
2c2738a0
DC
3570 * valops.c (search_struct_field): Change error message to treat
3571 return value of 0 from value_static_field as meaning that field is
3572 optimized out.
3573 (value_struct_elt_for_reference): Ditto.
3574 * values.c (value_static_field): Treat an unresolved location the
3575 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3576 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3577 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3578 * MAINTAINERS: Add self to Write After Approval list.
3579
88658117
AC
35802002-08-19 Andrew Cagney <[email protected]>
3581
3582 * mips-tdep.c (mips_xfer_register): New function.
3583 (mips_n32n64_extract_return_value): Rewrite.
3584 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3585 instead of deprecated_extract_return_value.
3586
21283beb
EZ
35872002-08-19 Elena Zannoni <[email protected]>
3588
3589 * rs6000-tdep.c (TDEP): Delete macro.
3590 (branch_dest): Replace use of TDEP macro with its body.
3591 (rs6000_pop_frame): Ditto.
3592 (rs6000_push_arguments): Ditto.
3593 (rs6000_skip_trampoline_code): Ditto.
3594 (rs6000_frame_saved_pc): Ditto.
3595 (rs6000_frame_chain): Ditto.
3596 (rs6000_register_name): Ditto.
3597 (rs6000_register_byte): Ditto.
3598 (rs6000_register_raw_size): Ditto.
3599 (rs6000_register_virtual_type): Ditto.
3600 (rs6000_register_convertible): Ditto.
3601 (rs6000_convert_from_func_ptr_addr): Ditto.
3602
bf072999
DJ
36032002-08-19 Daniel Jacobowitz <[email protected]>
3604
3605 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3606 conditionally.
3607 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3608 MIPS_LINUX_JB_ELEMENT_SIZE.
3609 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3610 for MAX_REGISTER_RAW_SIZE arrays.
3611 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3612 MIPS_LINUX_JB_ELEMENT_SIZE.
3613
9b949a49
PM
36142002-08-19 Pierre Muller <[email protected]>
3615
3616 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3617
6d3e79c6
AS
36182002-08-19 Aidan Skinner <[email protected]>
3619
3620 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3621 ada-valprint.c ada-tasks.c.
3622 (YYFILES): Add ada-exp.y.
3623 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3624 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3625 (ada-exp.tab.o): New target.
3626
06c0b04e
AC
36272002-08-18 Andrew Cagney <[email protected]>
3628
3629 * regcache.c (regcache_xfer_part): New function.
3630 (regcache_raw_read_part): New function.
3631 (regcache_raw_write_part): New function.
3632 (regcache_cooked_read_part): New function.
3633 (regcache_cooked_write_part): New function.
3634 * regcache.h (regcache_raw_read_part): Declare.
3635 (regcache_raw_write_part): Declare.
3636 (regcache_cooked_read_part): Declare.
3637 (regcache_cooked_write_part): Declare.
3638
92d1e331
DJ
36392002-08-18 Daniel Jacobowitz <[email protected]>
3640
3641 * remote.c (remote_open_1): Add async_p.
3642 (remote_async_open_1): Delete.
3643 (open_remote_target): Delete.
3644 (remote_open, extended_remote_open): Update calls to remote_open_1.
3645 (remote_async_open, extended_remote_async_open): Call
3646 remote_open_1 instead of remote_async_open_1.
3647
247055de
MK
36482002-08-19 Mark Kettenis <[email protected]>
3649
3650 * blockframe.c: Fix a few coding standard violations.
3651
641eda39
MK
36522002-08-19 Mark Kettenis <[email protected]>
3653
0b717710
MK
3654 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3655 here from ...
3656 * config/i386/tm-i386sco5.h: ... here. File removed.
3657 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3658
26d28e12 3659 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3660 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3661 (TM_FILE): Set to tm-i386.h.
3662 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3663 * config/i386/tm-i386v.h: Remove file.
3664 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3665 instead of "i386/tm-i386v.h".
3666 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3667 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3668 "i386/tm-i386v.h".
3669 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3670 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3671 "i386/tm-i386.h".
3672
d4e0bab4
MK
36732002-08-18 Mark Kettenis <[email protected]>
3674
3675 * config/i386/nm-i386v.h: Add protection against
3676 multiple-inclusion.
3677 (i386_register_u_addr): Remove prototype.
3678 (register_u_addr): New prototype.
3679 (REGISTER_U_ADDR): Redefine accordingly.
3680 * i386v-nat.c: Improve several comments.
3681 (i386_register_u_addr): Change signature and rename to
3682 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3683 ubase variable.
3684
46cac009
AC
36852002-08-18 Andrew Cagney <[email protected]>
3686
3687 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3688 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3689 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3690 deprecated_extract_return_value.
3691 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3692 rename mips_o32o64_push_arguments.
3693 (mips_gdbarch_init): Update.
3694 (mips_extract_return_value): Delete.
3695 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3696 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3697 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3698 (mips_n32n64_extract_return_value): Clone
3699 mips_extract_return_value.
3700 (mips_store_return_value): Delete.
3701 (mips_o32_store_return_value): Clone mips_store_return_value.
3702 (mips_o64_store_return_value): Clone mips_store_return_value.
3703 (mips_eabi_store_return_value): Clone mips_store_return_value.
3704 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3705
d2e4a39e
AS
37062002-08-18 Aidan Skinner <[email protected]>
3707
0c30c098
AS
3708 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3709 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3710
37112002-08-18 Aidan Skinner <[email protected]>
3712
3713 * ada-lang.c: Run through gdb_indent.sh.
3714 * ada-lang.h: Run through gdb_indent.sh.
3715 * ada-tasks.c: Run through gdb_indent.sh.
3716 * ada-typeprint.c: Run through gdb_indent.sh.
3717 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3718
01fc4e33
AC
37192002-08-18 Andrew Cagney <[email protected]>
3720
3721 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3722 ABI.
3723
d8ee244c
MK
37242002-08-18 Mark Kettenis <[email protected]>
3725
c38d8261
MK
3726 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3727
222db64c
MK
3728 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3729 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3730
c2848c82
MK
3731 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3732 write_register_gen instead of write_register_bytes.
3733
d8ee244c
MK
3734 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3735 i[3456]-*-osf1mk* configurations have been made obsolete.
3736 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3737 i[3456]86-*-osf1mk* hosts obsolete.
3738 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3739 targets obsolete.
3740 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3741 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3742 config/i386/i386m3.mt, config/i386/nm-m3.h,
3743 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3744 config/i386/i386mk.mh, config/i386/i386mk.mt,
3745 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3746 obsolete.
3747 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3748 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3749 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3750
61d8d407
AC
37512002-08-18 Andrew Cagney <[email protected]>
3752
3753 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3754 (hppa_value_returned_from_stack): Declare.
3755 (hppa_extract_return_value): Declare.
3756 * config/pa/hppa.mt: New file.
3757 * configure.tgt: Recognize hppa*-*-*.
3758 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3759
0c52bd59
MK
37602002-08-18 Mark Kettenis <[email protected]>
3761
3762 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3763 comment.
3764
b5686e99
MK
37652002-08-17 Mark Kettenis <[email protected]>
3766
3767 * top.c (gdb_rl_operate_and_get_next): Make sure
3768 operate-and-get-next functions correctly even when the history
3769 list is completely filled.
3770
c1bab85b
AC
37712002-08-18 Andrew Cagney <[email protected]>
3772
3773 * MAINTAINERS (Target Instruction Set Architectures): Rename
3774 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3775 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3776 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3777 already listed under Host/Native.
3778
3779 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3780 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3781 mips*-*-*.
3782
32089c7c
AC
37832002-08-17 Andrew Cagney <[email protected]>
3784
3785 * config/ia64/ia64.mt: New file.
3786 * config/alpha/alpha.mt: New file.
3787 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3788 ia64-linux-gnu. Mention that ia64-elf is broken.
3789 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3790
b4671f85
MK
37912002-08-17 Mark Kettenis <[email protected]>
3792
3793 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3794 generic_func_frame_valid instead of func_frame_valid.
3795
c8edd8b4
JB
37962002-08-16 Joel Brobecker <[email protected]>
3797
3798 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3799 procfs appears to be broken when debugging on multi-processor
3800 machines. So enable software single stepping in order to avoid
3801 using the procfs interface to do next/step operations, using
3802 internal breakpoints instead.
3803
3804 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3805 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3806 make this pc address equal to the value it would have if the
3807 system stepping capability was used. Also set a new flag used
3808 to ensure that we don't readjust the PC one more time later.
3809
3810 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3811 address by DECR_PC_AFTER_BREAK when software single step is
3812 in use for this architecture, as this has already been taken
3813 care of in handle_inferior_event().
3814
238617f6
JB
38152002-08-16 Joel Brobecker <[email protected]>
3816
3817 * infrun.c (handle_inferior_event): Minor reformatting, to make
3818 a rather long condition expression easier to read.
3819
541a7aac
AC
38202002-08-16 Andrew Cagney <[email protected]>
3821
3822 * Makefile.in (gdbtk.o): Move to end of file.
3823 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3824 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3825 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3826 (gdbtk-wrapper.o, gdbres.o): Ditto.
3827
f92d4a7b
AC
38282002-08-16 Andrew Cagney <[email protected]>
3829
3830 * Makefile.in (copying.o): Separate out compile rule.
3831 (hpux-thread.o, procfs.o, signals.o): Ditto.
3832 (v850ice.o, z8k-tdep.o): Ditto.
3833 (tui-file.o): Move to TUI section.
3834 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3835 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3836
1cce71eb
JB
38372002-08-16 Joel Brobecker <[email protected]>
3838
3839 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3840 skip_trampoline_code, for better namespace-proofing.
3841
3842 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3843
0851f23d
JB
38442002-08-16 Joel Brobecker <[email protected]>
3845
3846 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3847
f8d40ec8
JB
38482002-08-16 Joel Brobecker <[email protected]>
3849
3850 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3851 signal, check whether we hit a breakpoint before checking for a
3852 single step breakpoint. Otherwise, GDB fails to notice that a
3853 breakpoint has been hit when stepping onto a breakpoint.
3854
63d022e0
KS
38552002-08-16 Keith Seitz <[email protected]>
3856
3857 * gdb-events.sh (clear_gdb_event_hooks): New function.
3858 * gdb-events.c: Regenerate.
3859 * gdb-events.h: Regenerate.
3860
6e31adb3
AC
38612002-08-16 Andrew Cagney <[email protected]>
3862
3863 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3864 not_a_sw_breakpoint.
3865 * breakpoint.h (bpstat_stop_status): Add parameter names.
3866
c8189ed1
GS
38672002-08-16 Grace Sainsbury <[email protected]>
3868
3869 * remote.c (remote_insert_hw_breakpoint)
3870 (remote_remove_hw_breakpoint): Fix calculation of length field
3871 for Z-packet.
3872
d05285fa
MS
38732002-08-15 Michael Snyder <[email protected]>
3874
466d7106
MS
3875 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3876 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3877 (supply_fpregset): Ditto.
3878
d05285fa
MS
3879 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3880 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3881 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3882 (TARGET_READ_SP): Delete.
bf1f5b4c 3883 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3884 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3885 Delete.
3886 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3887 from macros to functions.
bf1f5b4c 3888
d05285fa
MS
3889 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3890 (mips_register_convertible, mips_register_convert_to_virtual,
3891 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3892 (mips_read_sp): New function.
3893 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3894 (mips_do_registers_info): Make static.
3895 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3896 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3897 (mips_register_convert_from_type, mips_register_convert_to_type):
3898 New functions.
3899 (mips_gdbarch_init): Set up function_start_offset,
3900 register_virtual_size, pc_in_sigtramp.
d05285fa 3901
e76f1f2e
AC
39022002-08-15 Andrew Cagney <[email protected]>
3903
3904 * infcmd.c (vector_info): New function.
3905 (_initialize_infcmd): Add command "info vector".
3906 (print_vector_info): New function.
3907
3908 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3909 * gdbarch.h, gdbarch.c: Regenerate.
3910
4782dc19
AC
39112002-08-15 Andrew Cagney <[email protected]>
3912
3913 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3914 ``print_all''. Only print vector registers when ``print_all''.
3915
23e3a7ac
AC
39162002-08-15 Andrew Cagney <[email protected]>
3917
8e186fd6
AC
3918 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3919 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3920
23e3a7ac
AC
3921 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3922 Add `args' parameter.
3923 * gdbarch.h, gdbarch.c: Regenerate.
3924
3925 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3926
3927 * infcmd.c (float_info): Call print_float_info.
3928 (print_float_info): New function. By default, print the
3929 floating-point registers.
3930
3931 * arch-utils.h (default_print_float_info): Delete declaration.
3932 * arch-utils.c (default_print_float_info): Delete function.
3933
e0ca2bb9
MK
39342002-08-16 Mark Kettenis <[email protected]>
3935
3f733acc
MK
3936 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3937 out define.
3938
7d8d2918
MK
3939 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3940 FRAME.
3941
1c7cc583
MK
3942 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3943 * configure.host: Make i[3456]86-*-aix host obsolete.
3944 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3945 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3946 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3947 config/i386/xm-i386aix.h: Make files obsolete.
3948 * i386aix-nat.c: Make file obsolete.
3949 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3950 (i386aix-nat.o): Make target obsolete.
3951
e0ca2bb9
MK
3952 * config/i386/nm-gnu.h: Removed.
3953 * config/i386/nm-i386gnu.h: New file.
3954 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3955 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3956 Moved here from ...
3957 * config/i386/tm-i386gnu.h: ... here. Removed.
3958 * config/i386/xm-i386gnu.h: Removed.
3959 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3960 (NAT_FILE): Set to nm-i386gnu.h.
3961 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3962 * i386-tdep.c: New file.
3963 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3964 (i386gnu-tdep.o): Specify dependencies.
3965
16057ec7 39662002-08-15 Mark Kettenis <[email protected]>
61113f8b 3967
6b99ee2e
MK
3968 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3969 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3970 Adjust a few comments to reflect reality a bit closer.
3971 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3972 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3973 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3974 target_insert_watchpoint, target_remove_watchpoint):
3975 Move defines to ...
3976 * config/i386/nm-i386sco5.h: ... here.
3977 (kernel_u_size): Add prototype. Improve a few comments and add
3978 protection against multiple inclusion.
3979
d9a6f65c
MK
3980 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3981 out define.
3982
047eff6a
MK
3983 * uw-thread.c (SP_ARG0): Define if not already defined.
3984 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3985
dcdb1290
MK
3986 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3987
5d2d0b2a
MK
3988 * config/i386/tm-i386.h: Don't include "regcache.h".
3989
61113f8b
MK
3990 * i387-tdep.h (i387_print_float_info): New prototype.
3991 * i387-tdep.c (print_i387_value, print_i387_ext,
3992 print_i387_status_word, print_i387_control_word): Add `struct
3993 ui_file *' argument and use it for output.
3994 (i387_print_float_info): Renamed from i387_float_info. Add
3995 `struct gdbarch *' and `struct ui_file *' arguments and use the
3996 latter for output.
3997 * i386-tdep.c: Include "i387-tdep.h".
3998 (i386_gdbarch_init): Set print_float_info.
3999 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4000 (FLOAT_INFO): Remove define.
4001
46e0f506
MS
40022002-08-13 Michael Snyder <[email protected]>
4003
4004 * mips-tdep.c (mips_push_arguments): Rename to
4005 mips_eabi_push_arguments, and tune for EABI.
4006 (MIPS_REGS_HAVE_HOME_P): Delete.
4007 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4008 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4009 Delete references to mips_regs_have_home_p.
4010
409268de
KS
40112002-08-14 Keith Seitz <[email protected]>
4012
4013 * Makefile.in (install-gdbtk): Create insight plugin directory.
4014 Install plugins.tcl file.
4015
ffc6a242
KS
40162002-08-14 Keith Seitz <[email protected]>
4017
4018 * configure.in: Move SUBDIRS to near top of the file so that
4019 --enable options may add things to it.
4020 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4021 * configure: Regenerate.
4022
ebafbe83
MS
40232002-08-13 Michael Snyder <[email protected]>
4024
4025 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4026 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4027 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4028
32f6f25d
AC
40292002-08-13 Andrew Cagney <[email protected]>
4030
4031 * vax-tdep.c (vax_get_saved_register): Delete function.
4032 (vax_gdbarch_init): Update.
4033 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4034 (ns32k_gdbarch_init): Update.
4035 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4036 (alpha_gdbarch_init): Update.
4037
53826de9
AC
40382002-08-13 Andrew Cagney <[email protected]>
4039
4040 * regcache.c (init_regcache_descr): Overallocate the
4041 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4042 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4043 nr_raw_registers.
4044 (set_register_cached): Add range checking assertions. Use
4045 current_regcache.
4046
16057ec7 40472002-08-13 Mark Kettenis <[email protected]>
7d12f766
MK
4048
4049 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4050 numbers for MMX registers.
4051
7b4c2dce
AC
40522002-08-13 Andrew Cagney <[email protected]>
4053
4054 * i386-tdep.c (i386_gdbarch_init): Use
4055 generic_unwind_get_saved_register.
4056
1e03ad20
KB
40572002-08-13 Kevin Buettner <[email protected]>
4058
4059 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4060 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4061 target vector.
4062 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4063 Delete. Add comment regarding this now-deleted target method.
4064
548bcbec
SC
40652002-08-13 Stephane Carrez <[email protected]>
4066
4067 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4068 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4069 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4070 real PC and the page number (if it's within the memory bank window).
4071 (m68hc11_pseudo_register_write): Likewise when saving.
4072 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4073 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4074 (m68hc11_register_raw_size): And use 32-bit for it.
4075 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4076 16K memory bank is used by the prog; also use the virtual pc.
4077
7df11f59
SC
40782002-08-13 Stephane Carrez <[email protected]>
4079
4080 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4081 (m68hc11_gdbarch_init): Install it in gdbarch.
4082 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4083 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4084 (MSYMBOL_SIZE): New for documentation.
4085 (insn_return_kind): Enum to specify how a function returns.
4086 (frame_extra_info): Cleanup and record the return mode.
4087 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4088 register in address computation.
4089 (m68hc11_get_return_insn): New to obtain the return instruction used
4090 by the function.
4091 (m68hc11_frame_init_saved_regs): Take into account the return
4092 instruction used by the function for far and interrupt functions.
4093 (m68hc11_init_extra_frame_info): Take into account page register.
4094 (m68hc11_frame_args_address): Adjust according to the return mode.
4095 (show_regs): Print page register only when it's used.
4096
5706502a
SC
40972002-08-13 Stephane Carrez <[email protected]>
4098
4099 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4100 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4101 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4102 registers.
4103 (m68hc11_register_raw_size): Likewise.
4104
28fc6740
AC
41052002-08-13 Andrew Cagney <[email protected]>
4106
4107 * i386-tdep.c (i386_register_name): Handle mmx registers.
4108 (mmx_regnum_p): New function.
4109 (i386_mmx_names): New array.
4110 (mmx_num_regs): New variable.
4111 (i386_pseudo_register_read): New function.
4112 (i386_pseudo_register_write): New function.
4113 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4114
4115 * regcache.c (regcache_raw_read_unsigned): New function.
4116 (regcache_raw_read_signed): New function.
4117 * regcache.h (regcache_raw_read_unsigned): Declare.
4118 (regcache_raw_read_signed): Declare.
4119
a378f419
AC
41202002-08-13 Andrew Cagney <[email protected]>
4121
4122 * regcache.c (regcache_raw_read_as_address): Delete function.
4123 (regcache_cooked_read_signed): New function.
4124 (regcache_cooked_read_unsigned): New function.
4125 * regcache.h (regcache_cooked_read_signed): Declare.
4126 (regcache_cooked_read_unsigned): Declare.
4127 (regcache_raw_read_as_address): Delete declaration.
4128
4129 * blockframe.c (generic_read_register_dummy): Use
4130 regcache_cooked_read_unsigned.
4131 * i386-tdep.c (i386_extract_struct_value_address): Use
4132 regcache_cooked_read_unsigned.
4133
81967506
SC
41342002-08-13 Stephane Carrez <[email protected]>
4135
4136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4137 double sizes according to ELF ABI flags.
4138 (gdbarch_tdep): Record elf_flags.
4139
ffe1f3ee
SC
41402002-08-13 Stephane Carrez <[email protected]>
4141
4142 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4143 (m6812_prolog): They can appear in 68HC12 function prologue.
4144 (m68hc11_frame_chain): Cleanup.
4145
98216c5d
AC
41462002-08-12 Andrew Cagney <[email protected]>
4147
4148 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4149 declarations.
4150 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4151 (i386_linux_register_raw_size): Delete function.
4152 (i386_linux_init_abi): Update.
4153 * i386-tdep.c (i386_register_raw_size): Delete function.
4154 (i386_register_byte): Delete function.
4155 (i386_gdbarch_init): Update.
4156 (i386_register_size): Delete array.
4157 (i386_register_offset): Delete array.
4158
4159 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4160 (REGISTER_RAW_SIZE): Delete macro.
4161 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4162 (REGISTER_BYTE): Delete macro.
4163
3b19021e
AS
41642002-08-11 Aidan Skinner <[email protected]>
4165
4166 * ada-lang.c (ada_lookup_partial_symbol)
4167 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4168 prototype names so that grep ^func works properly.
4169
4170 * ada-lang.c (ada_array_element_type)
4171 (ada_lookup_partial_symbol): Fix typos in parameter list.
4172
4173 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4174 Fix prototype names so that grep ^func works properly.
4175
b063e7a2
AC
41762002-08-10 Andrew Cagney <[email protected]>
4177 Elena Zannoni <[email protected]>
4178 Martin M. Hunt <[email protected]>
4179
4180 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4181 (build_builtin_type_vec128i): Set the vector bit.
4182 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4183 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4184 (build_builtin_type_vec64): New function.
4185 (build_builtin_type_vec64i): New function.
4186 (build_gdbtypes): Initialize builtin_type_vec64 and
4187 builtin_type_vec64i.
4188
a7e3c2ad
AC
41892002-08-09 Andrew Cagney <[email protected]>
4190
4191 * regcache.c (regcache_dump): Compare the register offset
4192 with REGISTER_BYTE.
4193 * arch-utils.c (generic_register_byte): New function.
4194 * arch-utils.h (generic_register_byte): Declare.
4195 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4196 * gdbarch.h, gdbarch.c: Regenerate.
4197
af030b9a
AC
41982002-08-09 Andrew Cagney <[email protected]>
4199
4200 * regcache.c: Include "gdbcmd.h"
4201 (_initialize_regcache): Add commands "maintenance print
4202 registers", "maintenance print raw-registers" and "maintenance
4203 print cooked-registers".
4204 (enum regcache_dump_what): Define.
4205 (dump_endian_bytes): New function.
4206 (regcache_dump): New function.
4207 (regcache_print): New function.
4208 (maintenance_print_registers): New function.
4209 (maintenance_print_raw_registers): New function.
4210 (maintenance_print_cooked_registers): New function.
4211 * Makefile.in (regcache.o): Update dependencies.
4212
cb3d25d1
MS
42132002-08-09 Michael Snyder <[email protected]>
4214
4215 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4216 (mips_push_arguments): Correct some comments. Use paddr_nz
4217 for printing addresses in debug output. Replace static
4218 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4219 (mips_n32n64_push_arguments): New function, cloned from
4220 mips_push_arguments and tuned for the n32/n64 ABI.
4221 (mips_push_register): Buffer needs dynamic allocation.
4222 (mips_print_register): Ditto.
4223 (do_gp_register_row): Ditto.
4224 (mips_store_return_value): Ditto.
4225 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4226
2163ab9d
DH
42272002-08-09 Don Howard <[email protected]>
4228
4229 * memattr.c (mem_info_command): Print special case of upper bound
4230 as max CORE_ADDR + 1.
4231
b78bcb18
MS
42322002-08-08 Michael Snyder <[email protected]>
4233
4234 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4235 returns structs by ref if they're too big to fit in two registers.
4236
ffabd70d
KB
42372002-08-09 Kevin Buettner <[email protected]>
4238
4239 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4240 saved regs value.
4241 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4242 mips_find_saved_regs().
4243 (mips_pop_frame): Likewise.
4244
fbcdb4a3
KB
42452002-08-09 Kevin Buettner <[email protected]>
4246
4247 * blockframe.c (frame_saved_regs_register_unwind): Revise
4248 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4249 frames are in use.
4250
3c3bea1c
GS
42512002-08-09 Grace Sainsbury <[email protected]>
4252
4253 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4254 T-packets; the 'a' is not taken as a register number.
4255 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4256 (remote_stopped_data_address): New functions; add to target
4257 vector.
4258 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4259 prototypes to match other implementations of this
4260 function. replace integer argument with pointer -- the length
4261 field in the Z-packet is the length of what is pointed to or 1 if
4262 pointer is null. Add to target vector.
4263 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4264 target vector.
4265
4266 From Mark Salter:
4267 * remote.c (remote_wait): Add support to extract optional
4268 watchpoint information from T-packet. Ignore unrecognized
4269 optional info in T-packet.
4270 (remote_async_wait): Ditto.
4271
5d1d95de
CV
42722002-08-09 Corinna Vinschen <[email protected]>
4273
4274 * cli/cli-dump.c: Change fopen modes to use binary open modes
4275 as defined in include/fopen-bin.h throughout.
4276
c86b5b38
MS
42772002-08-08 Michael Snyder <[email protected]>
4278
4279 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4280
b30590dc
KB
42812002-08-08 Kevin Buettner <[email protected]>
4282
4283 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4284 assertion failure by returning early after a warning.
4285
498868ed
KB
42862002-08-08 Kevin Buettner <[email protected]>
4287
4288 * mips-tdep.c (mips_find_saved_regs): Make static.
4289 (mips_frame_init_saved_regs): New function.
4290 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4291 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4292 (mips_find_saved_regs): Delete declaration.
4293
b2dd6311
GS
42942002-08-08 Grace Sainsbury <[email protected]>
4295
3c3bea1c
GS
4296 * remote.c (remote_wait, remote_async_wait): Change
4297 thread_num from int to ULONGEST.
4298 (unpack_varlen_hex): Change result parameter from
4299 int * to ULONGEST *.
b2dd6311 4300
ea47855f
AC
43012002-08-08 Andrew Cagney <[email protected]>
4302
4303 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4304 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4305 powerpc*-*-*.
4306 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4307
69db8bae
AC
43082002-08-08 Andrew Cagney <[email protected]>
4309
4310 * gcore.c (override_derive_stack_segment): Delete variable.
4311 (preempt_derive_stack_segment): Delete function.
4312 (derive_stack_segment): Delete function.
4313 (default_derive_stack_segment): Renamed to derive_stack_segment.
4314 (override_derive_heap_segment): Delete variable.
4315 (preempt_derive_heap_segment): Delete function.
4316 (derive_heap_segment): Delete function.
4317 (default_derive_heap_segment): Rename to derive_heap_segment.
4318
cb811fe7
MS
43192002-08-06 Michael Snyder <[email protected]>
4320
4321 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4322 * mips-tdep.c (mips_EABI_use_struct_convention,
4323 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4324 New functions. (mips_use_struct_convention): Delete.
4325 (mips_gdbarch_init): set use_gdbarch_convention.
4326
8b389c40
MS
43272002-08-06 Michael Snyder <[email protected]>
4328
4329 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4330 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4331 mips_o32_reg_struct_has_addr): New functions.
4332 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4333
5c27f28a
AC
43342002-08-07 Andrew Cagney <[email protected]>
4335
4336 * regcache.c (pseudo_register): Delete function.
4337 (fetch_register): Delete function.
4338 (store_register): Delete function.
4339 (regcache_raw_read, legacy_read_register_gen): Use
4340 target_fetch_registers instead of fetch_register.
4341 (legacy_write_register_gen, regcache_raw_write): Use
4342 target_store_register instead of store_register.
4343 (write_register_bytes): Ditto.
4344
4345 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4346 (STORE_PSEUDO_REGISTER): Delete.
4347 * gdbarch.h, gdbarch.c: Regenerate.
4348
5b331675
CV
43492002-08-06 Corinna Vinschen <[email protected]>
4350
4351 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4352 write dump file binary.
4353
6acdf5c7
MS
43542002-08-05 Michael Snyder <[email protected]>
4355
4356 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4357 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4358 (mips_gdbarch_init): Set N32 target to be mips64.
4359
b2f01c35
KB
43602002-08-06 Kevin Buettner <[email protected]>
4361
4362 * frame.c (find_saved_register): Break out of loop once saved
4363 register address is found. Don't mention sparc in loop comment
4364 anymore.
4365
63db5580
KB
43662002-08-06 Kevin Buettner <[email protected]>
4367
4368 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4369 mips_default_saved_regsize to 8.
4370
5e34e75e
AC
43712002-08-06 Andrew Cagney <[email protected]>
4372
4373 * gcore.c: Do not include <sys/procfs.h>.
4374 * Makefile.in (gcore.o): Update dependencies.
4375
eb4c54a2
AC
43762002-08-06 Andrew Cagney <[email protected]>
4377
4378 * configure.tgt: Make arc-*-* obsolete.
4379 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4380 * MAINTAINERS: Make arc-elf obsolete.
4381 * arc-tdep.c: Make file obsolete.
4382 * config/arc/arc.mt: Ditto.
4383 * config/arc/tm-arc.h: Ditto.
4384
ced15480
TR
43852002-08-05 Theodore A. Roth <[email protected]>
4386
c1bab85b 4387 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4388
b4743822
AC
43892002-08-05 Andrew Cagney <[email protected]>
4390
4391 * mcore-tdep.c (mcore_gdbarch_init): Use
4392 generic_unwind_get_saved_register instead of
4393 generic_get_saved_register.
4394 * v850-tdep.c (v850_gdbarch_init): Ditto.
4395 * frv-tdep.c (frv_gdbarch_init): Ditto.
4396 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4397 * s390-tdep.c (s390_gdbarch_init): Ditto.
4398 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4399 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4400 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4401
3956d554
JB
44022002-08-05 Joel Brobecker <[email protected]>
4403
4404 * objfiles.h: Add missing #include "symfile.h"
4405
4406 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4407
8249c0d6
AC
44082002-08-04 Andrew Cagney <[email protected]>
4409
4410 From 2002-08-01 david carlton <[email protected]>:
4411 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4412 of FIELD_BITSIZE.
4413
b9d14705
DJ
44142002-08-04 Daniel Jacobowitz <[email protected]>
4415
4416 * NEWS: Cleanup and nitpick.
4417
dd73b9bb
AC
44182002-08-03 Andrew Cagney <[email protected]>
4419
4420 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4421
043a27f8
AC
44222002-08-03 Andrew Cagney <[email protected]>
4423
4424 * Makefile.in (gdbtk-bp.o): Update dependencies.
4425 (gdbtk-register.o): Ditto.
4426 (gdbtk-varobj.o): Ditto.
4427
46ce284d
AC
44282002-08-03 Andrew Cagney <[email protected]>
4429
4430 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4431 m68hc11_fetch_pseudo_register.
4432 (m68hc11_pseudo_register_write): Replace
4433 m68hc11_store_pseudo_register.
4434 (m68hc11_gdbarch_init): Update.
4435
b66d6d2e
AC
4436Fri Aug 2 15:53:50 2002 Andrew Cagney <[email protected]>
4437
4438 * gdbarch.sh: Include "gdb_string.h".
4439 * gdbarch.c: Regenerate.
4440
4441 * regcache.c: Include "gdb_string.h".
4442 * ax-general.c: Ditto.
4443 * varobj.c: Ditto.
4444 * std-regs.c: Ditto.
4445 * fbsd-proc.c: Ditto.
4446 * thread.c: Ditto.
4447
4448 * Makefile.in (regcache.o): Update dependencies.
4449 (thread.o, gdbarch.o): Ditto.
4450 (ax-general.o, gdbarch.o): Ditto.
4451 (varobj.o, std-regs.o): Ditto.
4452 (fbsd-proc.o): Specify dependencies.
4453
29e1842b
AC
44542002-08-02 Andrew Cagney <[email protected]>
4455
4456 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4457 regnum.
4458 (regcache_cooked_write): Ditto.
4459
68365089
AC
44602002-08-02 Andrew Cagney <[email protected]>
4461
4462 * regcache.c (regcache_cooked_read): New function.
4463 (regcache_cooked_write): New function.
4464 (read_register_gen): Rewrite using regcache_cooked_read.
4465 (write_register_gen): Rewrite using regcache_cooked_write.
4466
4467 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4468 Declare.
4469
d8124050
AC
44702002-08-02 Andrew Cagney <[email protected]>
4471
4472 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4473 Replace the architecture methods register_read and register_write.
4474 * gdbarch.h, gdbarch.c: Regenerate.
4475 * regcache.c (init_regcache_descr): Update.
4476 (read_register_gen): Update.
4477 (write_register_gen): Update.
4478 (supply_register): Update comment.
4479
4480 * sh-tdep.c (sh_gdbarch_init): Update.
4481 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4482 `regcache' and `gdbarch' parameters. Make `buffer' a void
4483 pointer. Update code.
4484 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4485 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4486 void pointer. Update code.
4487 (sh64_register_write): Delete.
4488 (sh4_register_read): Delete.
4489 (sh64_register_read): Delete.
4490 (sh4_register_write): Delete.
4491 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4492 void pointer, `to' parameter a void pointer.
4493 (sh_sh64_register_convert_to_raw): Ditto.
4494
a6425924
KB
44952002-08-01 Kevin Buettner <[email protected]>
4496
4497 * mips-tdep.c (mips_register_virtual_type): Use architecture
4498 invariant return values.
4499
ff5922b5
AC
45002002-08-01 Andrew Cagney <[email protected]>
4501
4502 * linux-proc.c: Include "gdb_string.h".
4503 * Makefile.in (linux-proc.o): Update dependency list.
4504
32a6503c
KB
45052002-08-01 Kevin Buettner <[email protected]>
4506
4507 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4508 comment.
4509
ccaa32c7
GS
45102002-08-01 Grace Sainsbury <[email protected]>
4511
4512 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4513 to_insert_watchpoint, to_remove_watchpoint,
4514 to_stopped_by_watchpoint, to_stopped_data_address,
4515 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4516 target vecctor. Define their corresponding macros so they call
4517 them.
4518
4519 * target.c: Add default and debug versions of for
4520 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4521 to_insert_watchpoint, to_remove_watchpoint,
4522 to_stopped_by_watchpoint, to_stopped_data_address,
4523 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4524
78fde5f8
KB
45252002-08-01 Kevin Buettner <[email protected]>
4526
4527 * mips-tdep.c (mips_register_virtual_type): New function.
4528 (mips_gdbarch_init): Register mips_register_virtual_type()
4529 with gdbarch machinery.
4530 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4531 this file instead of tm-bigmips.h.
4532 (MIPS_REGSIZE): Delete this macro.
4533 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4534 multiarch version in mips-tdep.c will be found.
4535
db034ac5
AC
45362002-08-01 Andrew Cagney <[email protected]>
4537
4538 * NEWS: Menion that CHILL has been made obsolete.
4539
4540 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4541 * stabsread.c (read_range_type): Ditto.
4542 * gdbtypes.h: Ditto.
4543 * language.c (binop_type_check): Ditto.
4544 (binop_result_type): Ditto.
4545 (integral_type): Ditto.
4546 (character_type): Ditto.
4547 (string_type): Ditto.
4548 (boolean_type): Ditto.
4549 (structured_type): Ditto.
4550 (lang_bool_type): Ditto.
4551 (binop_type_check): Ditto.
4552 * language.h (_LANG_chill): Ditto.
4553 * dwarfread.c (set_cu_language): Ditto.
4554 * dwarfread.c (CHILL_PRODUCER): Ditto.
4555 * dwarfread.c (handle_producer): Ditto.
4556 * expression.h (enum exp_opcode): Ditto.
4557 * eval.c: Ditto for comments.
4558 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4559 * expprint.c (print_subexp): Ditto.
4560 (print_subexp): Ditto.
4561 * valops.c (value_cast): Ditto.
4562 (search_struct_field): Ditto.
4563 * value.h (COERCE_VARYING_ARRAY): Ditto.
4564 * symfile.c (init_filename_language_table): Ditto.
4565 (add_psymbol_with_dem_name_to_list): Ditto.
4566 * valarith.c (value_binop): Ditto.
4567 (value_neg): Ditto.
4568 * valops.c (value_slice): Ditto.
4569 * symtab.h (union language_specific): Ditto.
4570 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4571 (SYMBOL_DEMANGLED_NAME): Ditto.
4572 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4573 * defs.h (enum language): Ditto.
4574 * symtab.c (got_symtab): Ditto.
4575 * utils.c (fprintf_symbol_filtered): Ditto.
4576
4577 * ch-typeprint.c: Make file obsolete.
4578 * ch-valprint.c: Make file obsolete.
4579 * ch-lang.h: Make file obsolete.
4580 * ch-exp.c: Make file obsolete.
4581 * ch-lang.c: Make file obsolete.
4582
4583 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4584 CHILL_LIB.
4585 (TARGET_FLAGS_TO_PASS): Ditto.
4586 (CHILLFLAGS): Obsolete.
4587 (CHILL): Obsolete.
4588 (CHILL_FOR_TARGET): Obsolete.
4589 (CHILL_LIB): Obsolete.
4590 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4591 ch-valprint.c.
4592 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4593 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4594 ch-lang.o.
4595 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4596 targets.
4597
8aaf0b47
JB
45982002-07-31 Joel Brobecker <[email protected]>
4599
4600 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4601 This does not change anything at the moment, but will be helpful
4602 later when full Ada support is integrated.
4603
f3a7b3a5
KB
46042002-07-31 Kevin Buettner <[email protected]>
4605
4606 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4607 help message.
4608
fb850278
KB
46092002-07-31 Kevin Buettner <[email protected]>
4610
4611 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4612 and save it in a local variable. Use variable in later test.
4613
e3bddbfa
KB
46142002-07-31 Kevin Buettner <[email protected]>
4615
4616 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4617 test. (Thanks to Daniel Jacobowitz.)
4618
28d169de
KB
46192002-07-31 Kevin Buettner <[email protected]>
4620
4621 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4622 (mips_abi_strings): Add "n64".
4623 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4624
7fe7e44e
KB
46252002-07-31 Kevin Buettner <[email protected]>
4626
4627 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4628 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4629
c6caf090
KB
46302002-07-31 Kevin Buettner <[email protected]>
4631
4632 * utils.c (host_pointer_to_address, address_to_host_pointer):
4633 Use gdb_assert() instead of explicit call to internal_error().
4634
c41669e0
KB
46352002-07-30 Kevin Buettner <[email protected]>
4636
4637 * Makefile.in (rs6000-nat.o): Update dependencies.
4638
4639 From Nicholas Duffek:
4640 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4641 (aix-thread.o): New rule.
4642 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4643 * config/powerpc/aix432.mh: New file.
4644
2fda4977
DJ
46452002-07-30 Daniel Jacobowitz <[email protected]>
4646
4647 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4648 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4649 (fetch_core_registers, ppc_linux_supply_gregset)
4650 (ppc_linux_supply_fpregset): New functions.
4651 (ppc_linux_regset_core_fns): New.
4652 (_initialize_ppc_linux_tdep): Call add_core_fns.
4653 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4654 and ppc_linux_supply_gregset.
4655 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4656 (supply_fpregset): Call ppc_linux_supply_fpregset.
4657 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4658 corelow.o.
4659 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4660
729051e6
DJ
46612002-07-30 Daniel Jacobowitz <[email protected]>
4662
4663 * symtab.c (lookup_symbol): Demangle before lowercasing.
4664
5f8a3188
AC
46652002-07-30 Andrew Cagney <[email protected]>
4666
4667 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4668 declaration.
4669 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4670 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4671 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4672 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4673 "gdb_string.h".
4674 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4675 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4676 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4677 (avr-tdep.o, mon960-rom.o): Ditto.
4678 (aout_stabs_gnu_h): Define.
4679 (symtab_h): Remove $(gdb_obstack_h).
4680
67f07146
JB
46812002-07-30 Jim Blandy <[email protected]>
4682
4683 Patch from David Carlton <[email protected]>:
4684 * gdbinit.in: Move the `dir' commands that add GDB's own source
4685 directory to the search path to the end, so that the `gdb' source
4686 directory will be searched first.
4687
04ea0df1
AC
46882002-07-29 Andrew Cagney <[email protected]>
4689
4690 * gdb_obstack.h: New file.
4691 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4692 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4693 * objfiles.h: Include "gdb_obstack.h".
4694 * Makefile.in (gdb_obstack_h): Define.
4695 (symtab_h): Add $(gdb_obstack_h).
4696 (objfiles_h): Add $(gdb_obstack_h).
4697
4698 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4699 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4700 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4701 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4702 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4703 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4704 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4705 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4706
4707 * Makefile.in (bcache.o): Update dependencies.
4708 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4709 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4710 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4711 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4712 (stabsread.o, symfile.o, symmisc.o): Ditto.
4713 (symtab.o, typeprint.o, macroexp.o): Ditto.
4714 (macrotab.o, mdebugread.o): Ditto.
4715 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4716 (coff_ecoff_h, aout_aout64_h): Define.
4717 (aout_stabs_gnu_h, libaout_h): Define.
4718
d138e37a
AC
47192002-07-29 Andrew Cagney <[email protected]>
4720
4721 * regcache.c (struct regcache_descr): Rename nr_registers to
4722 nr_cooked_registers. Revise comments describing the structure
4723 member fields.
4724 (init_regcache_descr): Update.
4725 (init_legacy_regcache_descr): Update.
4726 (read_register_gen, write_register_gen): When a cooked register in
4727 the raw register range, directly access the value from the raw
4728 register cache.
4729
460e6ec3
AC
47302002-07-29 Andrew Cagney <[email protected]>
4731
4732 * z8k-tdep.c: Do not include "obstack.h".
4733 * h8300-tdep.c, h8500-tdep.c: Ditto.
4734 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4735 * valprint.c, v850-tdep.c: Ditto.
4736 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4737 * mn10200-tdep.c: Ditto.
4738
4739 * Makefile.in (z8k-tdep.o): Update dependencies.
4740 (m68hc11-tdep.o, valprint.o): Ditto.
4741 (v850-tdep.o, d10v-tdep.o): Ditto.
4742 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4743 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4744 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4745 (sh_opc_h, gdb_sim_sh_h): Define.
4746 (elf_sh_h, elf_bfd_h): Define.
4747 (opcode_m68hc11_h): Define.
4748 (OPCODES_SRC, OPCODES_DIR): define.
4749 (OPCODES): Use $(OPCODES_DIR).
4750 (gdb_sim_d10v_h): Rename sim_d10v_h.
4751 (gdb_sim_arm_h): Rename sim_arm_h.
4752
790c9cf0
KB
47532002-07-26 Kevin Buettner <[email protected]>
4754
4755 * utils.c (host_pointer_to_address, address_to_host_pointer):
4756 Change internal_error() message to indicate function responsible
4757 for the error.
4758
9647fa49
KB
47592002-07-26 Kevin Buettner <[email protected]>
4760
4761 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4762 calls to local_hex_string_custom().
4763
dabbe2c0
KB
47642002-07-26 Kevin Buettner <[email protected]>
4765
4766 * irix5-nat.c: Move IRIX shared library support from here...
4767 * solib-irix.c: ...to here. Revised substantially to work with
4768 generic solib framework.
4769
b96d0a4e
KB
4770 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4771 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4772 * mips-irix-tdep.c: New file.
4773
313fb2f6
KB
4774 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4775 (mips-irix-tdep.o, solib-irix.o): New rules.
4776 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4777 solib-irix.o.
4778 * config/mips/irix6.mt (TDEPFILES): Likewise.
4779 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4780
ab2eaf26
KB
47812002-07-26 Kevin Buettner <[email protected]>
4782
177e4768 4783 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4784 disabled (via ``#if 0'') includes.
4785
7244546a
KB
47862002-07-26 Kevin Buettner <[email protected]>
4787
4788 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4789 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4790 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4791 Add support for the fpscr register.
4792 * rs6000-nat.c (regmap, fetch_inferior_registers)
4793 (store_inferior_registers, fetch_core_registers): Likewise.
4794
dd7be90a
KB
47952002-07-26 Kevin Buettner <[email protected]>
4796
4797 * rs6000-nat.c (language.h): Include.
4798 (special_regs): Delete this array.
4799 (regmap): New function.
4800 (fetch_register, store_register): Use regmap() to map gdb
4801 register numbers to ptrace register numbers. Also, use
4802 outputs from regmap() to make decisions regarding type of
4803 ptrace() call to make. In particular, don't compare against
4804 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4805 (fetch_inferior_registers, store_inferior_registers): Where
4806 possible, obtain register numbers from tdep struct. Don't
4807 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4808 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4809 (LAST_UISA_SP_REGNUM): Delete.
4810
11bf77db
KB
48112002-07-25 Kevin Buettner <[email protected]>
4812
4813 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4814 (fetch_registers, store_register, fetch_core_registers): Don't
4815 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4816 regcache_collect() as appropriate.
4817 (find_toc_address): Format hex address with local_hex_string().
4818
06afebeb
AC
48192002-07-25 Andrew Cagney <[email protected]>
4820
4821 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4822 bfd/elf32-frv.c.
4823
8c554d79
TT
48242002-07-24 Tom Tromey <[email protected]>
4825
4826 * jv-exp.y: Marked all strings with _().
4827 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4828 internal_error.
4829 (MethodInvocation, CastExpression, parse_number, yyerror,
4830 java_type_from_name, push_expression_name, yylex): Typo fixes.
4831
e4c242d9
DJ
48322002-07-24 Daniel Jacobowitz <[email protected]>
4833
4834 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4835 (tee_file_flush, tee_file_write, tee_file_fputs)
4836 (tee_file_isatty): New.
4837 * ui-file.h (tee_file_new): Add prototype.
4838
ebf56fd3
AS
48392002-07-24 Aidan Skinner <[email protected]>
4840
4841 * ada-lang.c: Change k&r style function definitions to prototyped
4842 form.
4843 * ada-typeprint.c: Change k&r style function definitions to prototyped
4844 form.
4845 * ada-valprint.c: Change k&r style function definitions to prototyped
4846 form.
4847
7fb623f7
AC
48482002-07-24 Andrew Cagney <[email protected]>
4849
4850 * README: Remove reference to remote-bug.
4851 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4852 remote-bug.c.
4853 (m88k-nat.o): Delete rule.
4854 (m88k-tdep.o): Delete rule.
4855 (remote-bug.o): Delete rule.
4856 * MAINTAINERS: Mark as obsolete.
4857 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4858 * m88k-tdep.c: Make file obsolete.
4859 * config/m88k/m88k.mh: Ditto.
4860 * config/m88k/delta88v4.mh: Ditto.
4861 * config/m88k/delta88v4.mt: Ditto.
4862 * config/m88k/delta88.mt: Ditto.
4863 * config/m88k/delta88.mh: Ditto.
4864 * remote-bug.c: Ditto.
4865 * config/m88k/tm-delta88.h: Ditto.
4866 * config/m88k/nm-delta88v4.h: Ditto.
4867 * config/m88k/xm-delta88.h: Ditto.
4868 * config/m88k/xm-dgux.h: Ditto.
4869 * config/m88k/tm-m88k.h: Ditto.
4870 * config/m88k/nm-m88k.h: Ditto.
4871 * config/m88k/tm-delta88v4.h: Ditto.
4872 * m88k-nat.c: Ditto.
4873 * cxux-nat.c: Ditto.
4874 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4875 and m88*-*-* obsolete.
4876 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4877 m88*-*-* obsolete.
4878
37611a2b
AC
48792002-07-24 Andrew Cagney <[email protected]>
4880
4881 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4882 constant. Same for local pointer variables.
4883 (extract_signed_integer): Ditto.
4884 * defs.h (extract_unsigned_integer): Update.
4885 (extract_signed_integer): Update.
4886
1aaa5f99
AC
48872002-07-24 Andrew Cagney <[email protected]>
4888
4889 * regcache.c (regcache_raw_write): Change buf parameter to a
4890 constant void pointer.
4891 (regcache_raw_read): Change buf parameter to a void pointer.
4892 (legacy_write_register_gen): Change myaddr parameter a constant
4893 void pointer.
4894 (supply_register): Change val parameter to a const void pointer.
4895 * regcache.h (regcache_raw_write): Update declaration.
4896 (regcache_raw_read): Update declaration.
4897 (supply_register): Update declaration.
4898
b4f5539f
TT
48992002-07-24 Tom Tromey <[email protected]>
4900
4901 * defs.h (gdb_readline_wrapper): Declare.
4902 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4903 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4904 * top.c (gdb_readline_wrapper): New function.
4905 (command_line_input): Use it.
4906
0818c12a
AC
49072002-07-24 Andrew Cagney <[email protected]>
4908
4909 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4910 regcache_read and regcache_write.
4911 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4912 * regcache.c: Update.
4913 * sh-tdep.c (sh64_push_arguments): Update comment.
4914 (sh_pseudo_register_read): Update.
4915 (sh_pseudo_register_write): Update.
4916 (sh4_register_read): Update.
4917 (sh4_register_write): Update.
4918 (sh64_pseudo_register_read): Update.
4919 (sh64_pseudo_register_write): Update.
4920 (sh64_register_read): Update.
4921 (sh64_register_write): Update.
4922 * i386-tdep.c (i386_extract_return_value): Update.
4923 (i386_extract_struct_value_address): Update.
4924 (i386_extract_return_value): Update.
4925 * blockframe.c (generic_read_register_dummy): Update.
4926 (generic_call_dummy_register_unwind): Update
4927 * infrun.c (write_inferior_status_register): Update.
4928
f7321c06
JB
49292002-07-23 Jim Blandy <[email protected]>
4930
4931 * parser-defs.h (expression_context_pc): Make this extern.
4932 (Thanks to Michael Snyder.)
4933
2037aebb
AC
49342002-07-23 Andrew Cagney <[email protected]>
4935
4936 GDB 5.2.1 released from 5.2 branch.
4937 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4938 * README: Update to mention 5.2.1.
4939
66504d44
MS
49402002-07-23 Mark Salter <[email protected]>
4941
4942 * remote.c (remote_read_bytes): Fix check for error.
4943
27bae383
KB
49442002-07-22 Kevin Buettner <[email protected]>
4945
4946 * aix-thread.c (language.h): Include.
4947 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4948 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4949 Print newlines at end of debug messages.
4950 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4951 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4952
49532002-07-22 Kevin Buettner <[email protected]>
4954
4955 * aix-thread.c (ppc-tdep.h): Include.
4956 (special_register_p): New function.
4957 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4958 (store_regs_user_thread): Use register number information from
4959 gdbarch_tdep struct instead of hardcoded offsets relative to
4960 FIRST_UISA_SP_REGNUM.
4961 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4962 special_register_p() instead of using FPLAST_REGNUM and
4963 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4964 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4965 will be MQ's register number.
4966
49672002-07-22 Michael Snyder <[email protected]>
206d3d3c
KB
4968
4969 * aix-thread.c (ops): Rename to aix_thread_ops.
4970 (base_ops): Rename to base_target.
4971 (ops_attach): Rename to aix_thread_attach.
4972 (ops_detach): Rename to aix_thread_detach.
4973 (ops_resume): Rename to aix_thread_detach.
4974 (ops_wait): Rename to aix_thread_wait.
4975 (ops_kill): Rename to aix_thread_kill.
4976 (init_ops): Rename to init_aix_thread_ops.
4977 (ops_fetch_register): Rename to aix_thread_fetch_register.
4978 (ops_store_register): Rename to aix_thread_store_register.
4979 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4980 (ops_thread_alive): Rename to aix_thread_thread_alive.
4981 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4982 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4983 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4984 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4985 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4986 (store_regs_lib): Rename to store_regs_user_thread.
4987 (store_regs_kern): Rename to store_regs_kernel_thread.
4988
27bae383 49892002-07-22 Michael Snyder <[email protected]>
cbe92db4
KB
4990
4991 * aix-thread.c (ops_prepare_to_store): Eliminate.
4992 (init_ops): Don't initialize ops.prepare_to_store.
4993 (store_regs_kern): Pre-fetch register buffers from child,
4994 because some registers may not be in the cache. Copy
4995 regs from register cache only if they are cached.
4996 (store_regs_lib): Copy regs from register cache only
4997 if they are cached.
4998 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4999 fill_gprs64): Ditto.
5000
61c5da0b
KB
50012002-07-22 Kevin Buettner <[email protected]>
5002
5003 * aix-thread.c (gdb_assert.h): Include.
5004 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5005 register sizes (from register cache) match size of buffer holding
5006 register data.
5007 (fill_sprs32): Change parameter types to match those in the ptrace()
5008 buffer.
5009 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5010 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5011
50122002-07-22 Michael Snyder <[email protected]>
5013
5014 * aix-thread.c (supply_sprs64): Cosmetic change.
5015 (supply_sprs32): Cosmetic change.
5016 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5017 (fill_sprs64): Use regcache_collect instead of read_register.
5018 (store_regs_lib): Use regcache_collect instead of
5019 read_register. Use fill_sprs32 instead of fill_sprs64,
5020 if debugging a 32-bit architecture.
5021 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5022 out of the register cache, instead of passing a pointer into
5023 the register cache directly to ptrace. Use regcache_collect
5024 insteaad of read_register.
5025 (ops_prepare_to_store): Use target_read_registers instead
5026 of read_register_bytes.
5027
36479eb1
AS
50282002-07-20 Aidan Skinner <[email protected]>
5029
5030 * MAINTAINERS: Add self under write after approval.
5031
80ae6ee2
AS
50322002-07-20 Aidan Skinner <[email protected]>
5033
5034 * ada-tasks.c: Change k&r style function definitions to prototyped
5035 form.
5036
8a8ab2b9
AC
50372002-07-19 Andrew Cagney <[email protected]>
5038
5039 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5040 * x86-64-tdep.c: Include "objfiles.h".
5041 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5042 in_plt_section. From 2002-07-18 Michal Ludvig <[email protected]>.
5043
fb16b900
ML
50442002-07-17 Michal Ludvig <[email protected]>
5045
5046 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5047 (update_context): Initialise cfa variable.
5048
0fe7bf7b
MS
50492002-07-17 Michael Snyder <[email protected]>
5050
5051 * aix-thread.c: Shorten some long lines.
5052 Bring comments into line with code spec.
5053
488f131b
JB
50542002-07-18 Joel Brobecker <[email protected]>
5055
5056 * infrun.c: Re-indent using gdb_indent.sh.
5057
46c415d2
JB
50582002-07-18 Joel Brobecker <[email protected]>
5059
5060 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5061 Leave the indentation temporarily untouched, to minimize the diffs.
5062
cdecafbe
EZ
50632002-07-18 Elena Zannoni <[email protected]>
5064
5065 * stabsread.c: Make os9k sections of the code obsolete,
5066 for real this time.
5067 * stabsread.h: Make os9k sections of the code obsolete.
5068
7b6aa020
ML
50692002-07-18 Michal Ludvig <[email protected]>
5070
09ec9b38
ML
5071 * linux-low.c (regsets_store_inferior_registers): Add free()
5072 at the end of a loop to prevent memory leak.
5073 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5074 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5075 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5076 line a comment.
4894ac5d 5077 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5078
233282cd
JB
50792002-07-17 Jim Blandy <[email protected]>
5080
5081 * macrocmd.c (info_macro_command): Remove newline from error
5082 message.
5083
7b6aa020 50842002-07-17 J"orn Rennecke <[email protected]>
2f14585c
JR
5085
5086 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5087 (sh_gdbarch_init): Use it for sh-dsp.
5088
f7ef9339
KB
50892002-07-16 Kevin Buettner <[email protected]>
5090
5091 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5092 64-bit DWARF2 format.
5093
8dd72958
JB
50942002-07-16 Joel Brobecker <[email protected]>
5095
5096 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5097 <sys/proc.h> when not available.
5098
a99a9e1b
AC
50992002-07-16 Andrew Cagney <[email protected]>
5100
5101 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5102 * stabsread.c: Make os9k sections of the code obsolete.
5103 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5104 * config/i386/i386os9k.mt: Make file obsolete.
5105 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5106 (COMMON_OBS): Remove os9kread.o
5107 (SFILES): Remove os9kread.c.
5108 (os9kread.o, remote-os9k.o): Make target obsolete.
5109 * remote-os9k.c: Make file obsolete.
5110 * os9kread.c: Make file obsolete.
5111 * Makefile.in
5112
7a3085c1
AC
51132002-07-16 Andrew Cagney <[email protected]>
5114
5115 * NEWS: Mention that the FR30 has been made obsolete.
5116 * fr30-tdep.c: Make file obsolete.
5117 * config/fr30/tm-fr30.h: Ditto.
5118 * config/fr30/fr30.mt: Ditto.
5119 * configure.tgt: Make fr30-*-elf obsolete.
5120 * MAINTAINERS: Make fr30-elf obsolete.
5121
28a93f5a
PM
51222002-07-16 Pierre Muller <[email protected]>
5123
5124 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5125 found is not inside a section.
5126
be006b8b
KB
51272002-07-15 Kevin Buettner <[email protected]>
5128
5129 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5130 strerror().
5131 (pdc_realloc): Use xrealloc() instead of realloc().
5132
14fa3751
KB
51332002-07-15 Kevin Buettner <[email protected]>
5134
5135 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5136 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5137 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5138 macros.
5139
42cc437f
KB
51402002-07-15 Kevin Buettner <[email protected]>
5141
5142 * aix-thread.c (ptrace_check): Eliminate goto.
5143 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5144 problem.
5145
8e2c28d4
KB
51462002-07-15 Kevin Buettner <[email protected]>
5147
5148 * aix-thread.c (gdbcmd.h): Include.
5149 (DEBUG, DBG, DBG2, dbg): Eliminate.
5150 (debug_aix_thread): New static global.
5151 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5152 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5153 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5154 invocations to DBG and DBG2 macros to test against
5155 ``debug_aix_thread'' and call fprintf_unfiltered().
5156 (_initialize_aix_thread): Add new command "set debug aix-thread".
5157
30413464
AC
51582002-07-15 Andrew Cagney <[email protected]>
5159
5160 From Gerhard Tonn <[email protected]>:
5161 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5162 instead of supply_register.
5163
7c43edc1
AC
51642002-07-15 Andrew Cagney <[email protected]>
5165
5166 * dwarf2cfi.c: Include "gdb_assert.h".
5167 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5168 non-NULL.
5169 (update_context): Do not use __func__. Add missing ``break''.
5170 (update_context): Do not use __func__.
5171
9364a0ef
EZ
51722002-07-15 Elena Zannoni <[email protected]>
5173
5174 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5175 and its setting. Set gdbarch instruction printing functions
5176 directly. For non-rs6000 case use new function
5177 gdb_print_insn_powerpc.
5178 (gdb_print_insn_powerpc): New function.
5179
3fbeef0b
AC
51802002-07-13 Andrew Cagney <[email protected]>
5181
92eb23c5 5182 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5183 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5184 * configure.tgt: Mark d30v-*-* as obsolete.
5185 * d30v-tdep.c: Mark file as obsolete.
5186 * config/d30v/d30v.mt: Ditto.
5187 * config/d30v/tm-d30v.h: Ditto.
5188
aacb1f0a
AS
51892002-07-13 Aidan Skinner <[email protected]>
5190
5191 * ada-tasks.c (add_task_entry): replace calls to
5192 malloc() with xmalloc
5193 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5194
5195 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5196 ada_finish_decode_line_1, all_sals_for_line
5197 ada_breakpoint_rewrite): replace calls to free() with xfree()
5198
c11d79f2
KB
51992002-07-12 Kevin Buettner <[email protected]>
5200
5201 From Nicholas Duffek (with minor changes by Martin Hunt,
5202 Louis Hamilton, and Kevin Buettner):
5203 * aix-thread.c: New file.
5204
8e19ed76
PS
52052002-07-12 Petr Sorfa <[email protected]>
5206
5207 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5208 complaint for invalid attribute class or form.
5209 (read_func_scope): DW_AT_frame_base
5210 better handling of DW_AT_block*.
5211 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5212 better handling of DW_AT_block*.
5213 (read_common_block): DW_AT_location
5214 better handling of DW_AT_block*.
5215 (read_partial_die): DW_AT_location better handling
5216 of DW_AT_block*.
5217 (new_symbol): DW_AT_external better handling of
5218 DW_AT_block*. Proper initialization of variable
5219 "addr".
5220 (attr_form_is_block): New function that returns true
5221 if the attribute's form is of DW_FORM_block*.
5222
295401f7
DJ
52232002-07-12 Peter Schauer <[email protected]>
5224
5225 * valops.c (find_method_list): Remove comment about
5226 removed STATIC_MEMFUNCP argument.
5227 (value_find_oload_method_list): Likewise.
5228
e42dc924
KB
52292002-07-12 Kevin Buettner <[email protected]>
5230
5231 From Nicholas Duffek:
5232 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5233 target_new_objfile_hook.
5234
6904b546
KB
52352002-07-12 Kevin Buettner <[email protected]>
5236
5237 From Nicholas Duffek:
5238 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5239 csect.
5240
53fe9346
AC
52412002-07-12 Andrew Cagney <[email protected]>
5242
5243 * MAINTAINERS: Mention --enable-sim-build-warnings.
5244 (m68hc11-elf): Disable sim build warnings.
5245 (m32r-elf): Mark as broken obsolete candidate.
5246 (x86_64-linux-gnu): Mark as buildable with -Werror.
5247 (arm-elf): Change -w to ``,'' which enables warnings but not
5248 -Werror.
5249
af5f3db6
AC
52502002-07-12 Andrew Cagney <[email protected]>
5251
5252 * bcache.h: Update copyright.
5253 (struct bstring, struct bcache): Move definition to "bcache.c".
5254 Replaced by opaque declaration.
5255 (bcache_xfree): Replace free_bcache.
5256 (bcache_xmalloc, bcache_memory_used): Declare.
5257
5258 * bcache.c: Update copyright.
5259 (struct bstring, struct bcache): Moved to here from "bcache.h".
5260 Update comments.
5261 (bcache_xmalloc, bcache_memory_used): New functions.
5262 (bcache_xfree): Replace function free_bcache.
5263
5264 * Makefile.in (objfiles.o): Add $(bcache_h).
5265 (objfiles_h): Remove $(bcache_h).
5266 (symfile.o): Add $(bcache_h).
5267
5268 * symmisc.c: Update copyright.
5269 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5270 (print_objfile_statistics): Use bcache_memory_used.
5271
5272 * symfile.c: Include "bcache.h".
5273 (reread_symbols): Use bcache_xfree.
5274 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5275 (add_psymbol_to_list): Pass psymbol_cache by value.
5276 (add_psymbol_with_dem_name_to_list): Ditto.
5277
5278 * objfiles.h: Update copyright.
5279 (struct bcache): Declare opaque. Do not include "bcache.h".
5280 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5281 bcache'' pointers.
5282 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5283
5284 * objfiles.c: Include "bcache.h". Update copyright.
5285 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5286 macro_cache.
5287 (free_objfile): Use bcache_xfree.
5288
444199e7
GS
52892002-07-11 Grace Sainsbury <[email protected]>
5290
5291 * monitor.c (monitor_fetch_register): Make name a constant.
5292 (monitor_store_register): Same.
5293
261397f8
DJ
52942002-07-11 Daniel Jacobowitz <[email protected]>
5295
5296 Based on patch from Daniel Berlin <[email protected]>.
5297 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5298 (finish_block) For non-function blocks, hash the symbol table. For
5299 function blocks, mark the symbol table as unhashed.
5300 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5301 (msymbol_hash_iw): Likewise.
5302 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5303 value.
5304 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5305 (lookup_minimal_symbol): Likewise for both.
5306 * symtab.h (struct block): Add `hashtable' flag. Comment the
5307 hashtable.
5308 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5309 (ALL_BLOCK_SYMBOLS): Update.
5310 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5311 (struct symbol): Add `hash_next' pointer.
5312 * symtab.c (lookup_block_symbol): Search using the hash table when
5313 possible.
5314 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5315 (search_symbols, find_addr_symbol): Likewise.
5316
5317 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5318 (read_dst_symtab): Likewise.
5319 * jv-lang.c (get_java_class_symtab): Likewise.
5320 * mdebugread.c: Include "gdb_assert.h".
5321 (shrink_block): Assert that the block being modified is not hashed.
5322 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5323 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5324 symbols.
5325 (dump_symtab): Recognize hashed blocks.
5326 * printcmd.c (print_frame_args): Assert that function blocks do not
5327 have hashed symbol tables.
5328 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5329 (fill_in_ada_prototype, debug_print_block): Likewise.
5330 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5331
6f0eaa01
CV
53322002-07-11 Corinna Vinschen <[email protected]>
5333
5334 * stack.c (print_frame): Use result of frame_address_in_block()
5335 instead of fi->pc when evaluating symbols.
5336 (backtrace_command_1): Ditto.
5337
a208b0cb
AC
53382002-07-11 Andrew Cagney <[email protected]>
5339
5340 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5341 Make static.
5342
5343 * arm-tdep.c (arm_register_name): Make return type constant.
5344
a6b6b089
AC
53452002-07-10 Andrew Cagney <[email protected]>
5346
5ae5f592
AC
5347 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5348 prototype.
5349 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5350 * s390-tdep.c (s390_fp_regnum): Ditto.
5351 (s390_read_fp): Ditto.
5352 (s390_pop_frame): Ditto.
5353 (_initialize_s390_tdep): Ditto.
5354 * remote.c (get_remote_state): Ditto.
5355 * procfs.c (mappingflags): Ditto.
5356 * memattr.c (_initialize_mem): Ditto.
5357 * mcore-tdep.c (mcore_pop_frame): Ditto.
5358 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5359 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5360 * language.c (set_case_str): Ditto.
5361 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5362 * frv-tdep.c (new_variant): Ditto.
5363 (frv_stopped_data_address): Ditto.
5364 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5365 (context_alloc): Ditto.
5366 (frame_state_alloc): Ditto.
5367 (unwind_tmp_obstack_init): Ditto.
5368 (unwind_tmp_obstack_free): Ditto.
5369 (cfi_read_fp): Ditto.
5370 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5371 (cris_pop_frame): Ditto.
5372 * c-lang.c (scanning_macro_expansion): Ditto.
5373 (finished_macro_expansion): Ditto.
5374 (c_preprocess_and_parse): Ditto.
5375 * gdbarch.sh: Ditto.
5376 * gdbarch.h, gdbarch.c: Regenerate.
5377 * config/mn10200/tm-mn10200.h: Adjust indentation.
5378 * target.c: Adjust indentation.
5379 * symtab.h: Adjust indentation.
5380 * stabsread.h: Adjust indentation.
5381 * remote-es.c: Adjust indentation.
5382 * os9kread.c: Adjust indentation.
5383
53842002-07-10 Andrew Cagney <[email protected]>
5385
a6b6b089
AC
5386 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5387 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5388
a1789893
GS
53892002-07-10 Grace Sainsbury <[email protected]>
5390
5391 * NEWS: Mention m68k, mcore multi-arching.
5392 * MAINTAINERS: Change status of m68k, mcore to reflect
5393 multi-arching.
5394
02f0d45d
DJ
53952002-07-10 Daniel Jacobowitz <[email protected]>
5396
5397 * valops.c (find_overload_match): Free oload_syms.
5398
f15f768e
JB
53992002-07-09 Joel Brobecker <[email protected]>
5400
5401 Define HAVE_SYS_PROC_H if sys/proc.h exists
5402 * configure.in: Add check for sys/proc.h
5403 * config.in: Regenerate.
5404 * configure: Regenerate.
5405
902a7139
GS
54062002-07-09 Grace Sainsbury <[email protected]>
5407
5408 * config/m68k/tm-m68k.h: Remove macros wrapped in
5409 #if !GDB_MULTI_ARCH.
5410
a534e424
AC
54112002-07-08 Andrew Cagney <[email protected]>
5412
5413 * config.in, configure: Regenerate.
5414
9b94f7bf
MK
54152002-07-08 Mark Kettenis <[email protected]>
5416
5417 * dwarf2cfi.c: Include "gcore.h".
5418 (execute_stack_op): Fix implementation of the
5419 DW_OP_deref and DW_OP_deref_size operators by letting do their
5420 lookup in the target.
5421
1d34db41
MK
54222002-07-07 Mark Kettenis <[email protected]>
5423
5424 From Peter Schauer <[email protected]>:
5425 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5426 tdep->sc_sp_offset.
5427
79d5b63a
DJ
54282002-07-05 Daniel Jacobowitz <[email protected]>
5429
5430 Fix PR gdb/595, gdb/602
5431 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5432 Don't call value_cast, just read the vtable pointer; update comments
5433 to match.
5434
3bb912e8
GS
54352002-07-05 Grace Sainsbury <[email protected]>
5436
5437 * config/mcore/tm-mcore.h: Remove file.
5438 * config/mcore/mcore.mt: Remove definition of TM_FILE
5439 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5440
ca39387d
MK
54412002-07-05 Mark Kettenis <[email protected]>
5442
5443 * i386bsd-tdep.c: Include "gdb_string.h".
5444
efdc1108
GS
54452002-07-04 Grace Sainsbury <[email protected]>
5446
5447 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5448 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5449 mcore-tdep.
5450 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5451 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5452 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5453 (RETVAL_REGNUM): Move macros from tm-mcore.h
5454 (mcore_reg_struct_has_addr): New function.
5455 (mcore_gdbarch_init): Added initializations for the macros removed
5456 from tm-mcore.h.
5457
bb21884d
MK
54582002-07-04 Mark Kettenis <[email protected]>
5459
5460 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5461 traditonal string branding within the ELF header.
5462
228c6d41
DJ
54632002-07-04 Daniel Jacobowitz <[email protected]>
5464
5465 * symtab.c (remove_params): New function.
5466 (make_symbol_overload_list): Use it instead of cplus_demangle.
5467 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5468
2404952e
MK
54692002-07-04 Mark Kettenis <[email protected]>
5470
e5e4acad
MK
5471 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5472
baadce09
MK
5473 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5474 New variables.
5475 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5476 and tdep->sigtramp_end.
5477 * i386obsd-nat.c: New file.
5478 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5479
2404952e
MK
5480 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5481 Don't call get_current_frame().
5482
9b4f1ba7
PM
54832002-07-04 Pierre Muller <[email protected]>
5484
5485 * i386-nat.c (child_post_startup_inferior): New function
5486 calling i386_cleanup_dregs if
5487 I386_USE_GENERIC_WATCHPOINTS is defined.
5488 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5489 conditional to acknowledge that i386-nat.c has its
5490 own child_post_startup_inferior function.
5491
c0d1d883
MK
54922002-07-04 Mark Kettenis <[email protected]>
5493
00f8375e
MK
5494 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5495 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5496 instead of MAX_REGISTER_RAW_SIZE.
5497 (i386_extract_return_value, i386_extract_struct_value_address):
5498 Convert to use regcache.
5499 (i386_gdbarch_init): Set max_register_raw_size and
5500 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5501 Set extract_return_value and extract_struct_value_address instead
5502 of their deprecated variants.
5503
c0d1d883
MK
5504 Convert i386 target to generic dummy frames.
5505 * i386-tdep.c: Include "symfile.h".
5506 (i386_frameless_signal_p): Consider a function to be frameless if
5507 the pc points at the first instruction of the function.
5508 (i386_frame_chain): Handle (generic) call dummies.
5509 (i386_frame_saved_pc): Likewise.
5510 (i386_frame_init_saved_regs): Remove code dealing with call
5511 dummies on the stack.
5512 (i386_push_dummy_frame): Removed.
5513 (i386_call_dummy_words): Removed.
5514 (i386_fix_call_dummy): Removed.
5515 (i386_push_return_address): New function.
5516 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5517 parameter, and don't call get_current_frame.
5518 (i386_pop_frame): New function.
5519 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5520 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5521 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5522 call_dummy_length to 0, set call_dummy_words to NULL, set
5523 sizeof_call_dummy_words to 0, set fix_call_dummy to
5524 generic_fix_call_dummy, set pc_in_call_dummy to
5525 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5526 generic_push_dummy_frame, set push_return_address to
5527 i386_push_return_address and set frame_chain_valid to
5528 generic_file_frame_chain_valid.
5529
049ee0e4
AC
55302002-07-03 Andrew Cagney <[email protected]>
5531
5532 * gdbarch.sh (struct regcache): Add opaque declaration.
5533 (EXTRACT_RETURN_VALUE): New architecture method.
5534 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5535 * gdbarch.h, gdbarch.c: Regenerate.
5536 * arch-utils.c (legacy_extract_return_value): New function.
5537 * arch-utils.h (legacy_extract_return_value): Declare.
5538 * values.c (value_being_returned): Re-enable code handling
5539 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5540 deprecated_grub_regcache_for_registers call to block handling
5541 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5542 (EXTRACT_RETURN_VALUE): Do not define.
5543
4e0d9804
GS
55442002-07-03 Grace Sainsbury <[email protected]>
5545
5546 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5547 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5548 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5549 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5550 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5551 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5552 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5553 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5554 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5555 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5556 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5557 argument so the function fits the prototype in the architecture
5558 vector.
5559 (mcore_pop_frame): Remove argument so the function fits the
5560 prototype. Use get_current_frame instead of the argument.
5561 (mcore_push_arguments): Change type of struct_return so the
5562 function can be used in the architecture vector.
5563 (mcore_store_struct_return): Add.
5564 (mcore_frame_init_saved_regs): Add.
5565 (mcore_gdbarch_init): Add function calls to replace the macros
5566 removed from tm-mcore.h
5567
36160dc4
AC
55682002-07-03 Andrew Cagney <[email protected]>
5569
5570 * infcmd.c (print_return_value): Remove compatibility code calling
5571 deprecated_grub_regcache_for_registers.
5572
5573 * values.c: Include "regcache.h".
5574 (value_being_returned): Update. Use
5575 deprecated_grub_regcache_for_registers to extract the register
5576 buffer address.
5577 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5578 ``struct regcache''.
5579 * Makefile.in (values.o): Add dependency on $(regcache_h).
5580
5581 * inferior.h (run_stack_dummy): Change type of second parameter to
5582 a ``struct regcache''.
5583 * valops.c (hand_function_call): Change type of retbuf to ``struct
5584 regcache''. Allocate using regcache_xmalloc, clean using
5585 make_cleanup_regcache_xfree.
5586 * infcmd.c (run_stack_dummy): Update. Use
5587 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5588
5589 * regcache.c (do_regcache_xfree): New function.
5590 (make_cleanup_regcache_xfree): New function.
5591 * regcache.h (make_cleanup_regcache_xfree): Declare.
5592
e64d9b3d
MH
55932002-07-03 Martin M. Hunt <[email protected]>
5594
4dd79c29
MH
5595 * event-top.c (command_line_handler): Don't read past
5596 beginning of buffer.
e64d9b3d 5597
4dd79c29
MH
55982002-07-03 Martin M. Hunt <[email protected]>
5599
e64d9b3d
MH
5600 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5601 struct frame_id.
5602 (varobj_create): Store frame_id for root.
5603 (varobj_gen_name): Use xasprintf.
5604 (varobj_update): Save and restore frame using get_frame_id() and
5605 frame_find_by_id().
5606 (create_child): Use xasprintf.
5607 (new_root_variable): Initialize frame_id.
5608 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5609 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5610 to prevent memory leak.
5611
26e6c56a
AC
56122002-07-03 Andrew Cagney <[email protected]>
5613
5614 * valops.c (hand_function_call): Move declaration of retbuf to
5615 start of function, allocate using malloc, add a cleanup but before
5616 the inf_status cleanup, cleanup the buffer. Rename local variable
5617 old_chain to inf_status_cleanup.
5618
f436dd25
MH
56192002-07-03 Martin M. Hunt <[email protected]>
5620
5621 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5622
5623 * cli/cli-decode.c (cmd_func_p): New function.
5624 (cmd_func): New function.
5625
5626 * command.h: Add cmd_func() and cmd_func_p().
5627
4cfe2084
GS
56282002-07-03 Grace Sainsbury <[email protected]>
5629
5630 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5631 (REGISTER_SIZE): Remove.
5632 (MAX_REGISTER_RAW_SIZE): Remove.
5633 (REGISTER_VIRTUAL_TYPE): Remove.
5634 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5635 (REGISTER_NAME): Remove.
5636 (USE_GENERIC_DUMMY_FRAMES): Remove.
5637 (CALL_DUMMY): Remove.
5638 (CALL_DUMMY_START_OFFSET): Remove.
5639 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5640 (CALL_DUMMY_LOCATION): Remove.
5641 (FIX_CALL_DUMMY): Remove.
5642 (CALL_DUMMY_ADDRESS): Remove.
5643 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5644 (SAVE_DUMMY_FRAME_TOS): Remove.
5645 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5646 (mcore_register_virtual_type): New function.
5647 (mcore_register_byte): New function.
5648 (mcore_register_size): New function.
5649 (mcore_register_name): New function.
5650 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5651 macros removed from tm-mcore.h.
5652 (mcore_dump_tdep): Add.
5653 (_initialize_mcore_tdep): Add gdbarch_register call.
5654
4fd667e9
MK
56552002-07-03 Mark Kettenis <[email protected]>
5656
5657 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5658 frameless_look_for_prologue, such that we actually call this
5659 function.
5660
42f99ac2
JB
56612002-07-02 Joel Brobecker <[email protected]>
5662
5663 * frame.h (frame_address_in_block): New function.
5664
5665 * blockframe.c (frame_address_in_block): New function extracted
5666 from get_frame_block().
5667 (get_frame_block): Use frame_address_in_block().
5668 (block_innermost_frame): Use frame_address_in_block() to match
5669 the frame pc address against the block boundaries rather than
5670 the frame pc directly. This prevents a failure when a frame pc
5671 is actually a return-address pointing immediately after the end
5672 of the given block.
5673
103a1597 56742002-07-02 Grace Sainsbury <[email protected]>
83b4a0fe
GS
5675
5676 * MAINTAINERS: Add self under write after approval.
5677
56782002-07-02 Grace Sainsbury <[email protected]>
5679
103a1597
GS
5680 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5681 used in architecture vector. The default is
5682 m68k_local_breakpoint_from_pc.
5683 (m68k_local_breakpoint_from_pc): Add.
5684 (enum): Add register numbers from tm-m68k.h.
5685 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5686 vector.
5687 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5688 GDB_MULTI_ARCH_PARTIAL.
5689 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5690 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5691 m68k-tdep.c.
5692 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5693 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5694 to enum in m68k-tdep.c
5695
7a5a0534
JB
56962002-07-02 Joel Brobecker <[email protected]>
5697
5698 * solib-osf.c (open_map): Compute the list of shared libraries
5699 loaded by the inferior, rather than the list of libraries loaded
5700 by GDB itself. Otherwise, GDB ends up reading the symbols from
5701 the wrong shared libraries...
5702
6f558d74
MK
57032002-07-02 Mark Kettenis <[email protected]>
5704
b7d15bf7
MK
5705 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5706 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5707 macros.
5708 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5709 Remove functions.
5710 (FRAMELESS_SIGNAL): Remove function.
5711 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5712 i386_linux_saved_pc_after_call): Removed.
5713 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5714 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5715 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5716
6bff26de
MK
5717 * i386-tdep.c (i386_frameless_signal_p): New function.
5718 (i386_frame_chain): Deal with frameless signals.
5719 (i386_sigtramp_saved_sp): New function.
5720 (i386_frame_saved_pc): Deal with frameless signals.
5721 (i386_saved_pc_after_call): Make sure the correct value is
5722 returned just after entry into a sigtramp.
5723 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5724 i386fbsd4_sc_sp_offset): New variables.
5725 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5726 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5727 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5728 similiar to what we already did for sc_pc_offset.
5729 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5730 tdep->sc_sp_offset.
5731
6f558d74
MK
5732 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5733
145564b7
ML
57342002-07-02 Michal Ludvig <[email protected]>
5735
5736 * config/i386/tm-x86-64linux.h: New.
5737 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5738 definitions.
5739 * config/i386/nm-x86-64.h: Rename to ...
5740 * config/i386/nm-x86-64linux.h: ... this one.
5741 * config/i386/x86-64linux.mh: Reflect the above change.
5742
3a1e71e3
MK
57432002-07-01 Mark Kettenis <[email protected]>
5744
21d0e8a4
MK
5745 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5746 with sigcontext_addr. Add sc_sp_offset.
5747 (i386bsd_sigtramp_saved_pc): Remove prototype.
5748 (i386bsd_sicontext_addr): Add prototype.
5749 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5750 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5751 (i386_svr4_sigtramp_saved_pc): Removed.
5752 (i386_svr4_sigcontext_addr): New function.
5753 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5754 Initialize tdep->sigcontext_addr instead. Initialize
5755 tdep->sc_pc_offset and tdep->sc_sp_offset.
5756 (i386_gdbarch_init): Likewise.
5757 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5758 any more.
5759 (i386bsd_sigtramp_saved_pc): Remove function.
5760 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5761 Initialize tdep->sigcontext_addr instead. Initialize
5762 tdep->sc_pc_offset.
5763 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5764 of tdep->sigtramp_saved_pc.
5765 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5766 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5767 instead.
5768
3a1e71e3
MK
5769 * i386-tdep.c (i386_frameless_function_invocation,
5770 i386_frame_num_args, i386_frame_init_saved_regs,
5771 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5772 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5773 i386_extract_return_value, i386_store_return_value,
5774 i386_extract_struct_value_address, i386_register_virtual_type,
5775 i386_register_convertible, i386_register_convert_to_virtual,
5776 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5777 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5778 static.
5779
52e9098c
MK
57802002-07-01 Mark Kettenis <[email protected]>
5781
77b13a25
MK
5782 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5783
52e9098c
MK
5784 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5785 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5786 this macro. Include "value.h".
5787
1b372fff
AS
57882002-06-30 Aidan Skinner <[email protected]>
5789
5790 * ada-exp.tab.c: remove as it's a generated file
5791 * ada-lex.c: remove as it's a generated file
5792
9c5045b5
MK
57932002-06-30 Mark Kettenis <[email protected]>
5794
4a93c5bb
MK
5795 * config/i386/tm-i386.h (struct frame_info, struct
5796 frame_saved_regs, struct value, struct type): Remove forward
5797 declarations.
5798
322d4fe0
MK
5799 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5800 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5801 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5802 (FILL_FPXREGSET): Define.
5803
fdd8263d
MK
5804 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5805
482e577b
MK
5806 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5807 i[3456]86-*-netbsd* case.
5808 * config/i386/tm-obsd.h: Removed.
5809 * config/i386/obsd.mt: Removed.
5810 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5811 core-aout.o.
5812 (MH_CFLAGS): Add -DYYDEBUG=0.
5813
6916549a
MK
5814 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5815 i386nbsd_sc_pc_offset on OpenBSD too.
5816
9c5045b5
MK
5817 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5818 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5819 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5820 define.
5821 * i386bsd-tdep.c: Include "arch-utils.h".
5822 (i386bsd_aout_in_solib_call_trampoline): New function.
5823 (i386bsd_init_abi): Set in_solib_call_trampoline to
5824 i386bsd_aout_in_solib_call_trampoline.
5825 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5826 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5827
aa84d1bb
AC
58282002-06-28 Andrew Cagney <[email protected]>
5829
5830 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5831 (struct obstack, struct bcache): Add opaque declarations.
5832 * Makefile.in (macrotab_h): Update
5833
b4d83933
AC
58342002-06-28 Andrew Cagney <[email protected]>
5835
5836 * blockframe.c (generic_find_dummy_frame): Change return type to
5837 ``struct regcache''.
5838 (struct dummy_frame): Replace field ``registers'' with regcache, a
5839 struct regcache object.
5840 (generic_find_dummy_frame): Update.
5841 (generic_push_dummy_frame): Update. Use regcache_xfree,
5842 regcache_xmalloc and regcache_cpy.
5843 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5844 regcache_xfree.
5845 (deprecated_generic_find_dummy_frame): Update.
5846 (generic_read_register_dummy): Update. Use
5847 regcache_read_as_address.
5848 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5849 (generic_get_saved_register): Update. Use regcache_read.
5850
08c0b5bc
AC
58512002-06-28 Andrew Cagney <[email protected]>
5852
5853 * Makefile.in (objfiles_h): Add $(bcache_h).
5854 * objfiles.h: Include "bcache.h".
5855
5856 * Makefile.in (symtab_h): Remove $(bcache_h).
5857 * symtab.h: Do not include "bcache.h".
5858
1f89801a
AC
58592002-06-28 Andrew Cagney <[email protected]>
5860
5861 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5862 generic_func_frame_chain_valid.
5863
b9644b58
DB
58642002-06-28 David O'Brien <[email protected]>
5865
5866 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5867 * config/i386/tm-fbsd.h: Likewise.
5868
dd486634
AC
58692002-06-28 Andrew Cagney <[email protected]>
5870
5871 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5872 generic_unwind_get_saved_register.
5873
0b434a00
AC
58742002-06-27 Andrew Cagney <[email protected]>
5875
5876 From 2002-06-27 John David Anglin <[email protected]>:
5877 * regcache.c (supply_register): Add missing argument to
5878 register_buffer call.
5879
f30e5a77
AC
58802002-06-27 Andrew Cagney <[email protected]>
5881
5882 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5883 Solaris /bin/grep does not not like it. From Peter Schauer.
5884
9f064c95
TT
58852002-06-26 Tom Tromey <[email protected]>
5886
5887 * command.h (add_setshow_cmd): Declare.
5888 (add_setshow_cmd_full): Declare.
5889 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5890 returns void. Use add_setshow_cmd_full.
5891 (add_setshow_cmd_full): New function.
5892 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5893 (add_setshow_boolean_cmd): Likewise.
5894
099c7589
JT
58952002-06-26 Jason Thorpe <[email protected]>
5896
5897 * config/vax/tm-vax.h: Protect from multiple inclusion.
5898 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5899 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5900 * config/vax/tm-vaxbsd.h: ...here. New file.
5901 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5902
1d049c5e
JT
59032002-06-26 Jason Thorpe <[email protected]>
5904
5905 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5906 (BELIEVE_PCC_PROMOTION): Remove.
5907 (AP_REGNUM): Move to...
5908 * config/vax/nm-vax.h: ...here.
5909 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5910 (vax_breakpoint_from_pc): New function.
5911 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5912 and gdbarch_believe_pcc_promotion.
5913
4791e091
JT
59142002-06-26 Jason Thorpe <[email protected]>
5915
5916 * Makefile.in (vax_tdep_h): Define.
5917 (vax-tdep.o): Use $(vax_tdep_h).
5918 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5919 (vax_dump_tdep): New function.
5920 (_initialize_vax_tdep): Register vax_dump_tdep.
5921 * vax-tdep.h: Include osabi.h.
5922 (struct gdbarch_tdep): New.
5923
da130f98
AC
59242002-06-26 Andrew Cagney <[email protected]>
5925
5926 * frame.h (deprecated_generic_find_dummy_frame): Rename
5927 generic_find_dummy_frame.
5928 * blockframe.c (generic_find_dummy_frame): Make static.
5929 (deprecated_generic_find_dummy_frame): New function.
5930 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5931 generic_find_dummy_frame with deprecated_find_dummy_frame.
5932 (sh64_nofp_frame_init_saved_regs): Ditto.
5933 (sh_fp_frame_init_saved_regs): Ditto.
5934 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5935 (s390_frame_chain): Ditto.
5936 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5937
6300c360
GS
59382002-06-26 Grace Sainsbury <[email protected]>
5939
5940 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5941 gdbarch vector are at the top.
5942 (NUM_REGS): Remove.
5943 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5944 (FRAME_ARGS_ADDRESS): Remove.
5945 (FRAME_LOCALS_ADDRESS): Remove.
5946 (FRAME_NUM_ARGS): Remove.
5947 (FRAME_ARGS_SKIP): Remove.
5948 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5949 (m68k_gdbarch_init): Add gdbarch initializations for macros
5950 undefined in tm-m68k.h
5951
1c617db8
GS
59522002-06-26 Grace Sainsbury <[email protected]>
5953
5954 * monitor.h: Add the function regname to monitor_ops
5955 structure. This way NUM_REGS does not have to be a constant.
5956 * monitor.c (monitor_fetch_register): Added support for regname
5957 function. The function is called if the array regnames is NULL.
5958 (monitor_store_register): Same.
da130f98
AC
5959 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5960 regnames array.
1c617db8
GS
5961 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5962 cpu32bug_cmds.regname to point to new function.
5963 * abug-rom.c (abug_regname): Same as above.
5964 (init_abug_cmds): Same.
5965 * dbug-rom.c (dbug_regname): Same as above.
5966 (init_dbug_cmds): Same.
5967 * remote-est.c (est_regname): Same.
5968 (init_est_cmds): Same.
5969 * rom68k-rom.c (rom68k_regname): Same.
5970 (init_rom68k_cmds): Same.
5971
ea9365bb
TT
59722002-06-25 Tom Tromey <[email protected]>
5973
5974 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5975
72cec141
AC
59762002-06-25 Andrew Cagney <[email protected]>
5977
5978 * infrun.c (stop_registers): Change variable's type to ``struct
5979 regcache'''.
5980 (xmalloc_inferior_status): Delete function.
5981 (free_inferior_status): Delete function.
5982 (normal_stop): Use regcache_cpy.
5983 (struct inferior_status): Change type of fields ``stop_registers''
5984 and ``registers'' to ``struct regcache''.
5985 (write_inferior_status_register): Use regcache_write.
5986 (save_inferior_status): Instead of calling
5987 xmalloc_inferior_status, allocate the inf_status buffer directly.
5988 Use regcache_dup_no_passthrough and regcache_dup to save the
5989 buffers.
5990 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5991 Replace the stop_registers regcache instead of overriding it. Use
5992 regcache_xfree. Instead of calling free_inferior_status, xfree
5993 the buffer directly.
5994 (discard_inferior_status): Use regcache_xfree. Instead of calling
5995 free_inferior_status, xfree the buffer directly.
5996 (build_infrun): Use regcache_xmalloc.
5997 (_initialize_infrun): Delete redundant call to build_infrun.
5998
5999 * Makefile.in (infcmd.o): Add $(regcache_h).
6000
6001 * infcmd.c: Include "regcache.h".
6002 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6003 obtain the address of `stop_registers' register buffer.
6004 (print_return_value): Ditto.
6005
6006 * inferior.h (struct regcache): Add opaque declaration.
6007 (stop_registers): Change variable's declared type to ``struct
6008 regcache''.
6009
defc6f8c
TT
60102002-06-24 Tom Tromey <[email protected]>
6011
c0e624e7
TT
6012 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6013 * target.c (initialize_targets): Fixed typo in
6014 trust-readonly-sections `show' documentation.
6015
defc6f8c
TT
6016 * main.c: Marked all strings with _().
6017
2b236d82
DH
60182002-06-24 Don Howard <[email protected]>
6019
6020 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6021 that means max CORE_ADDR+1.
6022 (lookup_mem_region): Ditto.
6023 (mem_info_command): Ditto.
6024
942dc0e9
GS
60252002-06-24 Grace Sainsbury <[email protected]>
6026
6027 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6028 (REGISTER_BYTES_OK): Remove.
6029 (REGISTER_BYTES): Remove.
6030 (STORE_STRUCT_RETURN): Remove.
6031 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6032 (STORE_RETURN_VALUE): Remove.
6033 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6034 (FRAME_CHAIN): Remove.
6035 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6036 (FRAME_SAVED_PC): Remove.
6037 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6038 (m68k_store_struct_return): Add.
6039 (m68k_deprecated_extract_return_value): Add.
6040 (m68k_deprecated_extract_struct_value_address): Add.
6041 (m68k_store_return_value): Add.
6042 (m68k_frame_chain): Add.
6043 (m68k_frameless_function_invocation): Add.
6044 (m68k_frame_saved_pc): Add.
6045 (m68k_gdbarch_init): added set_gdbarch calls for new
6046 functions and deleted macros.
6047
03c30d4d
TT
60482002-06-23 Tom Tromey <[email protected]>
6049
6050 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6051 (ALLDEPFILES): Likewise.
6052 (udiheaders): Removed.
6053 (udip2soc.o): Likewise.
6054 (udi2go32.o): Likewise.
6055 (udr.o): Likewise.
6056 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6057
37e71372
AC
60582002-06-22 Andrew Cagney <[email protected]>
6059
06a6ac57
AC
6060 * infrun.c (_initialize_infrun): Delete unnecessary call to
6061 build_infrun.
6062
37e71372
AC
6063 * regcache.h: Update comments describing the regcache_cpy family
6064 of functions.
6065 (regcache_save, regcache_restore): Delete declaration.
6066 (regcache_save_no_passthrough): Delete declaration.
6067 (regcache_restore_no_passthrough): Delete declaration.
6068 * regcache.c (regcache_save): Delete function.
6069 (regcache_save_no_passthrough): Delete function.
6070 (regcache_restore): Delete function.
6071 (regcache_restore_no_passthrough): Delete function.
6072
78f6d055
AC
60732002-06-21 Andrew Cagney <[email protected]>
6074
6075 * config/m68k/tm-m68k.h: Fix typo.
6076 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6077 (m68k_frame_init_saved_regs): Declare.
6078
78b119cb
JB
60792002-06-21 Jim Blandy <[email protected]>
6080
6081 Remove some vestiges of Harris 88k support.
6082 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6083 register numbering quirk.
6084 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6085 odd symbols occurring in Harris 88k ELF targets.
6086
0fbb3da7
TT
60872002-06-21 Tom Tromey <[email protected]>
6088
6089 * gdb_locale.h: New file.
6090 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6091 (defs_h): Added gdb_locale.h.
6092 * configure, config.in: Rebuilt.
6093 * configure.in (PACKAGE): Define.
6094 * defs.h: Include gdb_locale.h.
6095 * main.c (captured_main): Call setlocale, bindtextdomain,
6096 textdomain.
6097
456f8b9d
DB
60982002-06-21 Dave Brolley <[email protected]>
6099
6100 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6101 * config/frv/frv.mt: New file.
6102 * config/frv/tm-frv.h: New file.
6103 * configure.tgt: Support frv-*-*.
6104 * Makefile.in (frv-tdep.o): New target.
6105 * frv-tdep.c: New file.
6106 * NEWS: Mention frv.
6107
cdd463f9
DB
61082002-06-21 Dave Brolley <[email protected]>
6109
6110 * MAINTAINERS: Add self to "Write After Approval" list.
6111
5d3ed2e3
GS
61122002-06-21 Grace Sainsbury <[email protected]>
6113
6114 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6115 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6116 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6117 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6118 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6119
6120 * m68k-tdep.c: Include arch-utils.h
6121 (m68k_register_raw_size): Add.
6122 (m68k_register_virtual_size): Add.
6123 (m68k_register_virtual_type): Add.
6124 (m68k_register_name): Add.
6125 (m68k_stack_align): Add.
6126 (m68k_register_byte): Add.
6127 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6128 tm-m68k.h.
6129
7f8e7424
GS
61302002-06-21 Grace Sainsbury <[email protected]>
6131
a2c6a6d5 6132 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6133 m68k_find_saved_regs.
6134 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6135 references to it with frame->saved_regs.
7f8e7424
GS
6136 (m68k_gdbarch_init): Added function calls to initialize the
6137 gdbarch structure.
a2c6a6d5
GS
6138 (m68k_fix_call_dummy): Add.
6139 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6140 (CALL_DUMMY): Remove.
6141 (CALL_DUMMY_LENGTH): Remove.
6142 (CALL_DUMMY_START_OFFSET): Remove.
6143 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6144 (FIX_CALL_DUMMY): Remove.
6145 (PUSH_DUMMY_FRAME): Remove.
6146 (POP_FRAME): Remove.
7f8e7424 6147
f461f5cf
PM
61482002-06-19 Pierre Muller <[email protected]>
6149
6150 * parse.c (parse_fprintf): New function used to avoid calls to
6151 fprintf in bison parser generated debug code.
6152 * parser-defs.h: Declaration of new parse_fprintf function.
6153 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6154 Set YYDEBUG to 1 by default.
6155 Set YYFPRINTF as parse_fprintf.
6156
7f0c12ed
ML
61572002-06-21 Michal Ludvig <[email protected]>
6158
6159 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6160 encoding anymore.
6161 (pointer_encoding, enum ptr_encoding): New.
6162 (execute_cfa_program): Take care about pointer encoding.
6163 (dwarf2_build_frame_info): Only call parse_frame_info for
6164 .debug_frame and .eh_frame.
6165 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6166 fixed augmentation handling, added relative addressing,
6167 ignore duplicate FDEs. Added comments.
19d833a2 6168 * dwarf2cfi.c: Reindented.
7f0c12ed 6169
87c4a039
EZ
61702002-06-20 Elena Zannoni <[email protected]>
6171
6172 * event-top.c (command_handler): Don't use space_at_cmd_start
6173 unless there is sbrk() on the host. Assign time and space data
6174 to union fields of the appropriate length.
6175
1cf877ad
ML
61762002-06-20 Michal Ludvig <[email protected]>
6177
6178 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6179 x86_64_register_name. Return type changed to 'const char *'.
6180 (x86_64_register_name2nr): Rename to x86_64_register_number.
6181 (x86_64_gdbarch_init): Update to reflect the change.
6182 * x86-64-tdep.h: Ditto.
6183 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6184 (supply_fpregset): Ditto.
6185
3fadccb3
AC
61862002-06-19 Andrew Cagney <[email protected]>
6187
6188 * regcache.h: Update copyright.
6189 (struct regcache, struct gdbarch): Add opaque declarations.
6190 (current_regcache): Declare global variable.
6191 (regcache_read, regcache_write): Add gdbarch parameter.
6192 (regcache_save, regcache_save_no_passthrough)
6193 (regcache_restore, regcache_restore_no_passthrough)
6194 (regcache_dup, regcache_dup_no_passthrough)
6195 (regcache_cpy, regcache_cpy_no_passthrough)
6196 (deprecated_grub_regcache_for_registers)
6197 (deprecated_grub_regcache_for_register_valid)
6198 (regcache_valid_p): Add function declarations.
6199
6200 * regcache.c: Update copyright.
6201 (regcache_descr_handle): New global variable.
6202 (struct regcache_descr): Define.
6203 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6204 (regcache_descr, xfree_regcache_descr): New functions.
6205 (struct regcache): Define.
6206 (regcache_xmalloc, regcache_xfree): New functions.
6207 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6208 (regcache_dup, regcache_dup_no_passthrough): New functions.
6209 (regcache_valid_p, regcache_read_as_address): New functions.
6210 (deprecated_grub_regcache_for_registers): New function.
6211 (deprecated_grub_regcache_for_register_valid): New function.
6212 (current_regcache): New global variable.
6213 (register_buffer): Add regcache parameter. Update calls.
6214 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6215 (read_register_gen, write_register_gen): Update register_buffer
6216 call. Test for legacy_p instead of gdbarch_register_read_p or
6217 gdbarch_register_write_p.
6218 (regcache_collect): Update register_buffer call.
6219 (build_regcache): Rewrite. Use deprecated grub functions.
6220 (regcache_save, regcache_save_no_passthrough): New functions.
6221 (regcache_restore, regcache_restore_no_passthrough): New
6222 functions.
6223 (_initialize_regcache): Create the regcache_data_handle. Swap
6224 current_regcache global variable.
6225
6226 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6227 parameter to regcache_read and regcache_write calls.
6228 (sh4_register_read): Ditto.
6229 (sh64_pseudo_register_read): Ditto.
6230 (sh64_register_read): Ditto.
6231 (sh_pseudo_register_write): Ditto.
6232 (sh4_register_write): Ditto.
6233 (sh64_pseudo_register_write): Ditto.
6234 (sh64_register_write): Ditto.
6235
6236 * defs.h (XCALLOC): Define.
6237
152d9db6
GS
62382002-06-19 Grace Sainsbury <[email protected]>
6239
6240 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6241 * m68k-tdep.c (m68k_gdbarch_init): Added.
6242 (m68k_dump_tdep): Added.
6243
170911c7
DJ
62442002-06-19 Daniel Jacobowitz <[email protected]>
6245
6246 * ada-lang.c (fill_in_ada_prototype): Update comment.
6247
2e4ebe70
DJ
62482002-06-19 Daniel Jacobowitz <[email protected]>
6249
6250 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6251 MIPS_ABI_LAST.
6252 (mips_abi_string, mips_abi_strings): New.
6253 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6254 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6255 tdep->mips_abi_string. Honor mips_abi_string. Default to
6256 O32 if no ABI is found.
6257 (mips_dump_tdep): Use mips_abi_strings.
6258 (mips_abi_update): New function.
6259 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6260 ``set mips abi'' and ``show mips abi''. Check the size of
6261 mips_abi_strings.
6262
16775908
AC
62632002-06-19 Andrew Cagney <[email protected]>
6264
6265 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6266 constant.
6267
5051bfa4 62682002-06-18 Joel Brobecker <[email protected]>
16775908 6269
5051bfa4
JB
6270 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6271 current frame using only the first stack size adjustment. All
6272 subsequent size adjustments are not considered to be part of
6273 the "static" part of the current frame.
6274 Compute the address of the saved registers relative to the
6275 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6276 in use in this frame.
6277
56468235
DH
62782002-06-18 Don Howard <[email protected]>
6279
6280 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6281 type int expressions. Thanks to Jim Blandy <[email protected]> for
6282 suggesting this solution.
6283
0b624158
AC
62842002-06-18 Andrew Cagney <[email protected]>
6285
6286 * config/romp/xm-rtbsd.h: Delete file.
6287 * config/romp/rtbsd.mh: Delete file.
6288
221ea385
KS
62892002-06-18 Keith Seitz <[email protected]>
6290
6291 * breakpoint.c (condition_command): Post breakpoint_modify
6292 when a condition is added to an existing breakpoint.
6293 (commands_command): Likewise for commands.
6294 (set_ignore_count): Likewise for ignore counts.
6295 If no tty, do not simply return, still need to send event
6296 notification.
6297 (ignore_command): Only print a newline if the command came
6298 from a tty.
6299 Don't call breakpoints_changed, since this is now properly
6300 handled by set_ignore_count.
6301
5402eed1
AC
63022002-06-18 Andrew Cagney <[email protected]>
6303
6304 * MAINTAINERS: Note that cris-elf target can be compiled with
6305 -Werror.
6306 * cris-tdep.c (cris_register_name): Make return type constant.
6307 (cris_breakpoint_from_pc): Ditto.
6308
cc22880b
ML
63092002-06-18 Michal Ludvig <[email protected]>
6310
6311 * frame.h (struct frame_info): Change type of context to
6312 'struct context'.
6313
fa88f677
AC
63142002-06-17 Andrew Cagney <[email protected]>
6315
6316 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6317 pointer.
6318 * gdbarch.h, gdbarch.c: Regenerate.
6319 * config/mips/tm-mips.h (mips_register_name): Update.
6320 * i386-tdep.h (i386_register_name): Update.
6321 * mips-tdep.c (mips_register_name): Update
6322 * alpha-tdep.c (alpha_register_name): Update.
6323 * arch-utils.c (legacy_register_name): Update.
6324 * arch-utils.h (legacy_register_name): Update.
6325 * avr-tdep.c (avr_register_name): Update.
6326 * ia64-tdep.c (ia64_register_name): Update.
6327 * i386-tdep.c (i386_register_name): Update.
6328 * sparc-tdep.c (sparc32_register_name): Update.
6329 (sparc64_register_name): Update.
6330 (sparclite_register_name): Update.
6331 (sparclet_register_name): Update.
6332 * sh-tdep.c (sh_generic_register_name): Update.
6333 (sh_sh_register_name): Update.
6334 (sh_sh3_register_name): Update.
6335 (sh_sh3e_register_name): Update.
6336 (sh_sh_dsp_register_name): Update.
6337 (sh_sh3_dsp_register_name): Update.
6338 (sh_sh4_register_name): Update.
6339 (sh_sh64_register_name): Update.
6340 * s390-tdep.c (s390_register_name): Update.
6341 * rs6000-tdep.c (rs6000_register_name): Update.
6342 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6343 (ns32k_register_name_32382): Update.
6344 * d10v-tdep.c (d10v_ts2_register_name): Update.
6345 (d10v_ts3_register_name): Update.
6346 * xstormy16-tdep.c (xstormy16_register_name): Update.
6347 * vax-tdep.c (vax_register_name): Update.
6348 * v850-tdep.c (v850_register_name): Update.
6349 * m68hc11-tdep.c (m68hc11_register_name): Update.
6350 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6351 (am33_register_name): Update.
6352
ea1e7ef6
GS
63532002-06-17 Grace Sainsbury <[email protected]>
6354
6355 * m68k-tdep.c: Reindented.
6356
9b02dd1b
AC
63572002-06-17 Andrew Cagney <[email protected]>
6358
6359 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6360 list of predefined types.
6361
8758dec1
MK
63622002-06-16 Mark Kettenis <[email protected]>
6363
b6197528
MK
6364 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6365 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6366 REGISTER_CONVERT_TO_RAW): Remove defines.
6367 (i386_register_virtual_type, i386_register_convertible,
6368 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6369 Remove prototypes.
6370 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6371 macros mentioned above.
6372
82b47e62
MK
6373 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6374 (i386lynx_saved_pc_after_call): Remove prototype.
6375 * i386ly-tdep.c: Include "i386-tdep.h".
6376 (i386lynx_saved_pc_after_call): Make static. Use
6377 read_memory_nobpt instead of read_memory. Use
6378 read_memory_unsigned_integer instead of read_memory_integer.
6379 (i386lynx_init_abi): New function.
6380 (i386lynx_coff_osabi_sniffer): New function.
6381 (_initialize_i386bsd_tdep): New function.
6382
8758dec1
MK
6383 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6384 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6385 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6386 (i386_fix_call_dummy): Remove prototype.
6387 * i386-tdep.c (i386_call_dummy_words): New variable.
6388 (i386_gdbarch_init): Adjust for removal of the
6389 macros mentioned above.
6390
e9e68a56
AC
63912002-06-15 Andrew Cagney <[email protected]>
6392
6393 * command.h (add_setshow_auto_boolean_cmd): Replace
6394 add_set_auto_boolean_cmd.
6395 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6396 add_set_auto_boolean_cmd.
6397 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6398 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6399 mask-address'' command.
6400 (show_mask_address): Add cmd parameter.
6401 * remote.c (add_packet_config_cmd): Update. Change type of
6402 set_func and show_func to cmd_sfunc_ftype.
6403 (_initialize_remote): Update `set remote Z-packet'
6404 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6405 (show_remote_protocol_e_packet_cmd): Ditto.
6406 (show_remote_protocol_E_packet_cmd): Ditto.
6407 (show_remote_protocol_P_packet_cmd): Ditto.
6408 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6409 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6410 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6411 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6412 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6413 (show_remote_protocol_Z_packet_cmd): Ditto.
6414 (show_remote_protocol_binary_download_cmd): Ditto.
6415 (show_remote_cmd): Pass NULL to all of above.
6416
fc08ec52
MK
64172002-06-15 Mark Kettenis <[email protected]>
6418
6419 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6420 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6421 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6422 POP_FRAME): Remove defines.
6423 (i386_push_arguments, i386_store_struct_return,
6424 i386_extract_return_value, i386_store_return_value,
6425 i386_extract_struct_value_address, i386_push_dummy_frame,
6426 i386_pop_frame): Renove prototypes.
6427 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6428 macros mentioned above.
6429
e707bbc2
AC
64302002-06-15 Andrew Cagney <[email protected]>
6431
6432 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6433 add_set_boolean_cmd.
6434 (add_setshow_cmd): New function.
6435 * command.h (add_setshow_boolean_cmd): Replace
6436 add_set_boolean_cmd.
6437 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6438 and ``set rdiromatzero''.
6439 * maint.c (_initialize_maint_cmds): Update commented out code.
6440 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6441 * target.c (initialize_targets): Update `set
6442 trust-readonly-sections'.
6443 * remote.c (_initialize_remote): Update `set remotebreak'.
6444
42fdc8df
MK
64452002-06-15 Mark Kettenis <[email protected]>
6446
93924b6b
MK
6447 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6448 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6449 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6450 fit into multi-arch framework.
6451 (i386_breakpoint_from_pc): New function.
6452 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6453 above.
6454
42fdc8df
MK
6455 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6456 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6457 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6458 (i386_frameless_function_invocation, i386_frame_num_args,
6459 i386_frame_init_saved_regs): Remove prototypes.
6460 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6461 macros mentioned above.
6462
9773a94b
AC
64632002-06-15 Andrew Cagney <[email protected]>
6464
6465 * cli/cli-decode.c (set_cmd_cfunc): Update.
6466 (set_cmd_sfunc): Update.
6467 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6468 (set_cmd_sfunc, set_cmd_cfunc): Update.
6469 * cli/cli-decode.h: Update.
6470
6e157172
MK
64712002-06-15 Mark Kettenis <[email protected]>
6472
6473 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6474 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6475
7f19b9a2
AC
64762002-06-15 Andrew Cagney <[email protected]>
6477
6478 * defs.h (auto_boolean): Declare enum.
6479 * command.h (cmd_auto_boolean): Delete enum.
6480 * mips-tdep.c (mask_address_var): Update.
6481 (mips_mask_address_p): Update.
6482 (show_mask_address): Update.
6483 * remote.c (struct packet_config): Update.
6484 (update_packet_config): Update.
6485 (show_packet_config_cmd): Update.
6486 (packet_ok): Update.
6487 (add_packet_config_cmd): Update.
6488 (_initialize_remote):
6489 * command.h: Update.
6490 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6491 (do_setshow_command): Update.
6492 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6493 * cli/cli-decode.h: Update.
6494
1cf88de5
MK
64952002-06-15 Mark Kettenis <[email protected]>
6496
22ba8cf2
MK
6497 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6498 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6499 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6500 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6501 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6502 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6503
762c5349
MK
6504 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6505 list of DJGPP COFF targets.
6506
091198bb
MK
6507 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6508 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6509 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6510 (FP0_REGNUM): Remove define.
6511 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6512 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6513 (i386_register_virtual_size): Remove protoype.
6514 * i386-tdep.c (i386_register_virtual_size): Removed.
6515 (i386_extract_return_value, i386_store_return_value): Use
6516 FP0_REGNUM instead of NUM_FREGS to determine whether the
6517 floating-point registers are available.
6518 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6519 Adjust for removal of macros mentioned above.
6520
65212002-06-15 Mark Kettenis <[email protected]>
6522
fcc9bf01
MK
6523 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6524 comments.
6525 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6526 Remove prototypes.
6527 (supply_gregset, fill_gregset): Remove use of register keyword and
6528 remove declaration for regmap. Use I386_NUM_GREGS instead of
6529 NUM_REGS and NUM_FREGS.
6530 (FPREGSET_FSAVE_OFFSET): Remove.
6531 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6532 NUM_FREGS to determine whether the floating-point registers are
6533 available.
6534
65e78234
MK
6535 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6536 gnu_store_registers): Replace usage of NUM_GREGS with
6537 I386_NUM_GREGS.
6538
98df6387
MK
6539 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6540 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6541 usage of NUM_GREGS with I386_NUM_GREGS.
6542
099a9414
MK
6543 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6544
57976e88
MK
6545 * i386bsd-nat.c: Include "i386-tdep.h".
6546 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6547 I386_NUM_GREGS.
6548
b335f4a6
MK
6549 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6550 and associated comment. They no longer make any sense, since we
6551 don't use this file anymore on Linux.
6552
1cf88de5
MK
6553 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6554 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6555 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6556 elements in these arrays.
6557 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6558 MAX_NUM_REGS.
6559
daa66587
MK
65602002-06-15 Mark Kettenis <[email protected]>
6561
6562 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6563 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6564
26e9b323
AC
65652002-06-14 Andrew Cagney <[email protected]>
6566
6567 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6568 EXTRACT_RETURN_VALUE.
6569 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6570 EXTRACT_STRUCT_VALUE_ADDRESS.
6571 * gdbarch.h, gdbarch.c: Regenerate.
6572
6573 * values.c (value_being_returned): Handle
6574 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6575 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6576
6577 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6578 * arm-tdep.c (arm_gdbarch_init): Update.
6579 * avr-tdep.c (avr_gdbarch_init): Update.
6580 * cris-tdep.c (cris_gdbarch_init): Update.
6581 * d10v-tdep.c (d10v_gdbarch_init): Update.
6582 * ia64-tdep.c (ia64_gdbarch_init): Update.
6583 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6584 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6585 * s390-tdep.c (s390_gdbarch_init): Update.
6586 * sh-tdep.c (sh_gdbarch_init): Update.
6587 * s390-tdep.c (s390_gdbarch_init): Update.
6588 * sparc-tdep.c (sparc_gdbarch_init): Update.
6589 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6590 * v850-tdep.c (v850_gdbarch_init): Update.
6591 * vax-tdep.c (vax_gdbarch_init): Update.
6592 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6594
6595 * config/arc/tm-arc.h: Update.
6596 * config/d30v/tm-d30v.h: Update.
6597 * config/fr30/tm-fr30.h: Update.
6598 * config/h8300/tm-h8300.h: Update.
6599 * config/h8500/tm-h8500.h: Update.
6600 * config/i386/tm-i386.h: Update.
6601 * config/i386/tm-ptx.h: Update.
6602 * config/i386/tm-symmetry.h: Update.
6603 * config/i960/tm-i960.h: Update.
6604 * config/m32r/tm-m32r.h: Update.
6605 * config/m68k/tm-delta68.h: Update.
6606 * config/m68k/tm-linux.h: Update.
6607 * config/m68k/tm-m68k.h: Update.
6608 * config/m88k/tm-m88k.h: Update.
6609 * config/mcore/tm-mcore.h: Update.
6610 * config/mips/tm-mips.h: Update.
6611 * config/mn10200/tm-mn10200.h: Update.
6612 * config/pa/tm-hppa.h: Update.
6613 * config/pa/tm-hppa64.h: Update.
6614 * config/sparc/tm-sp64.h: Update.
6615 * config/sparc/tm-sparc.h: Update.
6616 * config/sparc/tm-sparclet.h: Update.
6617 * config/z8k/tm-z8k.h: Update.
6618
5179e78f
AC
66192002-06-14 Andrew Cagney <[email protected]>
6620
6621 * Makefile.in (i386_linux_tdep_h): Define.
6622 (i386_tdep_h, i387_tdep_h): Define.
6623 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6624 $(i386_tdep_h) and $(i387_tdep_h).
6625 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6626
8201327c
MK
66272002-06-14 Mark Kettenis <[email protected]>
6628
edf393ac
MK
6629 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6630 Already covered by the default.
6631
896fb97d
MK
6632 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6633 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6634 (i386_gdbarch_init): Initialize long_double_format and long_double
6635 bit.
6636
8201327c
MK
6637 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6638 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6639 Move these to ...
6640 * config/i386/i386sol2.mh: ... here.
6641 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6642 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6643 (SIGCONTEXT_PC_OFFSET): Remove define.
6644 (IN_SIGTRAMP): Remove define.
6645 * i386-sol2-tdep.c: New file.
6646
6647 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6648 * config/i386/tm-i386nw.h: Removed.
6649
6650 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6651 USE_STRUCT_CONVENTION): Remove defines.
6652 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6653 (get_longjmp_target): Remove prototype.
6654 (IN_SIGTRAMP): Remove define.
6655 (i386bsd_in_sigtramp): Remove prototype.
6656 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6657 function. Update comment accordingly
6658 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6659 (FRAME_SAVED_PC): Remove define.
6660 (i386bsd_frame_saved_pc): Remove prototype.
6661 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6662 GET_LONGJMP_TARGET): Remove defines.
6663 (get_longjmp_target): Remove prototype.
6664 (IN_SIGTRAMP): Remove define.
6665 (i386bsd_in_sigtramp): Remove prototype.
6666 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6667 function. Update comment accordingly
6668 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6669 (FRAME_SAVED_PC): Remove define.
6670 (i386bsd_frame_saved_pc): Remove prototype.
6671 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6672 Remove prototype.
6673 (USE_STRUCT_CONVENTION): Remove prototype.
6674 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6675 declaration.
6676 (_initialize_i386bsd_nat): Revise logic to determine some
6677 constants at compile time when compiling a native GDB. Warn if
6678 things don't match up with what we expect.
6679 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6680 Remove variables.
6681 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6682 to use date stored in `struct gdbarch_tdep'.
6683 (i386bsd_sigcontext_offset): Remove varaible.
6684 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6685 stored in `struct gdbarch_tdep'.
6686 (i386bsd_frame_saved_pc): Make static.
6687 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6688 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6689 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6690 i386fbsd4_sc_pc_offset): New variables.
6691 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6692 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6693 functions.
6694 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6695 functions.
6696 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6697 Modify the value of i386fbsd_sigtramp_start and
6698 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6699 i386fbsd_sigtramp_end.
6700 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6701 function.
6702
6703 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6704 define to i386-linux-tdep.h.
6705 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6706 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6707 defines.
6708 (i386_linux_register_name, i386_linux_register_byte,
6709 i386_linux_register_raw_size): Remove prototypes.
6710 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6711 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6712 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6713 TARGET_WRITE_PC): Remove defines.
6714 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6715 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6716 i386_linux_write_pc): Remove prototypes.
6717 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6718 (get_longjmp_target): Remove prototype.
6719 * i386-linux-tdep.h: New file.
6720 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6721 * i386-linux-tdep.c: Include "i386-tdep.h" and
6722 "i386-linux-tdep.h".
6723 (i386_linux_register_name, i386_linux_register_byte,
6724 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6725 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6726 Make static.
6727 (i386_linux_init_abi): New function.
6728 (_initialize_i386_linux_tdep): New function.
6729
6730 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6731 (i386_saved_pc_after_call): Remove prototype.
6732 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6733 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6734 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6735 (i386_register_name, i386_stab_reg_to_regnum,
6736 i386_dwarf_reg_to_regnum): Remove prototypes.
6737 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6738 SIZEOF_SSE_REGS): Remove defines.
6739 (REGISTER_BYTES): Remove define.
6740 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6741 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6742 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6743 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6744 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6745 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6746 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6747 (get_longjmp_target): Remove prototype.
6748 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6749 (sigtramp_saved_pc): Remove define.
6750 (i386v4_sigtramp_saved_pc): Remove prototype.
6751 * config/i386/tm-go32.h (FRAME_CHAIN,
6752 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6753 (i386go32_frame_saved_pc): Remove prototype.
6754 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6755 (get_longjmp_target): Remove prototype.
6756 * i386-tdep.h: Include "osabi.h".
6757 (enum i386_abi): Removed.
6758 (enum struct_return): New enum.
6759 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6760 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6761 sc_pc_offset members.
6762 (i386_gdbarch_register_os_abi): Remove prototype.
6763 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6764 I386_SSE_NUM_REGS): New defines.
6765 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6766 I386_SSE_SIZEOF_REGS): New defines.
6767 (i386_register_name, i386_register_byte, i386_register_raw_size):
6768 New prototypes.
6769 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6770 (i386bsd_sigtramp_saved_pc): New prototype.
6771 * i386-tdep.c: Don't include "elf-bfd.h".
6772 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6773 i386_frame_chain, i386_saved_pc_after_call): Make static.
6774 (i386_frame_saved_pc): Rewrite to call architecture dependent
6775 function to deal with signal handlers. Make static.
6776 (i386go32_frame_saved_pc): Removed.
6777 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6778 Removed.
6779 (i386_get_longjmp_target): New function.
6780 (default_struct_convention, pcc_struct_convention,
6781 reg_struct_convention, valid_conventions, struct_convention): New
6782 variables.
6783 (i386_use_struct_convention): New function.
6784 (i386v4_sigtramp_saved_pc): Renamed to
6785 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6786 (i386_pc_in_sigtramp): New function.
6787 (i386_abi_names): Removed.
6788 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6789 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6790 Removed.
6791 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6792 i386_gdbarch_register_os_abi): Removed.
6793 (struct i386_abi_handler): Removed.
6794 (i386_abi_handler_list): Removed.
6795 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6796 functions.
6797 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6798 i386_nw_init_abi): New functions.
6799 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6800 Use set_gdbarch_xxx() calls instead of relying on macros for a
6801 number of calls.
6802 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6803 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6804 Register the various architecture variants defined in this file.
6805
ad2f7632
DJ
68062002-06-14 Daniel Jacobowitz <[email protected]>
6807
6808 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6809 (struct main_type): Remove arg_types member. Update comments for
6810 struct field.
6811 (TYPE_ARG_TYPES): Remove.
6812 (TYPE_FN_FIELD_ARGS): Update.
6813 (smash_to_method_type): Update prototype.
6814
6815 * c-typeprint.c (cp_type_print_method_args): Take method type
6816 instead of argument list. Use new argument layout. Simplify.
6817 (c_type_print_args): Use new argument layout. Simplify.
6818 (c_type_print_base): Update call to cp_type_print_method_args.
6819 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6820 argument; use die->type instead. Update call to
6821 smash_to_method_type.
6822 (read_structure_scope): Update call to dwarf2_add_member_fn.
6823 * gdbtypes.c (allocate_stub_method): Update comment.
6824 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6825 Use new argument layout.
6826 (check_stub_method): Use new argument layout. Don't count
6827 void as an argument.
6828 (print_arg_types): Update comments. Use new argument layout.
6829 (recursive_dump_type): Don't print arg_types member.
6830 * hpread.c (hpread_read_struct_type): Use new argument layout.
6831 (fixup_class_method_type): Likewise.
6832 (hpread_type_lookup): Likewise.
6833 * stabsread.c (read_type): Update calls to read_args and
6834 smash_to_method_type.
6835 (read_args): Use new argument layout. Simplify.
6836 * valops.c (typecmp): Use new argument layout. Update parameters
6837 and comments. Simplify.
6838 (hand_function_call): Use new argument layout.
6839 (search_struct_method): Update call to typecmp.
6840 (find_overload_match): Use new argument layout.
6841
6da02953
DJ
68422002-06-13 Daniel Jacobowitz <[email protected]>
6843
6844 * NEWS: Mention multithreaded debug support for gdbserver.
6845
519b2366
DJ
68462002-06-13 Daniel Jacobowitz <[email protected]>
6847
6848 * MAINTAINERS: Mention NEWS.
6849
6c0d6680
DJ
68502002-06-13 Daniel Jacobowitz <[email protected]>
6851
6852 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6853 (struct mips_objfile_private, compare_pdr_entries): New.
6854 (non_heuristic_proc_desc): Read the ".pdr" section if it
6855 is present.
6856
6529d2dd
AC
68572002-06-12 Andrew Cagney <[email protected]>
6858
6859 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6860 (arm_debug): New static variable.
6861 (_initialize_arm_tdep): Add ``set debug arm'' command.
6862
26216b98
AC
68632002-06-12 Andrew Cagney <[email protected]>
6864
6865 * Makefile.in (sim_arm_h): Define.
6866 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6867 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6868 (arm_register_sim_regno): New function, map an internal REGNUM
6869 onto a simulator register number.
6870 (arm_gdbarch_init): Set register_sim_regno.
6871
814b3ba0
AH
68722002-06-09 Aldy Hernandez <[email protected]>
6873
6874 * MAINTAINERS: Add self.
6875
475b0867
JB
68762002-06-11 Jim Blandy <[email protected]>
6877
919d772c
JB
6878 * source.c (source_info): Mention whether the symtab has
6879 information about preprocessor macros.
6880
475b0867
JB
6881 Call the command `info macro', not `show macro'.
6882 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6883 Fix error message.
6884 (_initialize_macrocmd): Register `info_macro_command' in
6885 `infolist', not `showlist'.
6886
9e364162
DJ
68872002-06-11 Daniel Jacobowitz <[email protected]>
6888
6889 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6890 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6891 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6892 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6893 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6894 unconditionally.
6895 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6896 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6897 (_initialize_mips_tdep): Remove dead code.
6898 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6899 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6900 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6901 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6902 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6903 MIPS_LAST_FP_ARG_REGNUM): Remove.
6904
23aa4c72
ML
69052002-06-11 Michal Ludvig <[email protected]>
6906
6907 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6908 (unwind_tmp_obstack_free, parse_frame_info)
6909 (update_context, cfi_read_fp, cfi_write_fp)
6910 (cfi_frame_chain, cfi_init_extra_frame_info)
6911 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6912 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6913
70eb15a4
CV
69142002-06-11 Corinna Vinschen <[email protected]>
6915
6916 * v850-tdep.c (v850_type_is_scalar): New function.
6917 (v850_use_struct_convention): Match current gcc implementation
6918 as close as possible.
6919 (v850_push_arguments): Fix stack_offset handling. Don't write
6920 struct_addr into register. This is done by v850_store_struct_return.
6921 (v850_extract_return_value): Care for structs.
6922 (v850_store_return_value): Ditto.
6923 (v850_store_struct_return): Actually write address.
6924
482a4d06
ML
69252002-06-11 Michal Ludvig <[email protected]>
6926
6927 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6928 without debug information too.
6929
d855c300
AC
69302002-06-10 Andrew Cagney <[email protected]>
6931
6932 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6933 Make multi-arch pure.
6934 * gdbarch.h, gdbarch.c: Re-generate.
6935 * arm-tdep.c (arm_print_float_info): Update.
6936 * arch-utils.h (default_print_float_info): Update.
6937 * arch-utils.c (default_print_float_info): Update.
6938 * infcmd.c (float_info): Update call.
6939
dd12a101
AC
69402002-06-10 Andrew Cagney <[email protected]>
6941
6942 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6943 the front of the initialize list.
6944
101dcfbe
AC
69452002-06-10 Andrew Cagney <[email protected]>
6946
6947 * infrun.c (struct inferior_status): Replace fields
6948 selected_frame_address and selected_level with field
6949 selected_frame_id.
6950 (save_inferior_status): Update. Use get_frame_id.
6951 (struct restore_selected_frame_args): Delete.
6952 (restore_selected_frame): Update. Use frame_find_by_id.
6953 (restore_inferior_status): Update.
6954
6955 * breakpoint.h (struct breakpoint): Change type of
6956 watchpoint_frame to frame_id.
6957 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6958 call to get_current_frame.
6959 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6960 get_current_frame.
6961 (watchpoint_check): Use frame_find_by_id.
6962
6963 * frame.h (record_selected_frame): Delete declaration.
6964 * stack.c (record_selected_frame): Delete function.
6965
6966 * frame.h (struct frame_id): Define.
6967 (get_frame_id): Declare.
6968 (frame_find_by_id): Declare.
6969 * frame.c (frame_find_by_id): New function.
6970 (get_frame_id): New function.
6971
304270b6
AV
69722002-06-10 Andrey Volkov <[email protected]>
6973
6974 * ser-e7kpc.c: Fix duplicated define and call of
6975 _initialize_ser_e7000pc
6976
2f2cf184
DJ
69772002-06-09 Daniel Jacobowitz <[email protected]>
6978
6979 * signals/signals.c (target_signal_from_host): Fix #ifdef
6980 SIGRTMIN case.
6981 (do_target_signal_to_host): Likewise.
6982
caaa3122
DJ
69832002-06-09 Daniel Jacobowitz <[email protected]>
6984
6985 * mips-tdep.c (mips_find_abi_section): New function.
6986 (mips_gdbarch_init): Call it.
6987
6ac5df3a
MK
69882002-06-09 Mark Kettenis <[email protected]>
6989
6990 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6991 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6992 after Andrew's 2002-06-08 gdbarch change.
6993
82ea117a
MK
69942002-06-09 Mark Kettenis <[email protected]>
6995
6996 * i386-linux-nat.c (suppy_gregset): Don't supply
6997 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6998 register cache.
6999 (fill_gregset): Don't fetch it under the same circumstances.
7000
3c25f8c7
AC
70012002-06-09 Andrew Cagney <[email protected]>
7002
7003 * Makefile.in (callback_h): Define.
7004 (remote_sim_h): Update path to remote-sim.h.
7005 (remote-rdp.o): Add $(callback_h).
7006 (remote-sim.o): Use $(callback_h).
7007 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7008 * remote-rdp.c: Include "gdb/callback.h".
7009
1029b7fa
MK
70102002-06-09 Mark Kettenis <[email protected]>
7011
7012 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7013 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7014
616675d3
AC
70152002-06-08 Andrew Cagney <[email protected]>
7016
a3efda28
AC
7017 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7018 * rdi-share/serpardr.c: Ditto.
7019 * rdi-share/unixcomm.c: Ditto.
7020 * rdi-share/serdrv.c: Ditto.
7021 * rdi-share/hostchan.h: Ditto.
7022 * rdi-share/hostchan.c: Ditto.
7023 * rdi-share/host.h: Ditto.
7024 * rdi-share/devsw.c: Ditto.
7025
c5f10366
AC
7026 * objfiles.h: Change type of obj_private to void pointer.
7027 * pa64solib.c: Update copyright. Don't include "assert.h", use
7028 strcmp instead of STREQ, use LONGEST, do not use PTR
7029 * somsolib.c: Ditto.
7030
616675d3
AC
7031 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7032 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7033 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7034
e4b415d9
AC
70352002-06-08 Andrew Cagney <[email protected]>
7036
7037 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7038 (default_get_saved_register): Delete function.
7039 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7040 generic_unwind_get_saved_register.
7041 * gdbarch.h, gdbarch.c: Re-generate.
7042
ca0d0b52
AC
70432002-06-08 Andrew Cagney <[email protected]>
7044
7045 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7046 generic_func_frame_chain_valid.
7047 * gdbarch.h, gdbarch.c: Re-generate.
7048 * blockframe.c (generic_func_frame_chain_valid): Only check
7049 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7050 passing FP to PC_IN_CALL_DUMMY.
7051 Fix PR gdb/360.
7052
76860b5f
AC
70532002-06-08 Andrew Cagney <[email protected]>
7054
7055 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7056 (register_gdbarch_data): Initialize init_p.
7057 (gdbarch_data): Initialize data pointer using the init function.
7058 (init_gdbarch_data): Delete function.
7059 (gdbarch_update_p): Update.
7060 (initialize_non_multiarch): Update.
7061 (struct gdbarch): Add field initialized_p.
7062 * gdbarch.h, gdbarch.c: Re-generate.
7063
8dda9770
ML
70642002-06-07 Michal Ludvig <[email protected]>
7065
7066 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7067 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7068 better do the things actually here.
7069 * x86-64-tdep.c (x86_64_register_name2nr): New.
7070 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7071 (x86_64_gdbarch_init): Respect the above change.
7072 * x86-64-tdep.h (x86_64_register_name2nr)
7073 (x86_64_register_nr2name): Add prototypes.
7074 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7075
3d79a47c
MS
70762002-06-06 Michael Snyder <[email protected]>
7077
7bd91a28
MS
7078 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7079 Delete extra braces and re-indent.
7080 (d10v_store_return_value): Char return values
3d79a47c
MS
7081 must be shifted over by one byte in R0.
7082 (d10v_extract_return_value): Delete extra braces, re-indent.
7083
095a4c96
EZ
70842002-06-06 Elena Zannoni <[email protected]>
7085
7086 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7087 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7088 (d10v_integer_to_address): Rewrite.
7089 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7090 the d10v specific functions which take care of converting to the
7091 correct space.
7092
e8a77ca4
EZ
70932002-06-06 Elena Zannoni <[email protected]>
7094
7095 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7096 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7097
4f2e4a4f
AC
70982002-06-02 Andrew Cagney <[email protected]>
7099
7100 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7101 includes.
7102 * config/tm-linux.h: Ditto.
7103 * config/alpha/tm-alphalinux.h: Ditto.
7104 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7105 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7106 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7107 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7108 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7109 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7110 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7111 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7112 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7113 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7114 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7115 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7116 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7117 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7118 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7119 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7120 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7121 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7122 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7123 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7124 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7125 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7126 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7127 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7128 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7129 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7130 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7131 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7132 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7133 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7134 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7135 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7136 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7137 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7138 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7139 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7140 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7141
ae2ab2ce
AS
71422002-05-04 Aidan Skinner <[email protected]>
7143
7144 * ada-exp.tab.c: New file
7145 * ada-exp.y: New file
7146 * ada-lang.c: New file
7147 * ada-lang.h: New file
7148 * ada-lex.c: New file
7149 * ada-lex.l: New file
7150 * ada-tasks.c: New file
7151 * ada-typeprint.c: New file
7152 * ada-valprint.c: New file
7153
0ddd0135
JT
71542002-06-02 Jason Thorpe <[email protected]>
7155
7156 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7157 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7158
750fbacc
JT
71592002-06-02 Jason Thorpe <[email protected]>
7160
7161 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7162 insetead of ppc-linux-tdep.o.
7163 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7164 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7165
df94e18a
AC
71662002-06-02 Andrew Cagney <[email protected]>
7167
7168 2002-05-07 Christian Groessler <[email protected]>
7169 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7170 bit register contents for little endian hosts.
7171
1a38ab75
AC
71722002-06-01 Andrew Cagney <[email protected]>
7173
7174 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7175 any maintainer.
7176
8b1632ac
AC
71772002-06-01 Andrew Cagney <[email protected]>
7178
7179 * gdbarch.h: Regenerate.
7180
627054c8
AC
71812002-06-01 Andrew Cagney <[email protected]>
7182
7183 * MAINTAINERS: Add everyone to write-after-approval list.
7184
4f460812
AC
71852002-06-01 Andrew Cagney <[email protected]>
7186
7187 * stack.c (frame_info): Use frame_register_unwind instead of
7188 saved_regs. Mention when the SP is on the stack or in a register.
7189
7190 * frame.h (frame_register_unwind_ftype): Define. Document.
7191 (struct frame_info): Add field register_unwind and
7192 register_unwind_cache.
7193 (frame_register_unwind): Declare.
7194 (generic_unwind_get_saved_register): Declare.
7195
7196 * frame.c (frame_register_unwind): New function.
7197 (generic_unwind_get_saved_register): New function.
7198
7199 * blockframe.c (generic_call_dummy_register_unwind): New function.
7200 (frame_saved_regs_register_unwind): New function.
7201 (set_unwind_by_pc): New function.
7202 (create_new_frame): New function.
7203 (get_prev_frame): New function.
7204
de888f76
AC
72052002-05-30 Andrew Cagney <[email protected]>
7206
7207 * a29k-share/: Delete directory.
7208 * remote-vx29k.c: Delete file.
7209
2f2c3626
JT
72102002-05-30 Jason Thorpe <[email protected]>
7211
7212 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7213 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7214
9ce5c36a
JT
72152002-05-30 Jason Thorpe <[email protected]>
7216
7217 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7218 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7219 (sparc64nbsd-nat.o)
7220 (sparcnbsd-nat.o)
7221 (sparcnbsd-tdep.o): New dependency lists.
7222 * NEWS: Note new UltraSPARC NetBSD native configuration.
7223 * configure.host (sparc64-*-netbsd*): New host.
7224 * configure.tgt (sparc-*-netbsdelf*)
7225 (sparc-*-netbsd*): Set gdb_target to nbsd.
7226 (sparc64-*-netbsd*): New target.
7227 * sparc64nbsd-nat.c: New file.
7228 * sparcnbsd-nat.c: New file.
7229 * sparcnbsd-tdep.c: New file.
7230 * sparcnbsd-tdep.h: New file.
7231 * config/sparc/nbsd.mt: New file.
7232 * config/sparc/nbsd64.mh: New file.
7233 * config/sparc/nbsd64.mt: New file.
7234 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7235 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7236 (HOST_IPC): Remove.
7237 * config/sparc/nbsdaout.mt: Remove.
7238 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7239 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7240 (HOST_IPC): Remove.
7241 * config/sparc/nbsdelf.mt: Remove.
7242 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7243 sparc-nat.c compatiblity defines.
7244 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7245 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7246 * config/sparc/tm-nbsd64.h: New file.
7247 * config/sparc/tm-nbsdaout.h: Remove.
7248 * config/sparc/xm-nbsd.h: Remove.
7249
ef3cf062
JT
72502002-05-30 Jason Thorpe <[email protected]>
7251
7252 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7253 * sparc-tdep.c: Include osabi.h.
7254 (gdbarch_tdep): Add osabi member.
7255 (_initialize_sparc_tdep): Use gdbarch_register.
7256 (sparc_gdbarch_init): Use generic OS ABI framework.
7257 (sparc_dump_tdep): New function.
7258
ee8ff470
KB
72592002-05-30 Kevin Buettner <[email protected]>
7260
7261 * corefile.c (do_captured_read_memory_integer): Return non-zero
7262 result.
7263 (safe_read_memory_integer): Copy result of memory read when
7264 status is non-zero. Also, add comments.
7265
7b112f9c
JT
72662002-05-20 Jason Thorpe <[email protected]>
7267
7268 * Makefile.in (ppc_tdep_h): Define.
7269 (ppc-linux-nat.o)
7270 (ppc-linux-tdep.o)
7271 (rs6000-tdep.o): Use $(ppc_tdep_h).
7272 (ppc-sysv-tdep.o)
7273 (ppcnbsd-nat.o)
7274 (ppcnbsd-tdep.o): New dependency lists.
7275 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7276 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7277 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7278 (ppc_sysv_abi_broken_use_struct_convention)
7279 (ppc_sysv_abi_use_struct_convention)
7280 (ppc_sysv_abi_push_arguments): Move to...
7281 * ppc-sysv-tdep.c: ...here.
7282 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7283 * rs6000-tdep.c (process_note_abi_tag_sections)
7284 (get_elfosabi): Remove.
7285 (rs6000_gdbarch_init): Use generic OS ABI framework.
7286 (rs6000_dump_tdep): New function.
7287 (_initialize_rs6000_tdep): Use gdbarch_register.
7288 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7289 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7290 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7291 of ppc-linux-tdep.o.
7292 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7293 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7294 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7295 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7296 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7297 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7298
480dd42a
JB
72992002-05-29 Jim Blandy <[email protected]>
7300
7301 * macroscope.c (default_macro_scope): Put `void' in empty argument
7302 list.
7303
4182591f
AC
73042002-05-29 Andrew Cagney <[email protected]>
7305
7306 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7307 * arch-utils.c: Include "sim-regno.h".
7308 * gdbarch.sh: Don't include "sim-regno.h".
7309 * gdbarch.h, gdbarch.c: Regenerate.
7310 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7311 here.
7312 * arch-utils.h (legacy_register_sim_regno): To here.
7313 * remote-sim.c (legacy_register_sim_regno): Move function from
7314 here.
7315 * arch-utils.c (legacy_register_sim_regno): To here.
7316
8238d0bf
AC
73172002-05-28 Andrew Cagney <[email protected]>
7318
7319 * sim-regno.h: New file.
7320 * Makefile.in (sim_regno_h): Define.
7321 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7322 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7323 (legacy_register_sim_regno): New function.
7324 (one2one_register_sim_regno): New function.
7325 (gdbsim_fetch_register): Rewrite.
7326 (gdbsim_store_register): Only store a register when
7327 REGISTER_SIM_REGNO is valid.
7328 * d10v-tdep.c: Include "sim-regno.h".
7329 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7330 (d10v_ts3_register_sim_regno): Ditto.
7331 * gdbarch.sh: Include "sim-regno.h".
7332 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7333 * gdbarch.h, gdbarch.c: Regenerate.
7334 * arch-utils.h (default_register_sim_regno): Delete declaration.
7335 * arch-utils.c (default_register_sim_regno): Delete function.
7336
485721b1
JT
73372002-05-28 Jason Thorpe <[email protected]>
7338
7339 * ppcnbsd-nat.c: Rewrite.
7340 * ppcnbsd-tdep.c: New file.
7341 * ppcnbsd-tdep.h: New file.
7342 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7343 solib.o, and solib-svr4.o.
7344 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7345 nbsd-tdep.o, and corelow.o.
7346
697f244d
AC
73472002-05-28 Andrew Cagney <[email protected]>
7348
7349 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7350 `tr' and `sed'. Mention that `broken' targets are not expected to
7351 build.
7352
f08caad1 73532002-05-27 Michal Ludvig <[email protected]>
b1ab997b
ML
7354
7355 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7356 Let PC point right after the prologue before looking up symbols.
7357
3139facc
MH
73582002-05-27 Martin M. Hunt <[email protected]>
7359
7360 * i386-tdep.c (i386_register_virtual_type): Return
7361 builtin_type_vec128i for SSE registers.
7362
7363 * gdbtypes.h (builtin_type_vec128i): Declare.
7364
7365 * gdbtypes.c (build_builtin_type_vec128i): New function.
7366 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7367 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7368 (build_gdbtypes): Initialize new builtin vector types.
7369 (_initialize_gdbtypes): Register new vector types with gdbarch.
7370
6e3ba3b8
JT
73712002-05-26 Jason Thorpe <[email protected]>
7372
7373 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7374 since it has been multi-arch'd.
7375 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7376 Move Alpha and VAX multi-arch news entries to same section
7377 as other multi-arch news.
7378
93d5585d
JT
73792002-05-26 Jason Thorpe <[email protected]>
7380
7381 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7382 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7383 static. Rename some register numbers to put them in ns32k-tdep
7384 private namespace.
7385 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7386 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7387 functions.
7388 (_initialize_ns32k_tdep): Use gdbarch_register.
7389 * ns32k-tdep.h: New file.
7390 * ns32knbsd-tdep.c: New file.
7391 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7392 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7393 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7394 REGISTER_BYTES, REGISTER_BYTE): Remove.
7395 * config/ns32k/tm-ns32k.h: New file.
7396 * config/ns32k/tm-umax.h: Remove.
7397
efb2c70e
JT
73982002-05-26 Jason Thorpe <[email protected]>
7399
7400 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7401 ns32k_store_struct_return, ns32k_extract_return_value,
7402 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7403 functions.
7404 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7405 ns32k_saved_pc_after_call.
7406 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7407 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7408 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7409 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7410 ns32k_extract_struct_value_address.
7411
7bcc927b
JT
74122002-05-26 Jason Thorpe <[email protected]>
7413
7414 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7415 ns32k_fix_call_dummy): New.
7416 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7417 ns32k_call_dummy_words.
7418 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7419 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7420 CALL_DUMMY_NARGS): Remove.
7421 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7422
78f9d765
JT
74232002-05-26 Jason Thorpe <[email protected]>
7424
7425 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7426 ns32k_frame_saved_pc, ns32k_frame_args_address,
7427 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7428 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7429 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7430 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7431 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7432 (BREAKPOINT): Remove..
7433 (FRAME_CHAIN): Define as ns32k_frame_chain.
7434 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7435 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7436 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7437 (FRAME_FIND_SAVED_REGS): Remove.
7438 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7439 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7440 (POP_FRAME): Define as ns32k_pop_frame.
7441
f2c762e0
JT
74422002-05-26 Jason Thorpe <[email protected]>
7443
7444 * ns32k-tdep.c (ns32k_register_byte_32082,
7445 ns32k_register_byte_32382, ns32k_register_raw_size,
7446 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7447 functions.
7448 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7449 ns32k_register_byte_32382.
7450 * config/ns32k/tm-umax.h: Update copyright years.
7451 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7452 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7453 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7454 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7455 (ns32k_get_enter_addr): Fix prototype.
7456
af137673
JT
74572002-05-26 Jason Thorpe <[email protected]>
7458
7459 * ns32k-tdep.c: Update copyright years.
7460 (ns32k_register_name_32082): New function.
7461 (ns32k_register_name_32382): Ditto.
7462 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7463 (REGISTER_NAME): Define as ns32k_register_name_32382.
7464 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7465 (REGISTER_NAME): Define as ns32k_register_name_32082.
7466
a8bc7b56
JB
74672002-05-24 Jim Blandy <[email protected]>
7468
7469 * dwarf2read.c (free_line_header): Use xfree, not free.
7470
83a45910
JT
74712002-05-24 Jason Thorpe <[email protected]>
7472
7473 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7474 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7475
0db71247
AC
74762002-05-23 Andrew Cagney <[email protected]>
7477
7478 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7479
b9e5e4dd
AC
74802002-05-23 Andrew Cagney <[email protected]>
7481
7482 From Ross Alexander at NEC Europe:
7483 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7484
de530e84
MS
74852002-05-23 Michael Snyder <[email protected]>
7486
7487 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7488 for input, rather than parse_and_eval_address.
7489
b91b96f4
AC
74902002-05-23 Andrew Cagney <[email protected]>
7491
7492 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7493 * Makefile.in (sim_d10v_h): Update definition.
7494
8b279e7a
AC
74952002-05-24 Andrew Cagney <[email protected]>
7496
7497 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7498 change `2002-05-22 Michael Snyder' below.
7499 (d10v_push_arguments): Ditto.
7500 (d10v_extract_return_value): Ditto.
7501
0a3d0425
JB
75022002-05-23 Jim Blandy <[email protected]>
7503
7504 * macrotab.c (check_for_redefinition): Don't complain if the new
7505 definition is the same as the previous one. Take more arguments
7506 to allow the comparison.
7507 (macro_define_object, macro_define_function): Pass more arguments
7508 to check_for_redefinition.
7509
78eac43e
MS
75102002-05-22 Michael Snyder <[email protected]>
7511
7512 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7513 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7514 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7515 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7516 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7517 Add a temp variable to save a call (and a memory read).
7518 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7519 if possible (so that PC_IN_CALL_DUMMY will work).
7520
9bc1edb8
CV
75212002-05-22 Corinna Vinschen <[email protected]>
7522
7523 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7524
005ef3d2
ML
75252002-05-22 Michal Ludvig <[email protected]>
7526
7527 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7528 fde->cie_ptr.
7529 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7530 (dwarf2_build_frame_info): Add offset to fde->initial_location
7531 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7532 (execute_stack_op): Change type of 'result' from ULONGEST to
7533 CORE_ADDR.
005ef3d2 7534
fcf4f891
JT
75352002-05-22 Jason Thorpe <[email protected]>
7536
7537 * config/alpha/tm-nbsd.h: Include solib.h.
7538
cfef91e4
JT
75392002-05-22 Jason Thorpe <[email protected]>
7540
7541 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7542 assumptions about the host's byte order.
7543
9964235a
JT
75442002-05-22 Jason Thorpe <[email protected]>
7545
7546 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7547 to dependency list.
7548 * alphanbsd-tdep.c: Include solib-svr4.h.
7549 * shnbsd-tdep.c: Ditto.
7550
9eeef8ef
JT
75512002-05-22 Jason Thorpe <[email protected]>
7552
7553 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7554 nbsd-tdep.h to dependency list.
7555 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7556 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7557 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7558 nbsdaout.mh and nbsdelf.mh consistently.
7559 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7560 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7561 nbsdaout.mt and nbsdelf.mh consistently.
7562 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7563 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7564 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7565 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7566 a.out shared library stuff from here...
7567 * config/nm-nbsdaout.h: ...to here.
7568 * config/tm-nbsd.h: Remove.
7569 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7570 * config/arm/nbsd.mh: Remove.
7571 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7572 nbsd-tdep.o.
7573 * config/arm/nbsdaout.mh: New file.
7574 * config/arm/nbsdelf.mh: New file.
7575 * config/arm/nm-nbsdaout.h: New file.
7576 * config/i386/nbsd.mh: Remove.
7577 * config/i386/nbsd.mt: Remove.
7578 * config/i386/nbsdaout.mh: New file.
7579 * config/i386/nbsdaout.mt: New file.
7580 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7581 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7582 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7583 i386_register_u_addr): Remove.
7584 * config/i386/nm-nbsdaout.h: New file.
7585 * config/i386/nm-nbsdelf.h: Remove.
7586 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7587 (USE_STRUCT_CONVENTION): Remove.
7588 * config/i386/tm-nbsdaout.h: New file.
7589 * config/i386/tm-nbsdelf.h: Remove.
7590 * config/m68k/nbsd.mh: Remove.
7591 * config/m68k/nbsd.mt: Remove.
7592 * config/m68k/nbsdaout.mh: New file.
7593 * config/m68k/nbsdaout.mt: New file.
7594 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7595 * config/m68k/nm-nbsdaout.h: New file.
7596 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7597 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7598 * config/ns32k/nbsd.mh: Remove.
7599 * config/ns32k/nbsd.mt: Remove.
7600 * config/ns32k/nbsdaout.mh: New file.
7601 * config/ns32k/nbsdaout.mt: New file.
7602 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7603 * config/ns32k/nm-nbsdaout.h: New file.
7604 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7605 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7606 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7607 (SVR4_SHARED_LIBS): Remove.
7608 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7609 * config/sparc/nbsd.mh: Remove.
7610 * config/sparc/nbsd.mt: Remove.
7611 * config/sparc/nbsdaout.mh: New file.
7612 * config/sparc/nbsdaout.mt: New file.
7613 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7614 * config/sparc/nbsdelf.mt: New file.
7615 * config/sparc/nm-nbsdaout.h: New file.
7616 * config/sparc/nm-nbsdelf.h: Remove.
7617 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7618 * config/sparc/tm-nbsdaout.h: New file.
7619
257ce470
JT
76202002-05-21 Jason Thorpe <[email protected]>
7621
7622 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7623 mipsnbsd-tdep.c
7624 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7625
76a6d5fe
JT
76262002-05-21 Jason Thorpe <[email protected]>
7627
7628 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7629 shnbsd-nat.c.
7630 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7631
45888261
JT
76322002-05-21 Jason Thorpe <[email protected]>
7633
7634 * NEWS: Note new MIPS NetBSD native configuration.
7635 * configure.host (mips*-*-netbsd*): New host.
7636 * configure.tgt (mips*-*-netbsd*): New target.
7637 * mipsnbsd-nat.c: New file.
7638 * mipsnbsd-tdep.c: New file.
7639 * mipsnbsd-tdep.h: New file.
7640 * config/mips/nbsd.mh: New file.
7641 * config/mips/nbsd.mt: New file.
7642 * config/mips/nm-nbsd.h: New file.
7643 * config/mips/tm-nbsd.h: New file.
7644
70f80edf
JT
76452002-05-21 Jason Thorpe <[email protected]>
7646
7647 * Makefile.in (SFILES): Add osabi.c.
7648 (COMMON_OBS): Add osabi.o.
7649 (osabi.o): New dependency list.
7650 * osabi.c: New file.
7651 * osabi.h: New file.
7652 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7653
7654 * Makefile.in (alpha_tdep_h): Define and use instead of
7655 alpha-tdep.h.
7656 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7657 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7658 Remove.
7659 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7660 * alpha-tdep.h: Include osabi.h.
7661 (alpha_abi): Remove.
7662 (gdbarch_tdep): Use generic OS ABI framework.
7663 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7664 gdbarch_register_osabi.
7665 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7666 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7667 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7668
7669 * Makefile.in (sh_tdep_h): Add osabi.h.
7670 * sh-tdep.h (sh_osabi): Remove.
7671 (gdbarch_tdep): Use generic OS ABI framework.
7672 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7673 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7674 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7675 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7676
7677 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7678 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7679 gdbarch_register_osabi.
7680 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7681 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7682 (get_elfosabi): Rename to...
7683 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7684 ABI framework support routines.
7685 (arm_gdbarch_init): Use generic OS ABI framework.
7686 (arm_dump_tdep): Likewise.
7687 (_initialize_arm_tdep): Likewise.
7688 * arm-tdep.h: Include osabi.h.
7689 (arm_abi): Remove.
7690 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7691 osabi member.
7692 (arm_gdbarch_register_os_abi): Remove prototype.
7693 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7694 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7695
7696 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7697 * mips-tdep.c: Include osabi.h.
7698 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7699 OS ABI framework.
7700
d194345b
KH
77012002-05-20 Kazu Hirata <[email protected]>
7702
7703 * h8300-tdep.c: Fix formatting.
7704
70c6b0d1
EZ
77052002-05-20 Elena Zannoni <[email protected]>
7706
7707 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7708 printing vector registers.
7709
165b8e33
AC
77102002-05-19 Andrew Cagney <[email protected]>
7711
7712 From Fernando Nasser:
7713 * remote.c (remote_async_open_1): Re-throw the exception when the
7714 connection fails.
7715 (remote_cisco_open): Ditto.
7716 (remote_open_1): Ditto.
7717
36918e70
AC
77182002-05-19 Andrew Cagney <[email protected]>
7719
7720 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7721 (remote_start_remote): Add uiout parameter. Pass through to
7722 remote_start_remote_dummy.
7723 (remote_open_1): Use catch_exception instead of catch_errors.
7724 (remote_async_open_1): Ditto.
7725 (remote_cisco_open): Ditto.
7726
ae44c0c4
AC
77272002-05-19 Andrew Cagney <[email protected]>
7728
7729 * remote.c (remote_start_remote): Replace PTR with void pointer.
7730 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7731 static.
7732
8efe637d
AC
77332002-05-18 Andrew Cagney <[email protected]>
7734
7735 * gdb_indent.sh: Allow the script to be run in the sim directory.
7736
2f1b5984
MK
77372002-05-18 Mark Kettenis <[email protected]>
7738
f0f625e2
MK
7739 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7740 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7741
2f1b5984
MK
7742 * corelow.c (core_open): Only call set_gdbarch_from_file if
7743 exec_bfd is NULL.
7744
fc974602
AV
77452002-05-17 Andrey Volkov <[email protected]>
7746
7747 * h8300-tdep.c: Add support of EXR register
7748 * config/h8300/tm-h8300.h: Ditto.
7749
906709f4
AV
77502002-05-17 Andrey Volkov <[email protected]>
7751
7752 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7753
6e591d68
AV
77542002-05-17 Andrey Volkov <[email protected]>
7755
7756 * h8300-tdep.c: Change literal regnums to REGNO.
7757
84f0252a
JB
77582002-05-17 Jim Blandy <[email protected]>
7759
e0e9281e
JB
7760 * NEWS: Note addition of macro support.
7761
84f0252a
JB
7762 Expand preprocessor macros in C expressions.
7763 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7764 (scan_macro_expansion, scanning_macro_expansion,
7765 finished_macro_expansion): New function declarations.
7766 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7767 variable declarations.
7768 * parser-defs.h (expression_context_pc): New declaration.
7769 * parse.c (expression_context_pc): New variable.
7770 (parse_exp_1): Set expression_context_pc, as well as
7771 expression_context_block.
7772 * c-exp.y (yylex): If we're not already reading the result of a
7773 macro expansion, try to macro-expand the next token. When we're
7774 done scanning a macro expansion, switch back to the mainline text.
7775 Commas and `if's in a macro's expansion don't terminate the input.
7776 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7777 (macro_original_text, macro_expanded_text,
7778 expression_macro_lookup_func, expression_macro_lookup_baton): New
7779 variables.
7780 (scan_macro_expansion, scanning_macro_expansion,
7781 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7782 c_preprocess_and_parse): New functions.
7783 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7784 c_preprocess_and_parse, instead of c_parse.
7785 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7786 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7787
1c509ca8
JR
7788Fri May 17 14:26:19 2002 J"orn Rennecke <[email protected]>
7789
7790 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7791 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7792 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7793
2250ee0c
CV
77942002-05-17 Corinna Vinschen <[email protected]>
7795
7796 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7797
ab3b8126
JT
77982002-05-17 Jason Thorpe <[email protected]>
7799
7800 * Makefile.in (sh_tdep_h): Define and use.
7801 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7802 register enum): Move to...
7803 * * sh-tdep.h: ...here.
7804 * sh-tdep.c: Include sh-tdep.h.
7805 * sh3-rom.c: Likewise.
7806 * shnbsd-tdep.c: Likewise.
7807
ed9d4749
MS
78082002-05-16 Michael Snyder <[email protected]>
7809
7810 * arm-tdep.c: Spelling fix in comment.
7811
2e276125
JB
78122002-05-16 Jim Blandy <[email protected]>
7813
6821892e
JB
7814 Add commands for manually expanding macros and showing their
7815 definitions.
7816 * macrocmd.c, macroscope.c, macroscope.h: New files.
7817 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7818 (macroscope_h): New variable.
7819 (HFILES_NO_SRCDIR): Add macroscope.h.
7820 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7821 (macroscope.o, macrocmd.o): New rules.
7822
2e276125
JB
7823 Teach the Dwarf 2 reader to read macro information.
7824 * dwarf2read.c: #include "macrotab.h".
7825 (dwarf_macinfo_buffer): New variable.
7826 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7827 dwarf_macinfo_size.
7828 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7829 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7830 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7831 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7832 dwarf2_macro_spaces_in_definition): New complaints.
7833 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7834 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7835 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7836 the partial symbol table.
7837 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7838 from what's recorded in the partial symbol table.
7839 (read_file_scope): If the compilation unit has a
7840 `DW_AT_macro_info' attribute, read its macro information.
7841 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7842
2f53fe6c
DJ
78432002-05-16 Daniel Jacobowitz <[email protected]>
7844
7845 Fix PR gdb/546
7846 * ser-tcp.c: Don't include <netinet/udp.h>.
7847
2be99286
SC
78482002-05-16 Stephane Carrez <[email protected]>
7849
7850 * MAINTAINERS: Update my email address.
7851
c9af212b 78522002-05-16 Richard Earnshaw <[email protected]>
8501bbeb
RE
7853
7854 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7855 include file of the same name.
7856
bf5f1a52
CV
78572002-05-16 Corinna Vinschen <[email protected]>
7858
7859 * configure.tgt: Mark v850 as multi-arched.
7860 * config/v850/tm-v850.h: Remove file.
7861 * config/v850/v850.mt: Eliminate TM_FILE.
7862
435e042a
CV
78632002-05-16 Corinna Vinschen <[email protected]>
7864
7865 * v850-tdep.c: Full multi-arch.
7866 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7867 Define GDB_MULTI_ARCH to 2.
7868
9819c6c8
PM
78692002-05-16 Pierre Muller <[email protected]>
7870
7871 * p-exp.y (current_type): New static variable.
7872 Carries the type of the expression at the position that is parsed.
7873 (push_current_type, pop_current_type): Two new functions. Used
7874 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7875 (search_field): New static variable. Set to one after parsing a point
7876 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7877 (FIELDNAME): New token. After a point only a token belonging to
7878 current_type type definition is allowed.
7879 (all over token rules): reset and change current_type according
7880 to rules.
7881 (exp '[' rule): insert implicit array index field if
7882 exp is a pascal string type.
7883
3a06899a
CV
78842002-05-16 Corinna Vinschen <[email protected]>
7885
7886 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7887 frame info. Use frame_info's saved_regs instead of matching member
7888 in extra_frame_info throughout.
7889 (v850_frame_init_saved_regs): New function.
7890 (v850_init_extra_frame_info): Move most functionality into
7891 v850_frame_init_saved_regs().
7892 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7893 (v850_frame_find_saved_regs): Remove declaration.
7894 (FRAME_FIND_SAVED_REGS): Remove definition.
7895 (v850_frame_init_saved_regs): Add declaration.
7896 (FRAME_INIT_SAVED_REGS): Add definition.
7897
6ed14b0e
CV
78982002-05-16 Corinna Vinschen <[email protected]>
7899
7900 * v850-tdep.c: Begin multi-arch'ing v850.
7901 (v850_target_architecture_hook): Remove function.
7902 (v850_gdbarch_init): New function. Add code previously in
7903 v850_target_architecture_hook().
7904 (_initialize_v850_tdep): Don't set target_architecture_hook.
7905 Call register_gdbarch_init() instead.
7906
42725910
DJ
79072002-05-16 Daniel Jacobowitz <[email protected]>
7908
7909 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7910 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7911 (fixup_class_method_type): Likewise.
7912
99d9066e
JB
79132002-05-15 Jim Blandy <[email protected]>
7914
7915 Add macro structures to GDB's symbol tables. Nobody puts anything
7916 in them yet.
7917 * symtab.h (struct symtab): New member: `macro_table'.
7918 * buildsym.h (pending_macros): New global variable.
7919 * buildsym.c: #include "macrotab.h".
7920 (buildsym_init): Initialize `pending_macros'.
7921 (end_symtab): If we found macro information while reading a CU's
7922 debugging info, do build a symtab structure for it. Make the
7923 symtab point to the macro information, and clear the
7924 `pending_macros' pointer which held it while we were reading the
7925 debug info.
7926 (really_free_pendings): Free any pending macro table.
7927 * objfiles.h (struct objfile): New member: `macro_cache'.
7928 * objfiles.c (allocate_objfile): Set allocate and free functions
7929 for the macro cache's objstack.
7930 (free_objfile): Empty the macro cache's obstack.
7931 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7932 set new allocate and free functions for it.
7933 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7934 free functions for the macro cache's objstack. (Why is this
7935 function building its own objfile?)
7936 * symmisc.c (print_objfile_statistics): Print statistics on the
7937 macro bcache.
7938 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7939
c899585b
RE
79402002-05-15 Richard Earnshaw <[email protected]>
7941
7942 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7943 (REGISTER_U_ADDR): Delete definition.
7944 (arm_register_u_addr): Delete declaration.
7945
a6cdd8c5
RE
79462002-05-15 Richard Earnshaw <[email protected]>
7947
7948 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7949 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7950
c97dcfc7
AC
79512002-05-14 Andrew Cagney <[email protected]>
7952
7953 * regcache.c (register_valid): Revise comments refering to "Not
7954 available" and "unavailable".
7955 * frame.c (frame_register_read): Ditto.
7956 * findvar.c (value_of_register): Ditto.
7957
93021b7d
AC
79582002-05-15 Andrew Cagney <[email protected]>
7959
7960 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7961 (remote-sim.o): Update dependencies.
7962 (d10v-tdep.o): Specify dependencies.
7963 (sim_d10v_h): Define.
7964
a86bc61c
JB
79652002-05-14 Jim Blandy <[email protected]>
7966
7967 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7968 * macrotab.c (macro_lookup_inclusion, find_definition,
7969 new_macro_table): Same.
7970
7971 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7972 not `! strcmp ()'. This is a dubious improvement.
7973 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7974
7975 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7976 although it's not necessary, to avoid a warning.
7977
2fdde8f8
DJ
79782002-05-14 Daniel Jacobowitz <[email protected]>
7979
7980 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7981 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7982 TYPE_INSTANCE_FLAGS.
7983 (struct main_type): New.
7984 (struct type): Move most members to struct main_type. Change
7985 cv_type and as_type to new type_chain member. Add instance_flags.
7986 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7987 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7988 (finish_cv_type): Remove prototype.
7989 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7990 Set TYPE_CHAIN.
7991 (alloc_type_instance): New function.
7992 (smash_type): New function.
7993 (make_pointer_type, make_reference_type, make_function_type)
7994 (smash_to_member_type, smash_to_method_type): Call smash_type.
7995 (make_qualified_type): New function.
7996 (make_type_with_address_space): Call make_qualified_type.
7997 (make_cv_type): Likewise.
7998 (finish_cv_type): Remove unnecessary function.
7999 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8000 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8001 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8002 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8003 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8004 * hpread.c (hpread_read_struct_type): Likewise.
8005 * stabsread.c (read_struct_type): Likewise.
8006
843fedf4
EZ
80072002-05-14 Elena Zannoni <[email protected]>
8008
8009 * configure.tgt: Add a catch all sh* target, for cases like
8010 sh[2,3,4]-elf and sh-hms.
8011
05a6c72c
KS
80122002-05-14 Keith Seitz <[email protected]>
8013
8014 * event-loop.c (create_file_handler): Don't do anything but
8015 update data when we are given a fd which we are already
8016 monitoring.
8017
5d085aaf
ML
80182002-05-14 Michal Ludvig <[email protected]>
8019
8020 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8021 (update_context): Use __func__ in warnings.
8022
9db8d71f
DJ
80232002-05-14 Daniel Jacobowitz <[email protected]>
8024
8025 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8026 and tcp_close to net_open and net_close.
8027 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8028 using UDP if requested. Don't try to disable Nagle on UDP
8029 sockets.
8030 * remote.c (remote_serial_open): New function. Warn about UDP.
8031 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8032
5dbc6baa
EZ
80332002-05-13 Elena Zannoni <[email protected]>
8034
8035 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8036
cc3023f7
EZ
80372002-05-13 Elena Zannoni <[email protected]>
8038
8039 * configure.tgt: Remove sh-hms target.
8040 * MAINTAINERS: Don't list sh-hms as a separate target.
8041
ec2bcbe7
JB
80422002-05-13 Jim Blandy <[email protected]>
8043
8044 Add first preprocessor macro-expansion files.
8045 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8046 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8047 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8048 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8049 (COMMON_OBS): Add macrotab.o, macroexp.o.
8050 (macroexp.o, macrotab.o): New rules.
8051
6d531722
AC
80522002-05-13 Andrew Cagney <[email protected]>
8053
8054 * config/m88k/tm-m88k.h: Update copyright.
8055 (m88k_target_write_pc): Declare
8056 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8057 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8058 (SHIFT_INST_REGS): Update definition.
8059 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8060 using old definition of TARGET_WRITE_PC.
8061 * regcache.c (generic_target_write_pc): Delete code handling
8062 NNPC_REGNUM.
8063 * gdbarch.sh (NNPC_REGNUM): Delete.
8064 * gdbarch.h, gdbarch.c: Regenerate.
8065
3e3f2739
RE
80662002-05-13 Richard Earnshaw <[email protected]>
8067
8068 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8069 builtin reg number.
8070
0004e5a2
DJ
80712002-05-13 Daniel Jacobowitz <[email protected]>
8072
8073 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8074 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8075 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8076 access macros.
8077 * c-typeprint.c (cp_type_print_method_args): Likewise.
8078 (c_type_print_args): Likewise.
8079 * d10v-tdep.c (d10v_push_arguments): Likewise.
8080 (d10v_extract_return_value): Likewise.
8081 * expprint.c (print_subexp): Likewise.
8082 * gdbtypes.c (lookup_primitive_typename): Likewise.
8083 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8084 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8085 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8086 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8087 (TYPE_VECTOR): Likewise.
8088 * hpread.c (hpread_read_struct_type)
8089 (fix_static_member_physnames, fixup_class_method_type)
8090 (hpread_type_lookup): Likewise.
8091 * mdebugread.c (parse_symbol, parse_type): Likewise.
8092 * p-lang.c (is_pascal_string_type): Likewise.
8093 * valops.c (hand_function_call): Likewise.
8094 * x86-64-tdep.c (classify_argument): Likewise.
8095
8096 * hpread.c (hpread_read_function_type)
8097 (hpread_read_doc_function_type): Call replace_type.
8098 * dstread.c (create_new_type): Delete.
8099 (decode_dst_structure, process_dst_function): Call alloc_type.
8100 Use type access macros.
8101
dff95cc7
MK
81022002-05-12 Mark Kettenis <[email protected]>
8103
8104 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8105 the're not supported by the current architecture.
8106 (i387_fill_fxsave): Likewise.
8107
bbcd32ad
FF
81082002-05-12 Fred Fish <[email protected]>
8109
8110 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8111 sect_index_xxx members to index the first slot in section_offsets
8112 if all of the section_offsets are zero.
8113
89cf4787
MK
81142002-05-12 Mark Kettenis <[email protected]>
8115
8116 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8117 checked in with last change.
8118
1f77ffc5
MK
81192002-05-12 Mark Kettenis <[email protected]>
8120
8121 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8122 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8123 config.sub.
8124
89b8b4a9
DJ
81252002-05-12 Daniel Jacobowitz <[email protected]>
8126
8127 * Makefile.in: Update dependencies.
8128
14a5e767
AC
81292002-05-11 Andrew Cagney <[email protected]>
8130
8131 * language.c (local_hex_string_custom): Simplify. Do not depend
8132 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8133
8134 * memattr.c (mem_info_command): Replace calls to
8135 longest_local_hex_string and longest_local_hex_string_custom.
8136 * buildsym.c (make_blockvector): Ditto.
8137 * solib.c (info_sharedlibrary_command): Ditto.
8138 * tracepoint.c (tracepoints_info): Ditto.
8139 * symtab.c (print_msymbol_info): Ditto.
8140
8141 * language.c (local_hex_string): Delete.
8142 (local_hex_string_custom): Delete.
8143 (longest_local_hex_string): Rename to local_hex_string.
8144 (longest_local_hex_string_custom): Rename to
8145 local_hex_string_custom.
8146 * language.h (local_hex_string): Change parameter type to LONGEST.
8147 (local_hex_string_custom): Ditto.
8148 (longest_local_hex_string): Delete declaration.
8149 (longest_local_hex_string_custom): Ditto.
8150
8151 * solib.c: Update copyright.
8152 * memattr.c: Update copyright.
8153
13d01224
AC
81542002-05-11 Andrew Cagney <[email protected]>
8155
8156 * arch-utils.h (legacy_register_to_value): Declare.
8157 (legacy_value_to_register): Declare.
8158 (legacy_convert_register_p): Declare.
8159 * arch-utils.c (legacy_register_to_value): New function.
8160 (legacy_value_to_register): New function.
8161 (legacy_convert_register_p): New function.
8162
8163 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8164 (VALUE_TO_REGISTER): Define.
8165 (CONVERT_REGISTER_P): Define.
8166 * gdbarch.h, gdbarch.c: Regenerate.
8167
8168 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8169 VALUE_TO_REGISTER.
8170 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8171 CONVERT_REGISTER_P.
8172
4a1970e4
DJ
81732005-05-11 Daniel Jacobowitz <[email protected]>
8174 Peter Schauer <[email protected]>
8175
8176 * Makefile.in: Update dependencies for valops.c.
8177 * valops.c: Include "gdb_assert.h".
8178 (typecmp): Skip THIS parameter to methods.
8179 (find_method_list): Remove static_memfuncp argument,
8180 update callers. Check for stub methods.
8181 (find_value_oload_method_list): Don't set *static_memfuncp.
8182 (find_overload_match): Don't check for stub methods. Assert
8183 that methods are not stubbed. Handle static methods.
8184 (value_find_oload_method_list): Remove static_memfuncp argument.
8185 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8186 to the argument list for static stub methods.
8187 * value.h (value_find_oload_method_list): Update prototype.
8188
b2e75d78
AC
81892002-05-11 Andrew Cagney <[email protected]>
8190
8191 * arch-utils.h (generic_register_size): Declare.
8192 (generic_register_raw_size, generic_register_virtual_size): Delete
8193 declarations.
8194 * arch-utils.c (generic_register_raw_size): Delete.
8195 (generic_register_size): New function.
8196 (generic_register_virtual_size): Delete.
8197
8198 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8199 default generic_register_size.
8200 * gdbarch.h, gdbarch.c: Re-generate.
8201
8202 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8203 register_virtual_size.
8204 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8205 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8206
451fbdda
AC
82072002-05-11 Andrew Cagney <[email protected]>
8208
8209 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8210 * gdbarch.h, gdbarch.c: Regenerate.
8211 * gnu-v3-abi.c: Update copyright.
8212 (vtable_address_point_offset): Update.
8213 (gnuv3_rtti_type): Update.
8214 (gnuv3_baseclass_offset): Update.
8215 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8216 (init_fetch_link_map_offsets): Update.
8217 * remote.c (get_remote_state): Update.
8218
6d2f5cea
DJ
82192002-05-11 Daniel Jacobowitz <[email protected]>
8220
8221 * TODO: Remove value_headof/value_from_vtable_info comment.
8222 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8223 * values.c (value_headof, value_from_vtable_info): Delete.
8224 * value.h (value_from_vtable_info): Delete prototype.
8225
d2324da4
AC
82262002-05-11 Andrew Cagney <[email protected]>
8227
8228 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8229 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8230 $(gdb_regex_h).
8231 (gdb_assert_h): Define.
8232 (gdb_wait_h): Define.
8233 (gdb_regex_h): Define.
8234
5c717440
DJ
82352002-05-11 Daniel Jacobowitz <[email protected]>
8236
8237 From Peter Schauer <[email protected]>:
8238 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8239
6c7861b3
JT
82402002-05-11 Jason Thorpe <[email protected]>
8241
8242 * nbsd-tdep.c: Fix comment.
8243
ea5bc2a6
JT
82442002-05-11 Jason Thorpe <[email protected]>
8245
8246 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8247 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8248 (nbsd-tdep.o): New dependency list.
8249 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8250 nbsd-tdep.h.
8251 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8252 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8253 * nbsd-tdep.c: New file.
8254 * nbsd-tdep.h: New file.
8255 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8256 nbsd-tdep.h.
8257 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8258 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8259 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8260 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8261
b28da865
JT
82622002-05-11 Jason Thorpe <[email protected]>
8263
8264 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8265 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8266 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8267 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8268 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8269 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8270
4b8ff1fa
JT
82712002-05-11 Jason Thorpe <[email protected]>
8272
8273 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8274 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8275 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8276 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8277 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8278 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8279 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8280
dfe6eb1f
JT
82812002-05-11 Jason Thorpe <[email protected]>
8282
8283 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8284 fetch_elfcore_registers to...
8285 * i386nbsd-tdep.c: ...here.
8286 (i386nbsd_use_struct_convention): Rename to...
8287 (i386nbsd_aout_use_struct_convention): ...this.
8288 (i386nbsd_supply_reg): New function.
8289 (i386nbsd_fill_reg): New function.
8290 (fetch_core_registers): Use i386nbsd_supply_reg.
8291 (fetch_elfcore_registers): Likewise.
8292 (_initialize_i386nbsd_tdep): New function.
8293 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8294 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8295 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8296 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8297 (i386nbsd_aout_use_struct_convention): ...this.
8298
20cb8cda
JT
82992002-05-11 Jason Thorpe <[email protected]>
8300
8301 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8302 (store_inferior_registers): Use shnbsd_fill_reg.
8303 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8304 sh_nbsd_supply_register): Collapse into...
8305 (shnbsd_supply_reg): ...this.
8306 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8307 (shnbsd_fill_reg): ...this.
8308 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8309 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8310 (fetch_core_registers): Use shnbsd_supply_reg.
8311 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8312 (sh_nbsd_core_fns): Rename to...
8313 (shnbsd_core_fns): ...this.
8314 (sh_nbsd_elfcore_fns): Rename to...
8315 (shnbsd_elfcore_fns): ...this.
8316 (sh_nbsd_init_abi): Rename to...
8317 (shnbsd_init_abi): ...this.
8318 (_initialize_sh_nbsd_tdep): Rename to...
8319 (_initialize_shnbsd_tdep): ...this.
8320 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8321 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8322 sh_nbsd_fill_register): Remove prototypes.
8323 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8324
e750d25e
JT
83252002-05-11 Jason Thorpe <[email protected]>
8326
8327 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8328 (i387-nat.o): Delete dependency list.
8329 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8330 (x86-64-linux-nat.o): Likewise.
8331 * i387-nat.c: Delete file, moving contents to...
8332 * i387-tdep.c: ...here.
8333 * i387-nat.h: Rename...
8334 * i387-tdep.h: ...to this.
8335 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8336 * i386-linux-nat.c: Likewise.
8337 * i386bsd-nat.c: Likewise.
8338 * i386gnu-nat.c: Likewise.
8339 * i386nbsd-nat.c: Likewise.
8340 * i386v4-nat.c: Likewise.
8341 * x86-64-linux-nat.c: Likewise.
8342 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8343 * config/i386/go32.mh (NATDEPFILES): Likewise.
8344 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8345 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8346 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8347 * config/i386/linux.mh (NATDEPFILES): Likewise.
8348 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8349 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8350 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8351 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8352
1aee598a
JT
83532002-05-11 Jason Thorpe <[email protected]>
8354
8355 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8356 (alphanbsd-nat.o): Remove dependency list.
8357 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8358 * alphanbsd-nat.c: Delete. Contents moved to...
8359 * alphanbsd-tdep.c: ...here.
8360 (_initialize_alphanbsd_tdep): Register core functions.
8361 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8362
12bcb0fe
JT
83632002-05-11 Jason Thorpe <[email protected]>
8364
8365 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8366 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8367 (alphanbsd-nat.o): Likewise.
8368 (alphabsd-tdep.o): New dependency list.
8369 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8370 (fill_gregset): Use alphabsd_fill_reg.
8371 (supply_fpregset): Use alphabsd_supply_fpreg.
8372 (fill_fpregset): Use alphabsd_fill_fpreg.
8373 (fetch_inferior_registers): Use struct reg and struct fpreg
8374 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8375 and alphabsd_supply_fpreg.
8376 (store_inferior_registers): Use struct reg and struct fpreg
8377 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8378 and alphabsd_fill_fpreg.
8379 * alphabsd-tdep.c: New file.
8380 * alphabsd-tdep.h: New file.
8381 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8382 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8383 alphabsd_supply_fpreg.
8384 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8385 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8386
361d1df0
EC
83872002-05-11 Eric Christopher <[email protected]>
8388
8389 * mips-tdep.c (mips_double_register_type): Fix thinko.
8390 (mips_single_register_type): Ditto.
8391 * MAINTAINERS: Add self.
8392
92dd7cee
MK
83932002-05-11 Mark Kettenis <[email protected]>
8394
8395 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8396 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8397 right thing on architectures with different endianness and/or
8398 integer sizes.
8399
e27da16d
JT
84002002-05-10 Jason Thorpe <[email protected]>
8401
8402 From Christian Limpach <[email protected]>
8403 * configure.in: Change sed expression which comments out
8404 NATDEPFILES to also comment out continuation lines.
8405 * configure: Regenerate.
8406
ddde02bd
EZ
84072002-05-10 Elena Zannoni <[email protected]>
8408
8409 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8410 big patch.
8411
1c922164
EZ
84122002-05-10 Elena Zannoni <[email protected]>
8413
8414 * sh-tdep.c: Include correct file.
8415
283150cd
EZ
84162002-05-10 Elena Zannoni <[email protected]>
8417
8418 New support for sh64-elf (sh5) target.
8419
8420 * configure.tgt: For sh64-elf target, default to sh-elf.
8421
8422 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8423 (struct gdbarch_tdep): Add new fields for new registers and ABI
8424 info.
361d1df0 8425
283150cd
EZ
8426 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8427 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8428 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8429 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8430 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8431 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8432 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8433 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8434 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8435 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8436 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8437 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8438 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8439 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8440 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8441 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8442 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8443 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8444 sign_extend, sh64_nofp_frame_init_saved_regs,
8445 sh64_init_extra_frame_info, sh64_get_saved_register,
8446 sh64_extract_struct_value_address, sh64_pop_frame,
8447 sh64_push_arguments, sh64_extract_return_value,
8448 sh64_store_return_value, sh64_show_media_regs,
8449 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8450 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8451 sh_sh64_register_virtual_type,
8452 sh_sh64_register_convert_to_virtual,
8453 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8454 sh64_register_read, sh64_pseudo_register_write,
8455 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8456 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8457 sh64_do_pseudo_register, sh_compact_do_registers_info,
8458 sh64_do_registers_info, sh_gdbarch_init): New functions.
8459
3117ed25
EZ
84602002-05-10 Elena Zannoni <[email protected]>
8461
8462 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8463
2654e6d4
DJ
84642002-05-10 Daniel Jacobowitz <[email protected]>
8465
8466 * linespec.c (decode_line_1): Check for a double quote after
8467 a filename correctly.
8468
9ab3e532
JB
84692002-05-10 Jim Blandy <[email protected]>
8470
8471 Properly track the size of the current objfile's .debug_line section.
8472 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8473 (DWARF_LINE_SIZE): New macro.
8474 (dwarf2_build_psymtabs_hard): Record the line section's size in
8475 the partial symbol table.
8476 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8477 symbol table.
8478
126fa72d
PS
84792002-05-10 Petr Sorfa <[email protected]>
8480
8481 * ia64-tdep.c: Handle breakpoints on L instruction type
8482 in MLX instruction bundle by moving the breakpoint to
8483 the third slot (X instruction type) as L holds only data.
8484
1f077a3e
KB
84852002-05-10 Kevin Buettner <[email protected]>
8486
8487 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8488 (process_one_symbol): Complain about discarding local symbols
8489 due to a misplaced N_LBRAC entry.
8490
8120c9d5 84912002-05-09 Elena Zannoni <[email protected]>
361d1df0
EC
8492
8493 From Daniel Berlin <[email protected]>
8120c9d5
EZ
8494 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8495 decrease the depth we are at, in the case of templates.
361d1df0 8496
67b2c998
DJ
84972002-05-09 Daniel Jacobowitz <[email protected]>
8498
8499 * mips-tdep.c (mips_float_register_type): New function.
8500 (mips_double_register_type): New function.
8501 (mips_print_register): Use them.
8502 (do_fp_register_row): Likewise.
8503
fd326606
DJ
85042002-05-09 Daniel Jacobowitz <[email protected]>
8505
6609d9af 8506 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8507 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8508 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8509
bef35864
MS
85102002-05-09 Michael Snyder <[email protected]>
8511
8512 * remote-rdp.c (remote_rdp_can_run): Remove.
8513
c55a3f73
TT
85142002-05-09 Tom Tromey <[email protected]>
8515
8516 * jv-valprint.c (java_val_print): Handle `char' as a special case
8517 of TYPE_CODE_INT.
8518
b8d5e71d
MS
85192002-05-09 Michael Snyder <[email protected]>
8520
8521 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8522 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8523 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8524 str r(0123),[sp,#nn].
361d1df0 8525 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8526 order-independent by placing it in a loop.
8527
e2cd42dd
MS
85282002-05-06 Michael Snyder <[email protected]>
8529
8530 * stabsread.c (read_type): Add recognition for new attribute:
8531 "@V;" means that an array type is actually a vector.
8532 This is analogous to the vector flag that's been added to dwarf2.
8533
3ce1502b
MK
85342002-05-09 Mark Kettenis <[email protected]>
8535
8536 * i386-tdep.h (i386_abi): New enum.
8537 (struct gdbarch_tdep): Replace os_ident member with abi.
8538 (i386_gdbarch_register_os_abi): New prototype.
8539 * i386-tdep.c (i386_abi_names): New array.
8540 (process_note_abi_tag_sections): Removed.
8541 (process_note_sections): New function.
8542 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8543 (struct i386_abi_handler): New struct.
8544 (i386_abi_handler_list): New variable.
8545 (i386_gdbarch_register_os_abi): New function.
8546 (i386_gdbarch_init): Adapt for the changes given above.
8547
084c156a
DJ
85482002-05-08 Daniel Jacobowitz <[email protected]>
8549
8550 * gregset.h: Say "GNU/Linux".
8551
6599f021
EZ
85522002-05-08 Elena Zannoni <[email protected]>
8553
8554 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8555 (build_gdbtypes): Build builtin_type_v2_float.
8556 (_initialize_gdbtypes): Register new builtin type.
8557
40af4b0c
AC
85582002-05-08 Andrew Cagney <[email protected]>
8559
8560 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8561 (clear_gdbarch_swap): New function.
8562 (initialize_non_multiarch): Call.
8563 (gdbarch_update_p): Before calling init(), swap out and clear the
8564 existing architecture.
8565 * gdbarch.c: Regenerate.
8566
4fe84f46
JT
85672002-05-08 Jason Thorpe <[email protected]>
8568
8569 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8570 alphanbsd-tdep.c.
8571
4015edd1
JT
85722002-05-08 Jason Thorpe <[email protected]>
8573
8574 * sh-nbsd-nat.c: Rename to...
8575 * shnbsd-nat.c: ...this.
8576 * sh-nbsd-tdep.c: Rename to...
8577 * shnbsd-tdep.c: ...this.
8578 * sh-nbsd-tdep.h: Rename to...
8579 * shnbsd-tdep.h: ...this.
8580 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8581 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8582
0e2bd219
RE
85832002-05-08 Richard Earnshaw <[email protected]>
8584
8585 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8586 concatenation for command help messages.
8587
13a38d45
JT
85882002-05-08 Jason Thorpe <[email protected]>
8589
8590 * NEWS: Note new sh*-*-netbsdelf* configuration.
8591 * configure.host: Set gdb_host_cpu to sh for all sh*.
8592 (sh*-*-netbsdelf*): New host.
8593 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8594 (sh*-*-netbsdelf*): New target.
8595 * sh-nbsd-nat.c: New file.
8596 * sh-nbsd-tdep.c: New file.
8597 * sh-nbsd-tdep.h: New file.
8598 * config/sh/nbsd.mh: New file.
8599 * config/sh/nbsd.mt: New file.
8600 * config/sh/nm-nbsd.h: New file.
8601 * config/sh/tm-nbsd.h: New file.
8602
d658f924
JT
86032002-05-08 Jason Thorpe <[email protected]>
8604
8605 * sh-tdep.c (sh_osabi_names): Declare.
8606 (process_note_abi_tag_sections): New function.
8607 (get_elfosabi): Ditto.
8608 (sh_gdbarch_register_os_abi): Ditto.
8609 (sh_dump_tdep): Ditto.
8610 _initialize_sh_tdep): Use gdbarch_register to register
8611 sh_gdbarch_init and sh_dump_tdep.
8612 * config/sh/tm-sh.h (sh_osabi): Declare.
8613 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8614
848cfffb
AC
86152002-05-07 Andrew Cagney <[email protected]>
8616
8617 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8618 (thumb_scan_prologue): Ditto.
8619 (arm_find_callers_reg): Ditto.
8620 (arm_frame_chain): Ditto.
8621 (arm_init_extra_frame_info): Ditto.
8622 (arm_frame_saved_pc): Ditto.
8623 (arm_pop_frame): Ditto.
8624 (arm_push_return_address): New function.
8625 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8626 call_dummy_location, call_dummy_breakpoint_offset_p,
8627 call_dummy_breakpoint_offset, call_dummy_p,
8628 call_dummy_stack_adjust_p, call_dummy_words,
8629 sizeof_call_dummy_words, call_dummy_start_offset,
8630 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8631 call_dummy_address, push_return_address and push_dummy_frame for
8632 generic dummy frames.
8633
e7d717c0
JT
86342002-05-07 Jason Thorpe <[email protected]>
8635
8636 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8637 size computation for alloca.
8638 (sh_fp_frame_init_saved_regs): Likewise.
8639
7bbcf283
RE
86402002-05-07 Richard Earnshaw <[email protected]>
8641
8642 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8643 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8644 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8645 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8646 * remote-rdp.c (remote_rdp_fetch_register): Use
8647 ARM_MAX_REGISTER_RAW_SIZE.
8648 (remote_rdp_store_register): Likewise.
8649
4657573b
ML
86502002-05-07 Michal Ludvig <[email protected]>
8651
361d1df0 8652 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8653 added default labels to switch {} statements.
8654 * x86-64-tdep.c: Ditto.
8655 * x86-64-linux-nat.c: Ditto.
8656
010f3b2f
JT
86572002-05-07 Jason Thorpe <[email protected]>
8658
8659 * solib.h: Protect against multiple inclusion.
8660
debd256d
JB
86612002-05-06 Jim Blandy <[email protected]>
8662
9ab3e532
JB
8663 Add first preprocessor macro-expansion files.
8664 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8665 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8666 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8667 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8668 (COMMON_OBS): Add macrotab.o, macroexp.o.
8669 (macroexp.o, macrotab.o): New rules.
8670
debd256d
JB
8671 Separate the job of reading the line number info statement program
8672 header (...expialidocious) out into its own function.
8673 * dwarf2read.c (struct line_head, struct filenames, struct
8674 directories): Replace with...
8675 (struct line_header): New structure, containing the full
8676 contents of the statement program header, including the
8677 include directory and file name tables.
8678 (read_file_scope): If we have line number info, instead of just
8679 calling dwarf_decode_lines to do all the work, call
8680 dwarf_decode_line_header first to get a `struct line_header'
8681 containing the data in the statement program header, and then
8682 pass that to dwarf_decode_lines, which will pick up where that
8683 left off. Be sure to clean up the `struct line_header' object.
8684 (dwarf_decode_line_header, free_line_header, add_include_dir,
8685 add_file_name): New functions.
8686 (dwarf_decode_lines): Move all the code to read the statement
8687 program header into dwarf_decode_line_header. Take the line
8688 header it built as the first argument, instead of the offset to
8689 the compilation unit's line number info. Use the new `struct
8690 line_header' type instead of the old structures. No need to do
8691 cleanups here now, since we don't allocate anything.
8692 (dwarf2_statement_list_fits_in_line_number_section,
8693 dwarf2_line_header_too_long): New complaints.
8694
ac3aafc7
EZ
86952002-05-06 Elena Zannoni <[email protected]>
8696
8697 * gdbtypes.c (init_vector_type): New function.
8698 (build_builtin_type_vec128): Simplify the representation of SIMD
8699 registers.
8700 (build_gdbtypes): Initialize new builtin vector types.
8701 (_initialize_gdbtypes): Register new vector types with gdbarch.
8702 (builtin_type_v4_float, builtin_type_v4_int32,
8703 builtin_type_v8_int16, builtin_type_v16_int8,
8704 builtin_type_v2_int32, builtin_type_v4_int16,
8705 builtin_type_v8_int8): New (renamed) SIMD types.
8706
13e49980
MK
87072002-05-06 Mark Kettenis <[email protected]>
8708
8709 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8710 (i387_fill_fxsave): Likewise.
8711
997b20b8
AO
87122002-05-05 Alexandre Oliva <[email protected]>
8713
8714 * alpha-tdep.c (alpha_extract_return_value): Don't use
8715 non-constant array size in prototype.
8716
535c96ce
AC
87172002-05-04 Andrew Cagney <[email protected]>
8718
8719 From Brian Taylor <briant at model dot com>:
8720 * ui-out.c (ui_out_field_core_addr): Use the function
8721 longest_local_hex_string_custom'to format addresses > 32 bits
8722 wide.
8723
8724 * ui-out.c (ui_out_field_core_addr): Update comment.
8725
bedfa57b
AC
87262002-05-04 Andrew Cagney <[email protected]>
8727
8728 * stack.c (select_and_print_frame): Make static. Delete the
8729 parameter `level'.
8730 (func_command): Update call.
8731 (select_frame_command): Delete code computing the frame level.
8732 * frame.h (select_and_print_frame): Delete declaration.
8733
f621c63e
AC
87342002-05-04 Andrew Cagney <[email protected]>
8735
8736 * sparc-tdep.c (sparc_get_saved_register): Comment why
8737 get_prev_frame call is safe.
8738
0f7d239c
AC
87392002-05-04 Andrew Cagney <[email protected]>
8740
8741 * frame.h (select_frame): Delete level parameter.
8742 * stack.c (select_frame): Update. Use frame_relative_level to
8743 obtain the frame's level.
8744 (select_and_print_frame): Update call.
8745 (select_frame_command): Ditto.
8746 (up_silently_base): Ditto.
8747 (down_silently_base): Ditto.
8748 * ocd.c (ocd_start_remote): Ditto.
8749 * remote-rdp.c (remote_rdp_open): Ditto.
8750 * remote-mips.c (mips_initialize): Ditto.
8751 (common_open): Ditto.
8752 * remote-e7000.c (e7000_start_remote): Ditto.
8753 * m3-nat.c (select_thread): Ditto.
8754 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8755 (child_get_current_exception_event): Ditto.
8756 * varobj.c (varobj_create): Ditto.
8757 (varobj_update): Ditto.
8758 (c_value_of_root): Ditto.
8759 * tracepoint.c (finish_tfind_command): Ditto.
8760 * corelow.c (core_open): Ditto.
8761 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8762 * thread.c (info_threads_command): Ditto.
8763 (switch_to_thread): Ditto.
8764 * infrun.c (normal_stop): Ditto.
8765 (restore_selected_frame): Ditto.
8766 (restore_inferior_status): Ditto.
8767 * breakpoint.c (insert_breakpoints): Ditto.
8768 (watchpoint_check): Ditto.
8769 (bpstat_stop_status): Ditto.
8770 (do_enable_breakpoint): Ditto.
8771 * blockframe.c (flush_cached_frames): Ditto.
8772 (reinit_frame_cache): Ditto.
8773
71d6c7b1
AC
87742002-05-04 Andrew Cagney <[email protected]>
8775
8776 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8777 maintainer.
8778
cda6c68a
JB
87792002-05-04 Jim Blandy <[email protected]>
8780
8781 * gdbtypes.c (replace_type): Doc fix.
8782
5c1c87f0
AC
87832002-05-04 Andrew Cagney <[email protected]>
8784
8785 * valprint.c (strcat_longest): Delete commented out function.
8786 Update copyright.
8787
cd9bfe15
AC
87882002-05-04 Andrew Cagney <[email protected]>
8789
8790 * MAINTAINERS: Mark a29k as deleted.
8791 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8792 Move new configurations to the top.
8793 * configure.tgt: Remove a29k.
8794 * config/a29k/tm-vx29k.h: Delete.
8795 * config/a29k/vx29k.mt: Delete.
8796 * config/a29k/tm-a29k.h: Delete.
8797 * config/a29k/a29k-udi.mt: Delete.
8798 * config/a29k/a29k.mt: Delete.
8799 * a29k-tdep.c: Delete.
8800 * remote-udi.c: Delete.
8801 * remote-mm.c: Delete.
8802 * remote-eb.c: Delete.
8803 * remote-adapt.c: Delete.
8804 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8805 * config/s390/s390x.mt: Ditto.
8806 * config/s390/s390.mt: Ditto.
8807 * config/sparc/sparclynx.mh: Ditto.
8808 * config/sparc/linux.mh: Ditto.
8809 * config/pa/hppaosf.mh: Ditto.
8810 * config/pa/hppabsd.mh: Ditto.
8811 * config/ns32k/nbsd.mt: Ditto.
8812 * config/mips/vr5000.mt: Ditto.
8813 * config/m68k/sun3os4.mh: Ditto.
8814 * config/m68k/nbsd.mt: Ditto.
8815 * config/m68k/m68klynx.mh: Ditto.
8816 * config/m32r/m32r.mt: Ditto.
8817 * config/i386/x86-64linux.mt: Ditto.
8818 * config/i386/nbsdelf.mt: Ditto.
8819 * config/i386/nbsd.mt: Ditto.
8820 * config/i386/i386lynx.mh: Ditto.
8821
bf0c5130
AC
88222002-05-04 Andrew Cagney <[email protected]>
8823
8824 * target.c (debug_print_register): New function. Handle oversize
8825 registers.
8826 (debug_to_fetch_registers): Call.
8827 (debug_to_store_registers): Call.
8828
2ae1c2d2
JB
88292002-05-03 Jim Blandy <[email protected]>
8830
13a393b0
JB
8831 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8832 (read_type): Doc fix.
8833 * gdbtypes.c (replace_type): Doc fix.
8834
2ae1c2d2
JB
8835 * stabsread.c (multiply_defined_struct): New complaint.
8836 (read_struct_type): If the type we were passed isn't empty, or
8837 incomplete, don't read the new struct type into it; complain,
8838 and return the original type unchanged. Take a new `type_code'
8839 argument, which is the type code for the new type.
8840 (read_type): Rather than storing the type's type code here, pass
8841 it as an argument to read_struct_type, and let that take care of
8842 storing it. That way, we don't overwrite the original type code,
8843 so read_struct_type can use it to decide whether we're overwriting
8844 something we shouldn't.
8845 (complain_about_struct_wipeout): New function.
8846
8de9bdc4
AC
88472002-05-03 Andrew Cagney <[email protected]>
8848
8849 * gdbarch.sh: Assert that gdbarch is non-NULL.
8850 * gdbarch.c: Regenerate.
8851
f773fdbb
JM
88522002-05-03 Jason Merrill <[email protected]>
8853
8854 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8855 and return NULL.
8856
0e04a514
ML
88572002-05-03 Michal Ludvig <[email protected]>
8858
8859 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8860 (x86_64_dwarf2gdb_regno_map_length),
8861 (x86_64_dwarf2_reg_to_regnum): Added.
8862 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8863 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8864 (_initialize_x86_64_tdep): Synced with the change above.
8865 (x86_64_skip_prologue): Reformulated message.
8866
065432a8
PM
88672002-05-03 Pierre Muller <[email protected]>
8868
8869 * f-exp.y: Also use new prev_lexptr variable
8870 to improve error reporting. Based on Michael Snyder
8871 2002-04-24 dated patch to c-exp.y.
8872 * jv-exp.y: Likewise.
8873 * m2-exp.y: Likewise.
8874
a3162708
EZ
88752002-05-02 Elena Zannoni <[email protected]>
8876
8877 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8878 we are dealing with vectors.
8879
03620c38
PM
88802002-05-02 Pierre Muller <[email protected]>
8881
8882 * config/m68k/tm-nbsd.h: Obvious fix,
8883 correct machine name.
8884
6604db2e
PM
88852002-05-02 Pierre Muller <[email protected]>
8886
8887 * p-typeprint.c (pascal_type_print_base): Add support
8888 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8889
0906b739
PM
88902002-05-02 Pierre Muller <[email protected]>
8891
8892 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8893 for fondamental pascal 'char' type.
8894
e2625b33
PM
88952002-05-02 Pierre Muller <[email protected]>
8896
8897 * p-lang.h (is_pascal_string_type): Declaration changed,
8898 new sixth argument of type char ** added.
361d1df0 8899 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8900 changed. Args length_pos, length_size, string_pos, char_size
8901 can now be NULL. New argument arrayname set to the field
8902 name of the char array. Return value set to char array
8903 field index plus one.
361d1df0 8904 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8905 is_pascal_string_type function.
8906
cf17c188
AC
89072002-05-02 Andrew Cagney <[email protected]>
8908
8909 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8910 <[email protected]> change.
8911 * gdbarch.c: Regenerate.
8912
52bca491
AC
89132002-05-02 Andrew Cagney <[email protected]>
8914
8915 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8916 before probing for a new one. Detect errorenous gdbarch_init
8917 functions.
8918 * gdbarch.c: Regenerate.
8919
d5e72505
AC
89202002-05-01 Andrew Cagney <[email protected]>
8921
8922 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8923 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8924 * config/v850/tm-v850.h: Ditto. Update copyright.
8925
af566d9f
AC
89262002-04-30 Andrew Cagney <[email protected]>
8927
8928 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8929 current_gdbarch.
8930
880d85fa
MS
89312002-04-30 Michael Snyder <[email protected]>
8932
94c30b78
MS
8933 * arm-tdep.c: Whitespace clean-ups.
8934 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8935 should have been removed as part of 4/24 change.
8936
6f5987a6
KB
89372002-04-30 Kevin Buettner <[email protected]>
8938
8939 * rs6000-tdep.c: Added comment describing how fpscr register
8940 numbers were chosen.
8941
1a113c93
MS
89422002-04-30 Michael Snyder <[email protected]>
8943
8944 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8945
9a6f53fe
EZ
89462002-04-29 Elena Zannoni <[email protected]>
8947
8948 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8949 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8950 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8951
11ed25ac
KB
89522002-04-29 Kevin Buettner <[email protected]>
8953
8954 From Louis Hamilton <[email protected]>:
8955 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8956 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8957 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8958 not bfd-private xcoff data, to determine wordsize.
8959 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8960
ae232405
AC
89612002-04-29 Andrew Cagney <[email protected]>
8962
8963 GDB 5.2 released from 5.2 branch.
8964
91fd20f7
ML
89652002-04-29 Michal Ludvig <[email protected]>
8966
8967 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8968 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8969 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8970
2dc5091b
EZ
89712002-04-29 Elena Zannoni <[email protected]>
8972
8973 * rs6000-tdep.c (rs6000_extract_return_value,
8974 rs6000_store_return_value): Handle returning vectors.
8975 (rs6000_gdbarch_init): Use
8976 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8977 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8978 New function.
8979 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8980 vectors.
8981 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8982 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8983
2b9848d8
PM
89842002-04-24 Pierre Muller <ics.u-strasbg.fr>
8985
8986 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 8987 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
8988 with fprintf_unfiltered (gdb_stderr,...).
8989
f8d17dc5
PM
89902002-04-24 Pierre Muller <ics.u-strasbg.fr>
8991
8992 * remote-array.c (printf_monitor, write_monitor,
361d1df0 8993 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
8994 Replace fprintf (stderr,...
8995 with fprintf_unfiltered (gdb_stderr,....
8996 * remote-es.c: Likewise.
8997 * remote-os9k.c: Likewise.
8998 * remote-st.c: Likewise.
8999
2f2f1ad1
AS
90002002-04-28 Andreas Schwab <[email protected]>
9001
9002 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9003 linux-proc.o and gcore.o.
9004
b6779aa2
AC
90052002-04-26 Michal Ludvig <[email protected]>
9006
9007 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9008 code without frame pointers.
9009
7e57f5f4
AC
90102002-04-26 Andrew Cagney <[email protected]>
9011
9012 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9013 ON_STACK is needed.
9014
2ceb85d0
BE
90152002-04-26 Ben Elliston <[email protected]>
9016
9017 * target.c (do_xfer_memory): Correct reference to the new option
9018 "trust-readonly-sections".
9019
f5f8a009
EZ
90202002-04-26 Elena Zannoni <[email protected]>
9021
9022 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9023 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9024 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9025 vectors.
9026 (read_array_type): Record the fact that this array type is really a
9027 vector (i.e. are passed in by value).
9028
5868c862
JT
90292002-04-26 Jason Thorpe <[email protected]>
9030
9031 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9032 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9033 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9034 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9035 * alpha-linux-tdep.c: Include frame.h.
9036 (alpha_linux_sigcontext_addr): New function.
9037 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9038 alpha_linux_sigcontext_addr.
9039 * alpha-osf1-tdep.c: Include gdbcore.h.
9040 (alpha_osf1_sigcontext_addr): New function.
9041 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9042 alpha_osf1_sigcontext_addr.
9043 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9044 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9045
bfb01f37
AC
90462002-04-26 Andrew Cagney <[email protected]>
9047
361d1df0 9048 * stack.c (selected_frame_level):
bfb01f37
AC
9049 (select_frame): Do not set selected_frame_level.
9050 * frame.h (selected_frame_level): Delete declaration.
9051
15813d3f
AC
90522002-04-26 Andrew Cagney <[email protected]>
9053
9054 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9055 convert_from_func_ptr-addr when AIX / PowerOpen.
9056
6096c27a
AC
90572002-04-25 Andrew Cagney <[email protected]>
9058
9059 * valops.c (hand_function_call): Call
9060 generic_save_call_dummy_addr.
9061 * frame.h (generic_save_call_dummy_addr): Declare.
9062 * blockframe.c (struct dummy_frame): Add fields call_lo and
9063 call_hi.
9064 (generic_find_dummy_frame): Check for PC in range call_lo to
9065 call_hi instead of entry_point_address.
9066 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9067 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9068 (generic_save_call_dummy_addr): New function.
9069
f510d44e
DM
90702002-04-24 David S. Miller <[email protected]>
9071
9072 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9073 sparc_skip_prologue.
9074 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9075 information to find prologue when possible.
9076 (sparc_prologue_frameless_p): Call examine_prologue directly.
9077 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9078 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9079 second argument.
9080 (SKIP_PROLOGUE): Likewise.
9081
15d72a92
JT
90822002-04-25 Jason Thorpe <[email protected]>
9083
9084 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9085 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9086 indicate that the condition it was testing is always true.
9087 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9088 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9089 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9090
accc6d1f
JT
90912002-04-25 Jason Thorpe <[email protected]>
9092
9093 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9094 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9095 tdep->jb_pc and tdep->jb_elt_size.
9096 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9097 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9098 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9099 * alpha-nat.c (get_longjmp_target): Remove.
9100 (JB_ELEMENT_SIZE): Ditto.
9101 (JB_PC): Ditto.
9102 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9103 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9104 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9105 to alpha_get_longjmp_target.
9106 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9107 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9108 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9109
1bfdc549
AC
91102002-04-25 Andrew Cagney <[email protected]>
9111
9112 * README: Update to GDB 5.2.
9113
1bd316f0
AC
91142002-04-25 Andrew Cagney <[email protected]>
9115
9116 * gdbarch.sh (LC_ALL): Set to `c'.
9117
2e5ff58c
TR
91182002-04-25 Theodore A. Roth <[email protected]>
9119
9120 * avr-tdep.c: Ran through gdb_indent.sh.
9121
e33ce519
TR
91222002-04-25 Theodore A. Roth <[email protected]>
9123
9124 * MAINTAINERS: Add myself as AVR maintainer.
9125 * NEWS: Note new target avr.
9126
8818c391
TR
91272002-04-25 Theodore A. Roth <[email protected]>
9128
9129 * Makefile.in: Add support for AVR target.
9130 * configure.tgt: Add support for AVR target.
9131 * avr-tdep.c: New file
9132 * config/avr/avr.mt: New file.
9133
79509c2d
TR
91342002-04-25 Theodore A. Roth <[email protected]>
9135
9136 * MAINTAINERS: Add myself to write-after-approval.
9137
dac8068e
PM
91382002-04-24 Pierre Muller <ics.u-strasbg.fr>
9139
9140 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9141 with fprintf_unfiltered (gdb_stderr,....
9142
25bf3106
PM
91432002-04-25 Pierre Muller <[email protected]>
9144
9145 Fix PR gdb/508.
9146 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9147
24467a86
PM
91482002-04-25 Pierre Muller <[email protected]>
9149
9150 * p-exp.y: Also use new prev_lexptr variable
9151 to improve error reporting. Based on Michael Snyder
9152 2002-04-24 dated patch to c-exp.y.
9153
95b80706
JT
91542002-04-25 Jason Thorpe <[email protected]>
9155
9156 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9157 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9158 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9159 to 0.
9160 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9161 and struct value.
9162 (FUNCTION_START_OFFSET): Remove.
9163 (BREAKPOINT): Ditto.
9164
e90cc612
JT
91652002-04-25 Jason Thorpe <[email protected]>
9166
9167 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9168 * NEWS: Ditto.
9169
6c72f9f9
JT
91702002-04-24 Jason Thorpe <[email protected]>
9171
9172 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9173 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9174 alpha_linux_pc_in_sigtramp.
9175 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9176 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9177 alpha_osf1_pc_in_sigtramp.
9178 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9179 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9180 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9181 alphafbsd_pc_in_sigtramp.
9182 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9183 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9184 alphanbsd_pc_in_sigtramp.
9185 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9186 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9187
5e4f3379
JT
91882002-04-24 Jason Thorpe <[email protected]>
9189
9190 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9191
da8ca43d
JT
91922002-04-24 Jason Thorpe <[email protected]>
9193
9194 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9195 alphanbsd-tdep.c.
9196 (alphanbsd-nat.o): New dependency list.
9197 (alphanbsd-tdep.o): Ditto.
9198 * NEWS: Note new native NetBSD/alpha configuration.
9199 * alphanbsd-nat.c: New file.
9200 * alphanbsd-tdep.c: Ditto.
9201 * configure.host (alpha*-*-netbsd*): New host.
9202 * configure.tgt (alpha*-*-netbsd*): New target.
9203 * config/alpha/nbsd.mh: New file.
9204 * config/alpha/nbsd.mt: Ditto.
9205 * config/alpha/nm-nbsd.h: Ditto.
9206 * config/alpha/tm-nbsd.h: Ditto.
9207
36a6271d
JT
92082002-04-24 Jason Thorpe <[email protected]>
9209
9210 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9211 (alpha-osf1-tdep.o): New dependency list.
9212 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9213 and skip_sigtramp_frame members.
9214 * alpha-linux-tdep.c: Include gdbcore.h.
9215 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9216 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9217 * alpha-osf1-tdep.c: New file.
9218 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9219 alpha-osf1-dep.c.
9220 (alpha_frame_past_sigtramp_frame): New function.
9221 (alpha_dynamic_sigtramp_offset): Ditto.
9222 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9223 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9224 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9225 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9226 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9227 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9228 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9229 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9230 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9231 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9232 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9233 to find_solib_trampoline_target.
9234 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9235 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9236 (SKIP_TRAMPOLINE_CODE): Remove.
9237 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9238 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9239 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9240 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9241 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9242 (PROC_SIGTRAMP_MAGIC): Ditto.
9243 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9244 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9245 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9246 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9247 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9248
2f4bc57b
JT
92492002-04-24 Jason Thorpe <[email protected]>
9250
9251 * NEWS: Note that Alpha targets are now multi-arch.
9252
665132f9
MS
92532002-04-24 Michael Snyder <[email protected]>
9254
9255 * parser-defs.h (prev_lexptr): New external variable.
9256 * parse.c (parse_exp_1): Set prev_lexptr to null before
9257 calling the language-specific parser.
9258 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9259 (yyerror): Use prev_lexptr in error reporting.
9260
32872fa7
DJ
92612002-04-24 Daniel Jacobowitz <[email protected]>
9262
9263 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9264 * gregset.h: If FILL_FPXREGSET is defined, provide
9265 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9266 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9267 is defined, call fill_fpxregset.
9268
57e76fac
MS
92692002-04-24 Roland McGrath <[email protected]>
9270
9271 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9272 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9273 (supply_gregset, supply_fpregset): New functions.
9274
9275 * gnu-nat.c (gnu_find_memory_regions): New function.
9276 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9277 (gnu_xfer_memory): Add a cast.
9278
f43845b3
MS
92792002-04-24 Michael Snyder <[email protected]>
9280
361d1df0 9281 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9282 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9283 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9284 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9285 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9286 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9287
a0abec03
AC
9288Wed Apr 24 14:22:21 2002 Andrew Cagney <[email protected]>
9289
9290 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9291 NUM_PSEUDO_REGS can be used.
9292
d7bd68ca
AC
92932002-04-24 Andrew Cagney <[email protected]>
9294
9295 * arch-utils.h: Update copyright.
9296
9297 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9298 * gdbarch.h, gdbarch.c: Re-generate.
9299
9300 * inferior.h (IN_SIGTRAMP): Delete definition.
9301 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9302 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9303
9304 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9305 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9306 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9307 (find_proc_framesize): Ditto.
9308 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9309 (alpha_init_extra_frame_info): Ditto.
9310 * infrun.c (handle_inferior_event): Ditto.
9311 (handle_inferior_event): Ditto.
9312 (check_sigtramp2): Ditto.
9313 * blockframe.c (create_new_frame): Ditto.
9314 (get_prev_frame): Ditto.
9315 * ppc-linux-tdep.c: Update comments.
9316 * i386-linux-tdep.c: Update comments.
9317 * breakpoint.c (bpstat_what): Update comment.
9318
4867e41e
DM
93192002-04-24 David S. Miller <[email protected]>
9320
21d83aa5
DM
9321 * i960-tdep.c (register_in_window_p): New function.
9322 (i960_find_saved_register): Use it instead of
9323 REGISTER_IN_WINDOW_P.
9324 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9325
4867e41e
DM
9326 * symtab.h (find_stab_function_addr): Kill extern.
9327 * minsyms.c (find_stab_function_addr): Remove from here...
9328 * dbxread.c: ... to here, and mark it static.
9329
69cdf6a2
DM
93302002-04-20 David S. Miller <[email protected]>
9331
9332 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9333 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9334
5a595886
DM
93352002-04-21 David S. Miller <[email protected]>
9336
9337 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9338 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9339 (vx_write_register): Likewise.
9340
1da1a192
JB
93412002-04-23 J. Brobecker <[email protected]>
9342
9343 * source.c (is_regular_file): New function.
9344 (openp): Check wether file to open is a regular file
9345 to avoid opening directories.
9346
baa6f10b
JT
93472002-04-22 Jason Thorpe <[email protected]>
9348
9349 * findvar.c (extract_signed_integer): Cast printf argument
9350 to suppress format warning.
9351 (extract_unsigned_integer): Likewise.
9352 * infcmd.c (registers_info): Likewise.
9353 * top.c (get_prompt_1): Likewise.
9354 * valops.c (value_assign): Likewise.
9355 * valprint.c (print_decimal): Likewise.
9356
b2c4da81
L
93572002-04-22 H.J. Lu ([email protected])
9358
9359 * c-exp.y (typebase): Support
361d1df0 9360
b2c4da81
L
9361 [long|long long|short] [signed|unsigned] [int|]
9362
9363 and
9364
9365 signed [long|long long|short] int
9366
f267bd6a
JT
93672002-04-22 Jason Thorpe <[email protected]>
9368
9369 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9370 and vax-tdep.h.
9371 * vax-tdep.h: New file.
9372 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9373 Make several routines static.
9374 (vax_get_saved_register): New function.
9375 (vax_gdbarch_init): New function.
9376 (_initialize_vax_tdep): Register vax_gdbarch_init.
9377 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9378 Remove macros now under the control of gdbarch.
9379
da3c6d4a
MS
93802002-04-22 Michael Snyder <[email protected]>
9381
11d3b27d
MS
9382 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9383 Some whitespace and coding standards tweaks.
da3c6d4a 9384
a33f7558
JT
93852002-04-22 Jason Thorpe <[email protected]>
9386
9387 * vax-tdep.c: Include regcache.h.
9388 (vax_call_dummy_words): New.
9389 (sizeof_vax_call_dummy_words): New.
9390 (vax_fix_call_dummy): New function.
9391 (vax_saved_pc_after_call): Ditto.
9392 * config/vax/tm-vax.h: Don't include regcache.h.
9393 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9394 (CALL_DUMMY): Remove.
9395 (CALL_DUMMY_WORDS): Define.
9396 (SIZEOF_CALL_DUMMY_WORDS): Define.
9397 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9398
47a73475
MS
93992002-04-18 Michael Snyder <[email protected]>
9400
9401 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9402
52efde73
JT
94032002-04-22 Jason Thorpe <[email protected]>
9404
9405 * vax-tdep.c (vax_frame_chain): New function.
9406 (vax_push_dummy_frame): Ditto.
9407 (vax_pop_frame): Ditto.
9408 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9409 (FRAMELESS_FUNCTION_INVOCATION): Use
9410 generic_frameless_function_invocation_not.
9411 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9412 (POP_FRAME): Use vax_pop_frame.
9413
ea74468c
JT
94142002-04-22 Jason Thorpe <[email protected]>
9415
9416 * vax-tdep.c (vax_store_struct_return): New function.
9417 (vax_extract_return_value): Ditto.
9418 (vax_store_return_value): Ditto.
9419 (vax_extract_struct_value_address): Ditto.
9420 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9421 vax_store_struct_return.
9422 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9423 (STORE_RETURN_VALUE): Use vax_store_return_value.
9424 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9425
5516aa92
JT
94262002-04-22 Jason Thorpe <[email protected]>
9427
9428 * vax-tdep.c (vax_frame_saved_pc): New function.
9429 (vax_frame_args_address_correct): Ditto.
9430 (vax_frame_args_address): Ditto.
9431 (vax_frame_locals_address): Ditto.
9432 (vax_frame_num_args): Move code to be in proximity to
9433 other frame-related functions.
9434 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9435 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9436 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9437 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9438 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9439
36af0b35
L
94402002-04-22 H.J. Lu ([email protected])
9441
9442 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9443 includedir.
9444
ab62c900
JT
94452002-04-22 Jason Thorpe <[email protected]>
9446
9447 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9448 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9449 (FRAME_INIT_SAVED_REGS): New macro.
9450
7232b100
JT
94512002-04-22 Jason Thorpe <[email protected]>
9452
9453 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9454
b70d2aee
JT
94552002-04-22 Jason Thorpe <[email protected]>
9456
9457 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9458 where needed.
9459 (fetch_osf_core_registers): Likewise.
9460 (supply_gregset): Likewise.
9461
a0e8a2d1 94622002-04-22 J. Brobecker <[email protected]>
361d1df0 9463
a0e8a2d1
JB
9464 * symfile.h (get_section_index): Define.
9465 * symfile.c (get_section_index): New function.
9466 * mdebugread.c (SC_IS_SBSS): New macro.
9467 (SC_IS_BSS): Return true for the scBss storage class only, as
9468 the scSBss storage class refers to the .sbss section.
9469 (parse_partial_symbols): Discard the symbols which associated
9470 section does not exist.
9471 Make sure to use the .sbss section index for symbols which
9472 storage class is scBss, rather than using the .bss section index.
9473
51eb8b08
JT
94742002-04-22 Jason Thorpe <[email protected]>
9475
9476 * vax-tdep.c: Update copyright years.
9477 (vax_register_name): New function.
9478 (vax_register_byte): Ditto.
9479 (vax_register_raw_size): Ditto.
9480 (vax_register_virtual_size): Ditto.
9481 (vax_register_virtual_type): Ditto.
9482 * config/vax/tm-vax.h: Update copyright years.
9483 (REGISTER_NAMES): Remove.
9484 (REGISTER_NAME): Define.
9485 (REGISTER_BYTE): Use vax_register_byte.
9486 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9487 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9488 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9489
6cc1c0a8
AC
94902002-04-21 Andrew Cagney <[email protected]>
9491
9492 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9493 declaration
9494 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9495
9319a2fe
DM
94962002-04-21 David S. Miller <[email protected]>
9497
9498 * arch-utils.c (generic_prologue_frameless_p): Kill
9499 SKIP_PROLOGUE_FRAMELESS_P code.
9500 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9501 references.
9502 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9503 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9504 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9505 references.
9506 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9507 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9508 (sparc_gdbarch_init): Pass it to
9509 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9510
e9ed6d01
JT
95112002-04-21 Jason Thorpe <[email protected]>
9512
9513 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9514 (alphabsd-nat.o): New dependency list.
9515
36012033
JT
95162002-04-21 Jason Thorpe <[email protected]>
9517
9518 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9519 alphafbsd-tdep.c.
9520 (alpha-linux-tdep.o): New dependency list.
9521 (alphafbsd-tdep.o): Likewise.
9522
3379287a
JT
95232002-04-21 Jason Thorpe <[email protected]>
9524
9525 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9526 to here...
9527 * alpha-tdep.c: ...from here.
9528 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9529
4bcbd6cb
JT
95302002-04-21 Jason Thorpe <[email protected]>
9531
9532 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9533 prototype from here...
9534 * alpha-tdep.h: ...to here.
9535
b31da25e
AC
95362002-04-21 Andrew Cagney <[email protected]>
9537
9538 * frame.h (selected_frame_level): Document as deprecated.
9539 (frame_relative_level): Declare.
9540 * stack.c (frame_relative_level): New function.
9541 (selected_frame_level): Document as deprecated.
9542 (select_frame): Do not set the selected_frame_level.
9543
9544 * stack.c (frame_info, record_selected_frame): Update.
9545 (frame_command, current_frame_command): Update.
9546 (up_silently_base, up_command, down_silently_base): Update.
9547 (down_command): Update.
9548 * inflow.c (kill_command): Update.
9549 * tracepoint.c (finish_tfind_command): Update.
9550 * corelow.c (core_open): Update.
9551 * thread.c (info_threads_command): Update.
9552 (do_captured_thread_select): Update.
9553 * infcmd.c (finish_command): Update.
9554 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9555
9c1d6fe5
JT
95562002-04-21 Jason Thorpe <[email protected]>
9557
9558 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9559
ab89facf
AC
95602002-04-21 Andrew Cagney <[email protected]>
9561
9562 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9563 type const.
9564
82a4efa1
JT
95652002-04-21 Jason Thorpe <[email protected]>
9566
9567 * alphafbsd-tdep.c: Update copyright years. Include
9568 alpha-tdep.h.
9569 (alphafbsd_use_struct_convention): Make static.
9570 (alphafbsd_init_abi): New function.
9571 (_initialize_alphafbsd_tdep): New function.
9572 * config/alpha/tm-fbsd.h: Update copyright years.
9573 (USE_STRUCT_CONVENTION): Remove.
9574
44dffaac
JT
95752002-04-21 Jason Thorpe <[email protected]>
9576
9577 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9578 an Alpha ABI variant.
9579 (alpha_abi_handler_list): Declare.
9580 (alpha_gdbarch_register_os_abi): New function.
9581 (alpha_gdbarch_init): Give registered ABI variant handlers a
9582 chance to tweak the gdbarch once we have set up defaults.
9583 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9584
65585be4
JT
95852002-04-21 Jason Thorpe <[email protected]>
9586
9587 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9588 to standard_coerce_float_to_double.
9589 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9590
d9b023cc
JT
95912002-04-21 Jason Thorpe <[email protected]>
9592
9593 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9594 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9595 from gdbarch_tdep rather than a constant.
9596 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9597 the default text address for all Alpha Unix ABIs.
9598 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9599 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9600
dc129d82
JT
96012002-04-21 Jason Thorpe <[email protected]>
9602
9603 * alpha-tdep.h: New file. Includes several Alpha target constants
9604 taken from...
9605 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9606 let gdbarch deal with.
9607 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9608 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9609 to dependency list.
9610 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9611 Alpha target register names.
9612 * alphabsd-nat.c: Likewise.
9613 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9614 Alpha target register names. Make serveral routines static.
9615 (alpha_get_saved_register): New function.
9616 (alpha_abi_names): New.
9617 (process_note_abi_tag_sections): New function.
9618 (get_elfosabi): New function.
9619 (alpha_gdbarch_init): New function.
9620 (alpha_dump_tdep): New function.
9621 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9622
d49d1e0a
AC
96232002-04-21 Andrew Cagney <[email protected]>
9624
9625 * frame.c (find_saved_register): Delete #ifdef
9626 HAVE_REGISTER_WINDOWS code.
9627 * config/sparc/tm-sparc.h: Update comments.
9628 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9629
92e8c9ed
AC
96302002-04-21 Andrew Cagney <[email protected]>
9631
9632 * i960-tdep.c (i960_find_saved_register): New function.
9633 (i960_get_saved_register): New function.
9634 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9635 (i960_get_saved_register): Declare.
9636 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9637
e1925118
DM
96382002-04-20 David S. Miller <[email protected]>
9639
9640 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9641
29673b29
AC
96422002-04-20 Andrew Cagney <[email protected]>
9643
9644 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9645 instead of NUM_PSEUDO_REGS.
9646
6c86dcd5
DM
96472002-04-20 David S. Miller <[email protected]>
9648
9649 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9650 GDB_MULTI_ARCH_PARTIAL
9651 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9652 define, let tm-sp64.h do it.
9653
aa40ec90
JT
96542002-04-20 Jason Thorpe <[email protected]>
9655
9656 * frame.c (find_saved_register): Avoid a NULL pointer
9657 dereference and actually walk the frame list.
9658
0f79675b
AC
96592002-04-20 Andrew Cagney <[email protected]>
9660
9661 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9662 sorted in most most-recent-used order. Document.
9663 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9664
f91305dd 96652002-04-19 Andrew Cagney <[email protected]>
bf75c8c1
AC
9666
9667 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9668 instead of ->prev.
9669 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9670 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9671 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9672 instead of ->prev.
9673
73d322b1
EZ
96742002-04-19 Elena Zannoni <[email protected]>
9675
9676 Fix PR gdb/471.
9677 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9678 (build_builtin_type_vec128): Ditto.
9679 (append_composite_type_field): Fix calculation of type length in
9680 union case.
9681
ccd9a834
EZ
96822002-04-19 Eli Zaretskii <[email protected]>
9683
9684 * config/djgpp/README: Update.
9685
9686 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9687 compiler warnings.
9688
a57f9e49
JT
96892002-04-19 Jason Thorpe <[email protected]>
9690
9691 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9692 (alpha_setup_arbitrary_frame): ...to this.
9693 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9694 for alpha_setup_arbitrary_frame.
9695
f4f9705a
AC
96962002-04-18 Andrew Cagney <[email protected]>
9697
9698 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9699 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9700
f4f9705a
AC
9701 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9702 * target.h (memory_breakpoint_from_pc): Update declaration.
9703 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9704
9705 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9706 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9707 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9708 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9709 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9710 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9711 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9712 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9713 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9714 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9715 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9716 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9717
9718 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9719 const pointer.
9720 * monitor.c (monitor_insert_breakpoint): Ditto.
9721 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9722
9723 * config/mcore/tm-mcore.h: Update copyright.
9724 * mem-break.c: Ditto.
9725 * xstormy16-tdep.c: Ditto.
9726
29f319b8
PM
97272002-04-18 Pierre Muller <[email protected]>
9728
9729 * p-exp.y: Add precedence rule for '^' token.
9730 This removes the shift/reduce conflicts.
9731 Remove the comment concerning these shift/reduce conflicts.
9732
ebeac11a
EZ
97332002-04-18 Elena Zannoni <[email protected]>
9734
9735 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9736 (registers_powerpc_nofp): New register set for processors
9737 without floating point unit.
9738
27c31547
DM
97392002-04-18 David S. Miller <[email protected]>
9740
9741 * MAINTAINERS: Add myself to write-after-approval.
9742
47a73475
MS
97432002-04-17 Michael Snyder <[email protected]>
9744
9745 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9746
953836b2
AC
97472002-04-17 Andrew Cagney <[email protected]>
9748
9749 * rs6000-tdep.c (frame_initial_stack_address): Use
9750 frame_register_read to read the alloca_reg.
9751
8b0d4340
AC
97522002-04-17 Andrew Cagney <[email protected]>
9753
9754 * frame.c (find_saved_register): Find saved registers in the next
9755 not prev frame.
9756 Fix PR gdb/365.
9757
d8864532
AC
97582002-04-17 Andrew Cagney <[email protected]>
9759
9760 * gdbarch.sh (LANG): Set to ``c''.
9761
36cc83a3 97622002-04-15 Andrew Cagney <[email protected]>
361d1df0 9763
36cc83a3 9764 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9765
2f4150cc 97662002-04-15 Andrew Cagney <[email protected]>
2c7ef074
AC
9767
9768 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9769 Update copyright.
9770
628703c6 9771 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9772 Also fix PR gdb/391.
361d1df0 9773
56157b4a
AC
97742002-04-14 Andrew Cagney <[email protected]>
9775
9776 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9777 * aclocal.m4, configure: Re-generate.
9778 Fix PR gdb/391.
361d1df0 9779
6d1e3329
EZ
97802002-04-14 Elena Zannoni <[email protected]>
9781
9782 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9783 instead of tm_print_insn.
9784
cb06fa07
EZ
97852002-04-14 Elena Zannoni <[email protected]>
9786
9787 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9788
f208ba17
AC
97892002-04-14 Andrew Cagney <[email protected]>
9790
9791 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9792 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9793 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9794
20f01a46
DH
97952002-04-12 Don Howard <[email protected]>
9796
9797 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9798 max_user_call_depth.
9799 (init_cmd_lists): Initialize the new value;
9800 * cli/cli-script.c (execute_user_command): Limit the call depth of
9801 user defined commands. This avoids a core-dump when user commands
9802 are infinitly recursive.
9803
a88376a3
KB
98042002-04-12 Kevin Buettner <[email protected]>
9805
9806 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9807 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9808 from tdep struct instead of DEFAULT_LR_SAVE.
9809 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9810 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9811 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9812
f2172603
MS
98132002-04-12 Michael Snyder <[email protected]>
9814
694f61fb 9815 * Remote.c: Spelling fix.
20fe79c8
MS
9816 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9817 If no symbol found for "sbrk", try "_sbrk".
9818 (make_output_phdrs): Use bfd_section_name.
9819 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9820 * eval.c: Indentation fix-ups.
169a7369
MS
9821 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9822 in case it gets applied to an address that is already
9823 in the instruction space.
de74f71f
MS
9824 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9825 * symfile.c: Fix indentation, long lines.
f2172603
MS
9826 * source.c: White space fix-up.
9827
cda5a58a
AC
98282002-04-12 Andrew Cagney <[email protected]>
9829
9830 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9831 * frame.c (frame_register_read): New function. Return non-zero on
9832 success.
9833 (read_relative_register_raw_bytes_for_frame): Delete.
9834 (read_relative_register_raw_bytes): Delete.
9835 * frame.h (frame_register_read): Declare.
9836 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9837 * sh-tdep.c: Ditto.
9838 * infcmd.c (do_registers_info): Ditto.
9839 * hppa-tdep.c: Ditto.
9840 * rs6000-tdep.c: Ditto.
9841 * h8500-tdep.c: Ditto.
9842 * mips-tdep.c: Ditto.
9843 * h8300-tdep.c: Ditto.
9844 * z8k-tdep.c: Ditto.
9845
2ea5f656
KB
98462002-04-12 Kevin Buettner <[email protected]>
9847
9848 From Jimi X <[email protected]>:
9849 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9850 64-bit SysV ABI.
9851
27b15785
KB
98522002-04-12 Kevin Buettner <[email protected]>
9853
9854 From Jimi X <[email protected]>:
9855 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9856 bfd info.
9857
5d57ee30
KB
98582002-04-12 Kevin Buettner <[email protected]>
9859
9860 From Jimi X <[email protected]>:
9861 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9862 register sets for these processor variants.
9863
bc1e36ca
DJ
98642002-04-11 Daniel Jacobowitz <[email protected]>
9865
bc1e36ca
DJ
9866 * regformats/reg-ppc.dat: Support FPSCR.
9867
e3f36dbd
KB
98682002-04-11 Kevin Buettner <[email protected]>
9869
9870 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9871 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9872 Add fpscr as an invalid/unfetchable register.
9873 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9874 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9875 (fill_fpregset): Add support for register fpscr.
9876 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9877 (fill_gregset): Account for the fact that register ``mq'' might
9878 not exist.
9879 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9880 (registers_power): Add fpscr to register set at slot 71.
9881 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9882 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9883
943c9c25
MS
98842002-04-11 Michael Snyder <[email protected]>
9885
9886 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9887 * configure: Regenerate.
9888 * config.in: Regenerate.
9889 * acconfig.h: Add define for _SYSCALL32.
9890 * core-sol2.c: Remove #define _SYSCALL32.
9891 * solib-legacy.c: Remove #define _SYSCALL32.
9892
d8c0a2e7
AC
98932002-04-10 Andrew Cagney <[email protected]>
9894
9895 * stack.c (select_frame): Cleanup internal error message, do not
9896 use %p.
9897
7cc19214
AC
98982002-04-10 Andrew Cagney <[email protected]>
9899
9900 * stack.c (select_frame): Check that selected_frame and the
9901 specified level are as expected.
9902 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9903 Update copyright.
9904 * frame.h (struct frame_info): Add field `level'. Update
9905 copyright.
9906 Work-in-progress PR gdb/464.
9907
67a2b77e
AC
99082002-04-10 Andrew Cagney <[email protected]>
9909
9910 * maint.c (maint_print_section_info): Rename print_section_info.
9911 (print_bfd_section_info, print_objfile_section_info): Update.
9912 * inferior.h (struct gdbarch): Add opaque declaration.
9913 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9914 * gdbarch.h: Regenerate.
9915
8cfda98c
ML
99162002-04-10 Michal Ludvig <[email protected]>
9917
9918 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9919 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9920 (kernel_u_size): Added.
9921 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9922 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9923
ca439ad2 99242002-04-04 Jim Ingham <[email protected]>
361d1df0 9925
ca439ad2
JI
9926 * valarith.c (find_size_for_pointer_math): New function, either returns
9927 the size for a pointer's target, returns 1 for void *, or errors for
9928 incomplete types.
9929 (value_add, value_sub): use find_size_for_pointer_math.
9930
2f2893d9
DJ
99312002-04-09 Daniel Jacobowitz <[email protected]>
9932
9933 * linux-low.c (linux_look_up_symbols): New hook.
9934 (linux_target_ops): Add linux_look_up_symbols.
9935 * remote-utils.c (decode_address): New function.
9936 (look_up_one_symbol): New function.
9937 * server.c (handle_query): Call target look_up_symbols hook.
9938 * server.h (look_up_one_symbol): Add prototype.
9939 * target.h (struct target_ops): Add look_up_symbols hook.
9940
96cb11df
AC
99412002-04-09 Andrew Cagney <[email protected]>
9942
9943 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9944 override FP_REGNUM with frame->fp. Update copyright.
9945 * parse.c (num_std_regs, std_regs): Delete.
9946 (target_map_name_to_register): Do not search std_regs. Update
9947 function description.
9948 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9949 declarations. Update copyright.
9950 Fix PR gdb/251.
361d1df0 9951
97658e92
DJ
99522002-04-09 Daniel Jacobowitz <[email protected]>
9953
9954 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9955 after the last symbol in a block.
9956
6044e3eb
PM
99572002-04-09 Pierre Muller <[email protected]>
9958
9959 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9960 is non zero as a found symbol.
9961
0406ec40
AC
99622002-04-08 Andrew Cagney <[email protected]>
9963
9964 * findvar.c: Include "builtin-regs.h".
9965 (value_of_register): Call value_of_builtin_reg when applicable.
9966 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9967 (target_map_name_to_register): Call
9968 builtin_reg_map_name_to_regnum.
9969 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9970 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9971 (builtin_regs_h): Define.
9972 (builtin-regs.o): New target.
9973 (findvar.o): Add $(builtin_regs_h).
9974 * builtin-regs.c, builtin-regs.h: New files.
9975 * std-regs.c: New file.
9976 Partial fix for PR gdb/251.
9977
56a6dfb9
KB
99782002-04-08 Kevin Buettner <[email protected]>
9979
9980 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9981 it's no longer required.
9982
3a808432
AC
99832002-04-08 Andrew Cagney <[email protected]>
9984
9985 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9986
7c40d541
KB
99872002-04-08 Kevin Buettner <[email protected]>
9988
9989 From Jimi X <[email protected]>:
9990 * rs6000-tdep.c (rs6000_software_single_step): Use
9991 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9992 and size. Use target_insert_breakpoint() and
9993 target_remove_breakpoint() to insert and remove breakpoints
9994 instead of explicit memory reads and writes.
9995
cc9836a8
KB
99962002-04-08 Kevin Buettner <[email protected]>
9997
9998 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9999 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10000 ELF_OBJECT_FORMAT ifdef.
10001
7495d1dc
KB
100022002-04-08 Kevin Buettner <[email protected]>
10003
10004 From Jimi X <[email protected]>:
10005 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10006
4288e836
KB
100072002-04-08 Kevin Buettner <[email protected]>
10008
10009 From Jimi X <[email protected]>:
10010 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10011 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10012
a4e4e501
MK
100132002-04-07 Mark Kettenis <[email protected]>
10014
10015 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10016 s/asprintf/xasprintf/.
10017 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10018
006defba
AC
100192002-04-07 Andrew Cagney <[email protected]>
10020
10021 I believe Jeff Law denies responsability for this one:
10022 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10023 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10024 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10025 Work-around for PR gdb/366.
10026
7aa83cac
EZ
100272002-04-07 Elena Zannoni <[email protected]>
10028
10029 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10030 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10031 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10032
cf1fcca1
EZ
100332002-04-07 Elena Zannoni <[email protected]>
10034
10035 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10036 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10037 information.
10038
3f289e6f
AC
100392002-04-07 Andrew Cagney <[email protected]>
10040
10041 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10042 maintainer.
10043
129188f6
AC
100442002-04-07 Andrew Cagney <[email protected]>
10045
10046 * README (Reporting Bugs in GDB): Document the bug web page as the
10047 prefered way of submitting bugs.
10048 Fix PR gdb/402.
10049
1200cd6e
AC
100502002-04-06 Andrew Cagney <[email protected]>
10051
10052 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10053 -1. Update comment.
10054 * gdbarch.h, gdbarch.c: Re-generate.
10055
2853c33c
AS
100562002-04-07 Andreas Schwab <[email protected]>
10057
10058 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10059 buffer to regcache_collect.
10060
c2169756
AC
100612002-04-06 Andrew Cagney <[email protected]>
10062
10063 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10064 * gdbarch.c, gdbarch.h: Re-generate.
10065
25f1b008
AC
100662002-04-06 Andrew Cagney <[email protected]>
10067
10068 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10069 declaration. Fix -Werror.
10070
59263426
DJ
100712002-04-05 Daniel Jacobowitz <[email protected]>
10072
10073 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10074 * gdbarch.c: Regenerate.
10075
f5db4da3
MS
100762002-04-05 Michael Snyder <[email protected]>
10077
80f8a6eb
MS
10078 * breakpoint.c (clear_command): Rewrite middle section to
10079 combine two loops with identical control conditions.
10080 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10081 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10082
ad3dcc5c
L
100832002-04-05 H.J. Lu ([email protected])
10084
10085 * solib-svr4.c (bkpt_names): Add "__start".
10086
f32e7a74
AC
100872002-04-04 Andrew Cagney <[email protected]>
10088
10089 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10090 as test for 64 bit target.
10091
8227c0ff
AC
100922002-04-05 Andrew Cagney <[email protected]>
10093
10094 * h8500-tdep.c (h8500_write_fp): Delete function.
10095 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10096 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10097 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10099 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10100 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10101 (s390_write_fp):
10102 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10103 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10104 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10105 (d10v_write_fp): Delete function.
10106 * inferior.h (write_fp, generic_target_write_fp): Delete
10107 declarations.
10108 * regcache.c (generic_target_write_fp): Delete function.
10109 (write_fp): Delete function.
10110 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10111 * gdbarch.h, gdbarch.c: Regenerate.
10112 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10113 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10114 (sparc64_write_fp): Delete declaration.
10115 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10116 (h8500_write_fp): Delete declaration.
10117
2757dd86
AC
101182002-04-04 Andrew Cagney <[email protected]>
10119
10120 * sparc-tdep.c (sparc64_write_fp): Delete.
10121 (sparc_push_dummy_frame): Replace write_fp call with code to store
10122 the FP directly.
10123 (sparc_gdbarch_init): Do not initialize write_fp.
10124
c69255e1
KB
101252002-04-05 Kevin Buettner <[email protected]>
10126
10127 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10128 clause.
10129
ae767bfb
JB
101302002-03-29 Jim Blandy <[email protected]>
10131
10132 * stack.c (get_selected_block): Add new argument `addr_in_block',
10133 used to return the exact code address we used to select the block,
10134 not just the block.
10135 * blockframe.c (get_frame_block, get_current_block): Same.
10136 * frame.h (get_frame_block, get_current_block,
10137 get_selected_block): Update declarations.
10138 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10139 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10140
84d2ac95
MS
101412002-04-05 Michael Snyder <[email protected]>
10142
10143 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10144 warning message.
10145
596aa3bf
JB
101462002-04-05 J. Brobecker <[email protected]>
10147
10148 * utils.c (xfullpath): New function.
10149 * defs.h (xfullpath): Add declaration.
10150 * source.c (openp): Use xfullpath in place of gdb_realpath to
10151 avoid resolving the basename part of filenames when the
10152 associated file is a symbolic link. This fixes a potential
10153 inconsistency between the filenames known to GDB and the
10154 filenames it prints in the annotations.
10155 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10156 to be able to match a filename with either the real filename, or
10157 the name of any symbolic link to this file.
10158 (lookup_partial_symtab): Ditto.
10159
c02f5703
MS
101602002-04-04 Michael Snyder <[email protected]>
10161
10162 * breakpoint.c: Add support for hardware breakpoints in overlays.
10163 (overlay_events_enabled): New state variable.
10164 (insert_breakpoints): Use overlay_events_enabled to decide
10165 whether to attempt to set a breakpoint at the overlay load addr.
10166 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10167 (remove_breakpoint): Use overlay_events_enabled to decide
10168 whether breakpoints need to be removed from overlay load addr.
10169 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10170 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10171 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10172 disable_overlay_breakpoints): Update overlay_events_enabled.
10173
5fb290d7
DJ
101742002-04-04 Daniel Jacobowitz <[email protected]>
10175
10176 * dwarf2read.c (struct function_range): New.
10177 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10178 (check_cu_functions): New.
10179 (read_file_scope): Initialize global function lists.
10180 Call dwarf_decode_line after processing children.
10181 (read_func_scope): Add to global function list.
10182 (dwarf_decode_lines): Call check_cu_functions everywhere
10183 record_line is called. Call record_line with a linenumber
10184 of 0 to mark sequence ends.
10185
7b3fabf0
ML
101862002-04-04 Michal Ludvig <[email protected]>
10187
361d1df0 10188 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10189 change sync with glibc.
10190
bce58c09
JB
101912002-04-03 Jim Blandy <[email protected]>
10192
10193 * configure.in: Call AC_C_INLINE.
10194 * configure: Regenerated.
361d1df0 10195
2fccf04a
DJ
101962002-04-01 Daniel Jacobowitz <[email protected]>
10197
10198 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10199 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10200
2d1bfe2e
MK
102012002-03-31 Mark Kettenis <[email protected]>
10202
a5941fbf
MK
10203 * NEWS: Mention gcore support on FreeBSD/i386.
10204
a90cd31d
MK
10205 * fbsd-proc.c: New file.
10206 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10207 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10208
2d1bfe2e
MK
10209 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10210 while statement.
10211
9eb6e5a1
JB
102122002-03-29 Jim Blandy <[email protected]>
10213
10214 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10215 unescaped newlines in string literals, but newer ones don't. So
10216 escape them.
10217
f02df580
MS
102182002-03-26 Michael Snyder <[email protected]>
10219 Andrew Cagney <[email protected]>
10220
361d1df0 10221 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10222 restore file to memory.
10223 * cli/cli-dump.h: New file.
10224 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10225 * NEWS: Mention new commands.
f02df580 10226
109f874e
MS
102272002-03-28 Michael Snyder <[email protected]>
10228
10229 * symfile.c (symbol_file_add): Move test for null symbols to later.
10230
520f6ade
AC
102312002-03-27 Andrew Cagney <[email protected]>
10232
10233 From veksler at il.ibm.com:
10234 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10235 the xstrduped original path.
10236 Fix PR gdb/417.
10237
d4654627
MS
102382002-03-27 Michael Snyder <[email protected]>
10239
10240 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10241 * infcmd.c (_initialize_infcmd): Ditto.
10242 * language.c (_initialize_language): Ditto.
10243 * symfile.c (_initialize_symfile): Ditto.
10244 * top.c (_init_main): Ditto.
10245 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10246
6be8bc0c
EZ
102472002-03-27 Elena Zannoni <[email protected]>
10248
10249 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10250 vector registers handling.
10251 (skip_prologue): Handle new AltiVec instructions. Fill in new
10252 fields of frame data.
10253 (frame_get_saved_regs): Fill in information for AltiVec registers.
10254
12af6855
JB
102552002-03-27 Jim Blandy <[email protected]>
10256
10257 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10258 a function; leave this macro here to invoke that function.
10259 (symbol_init_mangled_name): Declaration for that function.
10260 * symtab.c (symbol_init_mangled_name): New function.
10261
dc672865
AC
102622002-03-27 Andrew Cagney <[email protected]>
10263
10264 * valarith.c: Replace strerror with safe_strerror.
10265 * tracepoint.c: Ditto.
10266 * lin-lwp.c: Ditto.
10267 * go32-nat.c: Ditto.
10268 * inflow.c: Ditto.
10269 * gnu-nat.c: Ditto.
10270
d96429cd
AS
102712002-03-27 Andreas Schwab <[email protected]>
10272
10273 * event-top.c (command_line_handler): Remove useless if.
10274
7e336ba1
AJ
102752002-03-27 Andreas Jaeger <[email protected]>
10276
10277 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10278 comment.
10279
de220d0f
ML
102802002-03-27 Michal Ludvig <[email protected]>
10281
10282 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10283 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10284 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10285 (x86_64_linux_dr_get_status, supply_gregset),
10286 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10287 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10288 (x86_64_register_info_table): Add.
10289 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10290 (x86_64_register_raw_size, x86_64_register_virtual_type),
10291 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10292 general x86_64_register_info_table.
10293 (i386_gdbarch_init): gdbarch_register_bytes is now set
10294 dynamicaly during initialization.
10295 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10296 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10297
0e98d0a7
DJ
102982002-03-27 Daniel Jacobowitz <[email protected]>
10299
10300 * gdbserver/server.c (main): Call target_signal_to_host_p
10301 and target_signal_to_host on signals received from the remote.
10302 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10303 target_signal_from_host on signals sent to the remote.
10304 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10305 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10306
3130066b
DJ
103072002-03-27 Daniel Jacobowitz <[email protected]>
10308
10309 * signals/signals.c: Include "server.h" in gdbserver build.
10310 (target_signal_from_name): Don't use STREQ.
10311 (_initialize_signals): Likewise. Don't include function in
10312 gdbserver build.
10313
9aedf4f4
DJ
103142002-03-27 Daniel Jacobowitz <[email protected]>
10315
10316 * signals.c: Moved to...
10317 * signals/signals.c: Here.
7e336ba1 10318 * Makefile (signals.o): Update.
9aedf4f4 10319
3fa41cdb
JL
103202002-03-26 Jeff Law ([email protected])
10321
10322 * somread.c (som_symtab_read): Remove some commented out code and
10323 updated related comments. Do not set the minimal symbol table to
10324 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10325 in a dynamic executable.
10326 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10327 where we are unable to find the minimal symbol for the given
10328 PC value.
10329
ee677e8d
MS
103302002-03-25 Jeff Law ([email protected])
10331
10332 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10333
e76e1718
ML
103342002-03-25 Michal Ludvig <[email protected]>
10335
10336 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10337
18a642a1
AC
103382002-03-23 Andrew Cagney <[email protected]>
10339
10340 * command.h: Update copyright.
10341 (struct cmd_list_element): Replace definition with opaque
10342 declaration.
10343 (enum cmd_types): Document that it will eventually be moved to
10344 cli/cli-decode.h
10345 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10346 (MALLOCED_REPLACEMENT): Delete macro.
10347 * Makefile.in (cli_decode_h): Add $(command_h).
10348 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10349 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10350 * completer.c: Include "cli/cli-decode.h".
10351 * maint.c: Include "cli/cli-decode.h".
10352 * cli/cli-decode.h: Include "command.h".
10353 (enum command_class): Delete.
10354 (enum cmd_types): Comment out.
10355 (enum cmd_auto_boolean): Delete.
10356 (enum var_types): Delete.
10357
b2875cc0
AC
103582002-03-23 Andrew Cagney <[email protected]>
10359
10360 * cli/cli-decode.c: Include "gdb_assert.h".
10361 (add_set_or_show_cmd): New static function.
10362 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10363 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10364 all fields, such as func, from the set command.
10365
3b45974e
AC
103662002-03-23 Andrew Cagney <[email protected]>
10367
10368 * MAINTAINERS (sh-elf): Change warning flag to -w.
10369
823ca731
AC
103702002-03-23 Andrew Cagney <[email protected]>
10371
10372 * defs.h (error): Add printf format attribute.
10373 * thread-db.c (thread_from_lwp): Fix error format string.
10374 * stack.c (parse_frame_specification): Ditto.
10375 * cli/cli-decode.c (undef_cmd_error): Ditto.
10376 * scm-lang.c (scm_lookup_name): Ditto.
10377 * tracepoint.c (trace_error): Ditto.
10378 * remote-utils.c (usage): Ditto.
10379 * remote.c (compare_sections_command): Ditto.
10380 Fix PR gdb/328.
10381
0e101458
AC
103822002-03-22 Andrew Cagney <[email protected]>
10383
10384 * gdbtypes.c (append_composite_type_field): New function.
10385 (init_composite_type): New function.
10386 * gdbtypes.h (append_composite_type_field): Declare.
10387 (init_composite_type): Ditto.
10388
8e0662df
EZ
103892002-03-22 Elena Zannoni <[email protected]>
10390
10391 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10392 function.
8e0662df
EZ
10393 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10394 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10395 structure returning convention for SYSV ABI case, but not
10396 for GNU/Linux, FreeBSD, or NetBSD.
10397
3121eff0
DJ
103982002-03-22 Daniel Jacobowitz <[email protected]>
10399
10400 * symtab.h (lookup_block_symbol): Add mangled_name argument
10401 to prototype.
10402
10403 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10404 with new mangled_name argument.
10405 * linespec.c (decode_line_1): Likewise.
10406 * valops (value_of_this): Likewise.
10407 * symtab.c (lookup_transparent_type): Likewise.
10408 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10409 (lookup_symbol): If we are given a mangled name, pass it down
10410 to lookup_symbol_aux.
10411 (lookup_block_symbol): If we are given a mangled name to check
10412 against, only return symbols which match it.
10413
349b409f
CF
104142002-03-22 Christopher Faylor <[email protected]>
10415
10416 * win32-nat.c (child_create_inferior): Check for proper shell to use
10417 here, in case the user changes it on the fly.
10418 (_initialize_inftarg): Remove shell path considerations.
10419
2a873819
EZ
104202002-03-21 Elena Zannoni <[email protected]>
10421
10422 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10423 for gdbarch_max_register_raw_size and max_register_virtual_size.
10424 Adjust copyright year.
10425
a1b9830c
DJ
104262002-03-21 Daniel Jacobowitz <[email protected]>
10427
10428 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10429 in a function to cover the entire beginning of the function
10430 as well if it does not already.
10431
8b5790f2
TR
104322002-03-21 Tom Rix <[email protected]>
10433
10434 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10435 (rs6000_ptrace64): Renamed from ptrace64.
10436
bdbe5747
MH
104372002-03-20 Martin M. Hunt <[email protected]>
10438
10439 * gdbserver/remote-utils.c (remote_open): Don't call
10440 getprotobyname, we're all using TCP here so just use
10441 IPPROTO_TCP.
7e336ba1 10442 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10443
104442002-03-20 Martin M. Hunt <[email protected]>
7e336ba1 10445
bdbe5747
MH
10446 * regcache.c (_initialize_regcache): No need to call
10447 build_regcache() at this time; it gets called whenever
10448 the gdbarch changes.
10449
7781cd62
DB
104502002-03-20 David O'Brien <[email protected]>
10451
10452 * sparc-nat.c: Include sys/param.h where possible.
10453
f65ca430
DJ
104542002-03-20 Daniel Jacobowitz <[email protected]>
10455
10456 Fix PR gdb/422.
10457 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10458 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10459 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10460 complex types.
10461 * stabsread.c (rs6000_builtin_type): Likewise.
10462 (read_sun_floating_type): Likewise.
10463
0c867556
PS
104642002-03-19 Peter Schauer <[email protected]>
10465
10466 * stabsread.c (read_member_functions): Remove skip code for duplicate
10467 constructor/destructor methods. Use standard parsing for these
10468 methods and just do not chain them to the list of methods after
10469 parsing.
10470
12b9c64f
AO
104712002-03-19 Alexandre Oliva <[email protected]>
10472
10473 * coffread.c: Remove redundant static declarations. Replace
10474 occurrences of `PTR' with `void *'.
10475 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10476 * top.h (quit_cover): Likewise.
10477 * defs.h (catch_errors): Likewise.
10478
349c5d5f
AC
104792002-03-18 Andrew Cagney <[email protected]>
10480
10481 * defs.h (XMALLOC): Define.
10482 * gdb-events.sh (XMALLOC): Delete macro.
10483 * gdb-events.c, gdb-events.h: Regenerate.
10484 * gdbarch.sh (XMALLOC): Delete macro.
10485 * gdbarch.c: Regenerate.
10486 * serial.c (XMALLOC): Delete macro.
10487 * ui-file.c (XMALLOC): Ditto.
10488 * ser-unix.h (XMALLOC): Ditto.
10489 * sh-tdep.c (XMALLOC): Ditto.
10490 * ui-out.c (XMALLOC): Ditto.
10491 * utils.c (XMALLOC): Ditto.
10492 * i386-tdep.c (XMALLOC): Ditto.
10493 * gdb-events.c (XMALLOC): Ditto.
10494 * d10v-tdep.c (XMALLOC): Ditto.
10495 * cli-out.c (XMALLOC): Ditto.
10496
10497 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10498 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10499 * ui-file.c, ui-out.c: Ditto.
10500
7d0766f3
AC
105012002-03-18 Andrew Cagney <[email protected]>
10502
10503 * command.h (struct cmd_list_element): Add field context.
10504 (set_cmd_context, get_cmd_context): Declare.
10505 * cli/cli-decode.h: Ditto.
10506 * cli/cli-decode.c (get_cmd_context): New function.
10507 (set_cmd_context): New function.
10508 (add_cmd): Initialize context.
10509 Part of fixing PR gdb/145 and PR gdb/146.
10510
5913bcb0
AC
105112002-03-17 Andrew Cagney <[email protected]>
10512
1868c04e
AC
10513 * cli/cli-decode.c (cmd_type): New function.
10514 * command.h (cmd_type): Declare.
10515 * infrun.c (set_schedlock_func): Call function cmd_type.
10516 * kod.c (kod_set_os): Call cmd_type.
10517 * cris-tdep.c (cris_version_update): Use function cmd_type.
10518 (cris_mode_update, cris_abi_update): Ditto.
10519
5913bcb0
AC
10520 * command.h: (execute_cmd_post_hook): Declare.
10521 (execute_cmd_pre_hook): Declare.
10522 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10523 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10524 functions. Execute pre/post hook while ensuring that afterwords
10525 hook_in is cleared.
10526 * top.c (execute_command): Use execute_cmd_post_hook, and
10527 execute_cmd_pre_hook to execute pre/post commands.
10528 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10529 hook_stop_stub.
10530 (hook_stop_stub): Call execute_cmd_pre_hook.
10531
b51450c9
AC
105322002-03-17 Andrew Cagney <[email protected]>
10533
10534 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10535 set'' and this leads to a core dump. Move xstrdup of
10536 operating_system to after check that it is not NULL.
10537
f66c9f11
AC
105382002-03-17 Andrew Cagney <[email protected]>
10539
8e694ecf
AC
10540 * kod.c (kod_set_os): Remove unnecessary check that
10541 ``command->type'' is set_cmd.
10542
f66c9f11
AC
10543 * valprint.c (set_input_radix): Use input_radix.
10544 (set_output_radix): Use output_radix.
10545 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10546 isn't reverted.
10547
9d01611c
AC
105482002-03-16 Andrew Cagney <[email protected]>
10549
10550 * value.h (struct value): Delete field ``substring_addr''. Change
10551 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10552 force_core_addr_align and force_pointer_aligh.
10553
10554 * value.h (struct value): Fix typo in above change.
9d01611c 10555
4156bb53
PS
105562002-03-16 Peter Schauer <[email protected]>
10557
10558 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10559 to fix internal_error from ``maintenance print architecture''.
10560
0e5e3ea6
PS
105612002-03-16 Peter Schauer <[email protected]>
10562
10563 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10564 for gcc versions after gcc-2.8.1.
10565
9b013045
PS
105662002-03-16 Peter Schauer <[email protected]>
10567
10568 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10569 for method resolution. Restore adjustment of ``this'' pointer after
10570 calling value_struct_elt, which was accidentally removed during the
10571 HP merge.
10572
376c9600
AC
105732002-03-15 Andrew Cagney <[email protected]>
10574
10575 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10576 value_of_register.
10577 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10578 get_saved_register.
10579 * value.h (value_of_register): Update.
10580
a4db0f07
RH
105812002-03-14 Richard Henderson <[email protected]>
10582
10583 * configure.in: Detect declaration for canonicalize_file_name.
10584 * utils.c (canonicalize_file_name): Declare, if needed.
10585 (gdb_realpath): Prefer realpath if available and usable.
10586 * config.in, configure: Rebuild.
10587
96383835
RH
105882002-03-14 Richard Henderson <[email protected]>
10589
10590 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10591 a constant array bound.
10592
10593 * MAINTAINERS: Add myself to write-after-approval.
10594
75245b24
MS
105952002-03-14 Michael Snyder <[email protected]>
10596
10597 * symfile.c (syms_from_objfile): Return immediately if no syms.
10598 (symbol_file_add): Return immediately if no syms.
10599 (find_sym_fns): Return immediately if no syms.
10600
e641a1ca
ML
106012002-03-13 Michal Ludvig <[email protected]>
10602
10603 * gdbserver/remote-util.c (remote_open): Print remote-side's
10604 IP address when remote debugging over the network.
7e336ba1 10605
df08bfec
DB
106062002-03-12 David O'Brien <[email protected]>
10607
10608 * config/sparc/fbsd.mh: Fix copyright.
10609 * config/sparc/fbsd.mt: Likewise.
10610
9a57864f
RE
106112002-03-11 Richard Earnshaw <[email protected]>
10612
10613 * MAINTAINERS: Fix typo in name of gdb warnings option.
10614 (x86-64): Fix formating so that this can be parsed by awk.
10615
dd7bf85e
DJ
106162002-03-10 Daniel Jacobowitz <[email protected]>
10617
10618 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10619 * defs.h: Include "gdb/signals.h".
10620 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10621
33a0a2ac
ML
106222002-03-10 Michal Ludvig <[email protected]>
10623
10624 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10625 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10626 from x86-64-tdep.h
10627
dd824b04
DJ
106282002-03-10 Daniel Jacobowitz <[email protected]>
10629 Don Howard <[email protected]>
10630
10631 * mips-tdep.c (ST0_FR): Define.
10632 (mips2_fp_compat): New function, temporarily disabled.
10633 (mips_read_fp_register_single): New function.
10634 (mips_read_fp_register_double): New function.
10635 (mips_print_register): Use them.
10636 (do_fp_register_row): Likewise.
10637
6a41ff59
AC
106382002-03-09 Andrew Cagney <[email protected]>
10639
10640 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10641 approval''.
10642
4ea09c10
PS
106432002-03-08 Peter Schauer <[email protected]>
10644
10645 * stabsread.c (read_member_functions): Fix is_stub test for
10646 static member functions, improve comment.
10647
6ccc741d
RE
106482002-03-07 Richard Earnshaw <[email protected]>
10649
10650 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10651 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10652 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10653 commands that set boolean values.
10654 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10655 (arm_rdi_resume): Always initialize PC.
10656 (arm_rdi_open): Don't use rslt as a boolean.
10657 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10658 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10659 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10660 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10661
438013df
AO
106622002-03-06 Alexandre Oliva <[email protected]>
10663
10664 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10665 * configure: Rebuilt.
10666
70ed8774
SC
106672002-03-06 Stephane Carrez <[email protected]>
10668
10669 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10670 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10671
5ba2abeb
AC
106722002-03-06 Andrew Cagney <[email protected]>
10673
10674 * cli/cli-decode.c (set_cmd_completer): New function.
10675 * command.h (set_cmd_completer): Declare.
10676 * cli/cli-decode.h (set_cmd_completer): Ditto.
10677
10678 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10679 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10680 * win32-nat.c (_initialize_inftarg): Ditto.
10681 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10682 * proc-api.c (_initialize_proc_api): Ditto.
10683 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10684 * source.c (_initialize_source): Ditto.
10685 * exec.c (_initialize_exec): Ditto.
10686 * solib.c (_initialize_solib): Ditto.
10687 * top.c (init_main): Ditto.
10688 * tracepoint.c (_initialize_tracepoint): Ditto.
10689 * symfile.c (_initialize_symfile): Ditto.
10690 * printcmd.c (_initialize_printcmd): Ditto.
10691 * infcmd.c (_initialize_infcmd): Ditto.
10692 * corefile.c (_initialize_core): Ditto.
10693
f779ca99
AC
106942002-03-05 Andrew Cagney <[email protected]>
10695
10696 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10697
01a3934b
AC
106982002-03-05 Andrew Cagney <[email protected]>
10699
10700 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10701
37057839
AC
107022002-03-05 Andrew Cagney <[email protected]>
10703
10704 * NEWS: Update headings, 5.2 has branched.
10705
c6ecbae5
DJ
107062002-03-04 Daniel Jacobowitz <[email protected]>
10707
10708 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10709 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10710 (register_addr, REGISTER_RAW_SIZE): Likewise.
10711 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10712 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10713
e9f30c21
ML
107142002-03-03 Michal Ludvig <[email protected]>
10715
10716 * MAINTAINERS (x86-64): Add myself.
10717 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10718 changed value_ptr -> struct value *
10719
54394ac3
DB
107202002-03-01 David O'Brien <[email protected]>
10721
10722 * configure.host (sparc64-*-freebsd): Add.
10723 * configure.tgt: Likewise.
10724 * config/sparc/fbsd.mh: New file.
10725 * config/sparc/fbsd.mt: Likewise.
10726 * config/sparc/nm-fbsd.h: Likewise.
10727 * config/sparc/tm-fbsd.h: Likewise.
10728
bfe95955
DJ
107292002-03-01 Daniel Jacobowitz <[email protected]>
10730
10731 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10732 regformats/reg-s390x.dat.
10733
f33c6cbf
AC
107342002-03-01 Andrew Cagney <[email protected]>
10735
10736 * utils.c: Add FIXME explaining true/false problem.
10737
5ecaa7dd
AC
107382002-02-28 Andrew Cagney <[email protected]>
10739
10740 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10741
2a251cc2
MC
107422002-02-28 Michael Chastain <[email protected]>
10743
10744 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10745
6a8031a3 107462002-02-28 Daniel Jacobowitz <[email protected]>
265f716b
DJ
10747
10748 * gdbserver/linux-s390-low.c: New file.
10749 * regformats/reg-s390.dat: New file.
10750 * regformats/reg-s390x.dat: New file.
10751 * gdbserver/configure.srv: Add S/390.
10752 * gdbserver/Makefile.in: Add S/390.
10753 * configure.tgt: Enable gdbserver for S/390.
10754
ac469903
EZ
107552002-02-28 Eli Zaretskii <[email protected]>
10756
10757 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10758 first line of the doc string for "info dos", except at the end of
10759 the sentence, since the short help stops at the first period.
10760
985cb1a3
JM
107612002-02-28 Jason Merrill <[email protected]>
10762
10763 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10764
c570663e
FF
107652002-02-27 Fred Fish <[email protected]>
10766
10767 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10768 comment (dumy -> dummy).
10769
43630227
PS
107702002-02-27 Peter Schauer <[email protected]>
10771
10772 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10773
b84911e8
RB
107742002-02-27 Rodney Brown <[email protected]>
10775
10776 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10777
58caa3dc
DJ
107782002-02-27 Daniel Jacobowitz <[email protected]>
10779
10780 * gdbserver/acconfig.h: New file.
10781 * gdbserver/i387-fp.c: New file.
10782 * gdbserver/i387-fp.h: New file.
10783 * gdbserver/linux-x86-64.c: New file.
10784 * regformats/reg-x86-64.dat: New file.
10785 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10786 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10787 * gdbserver/configure.in: Add support for regsets.
10788 * gdbserver/config.in: Regenerate.
10789 * gdbserver/configure: Regenerate.
10790 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10791 * gdbserver/linux-low.h: New file.
10792 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10793 for regsets.
10794 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10795 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10796 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10797 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10798 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10799 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10800 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10801 "i387-fp.h". Add PTRACE_GETREGS and friends.
10802 * gdbserver/regcache.c (supply_register): New function.
10803 (supply_register_by_name): New function.
10804 (collect_register): New function.
10805 (collect_register_by_name): New function.
10806
93652174
DJ
108072002-02-27 Daniel Jacobowitz <[email protected]>
10808
10809 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10810 (config.status): Add configure.srv dependency.
10811 (server_h): Add config.h dependency.
10812
a02e4a61
DJ
108132002-02-27 Daniel Jacobowitz <[email protected]>
10814
10815 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10816 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10817 * gdbserver/configure.srv: Change i386-*-linux* to use
10818 reg-i386-linux.o.
10819
ce0eebec
AC
108202002-02-26 Andrew Cagney <[email protected]>
10821
10822 * x86-64-tdep.c: Re-indent. Update copyright date.
10823
82dbc5f7
AC
108242002-02-26 Andrew Cagney <[email protected]>
10825
10826 From Michal Ludvig <[email protected]>:
10827 * x86-64-tdep.c (value.h): Delete.
10828 (gdb_assert.h): Include.
10829 (x86_64_register_convert_to_virtual,
10830 x86_64_register_convert_to_raw ): Add check which lets only
10831 floating-point values to be converted.
10832 (value_push): Delete.
10833 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10834 (i386_gdbarch_init): Number of register_bytes fixed.
10835
e4621584
AC
108362002-02-26 Andrew Cagney <[email protected]>
10837
10838 * MAINTAINERS: Add x86-64 target.
10839
81a9a963
AC
108402002-02-26 Andrew Cagney <[email protected]>
10841
10842 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10843 * osfsolib.c (solib_map_sections): Ditto.
10844 * irix5-nat.c (solib_map_sections): Ditto.
10845 * corelow.c (gdb_check_format): Ditto.
10846 * symfile.c (symfile_bfd_open): Ditto.
10847 * solib.c (solib_map_sections): Ditto.
10848 Fix PR gdb/354.
7e336ba1 10849
0f017ab9
AC
108502002-02-26 Andrew Cagney <[email protected]>
10851
10852 * remote.c (_initialize_remote): By default, disable ``e'' and
10853 ``E'' step out-of-range packets.
10854
75738c29
AS
108552002-02-26 Andreas Schwab <[email protected]>
10856
10857 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10858 m68k_linux_frame_saved_pc.
10859 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10860 in_sigtramp.
10861 (SIGCONTEXT_PC_OFFSET): Remove.
10862 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10863 m68k_linux_sigtramp_saved_pc): New functions.
10864 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10865 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10866 (UCONTEXT_PC_OFFSET): Define.
10867 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10868 non-RT and RT signal trampolines.
10869
7e8ed687
RE
108702002-02-26 Richard Earnshaw <[email protected]>
10871
10872 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10873 (TARGET_NBPG, STACK_END_ADDR): Delete
10874 (VARIABLES_INSIDE_BLOCK): Delete.
10875
6972bc8b
AC
108762002-02-25 Andrew Cagney <[email protected]>
10877
10878 * utils.c (perror_with_name): Make string parameter constant.
10879 (print_sys_errmsg): Ditto.
10880 (query): Ditto.
10881 * defs.h (perror_with_name): Update.
10882 (print_sys_errmsg): Update.
10883 (query): Update.
10884
aa32f823
DJ
108852002-02-25 Daniel Jacobowitz <[email protected]>
10886
10887 From Eliot Dresselhaus <[email protected]>:
10888 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10889
19caaa45
PS
108902002-02-25 Peter Schauer <[email protected]>
10891
10892 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10893 if it already matches the current architecture from the exec file.
10894 Include arch-utils.h for gdbarch_info_init prototype.
10895 * Makefile.in (rs6000-nat.o): Update dependencies.
10896
d951901f
EZ
108972002-02-25 Eli Zaretskii <[email protected]>
10898
10899 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10900 list of exported variables.
10901
7ea81414
DJ
109022002-02-24 Daniel Jacobowitz <[email protected]>
10903
10904 * gdbserver/configure.srv: New file.
10905 * gdbserver/configure.in: Use configure.srv instead
10906 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10907 from it.
10908 * gdbserver/configure: Regenerated.
10909 * gdbserver/terminal.h: New file.
10910 * gdbserver/Makefile.in: Update for configure changes. Remove
10911 more unneeded include paths.
10912
080fe24b
AC
109132002-02-24 Andrew Cagney <[email protected]>
10914
10915 From wiz at danbala:
10916 * config/sparc/tm-sp64.h: Fix grammar and typos.
10917 Fix PR gdb/287.
10918
8605d56e
AC
109192002-02-24 Andrew Cagney <[email protected]>
10920
10921 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10922 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10923 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10924 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10925 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10926 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10927 * s390-tdep.c: Ditto.
92362027
AC
10928 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10929 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10930 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10931 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10932 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10933 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10934 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10935 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10936 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10937 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10938 Fix PR gdb/378.
7e336ba1 10939
8ed32cc0
AC
109402002-02-23 Andrew Cagney <[email protected]>
10941
a3007b6f
AC
10942 * lin-thread.c: Delete file.
10943 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10944 to gdb_proc_service.h.
10945 * configure: Re-generate.
10946
50a9e2f1
AC
10947 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10948 * serial.c (serial_open): Delete check for "ocd".
10949 Fix PR gdb/349.
10950
8b6e7932
AC
10951 * Makefile.in (linux-thread.o): Delete target.
10952 * linux-thread.c: Delete file.
10953
d155c46b
AC
10954 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10955 renamed SH files to be consistent.
10956
8ed32cc0
AC
10957 * symtab.c (sort_search_symbols): Use xfree.
10958
0e18d038
RE
109592002-02-23 Richard Earnshaw <[email protected]>
10960
10961 * arm-linux-tdep.c (arm_linux_init_abi): Register
10962 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10963 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10964 definition with undef, since we don't want the sysvr4 definition.
10965 (SKIP_TRAMPOLINE_CODE): Likewise.
10966
27aac7ff
AC
109672002-02-23 Andrew Cagney <[email protected]>
10968
10969 From 2002-02-22 Alfred M. Szmidt <[email protected]>:
10970
10971 * configure.in: (AC_CHECK_FUNCS) Added test for
10972 canonicalize_file_name Regenerated.
10973 * config.in, configure: Regenerated.
10974 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10975 defined use canonicalize_file_name.
7e336ba1 10976
65a6e0ee
MC
109772002-02-23 Michael Chastain <[email protected]>
10978
10979 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10980
47b95330
AC
109812002-02-23 Andrew Cagney <[email protected]>
10982
10983 * README: Remove references to cygnus.com.
10984 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10985 dot com'' form. Remove references to cygnus.com and sourceware.
10986
696f451b
AC
109872002-02-23 Andrew Cagney <[email protected]>
10988
10989 From 2002-02-19 Paul Eggert <[email protected]>:
10990 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10991 1003.1-2001 no longer allows "head -1".
10992 * gdb/Makefile.in (version.c): Likewise.
10993 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10994 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10995 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10996
bbaca940
AC
109972002-02-23 Andrew Cagney <[email protected]>
10998
10999 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11000 * command.h (cmd_cfunc_eq): Declare.
11001 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11002
11003 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11004 ``struct cmd_list_element *''.
11005 * cli/cli-cmds.c (is_complete_command): Update. Use
11006 cmd_cfunc_eq.
11007 * top.c (execute_command): Pass the command to
11008 is_complete_command.
11009 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11010
b8b8b047
AC
110112002-02-23 Andrew Cagney <[email protected]>
11012
11013 From 2002-02-20 Martin Schwidefsky <[email protected]>:
11014 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11015 architecture defines.
11016 * s390-tdep.c (s390_gdbarch_init): Likewise.
11017
19d3fc80
RE
110182002-02-23 Richard Earnshaw <[email protected]>
11019
11020 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11021 (arm_linux_push_arguments): Likewise.
11022 (arm_linux_init_abi): Register them. Also register linux-specific
11023 call_dummy_words.
11024 (find_minsym_and_objfile): Use strcmp, not STREQ.
11025 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11026 (arm_linux_call_dummy_words): Delete declaration.
11027 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11028 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11029 declarations.
11030 (LOWEST_PC): Delete.
11031
3ab13650
PS
110322002-02-23 Peter Schauer <[email protected]>
11033
11034 * maint.c (print_section_info): Do not prepend `0x' to filepos
11035 output, it will be handled by local_hex_string_custom.
11036
19d3fc80 110372002-02-23 Richard Earnshaw <[email protected]>
85ae890c
RE
11038
11039 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11040 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11041 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11042
d85a5daf
JB
110432002-02-22 Jim Blandy <[email protected]>
11044
11045 Indicate that the bcache functions don't change the strings
11046 they're passed.
11047 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11048 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11049
eeb25b8a
PM
110502002-02-22 Pierre Muller <[email protected]>
11051
11052 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11053
6badb179
CF
110542002-02-21 Christopher Faylor <[email protected]>
11055
11056 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11057 find the complete path to a loaded DLL.
11058
e8717518
FF
110592002-02-21 Fred Fish <[email protected]>
11060
11061 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11062 that marks the end of the range of a function, enter a line number
11063 entry that has a line number of zero and a PC offset that matches
11064 the end of the function. This starts a range of PC's for which no
11065 line number information is known.
11066 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11067 PC's for which no line number info is found (line number is zero)
11068 then we didn't find any valid line information.
11069 * symtab.h: Document use of zero line number entry.
11070
9abe5450
EZ
110712002-02-21 Elena Zannoni <[email protected]>
11072
11073 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11074 (have_ptrace_getvrregs): Define for run time checks.
11075 (gdb_vrregset_t): New type for Altivec register handling.
11076 (fetch_register, store_register): Fetch/store altivec register
11077 when needed.
11078 (fetch_altivec_register, store_altivec_register): New functions.
11079 (supply_vrregset, fill_vrregset): New functions.
11080 (fetch_altivec_registers, store_altivec_registers): New functions.
11081 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11082 registers as well.
11083
aaa38bb5
AJ
110842002-02-21 Jiri Smid <[email protected]>
11085
11086 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11087
b34db576
RE
110882002-02-21 Richard Earnshaw <[email protected]>
11089
11090 * Makefile.in (armnbsd-nat.o): Update dependencies.
11091 * armnbsd-nat.c (supply_gregset): New function. Common code to
11092 supply the integer register set.
11093 (supply_fparegset): New function. Similar for FPA registers.
11094 (fetch_regs, fetch_fp_regs): Use them.
11095 (fetch_core_registers): Likewise.
11096 (fetch_elfcore_registers): New function.
11097 (arm_netbsd_elfcore_fns): New core-file type specification.
11098 (_initialize_arm_netbsd_nat): Register it.
11099
3e56fc4b
RE
111002002-02-21 Richard Earnshaw <[email protected]>
11101
11102 * armnbsd-nat.c: Include gdbcore.h.
11103 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11104 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11105 'void' to declaration, to shut up ARI.
11106 (fetch_core_registers): Make static. Rewrite using supply_register.
11107 (arm_netbsd_core_fns): New core-file type specification.
11108 (_initialize_arm_netbsd_nat): New function.
11109
097f6b0b
CF
111102002-02-21 Christopher Faylor <[email protected]>
11111
11112 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11113 value.
11114
c914e0cc
CF
111152002-02-20 Christopher Faylor <[email protected]>
11116
11117 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11118 fails.
11119
385fa495
DJ
111202002-02-20 Daniel Jacobowitz <[email protected]>
11121
11122 * jv-exp.y (parse_number): Change type of implicit longs
11123 to builtin_type_uint64.
11124
e5f1222d
DJ
111252002-02-20 Daniel Jacobowitz <[email protected]>
11126
11127 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11128 to be an integer instead of a `union wait'.
11129
75c9abc6
DJ
111302002-02-20 Daniel Jacobowitz <[email protected]>
11131
11132 * mips-linux-nat.c: Call the operating system GNU/Linux.
11133 * mips-linux-tdep.c: Likewise.
11134 * mips-tdep.c: Likewise.
11135
551792a5
DJ
111362002-02-20 Daniel Jacobowitz <[email protected]>
11137
11138 Fix PR gdb/265.
11139 * jv-exp.y (parse_number): Handle 64-bit integers.
11140
ee6e2b82
DJ
111412002-02-20 Daniel Jacobowitz <[email protected]>
11142
11143 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11144 AC_STDC_HEADERS to AC_HEADER_STDC.
11145 * gdbserver/configure: Regenerated.
11146
a48442a0
RE
111472002-02-20 Richard Earnshaw <[email protected]>
11148
11149 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11150 is defined.
11151 * sparc-tdep.c (get_longjmp_target): Likewise.
11152
fe419ffc
RE
111532002-02-20 Richard Earnshaw <[email protected]>
11154
11155 * News: Add news about ARM and Multi-arch. Mention the new target
11156 arm*-*-netbsd*.
11157
5832ed7e
JB
111582002-02-19 Jim Blandy <[email protected]>
11159
11160 * stabsread.c (error_type_complaint): Improve error message.
11161
84563040
DJ
111622002-02-19 Daniel Jacobowitz <[email protected]>
11163
11164 * gdbserver/README: Update documentation.
11165 * gdbserver/configure.in: Update configury to match documentation.
11166 * gdbserver/Makefile.in: Likewise.
11167 * gdbserver/configure: Regenerated.
11168 * gdbserver/aclocal.m4: New file, generated by aclocal.
11169 * gdbserver/config.in: New file, generated by autoheader.
11170
375fd65b
RE
111712002-02-19 Richard Earnshaw <[email protected]>
11172
11173 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11174 armnbsd-nat.c.
11175
08216dd7
RE
111762002-02-19 Richard Earnshaw <[email protected]>
11177
11178 * arm-tdep.h (enum arm_float_model): New enum.
11179 (struct gdbarch_tdep): Add fp_model.
11180 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11181 up floating-point conversions until we know the floating-point model
11182 in use by the inferior. Don't complain about being unable to
11183 determine the ABI of the inferior when we don't have one.
11184 (arm_extract_return_value): Support different floating-point models.
11185 (arm_store_return_value): Likewise.
aaa38bb5 11186 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11187 ARM_FLOAT_SOFT.
11188 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11189
65d6d66a
PS
111902002-02-19 Peter Schauer <[email protected]>
11191
11192 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11193 of ``current_gdbarch''.
11194
47221191
RE
111952002-02-19 Richard Earnshaw <[email protected]>
11196
11197 * armnbsd-nat.c : ANSIfy all function declarations.
11198 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11199 (fetch_inferior_registers): Re-implement in terms of above.
11200 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11201 (store_inferior_registers): Re-implement in terms of above.
11202
fdf39c9a
RE
112032002-02-19 Richard Earnshaw <[email protected]>
11204
aaa38bb5 11205 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11206 kernel.
11207 * arm-linux-tdep.c: Likewise.
11208 * config/arm/tm-linux.h: Likewise.
11209
93247f88
RE
112102002-02-19 Richard Earnshaw <[email protected]>
11211
11212 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11213 * config/arm/nbsd.mt (TM_FILE): Delete.
11214 * config/arm/tm-nbsd.h: Delete.
11215
d7b486e7
RE
112162002-02-19 Richard Earnshaw <[email protected]>
11217
11218 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11219 Initialize CALL_DUMMY_LENGTH.
11220
41d39a95
RE
112212002-02-19 Richard Earnshaw <[email protected]>
11222
11223 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11224 function.
11225 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11226 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11227 defines one thing and that is incorrect for this port.
11228 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11229
e1195560
PM
112302002-02-18 Pierre Muller <[email protected]>
11231
11232 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11233
c1748f97
PM
112342002-02-18 Pierre Muller <[email protected]>
11235
11236 * win32-nat.c (display_selector): New function. Displays information
11237 about the information returned by GetThreadSelectorEntry API function.
11238 (display_selectors): New function. Displays the infomation of
11239 the selector given as argument, or of CS, DS ans FS selectors
11240 if no argument is given.
11241 ( _initialize_inftarg): Add "w32" as info prefix command.
11242 Add "info w32 selector" as command calling display_selectors.
11243
e41e6bbf
PM
112442002-02-19 Pierre Muller <[email protected]>
11245
11246 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11247 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11248 if not defined.
11249
0d3a9f48
RE
112502002-02-18 Richard Earnshaw <[email protected]>
11251
11252 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11253
3fb4b924
RE
112542002-02-18 Richard Earnshaw <[email protected]>
11255
11256 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11257 (arm_fix_call_dummy): Call it.
11258 (arm_call_dummy_breakpoint_offset): Delete.
11259 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11260 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11261
7f55af32
AC
112622002-02-18 Andrew Cagney <[email protected]>
11263
11264 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11265 Default to func_frame_chain_valid.
11266 * gdbarch.h, gdbarch.c: Re-generate.
11267 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11268
05f13b9c
EZ
112692002-02-18 Elena Zannoni <[email protected]>
11270
11271 * ppc-linux-nat.c: Update copyright.
11272 (fetch_register, store_register): Add tid parameter, don't compute
11273 tid here.
11274 (fetch_ppc_registers, store_ppc_registers): Add tid
11275 parameter. Pass it along to callees.
11276 (fetch_inferior_registers, store_inferior_registers): Compute tid
11277 here, and pass it to calleed functions.
11278 (fill_gregset, supply_fpregset): Clean up formatting.
11279
d7afb4c9
RE
112802002-02-18 Richard Earnshaw <[email protected]>
11281
11282 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11283 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11284
9df628e0
RE
112852002-02-18 Richard Earnshaw <[email protected]>
11286
11287 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11288 * gdbarch.c gdbarch.h: Regenerate.
11289 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11290 function.
11291 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11292 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11293 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11294
11295 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11296 * arm-tdep.c (arm_get_longjmp_target): New function.
11297 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11298 this to a positive value register arm_get_longjmp_target as the
11299 longjmp handler.
11300 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11301 (arm_linux_init_abi): Set up longjmp description in tdep.
11302 * armnbsd-nat.c (get_longjmp_target): Delete.
11303 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11304 description in tdep.
11305 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11306 (get_longjmp_target): Delete declaration.
11307 (GET_LONGJMP_TARGET): Delete.
11308 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11309 (GET_LONGJMP_TARGET): Delete.
11310
57bc8964
KB
113112002-02-17 Kevin Buettner <[email protected]>
11312
11313 From Peter Schauer <[email protected]>:
11314 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11315 of ``current_gdbarch''.
11316
83d31a92
TT
113172002-02-17 Tom Tromey <[email protected]>
11318
11319 * cli/cli-cmds.c (compare_strings): New function.
11320 (complete_command): Only print each unique item once.
11321 * completer.h (complete_line): Declare.
11322 * completer.c (complete_line): New function.
11323 (line_completion_function): Use it.
11324
17ef5d92
AC
113252002-02-16 Andrew Cagney <[email protected]>
11326
11327 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11328 * gdbarch.h, gdbarch.c: Re-generate.
11329
491b8946
DJ
113302002-02-16 Daniel Jacobowitz <[email protected]>
11331
11332 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11333
113342002-02-16 Daniel Jacobowitz <[email protected]>
11335
11336 From Peter Schauer <[email protected]>:
11337 * valops.c (value_arg_coerce): Don't take the address of a reference
11338 to convert an argument to a reference.
11339
dfe7f3ac
CF
113402002-02-15 Christopher Faylor <[email protected]>
11341
11342 * win32-nat.c (get_image_name): New function.
11343 (handle_load_dll): Use get_image_name function.
11344 (get_child_debug_event): Avoid registering debug events until possibly
11345 execed process is started.
11346 (child_create_inferior): Allow invocation via shell so that command
11347 line redirection, etc. works ok.
11348 (_initialize_inftarg): Add new command: "set shell" to control whether
11349 a shell is used to start a process.
11350
1d33e73a
DJ
113512002-02-15 Daniel Jacobowitz <[email protected]>
11352
11353 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11354 instead of find_register_by_number.
11355 (cannot_store_register): Likewise.
11356
48cd0caa
PM
113572002-02-14 Pierre Muller <[email protected]>
11358
aaa38bb5 11359 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11360 fprintf_unfiltered (gdb_stderr, ...).
11361
8656e7d8
DJ
113622002-02-15 Daniel Jacobowitz <[email protected]>
11363
11364 * gdbserver/gdbserver.1: Document --attach.
11365
66e810cd
RE
113662002-02-15 Richard Earnshaw <[email protected]>
11367
11368 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11369 descriptions.
11370 * arm-tdep.c (arm_default_arm_le_breakpoint)
11371 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11372 (arm_default_thumb_be_breakpoint): New. Initialize them from
11373 traditional breakpoint defines.
11374 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11375 (arm_gdbarch_init): Initialize new breakpoint variables.
11376 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11377 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11378 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11379 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11380 code out to ...
11381 (arm_netbsd_init_abi_common): ... here; new function.
11382 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11383 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11384 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11385 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11386
97e03143
RE
113872002-02-15 Richard Earnshaw <[email protected]>
11388
11389 * arm-tdep.h (enum arm_abi): New enum.
11390 (struct gdbarch_tdep): New structure.
11391 (LOWEST_PC): Provide a default.
11392 (arm_gdbarch_register_os_abi): Declare new function.
11393 * arm-tdep.c (arm_abi_names): New array.
11394 (process_note_abi_tag_sections): New function.
11395 (get_elfosabi): New function.
11396 (arm_gdbarch_register_os_abi): New function.
11397 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11398 support for that ABI has been built in, then call the appropriate
11399 configuration routine. Use gdbarch_num_regs() to get the number
11400 of registers.
11401 (arm_dump_tdep): New function.
11402 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11403 place-holder functions.
11404 (_initialize_arm_tdep): Register them.
11405 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11406
11407 * armnbsd-tdep.c: New file.
11408 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11409 * config/arm/nbsd.mt (TDEPFILES): Add it.
11410 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11411
11412 * armnbsd-nat.c: Include regcache.h.
11413 * Makefile.in (armnbsd-nat.o): Update dependency list.
11414
11415 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11416
ad68be46
DJ
114172002-02-14 Daniel Jacobowitz <[email protected]>
11418
11419 * gdbserver/Makefile.in: Fix typos in target rules.
11420
003d6d1d
DJ
114212002-02-14 Daniel Jacobowitz <[email protected]>
11422
aaa38bb5 11423 Fix part of PR gdb/267.
003d6d1d
DJ
11424 * linespec.c (find_methods): Handle constructors specially for now.
11425
6b230f1b
CV
114262002-02-14 Corinna Vinschen <[email protected]>
11427
11428 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11429 handling.
11430 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11431 standard_coerce_float_to_double().
11432
1ea98d12
CF
114332002-02-14 Christopher Faylor <[email protected]>
11434
11435 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11436 GDBINIT_FILENAME.
11437
dd47e6fd
EZ
114382002-02-14 Elena Zannoni <[email protected]>
11439
11440 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11441 find_variant_by_name, because it confuses the multiarch
11442 framework. Return NULL if there isn't an architecture with the
11443 user supplied name, instead of forcing a different one without
11444 recording the change with the multiarch machinery.
11445 (find_variant_by_name): Delete.
11446
d7e39b9e
PS
114472002-02-14 Peter Schauer <[email protected]>
11448
11449 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11450 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11451
76e42a4f
MH
114522002-02-13 Martin M. Hunt <[email protected]>
11453
aaa38bb5 11454 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11455 print_frame_info_listing_hook, set current_source_symtab.
11456
0a30fbc4
DJ
114572002-02-14 Daniel Jacobowitz <[email protected]>
11458
11459 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11460 and remove unused $(INCLUDE_DIR).
11461 Add regcache.c to OBS.
11462 Add generated register protocol files to clean target.
11463 Update dependencies for new objects, obsolete old target code.
11464
11465 * gdbserver/linux-low.c: Remove all platform-specific code to
11466 new files. Remove various dead code. Update to use regcache
11467 functionality.
11468 * gdbserver/remote-utils.c (fromhex): Add return statement
11469 to quiet warning.
11470 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11471 constant.
11472 (input_interrupt): Add integer parameter to match prototype
11473 of a signal handler.
11474 (outreg): Use register_data ().
11475 (prepare_resume_reply): Use gdbserver_expedite_regs.
11476 * gdbserver/server.c (main): Dynamically allocate own_buf because
11477 PBUFSIZ is no longer constant. Use registers_to_string () and
11478 registers_from_string ().
11479 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11480 for error (), fatal (), and warning (). Update definition of
11481 PBUFSIZ to use regcache functionality. Add include guard.
11482 * gdbserver/utils.c (fatal): Add missing ``const''.
11483 (warning): New function.
11484
11485 * regformats/regdat.sh: Include "regcache.h" in generated files.
11486 Provide init_registers () function.
11487 * regformats/regdef.h: Add prototype for set_register_cache ().
11488 Add include guard.
11489
11490 * gdbserver/linux-arm-low.c: New file.
11491 * gdbserver/linux-i386-low.c: New file.
11492 * gdbserver/linux-ia64-low.c: New file.
11493 * gdbserver/linux-m68k-low.c: New file.
11494 * gdbserver/linux-mips-low.c: New file.
11495 * gdbserver/linux-ppc-low.c: New file.
11496 * gdbserver/linux-sh-low.c: New file.
11497
11498 * gdbserver/regcache.c: New file.
11499 * gdbserver/regcache.h: New file.
11500
11501 * gdbserver/low-linux.c: Removed obsolete file.
11502
4cc841d0
DJ
115032002-02-14 Daniel Jacobowitz <[email protected]>
11504
11505 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11506 * config/i386/linux.mt: Likewise.
11507 * config/ia64/linux.mt: Likewise.
11508 * config/m68k/linux.mh: Likewise.
11509 * config/powerpc/linux.mh: Likewise.
11510 * config/mips/linux.mt: Likewise.
11511
11512 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11513
11514 * config/i386/i386lynx.mh: Mark gdbserver variables
11515 as (currently) obsolete for this target.
11516 * config/i386/nbsd.mt: Likewise.
11517 * config/i386/nbsdelf.mt: Likewise.
11518 * config/m32r/m32r.mt: Likewise.
11519 * config/m68k/m68klynx.mh: Likewise.
11520 * config/m68k/nbsd.mt: Likewise.
11521 * config/m68k/sun3os4.mh: Likewise.
11522 * config/mips/vr5000.mt: Likewise.
11523 * config/ns32k/nbsd.mt: Likewise.
11524 * config/pa/hppabsd.mh: Likewise.
11525 * config/pa/hppaosf.mh: Likewise.
11526 * config/powerpc/nbsd.mt: Likewise.
11527 * config/rs6000/rs6000lynx.mh: Likewise.
11528 * config/s390/s390.mt: Likewise.
11529 * config/s390/s390x.mt: Likewise.
11530 * config/sparc/sparclynx.mh: Likewise.
11531 * config/sparc/sun4os4.mh: Likewise.
11532 * config/i386/x86-64linux.mt: Likewise.
11533 * config/sparc/linux.mh: Likewise.
11534
a85f51e7
DJ
115352002-02-14 Daniel Jacobowitz <[email protected]>
11536
11537 * configure.tgt: Configure gdbserver only for known working
11538 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11539 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11540 SUBDIRS if it is configured. Update comment for ${nativefile}.
11541 * configure: Regenerated.
11542
65554fef
MS
115432002-02-13 Michael Snyder <[email protected]>
11544
670a52db
MS
11545 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11546
6dbdc4a3
MS
11547 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11548 (default_gcore_mach): Just return 0, work around a problem in bfd.
11549 (default_gcore_target): OK to return NULL if exec_bfd is null.
11550 (make_mem_sec): Use a cast, avoid a warning.
11551
11552 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11553 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11554 sizeof (host pointer) != sizeof (target pointer)).
11555 (procfs_make_note_section): Avoid overflow in psargs string.
11556
aaa38bb5 11557 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11558 implementation return an error.
11559
115602002-02-13 Rodney Brown <[email protected]>
11561
11562 * procfs.c (procfs_make_note_section): Provide a default definition
11563 (for alpha-dec-osf4.0f). Fix typos.
11564
1e4d76e7
EZ
115652002-02-13 Elena Zannoni <[email protected]>
11566
11567 * linux-proc.c: Add include of regcache.h.
11568 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11569
b6d1a1d5
AC
115702002-02-13 Andrew Cagney <[email protected]>
11571
11572 From 2002-01-18 Greg McGary <[email protected]>:
aaa38bb5
AJ
11573 * memattr.c (create_mem_region): Disallow useless empty region.
11574 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11575 non-overlapping.
b6d1a1d5 11576
6c6ea35e
MC
115772002-02-13 Michael Chastain <[email protected]>
11578
11579 * defs.h: Kill CONST_PTR.
11580 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11581 * c-lang.c (c_builtin_types): Likewise.
11582 * ch-lang.c (ch_builtin_types): Likewise.
11583 * f-lang.c (f_builtin_types): Likewise.
11584 * language.c (unknown_builtin_types): Likewise.
11585 * m2-lang.c (m2_builtin_types): Likewise.
11586 * p-lang.c (pascal_builtin_types): Likewise.
11587 * scm-lang.c (c_builtin_types): Likewise.
11588
3e0b0f48
KS
115892002-02-13 Keith Seitz <[email protected]>
11590
11591 * arm-tdep.h (arm_get_next_pc): Add declaration.
11592
67255d04
RE
115932002-02-13 Richard Earnshaw <[email protected]>
11594
11595 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11596 with other related struct-returning functions.
11597 (arm_extract_struct_value_address): New function.
11598 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11599 initialize float_format, double_format and long_double_format as
11600 appropriate to the endianness of the target.
11601 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11602 (arm_use_struct_convention): Delete declaration.
11603 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11604
079777f6
KS
116052002-02-13 Keith Seitz <[email protected]>
11606
11607 * defs.h (core_addr_to_string_nz): New function.
11608
34588f23
MK
116092002-02-13 Mark Kettenis <[email protected]>
11610
11611 Apply missing bits of 2002-01-15 patch.
11612 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11613 (fill_fpregset): Use i387_fill_fsave.
11614
49b563f9
KS
116152002-02-12 Keith Seitz <[email protected]>
11616
49b563f9
KS
11617 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11618 (core_addr_to_string_nz): New function.
11619
aeb98c60
RE
116202002-02-11 Richard Earnshaw <[email protected]>
11621
11622 * arm-linux-nat.c: Really include arm-tdep.h.
11623 * config/arm/tm-linux.h (struct type, struct value): Declare.
11624
65554fef
MS
116252002-02-11 Michael Snyder <[email protected]>
11626
11627 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11628 (gcore section): Ifdef for Solaris and Unixware only.
11629 (procfs_do_thread_registers): Unixware needs one lwpstatus
11630 per thread (not one prstatus or pstatus).
11631 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11632 not over all gdb threads. For unixware, call elfcore_write_pstatus
11633 once before iterating over threads.
11634
34e8f22d
RE
116352002-02-11 Richard Earnshaw <[email protected]>
11636
11637 * arm-tdep.h: New file.
11638 * arm-tdep.c: Include arm-tdep.h.
11639 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11640 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11641 (arm_print_float_info, arm_register_type, convert_to_extended)
11642 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11643 (arm_extract_return_value, arm_register_name): Make static.
11644 (arm_software_single_step): Similarly. Fix types in declaration.
11645 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11646 (arm_store_return_value, arm_store_struct_return): New functions.
11647 (arm_gdbarch_init): Register the above functions. Also register
11648 call_dummy_start_offset, sizeof_call_dummy_words,
11649 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11650 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11651 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11652 prologue_cache.saved_regs here, rather than ...
11653 (_initialize_arm_tdep): ... here.
11654 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11655 declarations.
11656 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11657 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11658 (arm_print_float_info, arm_register_type, convert_to_extended)
11659 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11660 (arm_extract_return_value, arm_register_name): Delete declarations.
11661 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11662 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11663 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11664 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11665 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11666 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11667 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11668 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11669 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11670 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11671 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11672 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11673 interface.
11674 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11675 * remote-rdi.c remote-rdp.c: Likewise.
11676 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11677 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11678 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11679 definition.
11680
11681 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11682 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11683 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11684 from non-ARM_ prefixed definitions.
11685 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11686 all uses of above.
11687 * remote-rdi.c remote-rdp.c: Likewise.
11688 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11689
148754e5
RE
116902002-02-11 Richard Earnshaw <[email protected]>
11691
11692 * arm-tdep.c (arm_frameless_function_invocation)
11693 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11694 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11695 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11696 (arm_pop_frame, arm_get_next_pc): Make static.
11697 (arm_gdbarch_init): Register above in gdbarch structure.
11698 (arm_read_fp): Renamed from arm_target_read_fp.
11699 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11700 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11701 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11702 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11703 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11704 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11705 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11706 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11707 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11708 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11709 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11710
434d2d4f
DJ
117112002-02-10 Daniel Jacobowitz <[email protected]>
11712
11713 * symtab.c (compare_search_syms): New function.
11714 (sort_search_symbols): New function.
11715 (search_symbols): Sort symbols after searching rather than
11716 before.
11717
55241689
AC
117182002-02-10 Andrew Cagney <[email protected]>
11719
11720 * NEWS: Linux -> GNU/Linux.
11721
028c194b
AC
117222002-02-10 Andrew Cagney <[email protected]>
11723
11724 * gdbarch.sh: For for level one methods, disallow a definition
11725 when partially multi-arched. Add comments explaining rationale.
11726 * gdbarch.h: Re-generate.
11727
6acf50cd
AC
117282002-02-10 Andrew Cagney <[email protected]>
11729
11730 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11731 multi-arch partial.
aaa38bb5 11732
50248794
AC
117332002-02-10 Andrew Cagney <[email protected]>
11734
11735 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11736 field. Use diff -u.
11737 * gdbarch.c: Re-generate.
11738
c30e0066
AC
117392002-02-10 Andrew Cagney <[email protected]>
11740
9b56c5f3 11741 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11742 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11743 partial.
11744
6e6d6484
AC
117452002-02-10 Andrew Cagney <[email protected]>
11746
11747 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11748 multi-arch partial.
11749 (PUSH_ARGUMENTS): Switch to using predefault.
11750 * gdbarch.c: Regenerate.
11751
c203844d
AC
117522002-02-10 Andrew Cagney <[email protected]>
11753
11754 * valops.c (PUSH_ARGUMENTS): Delete definition.
11755 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11756 partial. Default to default_push_arguments.
11757 * gdbarch.h, gdbarch.c: Regenerate.
11758
b5a2688f
AC
117592002-02-09 Andrew Cagney <[email protected]>
11760
11761 * defs.h (throw_exception): Rename return_to_top_level. Update
11762 comments.
11763 * utils.c (error_stream, internal_verror, quit): Ditto.
11764 * top.c (throw_exception, catcher): Ditto.
11765 * sparclet-rom.c (sparclet_load): Ditto.
11766 * remote.c (interrupt_query, minitelnet): Ditto.
11767 * remote-sds.c (interrupt_query): Ditto.
11768 * remote-mips.c (mips_error, mips_kill): Ditto.
11769 * ocd.c (interrupt_query): Ditto.
11770 * monitor.c (monitor_interrupt_query): Ditto.
11771 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11772 * target.h: Update comment.
aaa38bb5 11773
b5a2688f 11774 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11775
2fa5c1e0
AC
117762002-02-09 Andrew Cagney <[email protected]>
11777
11778 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11779 default_double_format.
11780 * gdbarch.h, gdbarch.c: Re-generate.
11781 * findvar.c (floatformat_unknown): Delete variable definition.
11782 * doublest.h (floatformat_unknown): Delete variable declaration.
11783
da966255
JB
117842002-02-09 Jim Blandy <[email protected]>
11785
11786 * stabsread.c (read_type): Add code to parse Sun's syntax for
11787 prototyped function types.
11788
123a4891
AC
117892002-02-09 Andrew Cagney <[email protected]>
11790
11791 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11792 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11793
fb39c8f3
PS
117942002-02-09 Peter Schauer <[email protected]>
11795
11796 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11797 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11798 now _initialize_xcoffsolib gets called again and overrides the
11799 commands from solib.c in a native configuration.
11800
0b87a11d
MK
118012002-02-09 Mark Kettenis <[email protected]>
11802
11803 * doublest.c (store_typed_floating): Don't try to return a value.
11804 Fixes PR gdb/290.
11805
bdc2fc72
JB
118062002-02-08 Jim Blandy <[email protected]>
11807
11808 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11809 is prototyped and has no arguments, print its argument list as
11810 `(void)'.
11811
da69bbcf
CD
118122002-02-08 Chris Demetriou <[email protected]>
11813
11814 * MAINTAINERS (write-after-approval): Add myself.
11815 (paper-trail): I've escaped!
aaa38bb5 11816
b69571f5
CF
118172002-02-08 Christopher Faylor <[email protected]>
11818
11819 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11820 changes.
11821 (_initialize_check_for_gdb_ini): Ditto.
11822
f6871398
MH
118232002-02-08 Martin M. Hunt <[email protected]>
11824
11825 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11826 xaprintf -> xasprintf.
11827
4e52d31c
PM
118282002-02-08 Pierre Muller <[email protected]>
11829
11830 * win32-nat.c: Remove use of printf and sprintf functions.
11831
39bbf761
RE
118322002-02-08 Richard Earnshaw <[email protected]>
11833
11834 * arm-tdep.c (arm_frame_chain_valid): Make static.
11835 (arm_push_arguments): Likewise.
11836 (arm_gdbarch_init): New function.
11837 (_initialize_arm_tdep): Call it.
11838 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11839 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11840 (FRAME_CHAIN_VALID): Delete.
11841 (arm_frame_chain_valid): Delete declaration.
11842 (PUSH_ARGUMENTS): Delete.
11843 (arm_push_arguments): Delete declaration.
11844 (CALL_DUMMY_P): Delete.
11845
9c9532c9
CV
118462002-02-08 Andrew Cagney <[email protected]>
11847 Corinna Vinschen <[email protected]>
11848
11849 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11850 on builtin float types.
11851
4e8f7a8b
DJ
118522002-02-08 Daniel Jacobowitz <[email protected]>
11853
11854 * utils.c: Include <curses.h> before "bfd.h".
11855 * tui/tui-hooks.c: Likewise.
11856 * tui/tui.c: Likewise.
11857 * tui/tuiCommand.c: Likewise.
11858 * tui/tuiData.c: Likewise.
11859 * tui/tuiDataWin.c: Likewise.
11860 * tui/tuiDisassem.c: Likewise.
11861 * tui/tuiGeneralWin.c: Likewise.
11862 * tui/tuiIO.c: Likewise.
11863 * tui/tuiLayout.c: Likewise.
11864 * tui/tuiRegs.c: Likewise.
11865 * tui/tuiSource.c: Likewise.
11866 * tui/tuiSourceWin.c: Likewise.
11867 * tui/tuiStack.c: Likewise.
11868 * tui/tuiWin.c: Likewise.
11869
cd4bffcf
EZ
118702002-02-07 Elena Zannoni <[email protected]>
11871
11872 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11873 to include space for pseudoregs as well. Update loops accordingly.
11874 (sh_fp_frame_init_saved_regs): Ditto.
11875 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11876
26806ce2
AC
118772002-02-07 Andrew Cagney <[email protected]>
11878
11879 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11880 Add Richard Earnshaw to Arm maintainers.
11881
97fdab62
AC
118822002-02-07 Andrew Cagney <[email protected]>
11883
a6b98203
AC
11884 * defs.h (warning_begin): Delete declaration.
11885
97fdab62
AC
11886 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11887 Delete macro.
11888
78b29b40
MS
118892002-02-07 Michael Snyder <[email protected]>
11890
aaa38bb5 11891 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11892 Logic bug, remove misplaced else.
11893
d8849953
KD
118942002-02-07 Klee Dienes <[email protected]>
11895
11896 * fork-inferior.c (fork_inferior): Add '!' to the list of
11897 characters that need to be quoted when building a string for the
11898 shell. Quote '!' specifically with a backslash, since CSH chokes
11899 when trying to evaluate "str!str".
aaa38bb5 11900
095778a0
NC
119012002-02-06 Nick Clifton <[email protected]>
11902
11903 * rdi-share/host.h: Only provide a typedef for bool if it is not
11904 defined.
11905
1900040c
MS
119062002-02-04 Michael Snyder <[email protected]>
11907
11908 * breakpoint.h (enum bptype): Add new overlay event bp type.
11909 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11910
1900040c
MS
11911 * breakpoint.c (create_internal_breakpoint): New function.
11912 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11913 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11914 (create_thread_event_breakpoint): Ditto.
11915 (create_solib_event_breakpoint): Ditto.
11916 (create_overlay_event_breakpoint): New function.
11917 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11918 (update_breakpoints_after_exec): Delete and re-initialize
11919 overlay event breakpoints after an exec. Add FIXME comment
11920 about longjmp breakpoint.
11921 (print_it_typical): Ignore overlay event breakpoints.
11922 (print_one_breakpoint): Ditto.
11923 (mention): Ditto.
11924 (bpstat_what): Do not stop for overlay event breakpoints.
11925 (delete_breakpoint): Don't delete overlay event breakpoints.
11926 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11927 (breakpoint_re_set): Re-create overlay event breakpoint.
11928
11929 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11930 (overlay_manual_command): Disable overlay breakpoints.
11931 (overlay_off_command): Disable overlay breakpoints.
11932
082fc60d
RE
119332002-02-06 Richard Earnshaw <[email protected]>
11934
11935 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11936 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11937 to here from config/tm-arm.h.
11938 (coff_sym_is_thumb): Make static.
11939 (arm_elf_make_msymbol_special): New function.
11940 (arm_coff_make_msymbol_special): New function.
11941 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11942 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11943 (coff_sym_is_thumb): Delete declaration.
11944 (arm_elf_make_msymbol_special): Declare.
11945 (arm_coff_make_msymbol_special): Declare.
11946 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11947 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11948
039c5766
RE
119492002-02-06 Richard Earnshaw <[email protected]>
11950
11951 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11952
119532002-02-06 Richard Earnshaw <[email protected]>
11954
11955 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11956 * gdbarch.c gdbarch.h: Regenerate.
11957 * arch-utils.c (default_print_float_info): New function.
11958 * arch-utils.h (default_print_float_info): Prototype it.
11959 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11960 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11961 (PRINT_FLOAT_INFO): Document it.
11962
11963 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11964 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11965 (PRINT_FLOAT_INFO): Define.
11966
58fa08f0
PM
119672002-02-06 Pierre Muller <[email protected]>
11968
aaa38bb5 11969 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11970 Add typecast to sprintf argument to suppress a warning.
11971
7393af7c
PM
119722002-02-05 Pierre Muller <[email protected]>
11973
58fa08f0 11974 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11975 to allow easier handling of pass state.
11976 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11977 that gives exception name and address.
11978 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11979 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11980 exceptions added.
aaa38bb5
AJ
11981 (child_continue): Correctly report continue_status.
11982 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11983 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11984 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11985 the exception should be passed to debuggee or not.
11986
6af4589c
MS
119872002-02-05 Michael Snyder <[email protected]>
11988
11989 * regcache.c (fetch_register): Call target_fetch_register
11990 only if we don't call FETCH_PSEUDO_REGISTER.
11991 (store_register): Call target_store_register only if we
11992 don't call STORE_PSEUDO_REGISTER.
11993
a2cf933a
EZ
119942002-02-05 Elena Zannoni <[email protected]>
11995
11996 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11997 ELF_MAKE_MSYMBOL_SPECIAL.
11998 * gdbarch.c, gdbarch.h: Regenerate.
11999 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12000 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12001 * elfread.c (elf_symtab_read): Compile use of
12002 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12003 multiarched.
12004 * coffread.c (coff_symtab_read): Ditto, for
12005 COFF_MAKE_MSYMBOL_SPECIAL.
12006
6bb7be43
JB
120072002-02-05 Jim Blandy <[email protected]>
12008
12009 * solib-svr4.c (svr4_truncate_ptr): New function.
12010 (svr4_relocate_section_addresses): Do the address arithmetic with
12011 the appropriate truncation for target addresses, even when
12012 CORE_ADDR is larger than a target address.
12013
e18651ec
DJ
120142002-02-05 Daniel Jacobowitz <[email protected]>
12015
12016 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12017 to (int *).
12018
6b2725be
DJ
120192002-02-05 Daniel Jacobowitz <[email protected]>
12020
12021 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12022 code.
12023
fca9e603
DJ
120242002-02-05 Daniel Jacobowitz <[email protected]>
12025
12026 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12027
6c537a52
DJ
120282002-02-05 Daniel Jacobowitz <[email protected]>
12029
12030 * gdbserver/linux-low.c: Remove unused include files.
12031
d844cde6
DJ
120322002-02-05 Daniel Jacobowitz <[email protected]>
12033
12034 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12035 (read_inferior_memory): Use it.
12036 (write_inferior_memory): Likewise.
12037
d07c63e7
DJ
120382002-02-05 Daniel Jacobowitz <[email protected]>
12039
12040 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12041 grubbing through sys_errlist.
12042
da6d8c04
DJ
120432002-02-05 Daniel Jacobowitz <[email protected]>
12044
12045 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12046
5b421780
PM
120472002-02-04 Pierre Muller <[email protected]>
12048 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12049
9f60d481
AC
120502002-02-04 Andrew Cagney <[email protected]>
12051
12052 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12053 (do_sfunc, set_cmd_sfunc): New functions.
12054
12055 * command.h (struct cmd_list_element): Add field func.
12056 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12057 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12058 * cli/cli-decode.h: Ditto.
12059
12060 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12061 (help_all, help_cmd_list): Ditto.
12062 (find_cmd, complete_on_cmdlist): Ditto.
12063 * top.c (execute_command): Ditto.
12064
12065 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12066 function.sfunc.
12067
12068 * infcmd.c (notice_args_read): Fix function signature.
12069
12070 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12071 * cli/cli-decode.c (add_set_cmd): Ditto.
12072 * utils.c (initialize_utils): Ditto.
12073 * maint.c (_initialize_maint_cmds): Ditto.
12074 * infrun.c (_initialize_infrun): Ditto.
12075 * demangle.c (_initialize_demangler): Ditto.
12076 * remote.c (add_packet_config_cmd): Ditto.
12077 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12078 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12079 * proc-api.c (_initialize_proc_api): Ditto.
12080 * kod.c (_initialize_kod): Ditto.
12081 * valprint.c (_initialize_valprint): Ditto.
12082 * top.c (init_main): Ditto.
12083 * infcmd.c (_initialize_infcmd): Ditto.
12084 * corefile.c (_initialize_core): Ditto.
12085 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12086 * arch-utils.c (initialize_current_architecture): Ditto.
12087 (_initialize_gdbarch_utils): Ditto.
12088 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12089
12090 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12091 * wince.c (_initialize_inftarg): Ditto.
12092 * symfile.c (_initialize_symfile): Ditto.
12093 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12094 * language.c (_initialize_language): Ditto.
12095 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12096
f9ba0717
MS
120972002-02-04 Michael Snyder <[email protected]>
12098
12099 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12100
0c74b2a7
DJ
121012002-02-04 Daniel Jacobowitz <[email protected]>
12102
12103 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12104 Add rules for building the register data files.
12105
c638789f
DJ
121062002-02-04 Daniel Jacobowitz <[email protected]>
12107
12108 * regformats/regdat.sh: Add braces to the definition of
12109 expedite_regs_${arch}.
12110
db253027
DJ
121112002-02-04 Daniel Jacobowitz <[email protected]>
12112
12113 * regformats/regdef.h (struct reg): Add comment describing the
12114 requirements for offset and size fields.
12115
206be19c
AS
121162002-02-04 Andreas Schwab <[email protected]>
12117
12118 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12119 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12120
181c1381
RE
121212002-02-04 Richard Earnshaw <[email protected]>
12122
12123 * gdbarch.sh (copyright): Update years in generated header.
12124 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12125 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12126 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12127 * dbxread.c: Likewise.
12128 * dwarfread.c: Likewise.
12129 * elfread.c: Likewise.
12130 * somread.c: Likewise.
12131
12132 * arm-tdep.c (arm_smash_text_address): New function.
12133 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12134
fa4ba8da
PM
121352002-02-04 Pierre Muller <[email protected]>
12136
12137 Add support for hardware watchpoints on win32 native.
aaa38bb5 12138 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12139 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12140 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12141 of debug registers.
12142 (debug_registers_changed): New variable. Reflects when debug registers
12143 are changed and need to be written to inferior.
aaa38bb5 12144 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12145 was set, used when new threads are created.
12146 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12147 i386-nat code.
12148 (thread_rec): Set dr array if id is the thread of current_event .
12149 (child_continue, child_resume): Change the debug registers for all
12150 threads if debug_registers_changed.
12151 (child_add_thread): Change the debug registers if debug_registers_used.
12152 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12153 Link nm.h to new nm-cygwin.h file.
12154 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12155 of hardware registers.
12156
a73c86fb
AC
121572002-02-03 Andrew Cagney <[email protected]>
12158
12159 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12160 Restore behavour broken by 2002-01-20 Andrew Cagney
12161 <[email protected]> IEEE_FLOAT removal.
12162
acf5ed49
DJ
121632002-02-03 Daniel Jacobowitz <[email protected]>
12164
12165 * c-valprint.c (c_val_print): Pass a proper valaddr to
12166 cp_print_class_method.
12167 * valops.c (search_struct_method): If there is only one method
12168 and args is NULL, return that method.
12169
493d28d5
DJ
121702002-02-03 Daniel Jacobowitz <[email protected]>
12171
12172 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12173 accessing tag_name directly.
12174
7495dfdb
DJ
121752002-02-03 Daniel Jacobowitz <[email protected]>
12176
12177 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12178 of accessing tag_name directly.
12179
dd6bda65
DJ
121802002-02-03 Daniel Jacobowitz <[email protected]>
12181
12182 PR gdb/280
12183 * gdbtypes.c (replace_type): New function.
12184 * gdbtypes.h (replace_type): Add prototype.
12185 * stabsread.c (read_type): Use replace_type.
12186
88fe217c
RE
121872002-02-03 Richard Earnshaw <[email protected]>
12188
12189 * Makefile.in (memattr.o): Add missing dependencies rule.
12190
e5d66720
PS
121912002-02-03 Peter Schauer <[email protected]>
12192
12193 * breakpoint.c (break_at_finish_command): Really export.
12194 (break_at_finish_at_depth_command): Ditto.
12195 (tbreak_at_finish_command): Ditto.
12196 * hppa-tdep.c: Include completer.h.
12197 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12198 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12199
fffee0be
AC
122002002-02-01 Andrew Cagney <[email protected]>
12201
12202 * utils.c (do_write): New function.
12203 (error_stream): Rewrite combining the code from error_begin and
12204 verror.
12205 (verror): Rewrite using error_stream.
12206 (error_begin): Delete function.
12207
255e7dbf
AC
122082002-02-01 Andrew Cagney <[email protected]>
12209
12210 * utils.c (error_begin): Make static.
12211 * defs.h (error_begin): Delete declaration.
12212
12213 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12214 (decode_line_1): Use cplusplus_error instead of error_begin,
12215 cplusplus_hint and return_to_top_level.
12216 * coffread.c (coff_symfile_read): Use error instead of error_begin
12217 and return_to_top_level.
12218 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12219
ddfe3c15
AC
122202002-02-01 Andrew Cagney <[email protected]>
12221
12222 * language.h (type_error, range_error): Make string parameter
12223 constant.
12224 * language.c (warning_pre_print): Delete extern declaration.
12225 * dwarfread.c (warning_pre_print): Ditto.
12226 * language.c (type_error, range_error): Rewrite to use verror and
12227 vwarning instead of warning_begin.
12228
03ac34d5
MS
122292002-02-01 Michael Snyder <[email protected]>
12230
261c4ca2
MS
12231 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12232 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12233
e00d1dc8
AC
122342002-02-01 Andrew Cagney <[email protected]>
12235
12236 * command.h (NO_FUNCTION): Delete macro.
12237 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12238 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12239 * tracepoint.c (_initialize_tracepoint): Ditto.
12240 * cli/cli-decode.c (add_set_cmd): Ditto.
12241 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12242
76b79d6e
DJ
122432002-02-01 Daniel Jacobowitz <[email protected]>
12244
12245 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12246 Update ``this'' pointer when calling virtual functions.
12247
799f9e91
MS
122482002-02-01 Michael Snyder <[email protected]>
12249
c7bd442c 12250 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12251 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12252
3cf384d4
DJ
122532002-02-01 Daniel Jacobowitz <[email protected]>
12254
12255 * regformats/reg-arm.dat: New file.
12256 * regformats/reg-i386.dat: New file.
12257 * regformats/reg-ia64.dat: New file.
12258 * regformats/reg-m68k.dat: New file.
12259 * regformats/reg-mips.dat: New file.
12260 * regformats/reg-ppc.dat: New file.
12261 * regformats/reg-sh.dat: New file.
12262 * regformats/regdef.h: New file.
12263 * regformats/regdat.sh: New file.
12264
0defa245
RE
122652002-02-01 Richard Earnshaw <[email protected]>
12266
12267 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12268 (arm_frame_args_address, arm_frame_locals_address): New functions.
12269 (arm_frame_num_args): New function.
12270 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12271 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12272 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12273
405f26e6
MS
122742002-01-31 Michael Snyder <[email protected]>
12275
502fd408
MS
12276 * breakpoint.c (break_at_finish_command): Export.
12277 (break_at_finish_at_depth_command): Export.
12278 (tbreak_at_finish_command): Export.
d6020d45 12279 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12280 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12281 "txbreak" commands, which are HPPA specific.
502fd408 12282
7d35e135
MS
12283 * printcmd.c (disassemble_command): Remove an ancient
12284 artifact of an old merge.
12285
aaa38bb5 12286 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12287 Define enum constant values for overlay mode.
12288 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12289 (overlay_is_mapped, overlay_auto_command,
12290 overlay_manual_command): Ditto.
d874f1e2 12291
aaa38bb5
AJ
12292 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12293 breakpoint_here_p, breakpoint_inserted_here_p,
12294 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12295 describe_other_breakpoints, check_duplicates, clear_command):
12296 Coding standard fixes.
12297
8add0441 12298 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12299 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12300 code: check bfd SEC_READONLY flag for section.
12301
e351066e
AC
123022002-01-31 Andrew Cagney <[email protected]>
12303
7d35e135 12304 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12305
8a48e967
DJ
123062002-01-30 Daniel Jacobowitz <[email protected]>
12307
12308 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12309 data symbols, since we search based on textlow and texthigh.
12310 (find_pc_sect_symtab): Likewise.
12311
f5a96129
AC
123122002-01-30 Andrew Cagney <[email protected]>
12313
12314 * defs.h (vwarning): Declare.
f5a96129
AC
12315 * utils.c (vwarning): New function.
12316 (warning): Call vwarning.
12317 (warning_begin): Delete function.
12318
12319 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12320 the warning message.
12321 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12322 warning_begin.
12323
cefd4ef5
MS
123242002-01-30 Michael Snyder <[email protected]>
12325
1a703748
MS
12326 * NEWS: Mention "set trust-readonly-sections" command.
12327 Mention generate-core-file command.
cefd4ef5 12328
3a11626d
MS
123292002-01-15 Michael Snyder <[email protected]>
12330
12331 * target.c: New command, "set trust-readonly-sections on".
12332 (do_xfer_memory): Honor the suggestion to trust readonly sections
12333 by reading them from the object file instead of from the target.
12334 (initialize_targets): Register command "set trust-readonly-sections".
12335
d1c7e53b
AC
123362002-01-29 Andrew Cagney <[email protected]>
12337
12338 * parse.c (target_map_name_to_register): Simplify, search regs and
12339 pseudo-regs using a single loop.
12340
e2c9a72c
AC
123412002-01-30 Andrew Cagney <[email protected]>
12342
12343 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12344
69824b4e
MK
123452002-01-15 Rodney Brown <[email protected]>
12346
12347 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12348 * config/i386/i386v42mp.mh: Add i387-nat.o .
12349 * i386v4-nat.c: Include i387-nat.h.
12350 (supply_fpregset): Use i387_supply_fsave.
12351 (fill_fpregset): Use i387_fill_fsave.
12352
6eb69eab
RE
123532002-01-30 Richard Earnshaw <[email protected]>
12354
12355 * arm-tdep.c (arm_call_dummy_words): Define.
12356 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12357 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12358 (CALL_DUMMY_WORDS): Define.
12359 (arm_call_dummy_words): Declare.
12360 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12361 (arm_linux_call_dummy_words): Declare.
12362
9852326a
AS
123632002-01-30 Andreas Schwab <[email protected]>
12364
12365 * m68klinux-nat.c: Fix last change to use regcache_collect
12366 instead of referencing registers[] directly.
12367
977a3030
AC
123682002-01-29 Andrew Cagney <[email protected]>
12369
12370 * parse.c (target_map_name_to_register): Delete code wrapped in
12371 #ifdef REGISTER_NAME_ALIAS_HOOK.
12372
2076c72b
MS
123732002-01-28 Michael Snyder <[email protected]>
12374
12375 * regcache.c (legacy_read_register_gen): Need to be able to
12376 read pseudo-register as well as real register.
12377 (legacy_write_register_gen): Ditto.
12378
8fcc723b
AC
123792002-01-28 Andrew Cagney <[email protected]>
12380
12381 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12382 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12383 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12384 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12385 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12386 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12387 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12388 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12389 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12390 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12391 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12392 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12393 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12394 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12395 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12396 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12397 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12398 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12399 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12400 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12401
afe64c1a
AC
124022002-01-28 Andrew Cagney <[email protected]>
12403
12404 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12405 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12406 (initialize_current_architecture): Update target_byte_order using
12407 information from BFD.
aaa38bb5 12408 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12409 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12410
75bc7ddf
AC
124112002-01-28 Andrew Cagney <[email protected]>
12412
12413 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12414 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12415
12416 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12417 #ifdef INVALID_FLOAT.
12418 * infcmd.c (do_registers_info): Ditto.
12419 * values.c (unpack_double): Ditto. Add comment.
12420
12421 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12422 already commented out.
12423
0280a90a
AS
124242002-01-26 Andreas Schwab <[email protected]>
12425
12426 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12427 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12428 registers and add support for PTRACE_GETREGS.
12429
7072a954
AC
124302002-01-24 Andrew Cagney <[email protected]>
12431
12432 GDB 5.1.1 released from 5.1 branch.
12433 * NEWS: Add 5.1.1 news.
12434 * README: Sync with 5.1 branch.
12435
86f902e0
FF
124362002-01-23 Fred Fish <[email protected]>
12437
12438 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12439 stabstring on initial malloc. Reallocing will copy it for us,
12440 if necessary.
12441
8af51c36
EZ
124422002-01-23 Elena Zannoni <[email protected]>
12443
aaa38bb5 12444 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12445 (HFILES_NO_SRCDIR): Remove hpread.h.
12446 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12447 (hpread.o): Update dependencies.
12448 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12449
12450 * hp-psymtab-read.c: Remove file.
12451 * hp-symtab-read.c: Remove file.
12452 * hpread.h: Remove file.
12453
12454 * hpread.c: Merge all contents of hp-psymtab-read.c,
12455 hp-symtab-read.c and hpread.h into this file, as it was prior to
12456 January 1999.
12457
12458 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12459 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12460 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12461 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12462
dc5cfeb6
EZ
124632002-01-23 Elena Zannoni <[email protected]>
12464
12465 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12466 fill_gregset): Call gdbarch_tdep() just once, assign result to
12467 variable and use that, instead of calling the function several
12468 times.
12469
ea87b71b
AO
124702002-01-24 Alexandre Oliva <[email protected]>
12471
12472 * configure.host: Accept sparcv9 as alias for sparc64.
12473 * configure.tgt: Likewise.
12474
13fc0c2f
KB
124752002-01-22 Kevin Buettner <[email protected]>
12476
12477 * solib-aix5.c (build_so_list_from_mapfile)
12478 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12479 arguments is not reversed.
12480 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12481 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12482
7bd872fe
EZ
124832002-01-22 Elena Zannoni <[email protected]>
12484
12485 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12486 modified version of obsolete sh_fetch_pseudo_register.
12487 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12488 (sh4_register_read): New function.
12489 (sh_pseudo_register_write): New function. Renamed and modified
12490 version of obsolete sh_store_pseudo_register.
12491 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12492 (sh4_register_write): New function.
12493 (sh_gdbarch_init): Remove setting of gdbarch function
12494 fetch_pseudo_register and store_pseudo_register. Remove setting of
12495 register_convert_to_raw, register_convert_to_virtual,
12496 register_convertible.
12497 (sh_sh4_register_convertible): Delete. No longer needed. All is
12498 taken care by architecture specific functions
12499 register_read/register_write.
12500 (sh_sh4_register_convert_to_virtual): Make static.
12501 (sh_sh4_register_convert_to_raw): Ditto.
12502
069e84fd
AC
125032002-01-22 Andrew Cagney <[email protected]>
12504
12505 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12506 (floatformat_is_nan, floatformat_mantissa): Ditto.
12507
12508 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12509 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12510 builtin_type_ieee_double_little,
12511 builtin_type_ieee_double_littlebyte_bigword,
12512 builtin_type_m68881_ext, builtin_type_i960_ext,
12513 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12514 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12515 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12516 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12517
211a4f69
CV
125182002-01-22 Corinna Vinschen <[email protected]>
12519
12520 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12521 parameter. Set frameless flag if it exists and depended of
12522 whether the scanned function is frameless or not.
12523 (xstormy16_skip_prologue): If function is frameless, return
12524 result of xstormy16_scan_prologue().
12525 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12526 call.
12527
f81353e4
EZ
125282002-01-21 Elena Zannoni <[email protected]>
12529
12530 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12531 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12532 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12533 sh_sh4_register_byte, sh_sh4_register_raw_size,
12534 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12535 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12536 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12537 sh_store_pseudo_register, sh_do_pseudo_register): Call
12538 gdbarch_tdep() just once, assign result to variable and use that,
12539 instead of calling the function several times.
12540
63c73a17
MK
125412002-01-20 Mark Kettenis <[email protected]>
12542
12543 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12544 macros instead of LAST_FPU_CTRL_REGNUM.
12545 (store_register): Likewise.
12546
39ad761d
JB
125472002-01-21 Jim Blandy <[email protected]>
12548
12549 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12550 is up-to-date before running the program, not just when a program
12551 exits.
12552
3d74b771
FF
125532002-01-21 Fred Fish <[email protected]>
12554
12555 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12556 when we have found all instructions we are looking for.
12557
966fbf70
RE
125582002-01-21 Richard Earnshaw <[email protected]>
12559
12560 * arm-tdep.c (arm_register_name): New function.
12561 (arm_registers_names): Make static.
12562 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12563 (arm_register_name): Declare.
12564 (REGISTER_NAME): Use it.
12565
c3b4394c
RE
125662002-01-21 Richard Earnshaw <[email protected]>
12567 Kevin Buettner <[email protected]>
12568
12569 Convert arm targets to new FRAME interface.
12570 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12571 (arm_frame_find_save_regs): Delete.
12572 (arm_frame_init_saved_regs): New.
12573 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12574 Allocate extra_info as required. Convert all uses of fsr.regs
12575 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12576 to use extra_info.
12577 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12578 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12579 (check_prologue_cache, save_prologue_cache): Likewise.
12580 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12581 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12582 (FRAME_FIND_SAVED_REGS): Delete.
12583 (arm_frame_find_saved_regs): Delete prototype.
12584 (arm_frame_init_saved_regs): New prototype.
12585 (FRAME_INIT_SAVED_REGS): Define.
12586
61d99182
AC
125872002-01-20 Andrew Cagney <[email protected]>
12588
12589 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12590
6aaea291
AC
125912002-01-20 Andrew Cagney <[email protected]>
12592
12593 From Jeff Law <[email protected]>:
12594 * infttrace.c: Include <sys/pstat.h>.
12595 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12596 exec file if the ttrace equivalent fails.
12597
15f698d2
AC
125982002-01-20 Andrew Cagney <[email protected]>
12599
12600 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12601 (closeLogFile): Ditto.
12602
f86ddd7c
MC
126032002-01-20 Michael Chastain <[email protected]>
12604
12605 * top.c (print_gdb_version): Bump copyright year to 2002.
12606
904507ce
AC
126072002-01-20 Andrew Cagney <[email protected]>
12608
12609 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12610 Zannoni and Eli Zaretskii.
12611
d7f0b9ce
DJ
126122002-01-20 Daniel Jacobowitz <[email protected]>
12613
12614 * buildsym.c: Update copyright years.
12615 * c-typeprint.c: Likewise.
12616 * dwarf2read.c: Likewise.
12617 * f-typeprint.c: Likewise.
12618 * gdbtypes.c: Likewise.
12619 * gdbtypes.h: Likewise.
12620 * hp-symtab-read.c: Likewise.
12621 * hpread.c: Likewise.
12622 * mdebugread.c: Likewise.
12623 * p-typeprint.c: Likewise.
12624
3fd3d7d2
AC
126252002-01-20 Andrew Cagney <[email protected]>
12626
12627 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12628 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12629 byte-order selectable.
12630 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12631 * arch-utils.c: Ditto.
12632 (set_endian): Ditto.
12633 (set_endian_from_file): Ditto.
12634 * gdbserver/low-sim.c (create_inferior): Ditto.
12635 * gdbarch.sh: Ditto.
12636 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12637 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12638 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12639 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12640 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12641 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12642 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12643 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12644 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12645 macro definition.
12646 * config/mips/tm-wince.h: Remove #undef of macro
12647 TARGET_BYTE_ORDER_SELECTABLE.
12648 * config/sh/tm-wince.h: Ditto.
12649
b02dede2
DJ
126502002-01-20 Daniel Jacobowitz <[email protected]>
12651
12652 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12653 member function fields. Add accessor macro
12654 TYPE_FN_FIELD_ARTIFICIAL.
12655 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12656 * c-typeprint.c (c_type_print_base): Skip artificial member
12657 functions.
12658
c3643761
DJ
126592002-01-20 Daniel Jacobowitz <[email protected]>
12660
12661 * f-typeprint.c: Delete unused function f_type_print_args.
12662 * p-typeprint.c: Delete unused function pascal_type_print_args.
12663
8176bb6d
DJ
126642002-01-20 Daniel Jacobowitz <[email protected]>
12665
12666 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12667 comment. Add ``artificial'' to ``union field_location''.
12668
12669 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12670
12671 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12672 * mdebugread.c (parse_symbol): Likewise.
12673 * stabsread.c (define_symbol): Likewise.
12674 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12675 initializing TYPE_FIELD_BITPOS to n (obsolete).
12676 (hpread_doc_function_type): Likewise.
12677 * hpread.c (hpread_function_type): Likewise.
12678
7fd60527
AC
126792002-01-20 Andrew Cagney <[email protected]>
12680
12681 * configure.in (host_makefile_frag): Only require a host makefile
12682 fragment when a native build.
12683 * configure: Re-generate.
12684
c2f05ac9
AC
126852002-01-20 Andrew Cagney <[email protected]>
12686
12687 * doublest.h (floatformat_from_type): Declare.
12688 * doublest.c (floatformat_from_type): New function.
12689 (convert_typed_floating): Use.
12690
12691 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12692 call to function floatformat_from_type.
12693
12694 * gdbarch.sh (IEEE_FLOAT): Delete.
12695 * gdbarch.h, gdbarch.c: Re-generate.
12696 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12697 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12698 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12699 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12700 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12701 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12702 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12703 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12704 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12705 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12706 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12707 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12708
12709 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12710 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12711 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12712 * sh-tdep.c (sh_gdbarch_init): Ditto.
12713 * mips-tdep.c (mips_gdbarch_init): Ditto.
12714 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12715 * cris-tdep.c (cris_gdbarch_init): Ditto.
12716
abf22e64
AJ
127172002-01-20 Jiri Smid <[email protected]>
12718
12719 * configure.host, configure.tgt: Support x86-64.
12720 * NEWS: Note new target x86-64.
12721
b7c4cbf8
AJ
12722 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12723 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12724 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12725 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12726 x86-64-linux-nat.o): Fix dependencies.
12727
82600034
AC
127282002-01-19 Andrew Cagney <[email protected]>
12729
12730 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12731 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12732 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12733 * config/sparc/xm-sun4os4.h: Delete file.
12734 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12735
bbe5c628
AC
127362002-01-19 Andrew Cagney <[email protected]>
12737
12738 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12739 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12740 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12741 * config/i386/i386lynx.mh (XM_FILE): Delete.
12742 * config/rs6000/xm-rs6000ly.h: Delete file.
12743 * config/sparc/xm-sparclynx.h: Delete file.
12744 * config/m68k/xm-m68klynx.h: Delete file.
12745 * config/i386/xm-i386lynx.h: Delete file.
12746 * config/xm-lynx.h: Delete file.
12747 * config/djgpp/fnchange.lst: Update.
12748
f8453e34
JT
127492002-01-19 Jason Thorpe <[email protected]>
12750
12751 * alpha-tdep.c (alpha_register_byte): New function.
12752 (alpha_register_raw_size): Ditto.
12753 (alpha_register_virtual_size): Ditto.
12754 (alpha_skip_prologue_internal): Renamed from
12755 alpha_skip_prologue.
12756 (alpha_skip_prologue): New version that calls
12757 alpha_skip_prologue_internal.
12758 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12759 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12760 second argument from alpha_skip_prologue.
12761 (REGISTER_BYTE): Use alpha_register_byte.
12762 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12763 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12764 (FRAMELESS_FUNCTION_INVOCATION): Use
12765 generic_frameless_function_invocation_not.
12766 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12767 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12768
52d9e613
AC
127692002-01-19 Andrew Cagney <[email protected]>
12770
12771 * config/mips/xm-news-mips.h: Delete file.
12772 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12773
12774 * config/m88k/xm-m88k.h: Delete file.
12775 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12776 * config/m88k/xm-delta88v4.h: Ditto.
12777 * config/m88k/xm-delta88.h: Ditto.
12778
12779 * config/alpha/xm-fbsd.h: Delete file.
12780 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12781
12782 * config/sparc/xm-sparc.h: Delete file.
12783 * Makefile.in (xm-sun4os4.h): Delete dependency.
12784 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12785 * config/sparc/xm-sun4os4.h: Ditto.
12786 * config/sparc/xm-linux.h: Ditto.
12787
12788 * config/i386/xm-windows.h: Delete file.
12789
2d1b2124
AC
127902002-01-19 Andrew Cagney <[email protected]>
12791
12792 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12793 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12794
ee1f65f0
JT
127952002-01-19 Jason Thorpe <[email protected]>
12796
12797 * alpha-tdep.c (alpha_call_dummy_words): New.
12798 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12799 (CALL_DUMMY_P): Define.
12800 (CALL_DUMMY_WORDS): Define.
12801 (SIZEOF_CALL_DUMMY_WORDS): Define.
12802
98081e55
PB
128032002-01-19 Per Bothner <[email protected]>
12804
12805 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12806 isn't NULL, which can happen with some gcj-3.x-produced code.
12807
0d056799
JT
128082002-01-19 Jason Thorpe <[email protected]>
12809
12810 * alpha-tdep.c (alpha_register_virtual_type): New function.
12811 (alpha_init_frame_pc_first): Ditto.
12812 (alpha_fix_call_dummy): Ditto.
12813 (alpha_store_struct_return): Ditto.
12814 (alpha_extract_struct_value_address): Ditto.
12815 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12816 alpha_register_virtual_type.
12817 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12818 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12819 alpha_extract_struct_value_address.
12820 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12821 (INIT_FRAME_PC): Use init_frame_pc_noop.
12822 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12823
4604bcad
MK
128242002-01-19 Mark Kettenis <[email protected]>
12825
12826 * i386gnu-nat.c: Include "i386-tdep.h".
12827 (fetch_fpregs): Simplify code dealing with uninitialized floating
12828 point states such that it doesn't require FP7_REGNUM.
12829
140f9984
JT
128302002-01-18 Jason Thorpe <[email protected]>
12831
abf22e64
AJ
12832 * alpha-tdep.c (frame_extra_info): New.
12833 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12834 frame->extra_info.
12835 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12836 (alpha_frame_saved_pc): Use frame->extra_info.
12837 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12838 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12839 (init_extra_frame_info): Rename to...
12840 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12841 (alpha_print_extra_frame_info): New function.
140f9984
JT
12842 (alpha_frame_locals_address): Ditto.
12843 (alpha_frame_args_address): Ditto.
abf22e64 12844 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12845 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12846 alpha_frame_args_address.
abf22e64 12847 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12848 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12849 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12850 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12851 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12852 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12853
d734c450
JT
128542002-01-18 Jason Thorpe <[email protected]>
12855
12856 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12857 (alpha_cannot_fetch_register): Ditto.
12858 (alpha_cannot_store_register): Ditto.
12859 (alpha_register_convertible): Ditto.
12860 (alpha_use_struct_convention): Ditto.
12861 * config/alpha/tm-alpha.h: Update copyright years.
12862 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12863 (INNER_THAN): Use core_addr_lessthan.
12864 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12865 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12866 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12867 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12868 (FRAME_CHAIN): Remove unnecessary cast.
12869
b4ceaee6
AC
128702002-01-18 Andrew Cagney <[email protected]>
12871
12872 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12873 obsolete.
12874
0a65a603
AC
128752002-01-18 Andrew Cagney <[email protected]>
12876
12877 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12878 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12879 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12880 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12881 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12882 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12883 * x86-64-linux-nat.c: Ditto.
12884
636a6dfc
JT
128852002-01-18 Jason Thorpe <[email protected]>
12886
abf22e64 12887 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12888 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12889 (REGISTER_NAME): Define.
12890
acceddb6
JT
128912002-01-18 Jason Thorpe <[email protected]>
12892
12893 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12894
ec32e4be
JT
128952002-01-18 Jason Thorpe <[email protected]>
12896
12897 * alpha-tdep.c: Update copyright years.
12898 (alpha_next_pc): New function.
12899 (alpha_software_single_step): Ditto.
12900 * config/alpha/tm-alpha.h: Add prototype for
12901 alpha_software_single_step.
12902
e771a871
JT
129032002-01-18 Jason Thorpe <[email protected]>
12904
12905 * alphabsd-nat.c: Update copyright years.
12906 (fill_gregset): Use regcache_collect.
12907 (fill_fpregset): Likewise.
12908 (fetch_inferior_registers): Only fetch integer registers
12909 if requested to do so.
12910 (store_inferior_registers): Only store integer registers
12911 if requested to do so.
12912
7708fa01
AC
129132002-01-17 Andrew Cagney <[email protected]>
12914
12915 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12916 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12917 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12918 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12919 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12920 * config/arm/linux.mh (XDEPFILES): Delete.
12921 * config/arm/nbsd.mh (XDEPFILES): Delete.
12922 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12923 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12924 * config/i386/i386m3.mh (XDEPFILES): Delete.
12925 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12926 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12927 * config/i386/fbsd.mh (XDEPFILES): Delete.
12928 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12929 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12930 * config/i386/i386v4.mh (XDEPFILES): Delete.
12931 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12932 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12933 * config/i386/i386aix.mh (XDEPFILES): Delete.
12934 * config/i386/go32.mh (XDEPFILES): Delete.
12935 * config/i386/cygwin.mh (XDEPFILES): Delete.
12936 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12937 * config/i386/i386mach.mh (XDEPFILES): Delete.
12938 * config/i386/i386v32.mh (XDEPFILES): Delete.
12939 * config/i386/linux.mh (XDEPFILES): Delete.
12940 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12941 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12942 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12943 * config/i386/i386sco.mh (XDEPFILES): Delete.
12944 * config/i386/i386v.mh (XDEPFILES): Delete.
12945 * config/i386/nbsd.mh (XDEPFILES): Delete.
12946 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12947 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12948 * config/i386/symmetry.mh (XDEPFILES): Delete.
12949 * config/i386/obsd.mh (XDEPFILES): Delete.
12950 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12951 * config/ia64/linux.mh (XDEPFILES): Delete.
12952 * config/ia64/aix.mh (XDEPFILES): Delete.
12953 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12954 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12955 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12956 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12957 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12958 * config/m68k/linux.mh (XDEPFILES): Delete.
12959 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12960 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12961 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12962 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12963 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12964 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12965 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12966 * config/m88k/delta88.mh (XDEPFILES): Delete.
12967 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12968 * config/m88k/m88k.mh (XDEPFILES): Delete.
12969 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12970 * config/mips/linux.mh (XDEPFILES): Delete.
12971 * config/mips/irix6.mh (XDEPFILES): Delete.
12972 * config/mips/irix5.mh (XDEPFILES): Delete.
12973 * config/mips/irix4.mh (XDEPFILES): Delete.
12974 * config/mips/irix3.mh (XDEPFILES): Delete.
12975 * config/mips/decstation.mh (XDEPFILES): Delete.
12976 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12977 (NATDEPFILES): Move core-aout.o to here.
12978 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12979 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12980 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12981 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12982 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12983 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12984 * config/pa/hpux11.mh (XDEPFILES): Delete.
12985 * config/powerpc/aix.mh (XDEPFILES): Delete.
12986 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12987 * config/powerpc/linux.mh (XDEPFILES): Delete.
12988 * config/romp/rtbsd.mh: Rename XDEPFILES.
12989 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12990 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12991 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12992 * config/s390/s390.mh (XDEPFILES): Delete.
12993 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12994 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12995 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12996 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12997 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12998 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12999 * config/sparc/linux.mh (XDEPFILES): Delete.
13000 * config/vax/vaxult.mh (XDEPFILES): Delete.
13001 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13002 * Makefile.in (DEPFILES): Remove XDEPFILES.
13003
375fc983
AC
130042002-01-17 Andrew Cagney <[email protected]>
13005
13006 * utils.c (internal_verror): Fix comments, default is yes not no.
13007 Update queries to match. Default to quit and dump core.
13008
8926118c
AC
130092002-01-17 Andrew Cagney <[email protected]>
13010
13011 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13012 copyright.
13013 * defs.h, event-top.c, gdbcmd.h: Ditto.
13014 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13015 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13016 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13017 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13018 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13019 * mi/mi-main.c:Ditto.
13020
13021 * stack.c, symfile.c: Update copyright.
13022
45b7b345
DJ
130232002-01-17 Daniel Jacobowitz <[email protected]>
13024
db728ff7
DJ
13025 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13026 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13027 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13028 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13029
db728ff7
DJ
130302002-01-17 Daniel Jacobowitz <[email protected]>
13031
13032 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13033 * gdbserver/low-lynx.c (myattach): Likewise.
13034 * gdbserver/low-nbsd.c (myattach): Likewise.
13035 * gdbserver/low-sim.c (myattach): Likewise.
13036 * gdbserver/low-sparc.c (myattach): Likewise.
13037 * gdbserver/low-sun3.c (myattach): Likewise.
13038
13039 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13040
db728ff7 13041 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13042 (main): Handle "--attach".
13043
8de3c354
AC
130442002-01-16 Andrew Cagney <[email protected]>
13045
13046 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13047 maintainer.
13048
b0129042
DJ
130492002-01-15 Daniel Jacobowitz <[email protected]>
13050
13051 * c-typeprint.c (is_type_conversion_operator): Add additional
13052 check for non-conversion operators.
13053
ba8679fb 130542002-01-15 Michael Snyder <[email protected]>
2bf543a6
MS
13055
13056 * linux-proc.c: Add "info proc" command, a la procfs.c.
13057 (read_mapping): New function, abstract and re-use code.
13058 (linux_find_memory_regions): Use new func read_mapping.
13059 (linux_info_proc_cmd): New function, implement "info proc".
13060 (_initialize_linux_proc): Add new command "info proc".
13061
e4f9b4d5
MS
130622002-01-15 Michael Snyder <[email protected]>
13063
13064 * symfile.c (generic_load): Use bfd_map_over_sections method
13065 instead of manipulating bfd structure members directly.
13066 (add_section_size_callback): New function, bfd sections callback
13067 used by generic_load.
13068 (load_sections_callback): New function, bfd sections callback
13069 used by generic_load.
13070
08cf96df
EZ
130712002-01-15 Elena Zannoni <[email protected]>
13072
abf22e64 13073 [Based on work by Jim Blandy]
08cf96df
EZ
13074 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13075 (builtin_type_vec128): Export.
13076 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13077 types.
13078 (builtin_type_vec128): New builtin type for 128 bit vector
13079 registers.
13080 (build_gdbtypes): Initialize builtin_type_v16qi and
13081 builtin_type_v8hi. Create the vec128 register builtin type
13082 structure.
13083 (build_builtin_type_vec128): New function.
abf22e64 13084 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13085 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13086 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13087 AltiVec register to new builtin type.
13088
d7242108
DJ
130892001-01-15 Daniel Jacobowitz <[email protected]>
13090
13091 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13092 to make_cv_type.
13093
4ee3352d
AC
130942002-01-14 Andrew Cagney <[email protected]>
13095
13096 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13097 CLEAN_UP_REGISTER_VALUE.
13098 * regcache.c (supply_register): Update only call.
13099
f015b2e7
AC
131002002-01-14 Andrew Cagney <[email protected]>
13101
13102 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13103 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13104 a29k-*-vxworks* targets as obsolete.
13105
356ae49d
MS
131062002-01-14 Michael Snyder <[email protected]>
13107
13108 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13109 until we can resolve portability issues.
13110 * gregset.h: Remove references to fpxregs.
13111 * gcore.c (gcore_command): Initialize note_sec to NULL.
13112
ade8f45e
AC
131132002-01-13 Andrew Cagney <[email protected]>
13114
13115 * signals.c (target_signal_to_name): Rewrite. Only use
13116 signals[].name when in bounds and non-NULL.
abf22e64 13117
89c49e7a
AC
131182002-01-13 Andrew Cagney <[email protected]>
13119
13120 From Petr Ledvina <[email protected]>:
13121 * signals.c (target_signal_to_name): Verify that SIG is within the
13122 bounds of the signals array.
13123
4daa9f9f
AC
131242002-01-13 Andrew Cagney <[email protected]>
13125
13126 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13127
ba4bbdcb
KS
131282002-01-13 Keith Seitz <[email protected]>
13129
13130 * stack.c (print_frame_info_base): Print the frame's pc
13131 only if when print_frame_info_listing_hook is not defined.
13132
575bbeb6
KS
131332002-01-13 Keith Seitz <[email protected]>
13134
13135 * varobj.c (varobj_set_value): Make sure that there were no
13136 errors evaluating the object before attempting to set its
13137 value.
13138 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13139 so this offset adjustment is no longer necessary.
13140 (create_child): Don't set the error flag if the child is
13141 a CPLUS_FAKE_CHILD.
13142 (value_of_child): If value_fetch_lazy fails, return NULL
13143 so that callers will be notified that an error occurred.
13144 (c_value_of_variable): Delay check of variable's validity
13145 until later. We actually want all structs and unions to have
13146 the value "{...}".
13147 Do not return "???" for variables which could not be evaluated.
13148 This error condition must be returned to the caller so that it
13149 can get the error condition from gdb.
13150 (cplus_name_of_child): Adjust index for vptr before figuring
13151 out the name of the child.
13152 (cplus_value_of_child): If a child's (real) parent is not valid,
13153 don't even bother trying to give a value for it. Just return
13154 an error. Change all instances in this function.
13155 (cplus_type_of_child): If our parent is one of the "fake"
13156 parents, we need to get at the type of the real parent, and
13157 derive the child's true type using this information.
13158
b76898ab
AC
131592002-01-13 Andrew Cagney <[email protected]>
13160
13161 From 2002-01-09 John Marshall <[email protected]>:
13162 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13163 sources.redhat.com, and tweak some related URLs which had
13164 suffered from linkrot.
13165
b6649e88
AC
131662002-01-13 Andrew Cagney <[email protected]>
13167
13168 From Jeff law:
13169 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13170 structures passed in registers.
13171
82cc5033
EZ
131722002-01-13 Eli Zaretskii <[email protected]>
13173
13174 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13175 white space which prevented compilation. Reported by DSK
13176 <[email protected]>.
13177
ba5f2f8a
MS
131782002-01-11 Michael Snyder <[email protected]>
13179
fbd35540
MS
13180 * symfile.c (build_section_addr_info_from_section_tab):
13181 Use bfd access method instead of manipulating bfd directly.
13182 (syms_from_objfile): Ditto.
13183 (simple_overlay_update_1): Ditto.
13184 (simple_overlay_update): Ditto.
13185 (generic_load): Ditto.
13186 (overlay_unmapped_address): FIXME comment, bfd access methods.
13187 (sections_overlap): FIXME comment, bfd access methods.
13188 (pc_in_mapped_range): FIXME comment, bfd access methods.
13189 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13190 (section_is_mapped): FIXME comment, bfd access methods.
13191 (section_is_overlay): FIXME comment, bfd access methods.
13192
ba5f2f8a
MS
13193 * symfile.c (generic_load): Whitespace and long line cleanups.
13194 Remove duplicate variable, change several local variables to
13195 more appropriate data types.
13196 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13197
17df2af6
AC
131982002-01-12 Andrew Cagney <[email protected]>
13199
13200 From Peter Schauer:
13201 * language.c (longest_local_hex_string_custom): Use phex_nz to
13202 convert NUM to a hex string.
13203
ec920329
EZ
132042002-01-12 Elena Zannoni <[email protected]>
13205
13206 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13207 the function.
538a76d6 13208 Update Copyright year.
ec920329 13209
3abd2e01
AC
132102002-01-12 Andrew Cagney <[email protected]>
13211
13212 * language.c (longest_raw_hex_string): Delete unused function.
13213
b21b22e0
PS
132142002-01-11 Petr Sorfa <[email protected]>
13215
13216 * MAINTAINERS (write-after-approval): Add myself.
13217 * dwarf2read.c (read_tag_string_type): Handling of
13218 DW_AT_byte_size.
13219 (read_tag_string_type): FORTRAN fix to prevent propagation of
13220 first string size.
13221 (set_cu_language): Handling of DW_LANG_Fortran95
13222
747fe712
RE
132232002-01-11 Richard Earnshaw <[email protected]>
13224
13225 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13226 GETPID(inferior_ptid).
13227 (store_inferior_registers): Likewise.
13228
f1bea926
JM
132292002-01-10 Jason Merrill <[email protected]>
13230
13231 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13232 Fix DW_OP_minus.
13233
ae940673
AC
132342002-01-10 Andrew Cagney <[email protected]>
13235
13236 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13237 and bfd/elf32-sh-nbsd.c.
13238
00546b04
MS
132392002-01-10 Michael Snyder <[email protected]>
13240
352ed7b4
MS
13241 * NEWS: Mention --pid and corefile/proc-id behavior change.
13242
c18be923
MS
13243 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13244 * gcore.c: Include cli/cli-decode.h instead of command.h.
13245
00546b04
MS
13246 * main.c (captured_main): Add new command line option "--pid".
13247 If the second command line argument (following the symbol-file)
13248 begins with a digit, try to attach to it before trying to open
13249 it as a corefile.
13250 (print_gdb_help): Document the "--pid" argument.
13251
db60ec62
EZ
132522002-01-10 Eli Zaretskii <[email protected]>
13253
13254 * completer.c (command_completer): New function.
13255
13256 * completer.h <command_completer>: Add prototype.
13257
13258 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13259 completer for the "help" command.
13260
39c22d1a
JM
132612002-01-09 Jason Merrill <[email protected]>
13262
13263 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13264
c564377f
MS
132652002-01-09 Michael Snyder <[email protected]>
13266
975aec09
MS
13267 * i386-linux-nat.c (fill_fpxregset): Make global.
13268 (store_fpxregset): Ditto.
13269
db4a10fa
MS
13270 * gregset.h (gdb_fpxregset_t): Define.
13271 (supply_fpxregset): Prototype.
13272 (fill_fpxregset): Prototype.
13273
c564377f
MS
13274 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13275
c3d45d70
RE
132762002-01-09 Richard Earnshaw <[email protected]>
13277
13278 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13279 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13280 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13281
fcc87af1
AC
132822002-01-09 Andrew Cagney <[email protected]>
13283
13284 * MAINTAINERS: Update target maintainer rules so that any
13285 Maintainer can approve a tested patch for a maintenance-only
13286 target.
13287
dd96c05b
RE
132882002-01-09 Richard Earnshaw <[email protected]>
13289
d4297db9 13290 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13291
d4297db9 13292 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13293 IN_SIGTRAMP.
13294
145fdc6e
MS
132952002-01-08 Michael Snyder <[email protected]>
13296
13297 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13298 real name of the executable, rather than the /proc name.
13299
be4d1333
MS
133002002-01-03 Michael Snyder <[email protected]>
13301
13302 Implement a "generate-core-file" command in gdb, save target state.
13303 * gcore.c: New file. Implement new command 'generate-core-file'.
13304 Save a corefile image of the current state of the inferior.
13305 * linux-proc.c: Add linux-specific code for saving corefiles.
13306 * target.h (struct target_ops): Add new target vectors for saving
13307 corefiles; to_find_memory_regions and to_make_corefile_notes.
13308 (target_find_memory_regions): New macro.
13309 (target_make_corefile_notes): New macro.
13310 * target.c (update_current_target): Inherit new target methods.
13311 (dummy_find_memory_regions): New place-holder method.
13312 (dummy_make_corefile_notes): New place-holder method.
13313 (init_dummy_target): Initialize new dummy target vectors.
13314 * exec.c (exec_set_find_memory_regions): New function.
13315 Allow the exec_ops vector for memory regions to be taken over.
13316 (exec_make_note_section): New function, target vector method.
13317 * defs.h (exec_set_find_memory_regions): Export prototype.
13318 * procfs.c (proc_find_memory_regions): New function, corefile method.
13319 (procfs_make_note_section): New function, corefile method.
13320 (init_procfs_ops): Set new target vector pointers.
13321 (find_memory_regions_callback): New function.
13322 (procfs_do_thread_registers): New function.
13323 (procfs_corefile_thread_callback): New function.
13324 * sol-thread.c (sol_find_memory_regions): New function.
13325 (sol_make_note_section): New function.
13326 (init_sol_thread_ops): Initialize new target vectors.
13327 * inftarg.c (inftarg_set_find_memory_regions): New function.
13328 Allow to_find_memory_regions vector to be taken over.
13329 (inftarg_set_make_corefile_notes): New function.
13330 Allow to_make_corefile_notes vector to be taken over.
13331 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13332 interface layer if not target_has_execution (may be a corefile).
13333 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13334 * config/sparc/sun4sol2.mh: Ditto.
13335 * config/alpha/alpha-linux.mh: Ditto.
13336 * config/arm/linux.mh: Ditto.
13337 * config/i386/x86-64linux.mh: Ditto.
13338 * config/ia64/linux.mh: Ditto.
13339 * config/m68k/linux.mh: Ditto.
13340 * config/mips/linux.mh: Ditto.
13341 * config/powerpc/linux.mh: Ditto.
13342 * config/sparc/linux.mh: Ditto.
13343
c6b92abd
MS
133442002-01-07 Michael Snyder <[email protected]>
13345
13346 * arm-linux-nat.c: Remove references to regcache.c internal data
13347 (registers[] and register_valid[]).
13348
4b09dc8c
MS
133492002-01-07 Michael Snyder <[email protected]>
13350
abf22e64
AJ
13351 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13352 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13353 symbol file and shlibs.
13354 * Makefile.in: Add rule for linux-proc.o.
13355 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13356 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13357 * config/arm/linux.mh: Ditto.
13358 * config/i386/linux.mh: Ditto.
13359 * config/i386/x86-64linux.mh: Ditto.
13360 * config/ia64/linux.mh: Ditto.
13361 * config/m68k/linux.mh: Ditto.
13362 * config/mips/linux.mh: Ditto.
13363 * config/powerpc/linux.mh: Ditto.
13364 * config/sparc/linux.mh: Ditto.
13365
c25b74ac
PM
133662002-01-06 Pierre Muller <[email protected]>
13367
13368 * win32-nat.c: Add i386-tdep.h dependency.
13369
94cd915f
MS
133702002-01-07 Michael Snyder <[email protected]>
13371
c7cccb76
MS
13372 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13373 instead of bfd_get_arch_size. Don't bail out just because
13374 there's no exec_bfd.
abf22e64 13375
34c0bd93
MS
13376 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13377 * p-valprint.c (pascal_object_print_value): Ditto.
13378 * somread.c (som_symtab_read): Ditto.
13379 * symfile.c (simple_free_overlay_region_table): Ditto.
13380 * valops.c (value_assign): Ditto.
13381
21c1c920
MS
13382 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13383 use tilde_expand and strerror for opening save-tracepoints file.
13384
5bbd998e
MS
13385 * thread-db.c (thread_db_new_objfile): Indendation fix.
13386
94cd915f
MS
13387 * infptrace.c (GDB_MAX_ALLOCA): New define.
13388 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13389 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13390 can be overridden with whatever value is appropriate to the host).
13391 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13392 alloca to allocate potentially large buffer.
13393 * rs6000-nat.c (child_xfer_memory): Ditto.
13394 * symm-nat.c (child_xfer_memory): Ditto.
13395 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13396
494e8a93
JSC
133972002-01-07 Jackie Smith Cashion <[email protected]>
13398
13399 From Nick Clifton <[email protected]>
13400 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13401
d0e1d48e
MS
134022002-01-07 Michael Snyder <[email protected]>
13403
abf22e64 13404 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13405 Don't use exec_bfd if it's NULL.
13406
290b2c7a
MK
134072002-01-06 Mark Kettenis <[email protected]>
13408
abf22e64 13409 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13410
aef21287
AC
134112002-01-06 Andrew Cagney <[email protected]>
13412
13413 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13414 * gnu-nat.c: Ditto.
13415
30efa627
AC
134162002-01-06 Andrew Cagney <[email protected]>
13417
13418 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13419 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13420 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13421 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13422 z8k-coff have not been multi-arched. Update z8k-coff build
13423 status.
13424
9b4ff276
AC
134252002-01-06 Andrew Cagney <[email protected]>
13426
13427 * MAINTAINERS: Mark a29k target as obsolete.
13428 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13429 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13430 comments.
13431 * NEWS: Note that a29k targets are obsolete.
13432 * a29k-tdep.c: Mark as obsolete.
13433 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13434 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13435 a29k-*-vxworks* targets as obsolete.
13436 * remote-adapt.c: Obsolete.
13437 * remote-eb.c: Obsolete.
13438 * remote-mm.c: Obsolete.
13439 * remote-udi.c: Obsolete.
13440 * config/a29k/a29k-udi.mt: Obsolete.
13441 * config/a29k/a29k.mt: Obsolete.
13442 * config/a29k/tm-a29k.h: Obsolete.
13443 * config/a29k/tm-vx29k.h: Obsolete.
13444 * config/a29k/vx29k.mt: Obsolete.
13445
a9011d31
AC
134462002-01-05 Andrew Cagney <[email protected]>
13447
13448 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13449 with BFD_ENDIAN_BIG.
13450
9299404e
AC
134512002-01-05 Andrew Cagney <[email protected]>
13452
13453 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13454 * configure, config.in: Re-generate.
13455 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13456 * defs.h: Do not include <endian.h>.
13457
7e89e357
JT
134582002-01-05 Jason Thorpe <[email protected]>
13459
13460 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13461 * config.in: Regenerate.
13462 * configure.in: Update copyright years.
13463 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13464 * configure: Regenerate.
13465 * i386bsd-nat.c: Update copyright years.
13466 (fill_gregset): Use regcache_collect.
13467 (fetch_inferior_registers): Only fetch integer registers
13468 if requested to do so. Add support for XMM registers
13469 using PT_GETXMMREGS.
13470 (store_inferior_registers): Only store integer registers
13471 if requested to do so. Add support for XMM registers
13472 using PT_SETXMMREGS.
13473 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13474 (store_inferior_registers): Remove.
13475 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13476 (fetch_elfcore_registers): New function.
13477 (i386nbsd_elfcore_fns): New.
13478 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13479 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13480 i386bsd-nat.o.
13481 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13482 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13483 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13484 * config/i386/tm-nbsd.h: Update copyright years.
13485 (HAVE_SSE_REGS): Define.
13486 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13487 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13488 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13489 (SIGCONTEXT_PC_OFFSET): Remove.
13490 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13491
a752853e
AC
134922002-01-05 Andrew Cagney <[email protected]>
13493
13494 * configure.tgt: Remove powerpc-*-macos* target.
13495 * config/m68k/xm-mpw.h: Delete file.
13496 * config/xm-mpw.h: Delete file.
13497 * ser-mac.c: Delete file.
13498 * mpw-make.sed: Delete file.
13499 * mpw-config.in: Delete file.
13500 * mac-xdep.c: Delete file.
13501 * mac-gdb.r: Delete file.
13502 * mac-defs.h: Delete file.
13503 * mac-nat.c: Delete file.
13504 * config/powerpc/macos.mh: Delete file.
13505 * config/powerpc/macos.mt: Delete file.
13506 * config/powerpc/nm-macos.h: Delete file.
13507 * config/powerpc/tm-macos.h: Delete file.
13508 * source.c (openp, open_source_file): Remove obsolete code.
13509 * top.c (gdb_readline): Ditto.
13510 * utils.c (query): Ditto.
13511 * event-top.c (display_gdb_prompt): Ditto.
13512 * Makefile.in (ser-mac.o): Delete obsolete target.
13513 * NEWS: Update.
13514
d7449b42
AC
135152002-01-04 Andrew Cagney <[email protected]>
13516
13517 * defs.h (BIG_ENDIAN): Delete macro definition.
13518 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13519 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13520 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13521 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13522 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13523 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13524 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13525 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13526 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13527 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13528 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13529 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13530 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13531 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13532 * gdbarch.c: Re-generate.
13533
356374e8
DJ
135342002-01-04 Daniel Jacobowitz <[email protected]>
13535
13536 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13537 for core files.
13538
a2b8f8f8
JT
135392002-01-04 Jason Thorpe <[email protected]>
13540
13541 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13542
12466af9
AC
135432002-01-04 Andrew Cagney <[email protected]>
13544
13545 * value.h (value_ptr): Delete typedef.
13546
3549ab40
JT
135472002-01-04 Jason Thorpe <[email protected]>
13548
13549 * i386nbsd-nat.c: Update copyright years.
13550 Include i386-tdep.h.
13551
fedbd091
EZ
135522002-01-04 Elena Zannoni <[email protected]>
13553
13554 * stabsread.c: Update copyright years.
13555
13556 From Debashis Mahata <[email protected]>:
13557 (read_struct_fields): Deal with Sun C compiler erroneous stab
13558 output for structs and unions.
fec8b34f 13559 Fix PR gdb/269.
fedbd091 13560
eb43544b
DJ
135612002-01-04 Daniel Jacobowitz <[email protected]>
13562
13563 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13564 prototype.
13565
1514d34e
DJ
135662002-01-04 Daniel Jacobowitz <[email protected]>
13567
13568 * cp-abi.c: Fix whitespace.
13569 (baseclass_offset): New wrapper function.
13570 * cp-abi.h (baseclass_offset): Add prototype.
13571 (struct cp_abi_ops): Add baseclass_offset pointer.
13572
13573 * valops.c (vb_match): Move to...
13574 * gnu-v2-abi.c (vb_match): here.
13575 * valops.c (baseclass_offset): Move to...
13576 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13577
13578 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13579
13580 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13581 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13582 * hpacc-abi.c (init_hpacc_ops): Likewise.
13583
7f8c9282
DJ
135842002-01-04 Daniel Jacobowitz <[email protected]>
13585
13586 * valops.c (find_overload_match): Accept obj as a
13587 reference parameter. Update it before returning.
13588 * value.h (find_overload_match): Update prototype.
13589 * eval.c (evaluate_subexp_standard): Pass object to
13590 find_overload_match by reference.
13591
f23631e4
AC
135922002-01-03 Andrew Cagney <[email protected]>
13593
13594 * valarith.c: Replace value_ptr with struct value pointer. Remove
13595 register attribute from value declarations.
13596 * valops.c: Ditto.
13597 * value.h: Ditto.
13598 * scm-lang.c (scm_lookup_name): Ditto.
13599
79e10fab 136002002-01-03 Michael Snyder <[email protected]>
abf22e64 13601
79e10fab
AC
13602 Abstract the functionality of iterating over mapped memory
13603 regions into a general purpose iterator function.
abf22e64 13604 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13605 iterator for memory sections.
13606 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13607 (solib_mappings_callback): New function, callback for above.
13608 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13609 (info_mappings_callback): New function, callback for above.
13610
13611 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13612
c5ad026a
MK
136132002-01-01 Mark Kettenis <[email protected]>
13614
d2a7c97a
MK
13615 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13616 * i386-tdep.c: Include "elf-bfd.h".
13617 (process_note_abi_tag_sections): New function.
13618 (i386_gdbarch_init): Add code to recognize various OS/ABI
13619 combinations.
13620
c5ad026a
MK
13621 * maint.c (_initialize_maint_cmds): Add missing \ in
13622 string-literal.
13623
a1a5b71e 13624For older changes see ChangeLog-2001
c906108c
SS
13625\f
13626Local Variables:
13627mode: change-log
13628left-margin: 8
13629fill-column: 74
13630version-control: never
13631End:
This page took 2.428118 seconds and 4 git commands to generate.