* solib-sunos.c (sunos_relocate_main_executable): Remove function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2
3 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
4 (sunos_solib_create_inferior_hook): Don't call
5 sunos_relocate_main_executable.
6
7 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
8 solib_svr4_fetch_link_map_offsets to
9 svr4_ilp32_fetch_link_map_offsets.
10 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
11 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
12 svr4_ilp32_fetch_link_map_offsets.
13 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
14
15 2004-09-07 Jim Blandy <jimb@redhat.com>
16
17 * frame.h (frame_register): Doc fix.
18
19 2004-09-07 Andrew Cagney <cagney@gnu.org>
20
21 * vx-share/wait.h: Delete #ifdef USG.
22 * utils.c (request_quit): Ditto.
23 * tui/tui.c (tui_reset): Ditto.
24 * remote.c: Ditto.
25 * remote-sds.c: Ditto.
26 * remote-rdi.c: Ditto.
27 * mdebugread.c: Ditto.
28 * m68klinux-nat.c: Ditto.
29 * infttrace.c: Ditto.
30 * infptrace.c: Ditto.
31 * i386v-nat.c: Ditto.
32 * exec.c: Ditto.
33 * dbxread.c: Ditto.
34 * core-aout.c: Ditto.
35
36 2004-09-05 Joel Brobecker <brobecker@gnat.com>
37
38 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
39 heuristic_proc_desc.
40 (mips_insn32_frame_cache): Likewise.
41
42 2004-09-04 Joel Brobecker <brobecker@gnat.com>
43
44 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
45 left behind by error.
46
47 2004-09-04 Joel Brobecker <brobecker@gnat.com>
48
49 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
50 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
51
52 2004-09-04 Joel Brobecker <brobecker@gnat.com>
53
54 * config/rs6000/xm-aix4.h: Remove this file.
55 * config/rs6000/aix4.mh (XM_FILE): Delete.
56
57 2004-09-04 Joel Brobecker <brobecker@gnat.com>
58
59 * config/rs6000/xm-rs6000.h: Remove this file.
60 * config/rs6000/rs6000.mh (XM_FILE): Remove.
61
62 2004-09-03 Andrew Cagney <cagney@gnu.org>
63
64 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
65 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
66 only use.
67
68 * mips-tdep.c (temp_saved_regs): Delete.
69 (set_reg_offset): Replace saved_regs parameter with this_cache.
70 (heuristic_proc_desc, mips16_heuristic_proc_desc)
71 (mips32_heuristic_proc_desc): Add this_cache parameter.
72 (mips_insn32_frame_cache, mips_insn16_frame_cache)
73 (after_prologue): Pass a NULL this_cache.
74
75 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
76 non-kernel trap prologues.
77
78 * mips-tdep.c (find_proc_desc): Delete function.
79 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
80 simplify.
81 (mips_insn16_frame_cache): Replace find_proc_desc with code from
82 mips_insn32_frame_cache.
83
84 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
85 Simplify as NEXT_FRAME is NULL.
86 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
87
88 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
89 local variable.
90 (mips_skip_prologue): Update.
91
92 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
93 "cur_frame" parameter.
94 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
95 (mips_insn32_frame_cache, find_proc_desc): Update
96
97 * config/vax/nm-obsd.h: Delete file.
98 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
99 * config/vax/nm-nbsd.h: Delete file.
100 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
101 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
102 * config/sh/nm-nbsd.h: Delete file.
103 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
104 * config/rs6000/nm-rs6000ly.h: Delete file.
105 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
106 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
107 * config/powerpc/nm-obsd.h: Delete file.
108 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
109 * config/powerpc/nm-nbsd.h: Delete file.
110 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
111 * config/pa/nm-obsd.h: Delete file.
112 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
113 * config/mips/nm-nbsd.h: Delete file.
114 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
115 * config/m88k/nm-obsd.h: Delete file.
116 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
117 * config/m68k/nm-nbsd.h: Delete file.
118 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
119 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
120 * config/i386/nm-nbsd.h: Delete file.
121 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
122 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
123 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
124 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
125 * config/i386/nm-i386lynx.h: Delete file.
126 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
127 * config/arm/nm-nbsd.h: Delete file.
128 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
129 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
130
131 * config/i386/tm-fbsd.h: Delete file.
132 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
133 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
134
135 * config/rs6000/tm-rs6000-aix4.h: Delete file.
136 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
137 * config/rs6000/aix4.mt (TM_FILE): Set to
138 config/rs6000/tm-rs6000.h.
139 * config/powerpc/tm-ppc-aix.h: Delete file.
140 * config/powerpc/aix.mt (TM_FILE): Set to
141 config/rs6000/tm-rs6000.h.
142 * config/m68k/tm-linux.h: Delete file.
143 * config/m68k/linux.mt (TM_FILE): Set to solib.h
144 * config/i386/tm-linux64.h: Delete file.
145 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
146 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
147
148 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
149 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
150 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
151 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
152 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
153 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
154 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
155 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
156 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
157
158 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
159 gdb_host_cpu.
160
161 2004-09-02 Joel Brobecker <brobecker@gnat.com>
162
163 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
164 Minor reformatting. Some code factoring.
165
166 2004-09-02 Andrew Cagney <cagney@gnu.org>
167
168 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
169 * config/vax/tm-nbsd.h: Delete file.
170 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
171 * config/sparc/tm-vxworks.h: Delete file.
172 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
173 * config/sparc/tm-nbsd.h: Delete file.
174 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
175 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
176 * config/sparc/tm-linux.h: Delete file.
177 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
178 * config/s390/tm-linux.h: Delete file.
179 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
180 * config/pa/tm-bsd.h: Delete file.
181 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
182 * config/m68k/tm-obsd.h: Delete file.
183 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
184 * config/m68k/tm-nbsd.h: Delete file.
185 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
186 * config/i386/tm-vxworks.h: Delete file.
187 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
188 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
189 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
190 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
191 * config/i386/tm-nbsd.h: Delete file.
192 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
193 * config/i386/tm-i386lynx.h: Delete file.
194 * config/cris/cris.mt (TM_FILE): Set to solib.h.
195 * config/cris/tm-cris.h: Delete file.
196
197 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
198 * configure: Re-generate.
199 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
200 * config/arm/tm-nbsd.h: Delete file.
201
202 * config/powerpc/tm-ppcle-sim.h: Delete.
203 * config/powerpc/tm-ppcle-eabi.h: Delete.
204 * config/powerpc/tm-nbsd.h: Delete.
205 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
206 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
207 tm-ppcle-eabi.h.
208
209 * config/i386/nto.mh (NAT_FILE): Delete.
210 * config/i386/nm-nto.h: Delete.
211
212 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
213 * config/m68k/tm-os68k.h: Ditto.
214 * config/m68k/tm-monitor.h: Ditto.
215 * config/m68k/tm-cisco.h: Ditto.
216 * config/m68k/st2000.mt (TM_FILE): Delete.
217 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
218 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
219 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
220 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
221
222 * config/m68k/tm-st2000.h: Delete.
223 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
224 * config/sparc/fbsd.mt (TM_FILE): Delete.
225 * config/sparc/tm-fbsd.h: Delete.
226
227 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
228 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
229 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
230
231 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
232 GDB_TM_FILE and GDB_XM_FILE.
233 * gdbarch.c: Re-generate.
234 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
235 quotes in macro definition.
236 * configure.in: Re-generate.
237
238 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
239 validating architecture methods.
240 * gdbarch.c: Re-generate.
241
242 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
243 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
244 GDB_MULTI_ARCH_PARTIAL.
245 * gdbarch.h: Re-generate.
246
247 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
248 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
249 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
250 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
251 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
252 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
253 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
254 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
255 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
256 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
257 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
258 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
259
260 2004-09-01 Andrew Cagney <cagney@gnu.org>
261
262 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
263 and main_func_highpc.
264 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
265 * objfiles.c (init_entry_point_info, objfile_relocate): Update
266 * nlmread.c (nlm_symfile_read): Update.
267
268 2004-09-01 Joel Brobecker <brobecker@gnat.com>
269
270 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
271 (mips_insn32_frame_cache): Inline call to find_proc_desc.
272 (find_proc_desc): Remove dead code.
273
274 2004-09-01 Joel Brobecker <brobecker@gnat.com>
275
276 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
277
278 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
279
280 * observer.sh: Add struct so_list declaration.
281 * Makefile.in: Add dependencies on observer.h for solib.c and
282 breakpoint.c.
283 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
284 function.
285 (_initialize_breakpoint): Register
286 disable_breakpoints_in_unloaded_shlib as an observer of the
287 "solib unloaded" observation event.
288 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
289 call decode_line_1 so unfound breakpoint errors are silent.
290 * solib.c (update_solib_list): When a solib is discovered to have
291 been unloaded by the program, notify all observers of the
292 "solib unloaded" observation event.
293
294 2004-09-01 Andrew Cagney <cagney@gnu.org>
295
296 * frame.c: Include "objfiles.h".
297 (inside_main_func): New function.
298 (get_prev_frame): Use new inside_main_func.
299 * Makefile.in (frame.o): Update dependencies.
300 * defs.h (inside_main_func): Delete declaration.
301 * blockframe.c (inside_main_func): Delete function.
302
303 2004-08-31 Jim Blandy <jimb@redhat.com>
304
305 * dwarf2read.c (is_vtable_name): New function, based on logic from
306 read_structure_type, but passing the correct length to strncmp,
307 and using 'sizeof' instead of 'strlen'.
308 (read_structure_type): Call it.
309
310 2004-08-31 Joel Brobecker <brobecker@gnat.com>
311
312 * config/powerpc/aix.mh: Add comment.
313
314 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
315
316 * MAINTAINERS: Add self to Write-After-Approval.
317
318 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
319
320 * MAINTAINERS: Add self to Write-After-Approval.
321
322 2004-08-30 Andrew Cagney <cagney@gnu.org>
323
324 Fix PR breakpoints/1757.
325 * infrun.c (struct execution_control_state): Replace
326 remove_breakpoints_on_following_step with
327 step_after_step_resume_breakpoint.
328 (init_execution_control_state): Update.
329 (handle_inferior_event): For signals, when stepping off a
330 breakpoint, set step_after_step_resume_breakpoint. When
331 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
332 (keep_going): Delete code handling
333 remove_breakpoints_on_following_step.
334
335 2004-08-29 David Lecomber <david@streamline-computing.com>
336
337 Fix PR gdb/648
338 * language.h (enum array_ordering): New enum.
339 * language.h (struct language_defn): New la_array_ordering
340 attribute.
341 * language.c (unknown_language_defn, auto_language_defn)
342 (local_language_defn): Ditto.
343 * ada-lang.c (ada_language_defn): Ditto.
344 * c-lang.c (c_language_defn, cplus_language_defn)
345 (asm_language_defn, minimal_language_defn): Ditto.
346 * f-lang.c (f_language_defn): Ditto.
347 * jv-lang.c (java_language_defn): Ditto.
348 * m2-lang.c (f_language_defn): Ditto.
349 * objc-lang.c (objc_language_defn): Ditto.
350 * p-lang.c (pascal_language_defn): Ditto.
351 * scm-lang.c (scm_language_defn): Ditto.
352 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
353 oriented large to small in type structure.
354 * dwarf2read.c (read_array_order): New function.
355 (read_array_type): Use read_array_order to check row/column
356 major ordering.
357
358 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
359
360 * target.c (target_resize_to_sections): Check
361 current_target.to_sections for an old value when updating.
362
363 2004-08-27 Joel Brobecker <brobecker@gnat.com>
364
365 * procfs.c (dbx_link_bpt_addr): New static global variable.
366 (dbx_link_shadow_contents): New static global variable.
367 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
368 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
369 if we just hit it.
370 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
371 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
372 from run to run.
373 (procfs_create_inferior): Remove syssgi syscall-exit notifications
374 after the inferior has been forked.
375 (remove_dbx_link_breakpoint): New function.
376 (dbx_link_addr): New function.
377 (insert_dbx_link_bpt_in_file): New function.
378 (insert_dbx_link_bpt_in_region): New function.
379 (insert_dbx_link_breakpoint): New function.
380 (proc_trace_syscalls_1): New function, extracted from
381 proc_trace_syscalls.
382 (proc_trace_syscalls): Replace extract code by call to
383 proc_trace_syscalls_1.
384 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
385 is no longer valid.
386
387 2004-08-25 Jim Blandy <jimb@redhat.com>
388
389 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
390
391 2004-08-25 Andrew Cagney <cagney@gnu.org>
392
393 * infrun.c (struct execution_control_state): Delete field
394 "stepping_through_sigtramp".
395 (init_execution_control_state): Do not set same.
396 (context_switch): Do not pass same to save_infrun_state and
397 load_infrun_state.
398 * gdbthread.h (struct thread_info): Delete field
399 stepping_through_sigtramp.
400 (save_infrun_state, load_infrun_state): Delete parameter
401 stepping_through_sigtramp.
402 * thread.c (load_infrun_state, save_infrun_state): Update.
403
404 * infrun.c: Re-indent. Move expression operators to the beginning
405 of the line. Remove long disabled #if 0 code.
406
407 2004-08-24 Andrew Cagney <cagney@gnu.org>
408
409 * doublest.h (floatformat_ieee_quad): Rename
410 floatformat_ia64_quad.
411 * doublest.c (floatformat_ieee_quad): Rename
412 floatformat_ia64_quad.
413 (_initialize_doublest): Update.
414
415 2004-08-24 Jim Blandy <jimb@redhat.com>
416
417 * dwarf2expr.h (struct dwarf_expr_context): New members
418 'num_pieces' and 'pieces', for returning the result of an
419 expression that uses DW_OP_piece.
420 (struct dwarf_expr_piece): New struct type.
421 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
422 pieces.
423 (free_dwarf_expr_context): Free pieces, if any.
424 (add_piece): New function.
425 (execute_stack_op): Implement DW_OP_piece.
426 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
427 expression is a list of pieces, print an error message.
428 (dwarf2_loc_desc_needs_frame): If the expression yields
429 pieces, and any piece is in a register, then we need a frame.
430
431 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
432 the stack until we've decided what sort of result the evaluation
433 has produced. Use separate variables, with more specific names.
434
435 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
436
437 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
438 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
439 (arm_netbsd_init_abi_common): Register them.
440
441 2004-08-22 Mark Kettenis <kettenis@gnu.org>
442
443 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
444
445 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
446 safe_frame_unwind_memory instead of target_read_memory.
447
448 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
449 Reorder includes.
450 (fetch_register, store_register): Remove prototypes.
451 (child_resume): Reorganize code and comments such that it is
452 grouped a bit more logically.
453 (attach): Explicitly compare errno against 0.
454 (detach): Likewise. Use perror_with_name instead of
455 print_sys_errmsg.
456 * Makefile.in (infptrace.o): Update dependencies.
457
458 * ia64-linux-nat.c: Update copyright year.
459 (fetch_debug_register, store_debug_register)
460 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
461 PTRACE_TYPE_ARG3.
462 * config/ia64/nm-linux.h: Update copyright year.
463 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
464
465 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
466 from CORE_ADDR to struct frame_info *. Use
467 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
468 (amd64_linux_sigtramp_p): Adjust for changed signature of
469 and64_linux_sigtramp_start
470
471 * gdb_ptrace.h: GNU/Linux.
472
473 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
474 Remove defines.
475
476 * infptrace.c: Include "gdb_assert.h".
477 (PTRACE_XFER_TYPE): Remove define.
478 (offsetof): Only define if U_REGS_OFFSET isn't defined.
479 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
480 Tweak comment.
481 (fetch_inferior_registers, store_inferior_registers): Remove
482 redundant culry braces. Tweak comment. s/regno/regnum.
483 * Makefile.in (infptrace.o): Update dependencies.
484
485 * configure.in: Change test for return type of ptrace to default
486 to `long' instead of `int'.
487 * configure: Regenerate.
488
489 2004-08-21 Mark Kettenis <kettenis@gnu.org>
490
491 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
492
493 * configure.in: Check for ttrace function.
494 * configure, config.in: Regenerate.
495
496 * gdb_ptrace.h: New file.
497 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
498 <sys/ptrace.h>.
499 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
500 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
501 (attach): Don't define PT_ATTACH.
502 (detach): Don't define PT_DETACH.
503 * Makefile.in (gdb_ptrace_h): New variable.
504 (infptrace.o): Update dependencies.
505
506 2004-08-16 Mark Kettenis <kettenis@gnu.org>
507
508 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
509 instead of `int' if not already defined.
510 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
511 PTRACE_TYPE_ARG3.
512 * infptrace.c (call_ptrace): Revert change that replaced
513 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
514
515 2004-08-15 Mark Kettenis <kettenis@gnu.org>
516
517 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
518 Remove defines.
519
520 * linux-nat.c (kill_inferior): Add missing third and fourth
521 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
522
523 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
524 PTRACE_TYPE_RET.
525
526 * proc-why.c (proc_prettyfprint_why): Fix format string.
527
528 * solib-osf.c (osf_current_sos): Remove unsused label.
529
530 * configure.in: Add <ncurses/ncurses.h> to the list of possible
531 curses headers.
532 * configure, config.in: Regenerate.
533 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
534 <ncurses/ncurses.h>.
535
536 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
537 * config/nm-nbsd.h: Update copyright year.
538 (PTRACE_ARG3_TYPE): Remove define.
539
540 * sparc-nat.c (fetch_inferior_registers)
541 (store_inferior_registers, sparc_xfer_wcookie):
542 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
543
544 * alphabsd-nat.c (fetch_inferior_registers):
545 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
546 PTRACE_TYPE_ARG3.
547 * amd64bsd-nat.c (fetch_inferior_registers)
548 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
549 PTRACE_TYPE_ARG3.
550 * armnbsd-nat.c: Update copyright year.
551 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
552 (store_register, store_regs, store_fp_register, store_fp_regs):
553 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
554 * hppabsd-nat.c (fetch_inferior_registers)
555 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
556 PTRACE_TYPE_ARG3.
557 * i386bsd-nat.c (fetch_inferior_registers)
558 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
559 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
560 * m68kbsd-nat.c (fetch_inferior_registers)
561 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
562 PTRACE_TYPE_ARG3.
563 * m88kbsd-nat.c (fetch_inferior_registers)
564 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
565 PTRACE_TYPE_ARG3.
566 * mipsnbsd-nat.c: Update copyright year.
567 (fetch_inferior_registers, store_inferior_registers):
568 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
569 * ns32knbsd-nat.c: Update copyright year.
570 (fetch_inferior_registers, store_inferior_registers):
571 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
572 * ppcnbsd-nat.c (fetch_inferior_registers):
573 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
574 PTRACE_TYPE_ARG3.
575 * ppcobsd-nat.c (fetch_inferior_registers):
576 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
577 PTRACE_TYPE_ARG3.
578 * shnbsd-nat.c: Update copyright year.
579 (fetch_inferior_registers, store_inferior_registers):
580 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
581 * vaxbsd-nat.c (fetch_inferior_registers)
582 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
583 PTRACE_TYPE_ARG3.
584
585 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
586 PTRACE_TYPE_ARG3.
587 * infptrace.c (call_ptrace, child_resume, attach, detach)
588 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
589 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
590 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
591 PTRACE_TYPE_ARG3.
592
593 2004-08-14 Mark Kettenis <kettenis@gnu.org>
594
595 * defs.h: Remove out-of-date comment.
596 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
597 [!GETENV_PROVIDED] (getenv): Remove prototype.
598
599 * standalone.c: Remove file.
600 * Makefile.in (standalone.o): Remove dependency.
601
602 * i386-linux-nat.c (dummy_sse_values): Remove function and
603 prototype.
604 (i386_linux_dr_get): Fix typo in comment.
605 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
606
607 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
608
609 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
610 from declaration.
611 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
612 from definition.
613
614 2004-08-13 Mark Kettenis <kettenis@gnu.org>
615
616 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
617 parenthesis in definition.
618 * configure: Regenerated.
619
620 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
621
622 * PROBLEMS: Mention build/1411.
623
624 2004-08-09 Robert Millan <robertmh@gnu.org>
625
626 Committed by Nathanael Nerode.
627 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
628 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
629
630 2004-08-12 Andrew Cagney <cagney@gnu.org>
631
632 * NEWS: Mention fixes in GDB 6.2.1.
633 * PROBLEMS: Remove mention of mips-irix.
634
635 2004-08-11 Joel Brobecker <brobecker@gnat.com>
636
637 * config/powerpc/xm-aix.h: Delete.
638 * config/powerpc/aix.mh (MH_FILE): Remove.
639 * config/powerpc/aix432.mh (MH_FILE): Remove.
640
641 2004-08-11 Joel Brobecker <brobecker@gnat.com>
642
643 * config/powerpc/aix.mh: Remove obsolete comment.
644 * config/powerpc/aix432.mh: Likewise.
645
646 2004-08-11 Joel Brobecker <brobecker@gnat.com>
647
648 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
649
650 2004-08-11 Joel Brobecker <brobecker@gnat.com>
651
652 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
653 this file is now empty.
654 * config/xm-aix4.h: Remove, this file is no longer included
655 anywhere.
656
657 2004-08-11 Joel Brobecker <brobecker@gnat.com>
658
659 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
660 that file is now empty.
661 (termdef): Remove prototype, function no longer used.
662
663 2004-08-11 Joel Brobecker <brobecker@gnat.com>
664
665 * doc/gdbint.texinfo (Host Definition): Remove documentation
666 for USE_O_NOCTTY, no longer used.
667 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
668 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
669
670 2004-08-11 Joel Brobecker <brobecker@gnat.com>
671
672 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
673 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
674 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
675
676 2004-08-11 Mark Kettenis <kettenis@gnu.org>
677
678 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
679 instead of FIVE_ARG_PTRACE.
680
681 * inflow.c (O_NOCTTY): Define to zero if not already defined.
682 (new_tty): Use O_NOCTTY unconditionally.
683
684 2004-08-10 Mark Kettenis <kettenis@gnu.org>
685
686 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
687 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
688 fflush on stdout.
689
690 2004-08-10 Joel Brobecker <brobecker@gnat.com>
691
692 * xcoff_symfile_finish: Replace last call to xmfree by call
693 to xfree.
694
695 2004-08-10 Andrew Cagney <cagney@gnu.org>
696
697 * main.c (captured_main): Delete call to init_malloc.
698 * defs.h (init_malloc): Delete declaration.
699 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
700 (init_malloc): Delete functions.
701
702 * defs.h (xmfree): Delete.
703 * utils.c (xmfree): Delete function.
704 (xfree): Inline calls to xmfree and mfree.
705 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
706 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
707 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
708 * somread.c (som_symfile_finish): Ditto.
709 * objfiles.c (allocate_objfile, free_objfile):
710 * nlmread.c (nlm_symfile_finish): Ditto.
711 * hpread.c (hpread_symfile_finish): Ditto.
712 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
713 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
714 * coffread.c (coff_symfile_finish): Ditto.
715
716 * defs.h (xmcalloc): Delete declaration.
717 * utils.c (xmcalloc): Delete.
718 (xcalloc): Inline calls to xmcalloc and mcalloc.
719 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
720 xcalloc and xfree.
721 * symtab.c (create_demangled_names_hash): Ditto.
722
723 * defs.h (xmrealloc): Delete.
724 * utils.c (xmrealloc): Delete.
725 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
726 * symmisc.c (extend_psymbol_list): Use xrealloc.
727 * source.c (find_source_lines): Ditto.
728 * hpread.c (hpread_lookup_type): Ditto.
729 * dbxread.c (add_bincl_to_list): Ditto.
730
731 * utils.c (xmmalloc): Delete.
732 (xmalloc): Inline xmmalloc and mmalloc calls.
733 (msavestring): Use xmalloc.
734 * defs.h (xmmalloc): Delete declaration.
735 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
736 xmmalloc.
737 * symmisc.c (extend_psymbol_list): Ditto.
738 * symfile.c (init_psymbol_list): Ditto.
739 * source.c (find_source_lines): Ditto.
740 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
741 * elfread.c (elf_symtab_read): Ditto.
742 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
743 * coffread.c (coff_symfile_init): Ditto.
744
745 2004-08-10 David Carlton <carlton@bactrian.org>
746
747 * MAINTAINERS: Remove David Carlton from c++ testsuite
748 maintainers.
749
750 2004-08-10 Jerome Guitton <guitton@gnat.com>
751
752 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
753 print a line feed before the prompt.
754
755 2004-08-10 Mark Kettenis <kettenis@gnu.org>
756
757 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
758
759 2004-08-09 Joel Brobecker <brobecker@gnat.com>
760
761 General cleanup of the AIX xm include file:
762 * config/xm-aix4.h (fd_set): Remove undefine.
763 Remove include of <sys/select.h>.
764 (HAVE_TERMIO): Remove define.
765 (USG): Likewise.
766 (NULL): Remove redefine.
767 (alloca): Remove #pragma.
768 (vfork): Remove define.
769 (termdef): Remove.
770 (SIGWINCH_HANDLER): Remove.
771 (SIGWINCH_HANDLER_BODY): Remove.
772
773 2004-08-09 Mark Kettenis <kettenis@gnu.org>
774
775 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
776 GDB_OSABI_OPENBSD_ELF.
777
778 2004-08-07 Robert Millan <robertmh@gnu.org>
779
780 * bsd-kvm.c: Check for nlist.h before including it.
781
782 2004-08-09 Mark Kettenis <kettenis@gnu.org>
783
784 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
785 sigcontext' offset consistency checks for ancient BSD.
786
787 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
788
789 * configure.in: Check for <sys/types.h>. Check return and
790 argument types of ptrace.
791 * configure, config.in: Regenerate.
792
793 2004-08-09 Jim Blandy <jimb@redhat.com>
794
795 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
796 rs6000_register_sim_regno): Doc fixes.
797
798 2004-08-08 Joel Brobecker <brobecker@gnat.com>
799
800 * mips-tdep.c: Include "floatformat.h".
801 (n32n64_floatformat_always_valid): New function.
802 (floatformat_n32n64_long_double_big): New constant.
803 (mips_gdbarch_init): Set size and format of long double
804 for N32 and N64 ABIs.
805 * Makefile.in (mips-tdep.o): Update dependencies.
806
807 2004-08-08 Andrew Cagney <cagney@gnu.org>
808
809 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
810 print. Improve script's error messages.
811 * gdbarch.h: Re-generate.
812
813 * gdbarch.sh (pformat): New function.
814 (float_format, double_format, long_double_format): List with bit
815 members. Use pformat when printing.
816 * gdbarch.c, gdbarch.h: Re-generate.
817
818 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
819
820 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
821 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
822 (ppcnbsd_supply_pcb): New function.
823 (_initialize_ppcnbsd_nat): New prototype and function.
824 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
825 (LOADLIBES): New variable.
826 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
827
828 2004-08-08 Andrew Cagney <cagney@gnu.org>
829
830 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
831 (builtin_type_ieee_double, builtin_type_ia64_quad)
832 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
833 BE/LE floating-point types.
834 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
835 (builtin_type_ieee_double, builtin_type_ia64_quad)
836 (builtin_type_ia64_spill): Declare.
837 * doublest.c (_initialize_doublest, floatformat_ieee_single)
838 (floatformat_ieee_double, floatformat_arm_ext)
839 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
840 of LE/BE floatformats.
841 * doublest.h: (struct floatformat, floatformat_ieee_single)
842 (floatformat_ieee_double, floatformat_arm_ext)
843 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
844
845 2004-08-08 Mark Kettenis <kettenis@gnu.org>
846
847 * i386gnu-nat.c (gnu_store_registers): Fix typo.
848
849 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
850 instead of regcache_raw_supply when storing the registers.
851
852 * i386gnu-nat.c: Update copyright year.
853 (gnu_store_registers): Don't use deprecated_registers and
854 deprecated_registers_valid. Use regcache_valid_p and
855 regcache_raw_supply instead.
856
857 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
858 frame_pc_unwind.
859
860 * procfs.c (procfs_pid_to_str): Remove redundant and unused
861 variables. Incapitalized "process".
862
863 * configure.in: Add cursesX to the list of possible curses libs.
864 Add cursesX.h to the list of possible curses headers.
865 * configure, config.in: Regenerate.
866
867 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
868
869 * configure.in: Test for struct lwp in <sys/lwp.h>.
870 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
871 the offset of l_addr in struct lwp.
872
873 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
874
875 * bsd-kvm.c: Include "gdbcore.h"
876 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
877
878 2004-08-07 Andrew Cagney <cagney@gnu.org>
879
880 * gdbtypes.c (build_flt, build_complex): New functions.
881 (gdbtypes_post_init): Use.
882
883 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
884
885 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
886 through to builtin_type_uint128.
887
888 * c-exp.y: Use builtin_type function to obtain builtin types.
889
890 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
891 builtin_uint128.
892 * gdbtypes.c (gdbtypes_post_init): Update.
893 (build_gdbtypes): Move initialization of builtin_type_int0
894 through to builtin_type_uint128 from here ...
895 (_initialize_gdbtypes): ... to here.
896 * d10v-tdep.c (d10v_register_type): Update.
897
898 * doublest.c: Update copyright.
899 (floatformat_from_length): Call error when floatformat is NULL.
900 (extract_floating_by_length): Remove NULL fmt check.
901 (store_floating_by_length): Ditto.
902
903 2004-08-07 Andrew Cagney <cagney@gnu.org>
904
905 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
906 that the register is valid.
907
908 2004-08-05 Mark Kettenis <kettenis@chello.nl>
909
910 * i386-linux-tdep.c (i386_linux_sigtramp_start)
911 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
912 struct frame_info *. Use safe_frame_unwind_memory instead of
913 deprecated_read_memory_nobpt.
914 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
915 changed signature of i386_linux_sigtramp_start and
916 i386_linux_rt_sigtramp_start.
917
918 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
919 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
920 instead of deprecated_read_memory_nobpt.
921 (i386nbsd_sigtramp_p): Adjust for changed signature of
922 i386nbsd_sigtramp_offset.
923
924 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
925 safe_frame_unwind_memory instead of target_read_memory.
926
927 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
928 !NO_SYS_FILE.
929 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
930 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
931 (_initialize_kernel_u_addr): Remove prototype and function.
932 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
933 !NO_SYS_FILE.
934 * xcoffread.c: Likewise.
935
936 2004-08-06 Mark Kettenis <kettenis@gnu.org>
937
938 * vax-nat.c: New file.
939 * vaxbsd-nat.c: Tweak comment.
940 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
941 vaxnbsd-tdep.c.
942 (vax-nat.o): New dependency.
943 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
944 (vax-*-ultrix2*): Remove.
945 * config/vax/vax.mh: New file.
946 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
947 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
948 (vax_register_u_addr): New prototype.
949 (REGISTER_U_ADDR): Define using vax_register_u_addr.
950 * config/vax/vaxult2.mh: Remove file.
951 * config/vax/vaxult.mh: Remove file.
952 * config/vax/vaxbsd.mh: Remove file.
953 * config/vax/vax.mt (TM_FILE): Remove.
954 * config/vax/tm-vaxbsd.h: Remove file.
955
956 2004-08-06 Joel Brobecker <brobecker@gnat.com>
957
958 * aix-thread.c (get_signaled_thread): New function.
959 (iter_trap): Delete, no longer used.
960 (iter_tid): New function.
961 (pd_update): Find the thread that received the SIGTRAP signal
962 by first locating the kernel thread, and then finding its
963 associated thread.
964
965 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
966
967 * lin-lwp.c (child_wait): Continue inferior after processing
968 PTRACE_EVENT_CLONE event.
969
970 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
971
972 * MAINTAINERS: Add self to Write-After-Approval.
973
974 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
975
976 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
977 libunwind-xxxx.so" where xxxx is UNW_TARGET.
978
979 2004-08-05 Andrew Cagney <cagney@gnu.org>
980
981 * config/xm-sysv4.h: Delete file.
982 * config/mips/xm-irix5.h: Delete file.
983 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
984 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
985 * config/ia64/xm-aix.h: Delete file.
986 * config/ia64/aix.mh (XM_FILE): Delete.
987 * config/pa/xm-hppah.h: Delete file.
988 * config/pa/hpux11w.mh (XM_FILE): Delete.
989 * config/pa/hpux11.mh (XM_FILE): Delete.
990 * config/pa/hpux1020.mh (XM_FILE): Delete.
991 * config/pa/hppahpux.mh (XM_FILE): Delete.
992
993 * config/alpha/xm-alphalinux.h: Delete file.
994 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
995 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
996 * config/alpha/xm-alphaosf.h: Delete file.
997 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
998 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
999 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1000 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1001
1002 * config/i386/xm-i386v.h: Delete file.
1003 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1004 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1005 * config/i386/xm-i386sco.h: Delete file.
1006 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1007 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1008 * config/i386/xm-i386v4.h: Delete file.
1009 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1010 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1011 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1012 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1013
1014 * config/vax/xm-vax.h: Delete file.
1015 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1016 * config/vax/xm-vaxult2.h: Delete file.
1017 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1018 * config/vax/vaxult2.mh (XM_FILE): Delete.
1019 * config/vax/xm-vaxult.h: Delete file.
1020 * config/vax/vaxult.mh (XM_FILE): Delete.
1021 * config/vax/xm-vaxbsd.h: Delete file.
1022 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1023
1024 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1025 * gdbarch.h, gdbarch.c: Re-generate.
1026 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1027 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1028 * frame.h: Delete deprecated_read_fp from comments.
1029 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1030 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1031
1032 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1033
1034 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1035 trampoline in OpenBSD 3.5-current.
1036
1037 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1038 SSE registers.
1039
1040 * Makefile.in: Remove embedded page breaks.
1041
1042 2004-08-04 Jim Blandy <jimb@redhat.com>
1043
1044 * regcache.c (regcache_raw_read): Assert that, after calling
1045 target_fetch_registers, the register we're reading is cached.
1046
1047 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1048 a call to 'internal_error', with a more helpful error message.
1049 * rs6000-tdep.c (e500_pseudo_register_read,
1050 e500_pseudo_register_write, rs6000_store_return_value): Same.
1051
1052 2004-08-04 Andrew Cagney <cagney@gnu.org>
1053
1054 * Makefile.in: Update dependencies.
1055
1056 2004-08-04 Jim Blandy <jimb@redhat.com>
1057
1058 Change the layout of the PowerPC E500 raw register cache to allow
1059 the lower 32-bit halves of the GPRS to be their own raw registers,
1060 not pseudoregisters.
1061 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1062 add ppc_ev0_upper_regnum flag.
1063 * rs6000-tdep.c: #include "reggroups.h".
1064 (spe_register_p): Recognize the ev upper half registers as SPE
1065 registers.
1066 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1067 registers.
1068 (e500_move_ev_register): New function.
1069 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1070 vector registers are the pseudo-registers now, formed by splicing
1071 together the gprs and the upper-half registers.
1072 (e500_register_reggroup_p): New function.
1073 (P): Macro deleted.
1074 (P8, A4): New macro.
1075 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1076 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1077 macros.
1078 (registers_e500): Rearrange register set so that the raw register
1079 set contains 32-bit GPRs and upper-half registers, and the SPE
1080 vector registers become pseudo-registers.
1081 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1082 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1083 register numbers are now the same for the E500 as they are for
1084 other PowerPC variants. Register e500_register_reggroup_p as the
1085 register group function for the E500.
1086 * Makefile.in (rs6000-tdep.o): Update dependencies.
1087
1088 Adapt PPC E500 native support to the new raw regcache layout.
1089 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1090 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1091 (fetch_spe_register, store_spe_register): Handle fetching/storing
1092 all the SPE registers at once, if regno == -1. These now take
1093 over the job of fetch_spe_registers and store_spe_registers.
1094 (fetch_spe_registers, store_spe_registers): Deleted.
1095 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1096 unconditionally; they're always raw. Fetch/store SPE upper half
1097 registers, if present, instead of ev registers.
1098 (fetch_register, store_register): Remove sanity checks: gprs are
1099 never pseudo-registers now, so we never need to even mention any
1100 registers that are ever pseudoregisters.
1101
1102 Use a fixed register numbering when communicating with the PowerPC
1103 simulator.
1104 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1105 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1106 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1107 New functions.
1108 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1109 init_sim_regno_table.
1110 * Makefile.in (gdb_sim_ppc_h): New variable.
1111 (rs6000-tdep.o): Update dependencies.
1112
1113 2004-08-02 Andrew Cagney <cagney@gnu.org>
1114
1115 * cris-tdep.c (cris_register_size): Restore function, still used
1116 locally.
1117
1118 * gdbarch.sh (deprecated_target_read_fp)
1119 (deprecated_frame_locals_address, deprecated_frame_args_address)
1120 (deprecated_frame_chain_valid, deprecated_frame_chain)
1121 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1122 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1123 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1124 * gdbarch.h, gdbarch.c: Re-generate.
1125 * regcache.c (deprecated_read_fp): Do not call
1126 DEPRECATED_TARGET_READ_FP_P.
1127 * infcmd.c (default_print_registers_info): Do not call
1128 DEPRECATED_DO_REGISTERS_INFO.
1129 * frame-base.c (default_frame_locals_address): Do not call
1130 DEPRECATED_FRAME_LOCALS_ADDRESS.
1131 (default_frame_args_address): Do not call
1132 DEPRECATED_FRAME_ARGS_ADDRESS.
1133
1134 * gdbarch.sh (deprecated_register_raw_size)
1135 (deprecated_register_virtual_size:int): Delete.
1136 * gdbarch.h, gdbarch.c: Re-generate.
1137 * cris-tdep.c (cris_register_size): Delete.
1138 (cris_gdbarch_init): Update.
1139 * alpha-tdep.c (alpha_register_raw_size)
1140 (alpha_register_virtual_size): Delete.
1141 (alpha_gdbarch_init): Update.
1142
1143 * gdbarch.sh (deprecated_register_virtual_type)
1144 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1145 (deprecated_dummy_write_sp): Delete.
1146 * gdbarch.h, gdbarch.c: Re-generate.
1147
1148 * gdbarch.sh (deprecated_register_bytes): Delete.
1149 * gdbarch.h, gdbarch.c: Re-generate.
1150 * regcache.c (deprecated_register_bytes): New function.
1151 * regcache.h (deprecated_register_bytes): Declare.
1152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1153 * v850-tdep.c (v850_gdbarch_init): Update.
1154 * sh64-tdep.c (sh64_gdbarch_init): Update.
1155 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1156 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1157 * mcore-tdep.c (mcore_gdbarch_init): Update.
1158 * cris-tdep.c (cris_gdbarch_init): Update.
1159 * arm-tdep.c (arm_gdbarch_init): Update.
1160 * remote.c (init_remote_state): Update.
1161 * remote-vx.c (vx_prepare_to_store): Update.
1162 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1163 * irix5-nat.c (fetch_core_registers): Update.
1164 * cris-tdep.c (cris_register_bytes_ok): Update.
1165 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1166
1167 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1168 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1169 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1170 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1171 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1172 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1173 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1174 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1175 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1176 with mips_insn16 and mips_insn32.
1177
1178 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1179 * rs6000-tdep.c (rs6000_push_dummy_call)
1180 (rs6000_extract_return_value): Use register_size.
1181 * xstormy16-tdep.c (xstormy16_get_saved_register)
1182 (xstormy16_extract_return_value): Ditto.
1183 * valops.c (value_assign): Ditto.
1184 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1185 * v850-tdep.c (v850_extract_return_value): Ditto.
1186 * tracepoint.c (collect_symbol): Ditto.
1187 * target.c (debug_print_register): Ditto.
1188 * stack.c (frame_info): Ditto.
1189 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1190 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1191 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1192 (store_register_using_P): Ditto.
1193 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1194 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1195 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1196 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1197 * regcache.c (deprecated_read_register_bytes)
1198 (deprecated_write_register_bytes, read_register)
1199 (write_register): Ditto.
1200 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1201 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1202 * monitor.c (monitor_supply_register, monitor_fetch_register)
1203 (monitor_store_register): Ditto.
1204 * mn10300-tdep.c (mn10300_pop_frame_regular)
1205 (mn10300_print_register): Ditto.
1206 * mipsv4-nat.c (fill_fpregset): Ditto.
1207 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1208 (mips64_fill_fpregset): Ditto.
1209 * mi/mi-main.c (register_changed_p, get_register)
1210 (mi_cmd_data_write_register_values): Ditto.
1211 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1212 * irix5-nat.c (fill_gregset, fetch_core_registers):
1213 * infrun.c (write_inferior_status_register): Ditto.
1214 * infptrace.c (fetch_register, store_register): Ditto.
1215 * infcmd.c (default_print_registers_info): Ditto.
1216 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1217 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1218 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1219 * hpux-thread.c (hpux_thread_fetch_registers)
1220 (hpux_thread_store_registers): Ditto.
1221 * hppah-nat.c (store_inferior_registers, fetch_register):
1222 * findvar.c (value_from_register): Ditto.
1223 * dve3900-rom.c (fetch_bitmapped_register):
1224 * cris-tdep.c (cris_gdbarch_init): Ditto.
1225 * alpha-tdep.h: Ditto.
1226 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1227
1228 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1229 DEPRECATED_REGISTER_RAW_SIZE from comments.
1230 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1231 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1232 DEPRECATED_REGISTER_RAW_SIZE.
1233 * findvar.c (value_of_register): Simplify by assuming that the
1234 registers raw and virtual sizes are identical.
1235 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1236 comment.
1237 * arch-utils.c (generic_register_size): Simplify by assuming
1238 register_type.
1239
1240 * regcache.c (legacy_read_register_gen, real_register)
1241 (legacy_write_register_gen): Delete, not used.
1242
1243 * regcache.c (struct regcache_descr): Delete legacy_p.
1244 (init_legacy_regcache_descr): Delete function.
1245 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1246 Do not use deprecated register functions.
1247 (regcache_raw_read, deprecated_write_register_gen):
1248 (deprecated_read_register_gen, regcache_raw_write): Delete code
1249 predicated on legacy_p.
1250 (register_size): Delete check against register raw size.
1251
1252 * cris-tdep.c (cris_register_type): Replace
1253 cris_register_virtual_type.
1254 (cris_gdbarch_init): Update, set register_type.
1255
1256 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1257 * gdbarch.h, gdbarch.c: Re-generate.
1258 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1259 (arm_gdbarch_init) Do not set frameless function invocation.
1260 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1261 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1262 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1263 (frv_gdbarch_init): Do not set frameless function invocation.
1264 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1265 * sh-tdep.c (sh_gdbarch_init): Ditto.
1266 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1267 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1268 * avr-tdep.c (avr_gdbarch_init): Ditto.
1269
1270 * blockframe.c (legacy_frame_chain_valid): Delete function.
1271
1272 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1273 and pc. Update comments.
1274 (pc_in_dummy_frame): Delete function.
1275 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1276 use the "id".
1277 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1278 call_hi, top and pc, use the id.
1279 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1280
1281 * dummy-frame.c: Include "gdb_string.h".
1282 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1283 (generic_save_dummy_frame_tos): Delete.
1284 (dummy_frame_push): New function, replaces above.
1285 * dummy-frame.h: Update copyright.
1286 (dummy_frame_push): Declare.
1287 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1288 (generic_save_call_dummy_addr): Delete declarations.
1289 * infcall.c: Include "dummy-frame.h".
1290 (call_function_by_hand): Add locals caller_regcache,
1291 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1292 with call to frame_save_as_regcache plus cleanup. Delete calls to
1293 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1294 Move clear_proceed_status to just before the resume, add call to
1295 dummy_frame_push (discard cleanup).
1296 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1297 (dummy-frame.o): Add $(gdb_string_h).
1298
1299 2004-08-01 Andrew Cagney <cagney@gnu.org>
1300
1301 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1302 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1303 * dummy-frame.c (find_dummy_frame): Delete.
1304 (struct dummy_frame_cache, dummy_frame_sniffer)
1305 (dummy_frame_prev_register, dummy_frame_this_id)
1306 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1307 frame unwinder using a dummy_frame_cache.
1308
1309 2004-08-01 Andrew Cagney <cagney@gnu.org>
1310
1311 * frame.h (frame_save_as_regcache): Declare.
1312 * frame.c (frame_save_as_regcache): New function.
1313 (do_frame_read_register): Replace do_frame_unwind_register.
1314 (frame_pop): Use frame_save_as_regcache.
1315 * dummy-frame.c (generic_push_dummy_frame): Use
1316 frame_save_as_regcache.
1317
1318 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1319
1320 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1321 file as included until we record the first line in the linetable.
1322
1323 2004-08-01 Andrew Cagney <cagney@gnu.org>
1324
1325 * frame.h (deprecated_pop_dummy_frame)
1326 (deprecated_read_register_dummy)
1327 (deprecated_generic_find_dummy_frame): Delete.
1328 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1329 (deprecated_read_register_dummy)
1330 (deprecated_find_dummy_frame_regcache)
1331 (discard_innermost_dummy)
1332 (deprecated_pop_dummy_frame): Delete.
1333 (dummy_frame_this_id): Simplify.
1334 (struct dummy_frame): Delete "fp" and "sp".
1335 (find_dummy_frame): Simplify.
1336 (generic_push_dummy_frame): Do not set "fp" or "sp".
1337 (fprint_dummy_frames): Do not print "fp" and "sp"
1338
1339 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1340
1341 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1342 (struct i386_insn): New structure.
1343 (i386_match_insn): New function.
1344 (i386_frame_setup_skip_insns): New variable.
1345 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1346 array i386_frame_setup_insns of instructions that should be
1347 skipped inside the frame setup sequence.
1348
1349 2004-08-01 Andrew Cagney <cagney@gnu.org>
1350
1351 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1352 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1353 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1354 * stack.c (frame_info): Delete references to
1355 DEPRECATED_FRAME_INIT_SAVED_REGS and
1356 deprecated_get_frame_saved_regs.
1357 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1358 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1359 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1360 (frame_unwind_register_signed)
1361 (frame_unwind_register_unsigned)
1362 (frame_unwind_unsigned_register): Use register_size.
1363 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1364 (deprecated_frame_xmalloc_with_cleanup)
1365 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1366 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1367
1368 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1369 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1370 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1371 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1372
1373 * infcall.c (call_function_by_hand): Do not use
1374 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1375 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1376 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1377 DEPRECATED_STACK_ALIGN.
1378
1379 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1380
1381 Committed by Andrew Cagney.
1382 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1383
1384 2004-08-01 Andrew Cagney <cagney@gnu.org>
1385
1386 * mips-tdep.c (mips16_frame_cache)
1387 (mips16_frame_this_id, mips16_frame_prev_register)
1388 (mips16_frame_unwind, mips16_frame_sniffer)
1389 (mips16_frame_base_address, mips16_frame_base)
1390 (mips16_frame_base_sniffer, mips32_frame_cache)
1391 (mips32_frame_this_id, mips32_frame_prev_register)
1392 (mips32_frame_unwind, mips32_frame_sniffer)
1393 (mips32_frame_base_address, mips32_frame_base)
1394 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1395 separate heuristic mips16 and mips32 unwinders.
1396 (mips_stub_frame_cache, mips_stub_frame_this_id)
1397 (mips_stub_frame_prev_register)
1398 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1399 (mips_stub_frame_base_address, mips_stub_frame_base)
1400 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1401 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1402 match true mdebug frames.
1403 (non_heuristic_proc_desc): Add forward declaration.
1404
1405 2004-08-01 Andrew Cagney <cagney@gnu.org>
1406
1407 * config/mips/tm-irix6.h: Delete file.
1408 * config/mips/tm-irix5.h: Delete file.
1409 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1410 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1411
1412 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1413 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1414 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1415 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1416 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1417 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1418 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1419 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1420 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1421 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1422 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1423 (TARGET_SIGNAL_RAW_VALUES): Delete.
1424 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1425 Delete.
1426 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1427 (TARGET_HW_WATCH_LIMIT): Delete.
1428 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1429 * minimon.h: Delete file.
1430
1431 * trad-frame.c (trad_frame_get_this_base)
1432 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1433 functions.
1434 * trad-frame.h (trad_frame_set_this_base)
1435 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1436
1437 2004-07-31 Andrew Cagney <cagney@gnu.org>
1438
1439 * trad-frame.c (trad_frame_get_prev_register): Rename
1440 trad_frame_get_prev_register.
1441 * vax-tdep.c (vax_frame_prev_register): Update.
1442 * trad-frame.h: Update.
1443 * trad-frame.c (trad_frame_get_register): Update.
1444 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1445 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1446 Update.
1447 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1448 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1449 Update.
1450 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1451 Update.
1452 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1453 Update.
1454 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1455 Update.
1456 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1457 Update.
1458 * s390-tdep.c (s390_frame_prev_register)
1459 (s390_stub_frame_prev_register)
1460 (s390_sigtramp_frame_prev_register): Update.
1461 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1462 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1463 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1464 * m88k-tdep.c (m88k_frame_prev_register)
1465 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1466 * m32r-tdep.c (m32r_frame_prev_register): Update.
1467 * hppa-tdep.c (hppa_frame_prev_register_helper)
1468 * frv-tdep.c (frv_frame_prev_register): Update.
1469 * d10v-tdep.c (d10v_frame_prev_register): Update.
1470 * cris-tdep.c (cris_frame_prev_register): Update.
1471 * avr-tdep.c (avr_frame_prev_register): Update.
1472 * arm-tdep.c (arm_prologue_prev_register)
1473 (arm_sigtramp_prev_register): Update.
1474
1475 2004-07-31 Andrew Cagney <cagney@gnu.org>
1476
1477 * frame.h (legacy_saved_regs_unwind)
1478 (legacy_frame_chain_valid, legacy_frame_p)
1479 (enum frame_type): Delete UNKNOWN_FRAME.
1480 * dummy-frame.c (dummy_frame_this_id): Simplify.
1481 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1482 * frame.c (struct frame_info): Delete the field "type".
1483 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1484 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1485 (legacy_saved_regs_unwind, legacy_frame_p)
1486 (frame_type_from_pc): Delete.
1487 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1488 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1489
1490 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1491
1492 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1493 indentation.
1494
1495 * mips-nat.c: Remove file.
1496 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1497 (mips-nat.o): Remove dependency.
1498
1499 * infptrace.c: Update copyright year.
1500 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1501 explicitly setting the buffer to all zeroes.
1502
1503 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1504 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1505
1506 2004-07-30 Andrew Cagney <cagney@gnu.org>
1507
1508 * GDB 6.2 released from gdb_6_2-branch.
1509
1510 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1511
1512 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1513
1514 * exec.c (exec_file_attach):
1515 * nto-tdep.c (nto_find_and_open_solib):
1516 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1517 * solib.c (solib_open):
1518 * somsolib.c (som_solib_sizeof_symbol_table):
1519 * source.c (is_regular_file, openp, open_source_file):
1520 * symfile.c (symfile_bfd_open):
1521 * wince.c (upload_to_device): Differentiate between the search for
1522 binary and source files.
1523
1524 2004-07-30 Andrew Cagney <cagney@gnu.org>
1525
1526 * complaints.c (_initialize_complaints): Pass NULL to
1527 add_setshow_zinteger_cmd for help_doc.
1528 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1529
1530 2004-07-30 Andrew Cagney <cagney@gnu.org>
1531
1532 Fix PR i18n/761.
1533 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1534 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1535 $(PACKAGE).pot and update-po.
1536 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1537 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1538 (update-po): New rules.
1539 (localedir): Define using autoconf.
1540 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1541 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1542 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1543 * configure.in: Generate CATALOGS and LINGUAS from contents of
1544 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1545 * configure: Re-generate.
1546 * po/gdbtext: New file
1547
1548 2004-07-30 Jerome Guitton <guitton@gnat.com>
1549
1550 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1551 order.
1552
1553 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1554
1555 * dwarf2read.c (read_file_scope): Set producer if attribute
1556 present.
1557 (struct dwarf2_cu): Added new member producer.
1558
1559 2004-07-30 Jerome Guitton <guitton@gnat.com>
1560
1561 * inflow.c (kill_command): release file handles in BFD.
1562 * exec.c (exec_file_attach): Ditto.
1563 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1564
1565 2004-07-29 Andrew Cagney <cagney@gnu.org>
1566
1567 * PROBLEMS (mips-irix): Note that it is broken.
1568
1569 2004-07-29 Andrew Cagney <cagney@gnu.org>
1570
1571 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1572 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1573
1574 * config/xm-nbsd.h: Delete file.
1575 * config/arm/xm-nbsd.h: Delete file.
1576 * config/i386/xm-nbsd.h: Delete file.
1577 * config/ns32k/xm-nbsd.h: Delete file.
1578 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1579 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1580 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1581 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1582 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1583
1584 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1585 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1586 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1587 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1588 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1589 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1590
1591 * config/powerpc/xm-linux.h: Delete empty file.
1592 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1593 * config/powerpc/linux.mh (XM_FILE): Delete.
1594 * config/m68k/xm-linux.h: Delete empty file.
1595 * config/m68k/linux.mh (XM_FILE): Delete.
1596 * config/ia64/xm-linux.h: Delete empty file.
1597 * config/ia64/linux.mh (XM_FILE): Delete.
1598 * config/arm/xm-linux.h: Delete empty file.
1599 * config/arm/linux.mh (XM_FILE): Delete.
1600
1601 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1602 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1603 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1604 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1605 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1606 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1607 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1608 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1609
1610 * config/m68k/xm-m68k.h: Delete file.
1611 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1612 copyright.
1613 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1614 * config/pa/xm-linux.h: Delete empty file.
1615 * config/pa/linux.mh (XM_FILE): Delete.
1616 * config/i386/xm-i386.h: Delete empty file.
1617 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1618 "i386/xm-i386.h".
1619 * config/i386/obsdaout.mh (XM_FILE): Delete.
1620 * config/i386/obsd64.mh (XM_FILE): Delete.
1621 * config/i386/fbsd64.mh (XM_FILE): Delete.
1622 * config/i386/nto.mh (XM_FILE): Delete.
1623 * config/i386/obsd.mh (XM_FILE): Delete.
1624 * config/i386/linux64.mh (XM_FILE): Delete.
1625 * config/i386/linux.mh (XM_FILE): Delete.
1626 * config/i386/i386sol2.mh (XM_FILE): Delete.
1627 * config/i386/i386gnu.mh (XM_FILE): Delete.
1628 * config/i386/fbsd.mh (XM_FILE): Delete.
1629 * config/i386/nbsd64.mh (XM_FILE): Delete.
1630
1631 2004-07-29 Andrew Cagney <cagney@gnu.org>
1632
1633 * config/pa/xm-linux.h: Do not include "floatformat.h".
1634 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1635 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1636 * config/i386/xm-i386.h: Do not include "floatformat.h".
1637 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1638 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1639 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1640 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1641 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1642 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1643 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1644 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1645 * configure, config.in: Regenerate.
1646 * configure.host (gdb_host_float_format, gdb_host_double_format)
1647 (gdb_host_long_double_format): Set according to the host.
1648
1649 2004-07-29 Andrew Cagney <cagney@gnu.org>
1650
1651 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1652
1653 2004-07-28 Andrew Cagney <cagney@gnu.org>
1654
1655 * PROBLEMS: Mention threads/1650.
1656 * NEWS: Mention the NPTL fix.
1657
1658 2004-07-28 Andrew Cagney <cagney@gnu.org>
1659
1660 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1661 (add_setshow_cmd_full): Make static.
1662 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1663 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1664 * cli/cli-decode.c (add_setshow_filename_cmd)
1665 (add_setshow_string_cmd): New functions.
1666 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1667 * mips-tdep.c (_initialize_mips_tdep): Update.
1668 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1669 * cli/cli-logging.c (_initialize_cli_logging): Update.
1670 * complaints.c (_initialize_complaints): Update.
1671 * remote.c (_initialize_remote): Update.
1672
1673 2004-07-28 Andrew Cagney <cagney@gnu.org>
1674
1675 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1676 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1677 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1678 print parameters. Make string parameters constant.
1679 * command.h: Update. Update copyright.
1680 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1681 * observer.c (_initialize_observer): Ditto.
1682 * frame.c (_initialize_frame): Ditto.
1683 * complaints.c (_initialize_complaints): Ditto.
1684 * maint.c (_initialize_maint_cmds): Ditto.
1685 * target.c (initialize_targets): Ditto.
1686 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1687 * infcall.c (_initialize_infcall): Ditto.
1688 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1689 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1690 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1691 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1692 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1693
1694 2004-07-28 Andrew Cagney <cagney@gnu.org>
1695
1696 * gdbtypes.c (lookup_primitive_typename): Delete function.
1697 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1698 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1699 * gdbtypes.c (lookup_typename): Ditto.
1700 * f-exp.y (yylex): Ditto.
1701 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1702
1703 * scm-lang.c (c_builtin_types): Delete extern declaration.
1704 (scm_language_defn): Replace
1705 string_char_type and primitive_type_vector with
1706 la_language_arch_info.
1707 * jv-lang.c (java_language_defn): Replace
1708 string_char_type and primitive_type_vector with
1709 la_language_arch_info.
1710 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1711 c_builtin_types in comment.
1712 * c-lang.h (struct language_arch_info): Declare opaque.
1713 (c_language_arch_info): Declare.
1714 (c_builtin_types): Delete declaration.
1715 * c-lang.c (c_language_arch_info): Set string_char_type to
1716 builtin_char, not builtin_true_char. Make global.
1717 (c_builtin_types): Delete array.
1718 (asm_language_defn, minimal_language_defn): Replace
1719 string_char_type and primitive_type_vector with
1720 la_language_arch_info.
1721
1722 2004-07-28 Andrew Cagney <cagney@gnu.org>
1723
1724 * gdbtypes.h (struct builtin_type): Rename true_char to
1725 builtin_true_char.
1726 * gdbtypes.c (gdbtypes_post_init): Update.
1727 * c-lang.c (arch_info): New function.
1728 (enum c_primitive_types): New enum.
1729 (c_language_defn): Instead of string_char_type and
1730 primitive_type_vector set la_language_arch_info.
1731
1732 2004-07-28 Andrew Cagney <cagney@gnu.org>
1733
1734 * language.h (struct language_arch_info): Fix typo
1735 s/primative/primitive/.
1736 * gdbtypes.c (lookup_primitive_typename): Ditto.
1737 * language.c (language_lookup_primitive_type_by_name)
1738 (unknown_language_arch_info): Ditto.
1739
1740 2004-07-27 Andrew Cagney <cagney@gnu.org>
1741
1742 * defs.h (enum language): Add nr_languages.
1743 * language.h (struct language_arch_info): Define.
1744 (struct language_defn): Add la_language_arch_info.
1745 (language_lookup_primative_type_by_name): Declare.
1746 (language_string_char_type): Declare.
1747 * language.c (_initialize_language, language_gdbarch_post_init)
1748 (struct language_gdbarch, language_gdbarch_data): Implement
1749 per-architecture language information.
1750 (unknown_language_arch_info, language_string_char_type)
1751 (language_lookup_primative_type_by_name): New functions.
1752 (unknown_language_defn, auto_language_defn)
1753 (local_language_defn): Set la_language_arch_info to
1754 unknown_language_arch_info.
1755 (unknown_builtin_types): Delete.
1756 * gdbtypes.c (lookup_primitive_typename): Use
1757 language_lookup_primative_type_by_name.
1758 (create_string_type): Use language_string_char_type.
1759 * values.c (value_from_string): Use language_string_char_type.
1760 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1761 * p-lang.c (pascal_language_defn): Ditto.
1762 * m2-lang.c (m2_language_defn): Ditto.
1763 * jv-lang.c (java_language_defn): Ditto.
1764 * objc-lang.c (objc_language_defn): Ditto.
1765 * f-lang.c (f_language_defn): Ditto.
1766 * c-lang.c (c_language_defn, cplus_language_defn)
1767 (asm_language_defn, minimal_language_defn): Ditto.
1768
1769 2004-07-27 Andrew Cagney <cagney@gnu.org>
1770
1771 * gdbtypes.h (struct builtin_type): Declare.
1772 (builtin_type): Declare.
1773 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1774 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1775 (gdbtypes_post_init): New function.
1776 (builtin_type): New function.
1777
1778 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1779
1780 * remote-m32r-sdi.c: Fix breakpoint bug.
1781 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1782 recv_char_data, recv_long_data): New functions to replace communication
1783 sequences.
1784
1785 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1786
1787 Document PR threads/1650.
1788 * PROBLEMS (Threads): Document problem with many threads
1789
1790 2004-07-26 Andrew Cagney <cagney@gnu.org>
1791
1792 * gdb-mi.el: Move from here ...
1793 * mi/gdb-mi.el: ... to here.
1794
1795 2004-07-26 Andrew Cagney <cagney@gnu.org>
1796
1797 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1798 * main.c (captured_main): When in batch mode always detach.
1799
1800 2004-07-26 Andrew Cagney <cagney@gnu.org>
1801
1802 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1803 and h8300 as broken.
1804 * NEWS: END-OF-LIFE frame compatibility module.
1805 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1806 specific comments.
1807
1808 2004-07-26 Andrew Cagney <cagney@gnu.org>
1809
1810 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1811 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1812 * wince.c (_initialize_wince): Update.
1813 * win32-nat.c (_initialize_win32_nat): Update.
1814 * varobj.c (_initialize_varobj): Update.
1815 * valops.c (_initialize_valops): Update.
1816 * utils.c (initialize_utils, initialize_utils): Update.
1817 * tui/tui-win.c (_initialize_tui_win): Update.
1818 * top.c (init_main): Update.
1819 * symfile.c (_initialize_symfile): Update.
1820 * source.c (_initialize_source): Update.
1821 * somsolib.c (_initialize_som_solib): Update.
1822 * solib.c (_initialize_solib): Update.
1823 * solib-frv.c (_initialize_frv_solib): Update.
1824 * serial.c (_initialize_serial): Update.
1825 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1826 * remote.c (_initialize_remote, _initialize_remote): Update.
1827 * remote-vx.c (_initialize_vx): Update.
1828 * remote-utils.c (_initialize_sr_support): Update.
1829 * remote-sds.c (_initialize_remote_sds): Update.
1830 * remote-mips.c (_initialize_remote_mips): Update.
1831 * remote-e7000.c (_initialize_remote_e7000): Update.
1832 * proc-api.c (_initialize_proc_api): Update.
1833 * printcmd.c: Update.
1834 * parse.c (_initialize_parse): Update.
1835 * pa64solib.c (_initialize_pa64_solib): Update.
1836 * p-valprint.c (_initialize_pascal_valprint): Update.
1837 * monitor.c (_initialize_remote_monitors): Update.
1838 * mips-tdep.c (_initialize_mips_tdep): Update.
1839 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1840 * maint.c (_initialize_maint_cmds): Update.
1841 * lin-lwp.c (_initialize_lin_lwp): Update.
1842 * language.c (_initialize_language): Update.
1843 * kod.c (_initialize_kod): Update.
1844 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1845 * i386-tdep.c (_initialize_i386_tdep): Update.
1846 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1847 * gdbarch.sh: Update.
1848 * gdbarch.c: Re-generate.
1849 * gdb-events.sh: Update.
1850 * gdb-events.c: Re-generate.
1851 * frame.c (_initialize_frame): Update.
1852 * exec.c: Update.
1853 * demangle.c (_initialize_demangler): Update.
1854 * dcache.c (_initialize_dcache): Update.
1855 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1856 * cp-valprint.c (_initialize_cp_valprint): Update.
1857 * corefile.c (_initialize_core): Update.
1858 * command.h: Update.
1859 * cli/cli-decode.h: Update.
1860 * cli/cli-cmds.c (init_cli_cmds): Update.
1861 * charset.c (_initialize_charset): Update.
1862 * breakpoint.c (_initialize_breakpoint): Update.
1863 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1864 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1865 * aix-thread.c (_initialize_aix_thread): Update.
1866
1867 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1868
1869 Partial fix for PR backtrace/1718.
1870 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1871 that GCC migrates into the prolugue. Don't handle any
1872 instructions that clobber %ebx.
1873
1874 2004-07-23 Andrew Cagney <cagney@gnu.org>
1875
1876 Use regcache_raw_collect instead of regcache_collect.
1877 * regcache.h (regcache_collect): Delete declaration.
1878 * regcache.c (regcache_colect): Delete function.
1879 * win32-nat.c (do_child_store_inferior_registers): Update.
1880 * sol-thread.c (sol_thread_store_registers): Update.
1881 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1882 * rs6000-nat.c (store_register): Update.
1883 * remote.c (store_register_using_P, remote_store_registers): Update.
1884 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1885 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1886 (fill_vrregset, store_spe_registers, fill_gregset)
1887 (fill_gregset): Update.
1888 * nto-procfs.c (procfs_store_registers): Update.
1889 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1890 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1891 * m68klinux-nat.c (store_register, fill_gregset): Update.
1892 * m68k-tdep.c (fill_gregset): Update.
1893 * infptrace.c (store_register): Update.
1894 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1895 * i386-linux-nat.c (store_register, fill_gregset): Update.
1896 * hppa-linux-nat.c (fill_gregset): Update.
1897 * go32-nat.c (store_register): Update.
1898 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1899 (store_fp_regs): Update.
1900 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1901 (store_nwfpe_extended, store_fpregister, store_fpregs)
1902 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1903 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1904 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1905 (store_regs_user_thread, store_regs_kernel_thread): Update.
1906
1907 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1908
1909 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1910 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1911 encoding.
1912 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1913 member of `struct comp_unit'.
1914
1915 2004-07-23 Andrew Cagney <cagney@gnu.org>
1916
1917 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1918 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1919
1920 2004-07-23 Martin Hunt <hunt@redhat.com>
1921 Kevin Buettner <kevinb@redhat.com>
1922
1923 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1924 alignment was being added to the offset instead of multiplied.
1925
1926 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1927
1928 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1929 changed signal trampoline in OpenBSD 3.5-current.
1930
1931 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1932 <machine/pcb.h> and "bsd-kvm.h".
1933 (sparc64nbsd_supply_pcb): New function.
1934 (_initialize_sparc64nbsd_nat): Renamed from
1935 _initialize_sparcnbsd_nat. Enable libkvm interface.
1936 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1937 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1938 (LOADLIBES): New variable.
1939
1940 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1941
1942 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1943
1944 2004-07-21 Andrew Cagney <cagney@gnu.org>
1945
1946 Use regcache_raw_supply instead of supply_register.
1947 * regcache.h (supply_register): Delete declaration.
1948 * regcache.c (supply_register): Delete function.
1949 * wince.c (do_child_fetch_inferior_registers): Update.
1950 * win32-nat.c (do_child_fetch_inferior_registers)
1951 (fetch_elf_core_registers): Update.
1952 * v850ice.c (v850ice_fetch_registers): Update.
1953 * thread-db.c (thread_db_store_registers): Update.
1954 * sol-thread.c (sol_thread_store_registers): Update.
1955 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1956 * rs6000-nat.c (fetch_register): Update.
1957 * rom68k-rom.c (rom68k_supply_one_register): Update.
1958 * remote.c (remote_wait, remote_async_wait): Update.
1959 * remote-st.c (get_hex_regs): Update.
1960 * remote-sim.c (gdbsim_fetch_register): Update.
1961 * remote-sds.c (sds_fetch_registers): Update.
1962 * remote-rdp.c (remote_rdp_fetch_register): Update.
1963 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1964 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1965 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1966 * remote-hms.c (init_hms_cmds): Update.
1967 * remote-est.c (init_est_cmds): Update.
1968 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1969 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1970 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1971 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1972 (fetch_register, supply_vrregset, supply_vrregset)
1973 (fetch_spe_registers): Update.
1974 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1975 * monitor.c (monitor_supply_register): Update.
1976 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1977 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1978 (mipsnbsd_supply_fpreg): Update.
1979 * mips-nat.c (fetch_inferior_registers)
1980 (fetch_core_registers): Update.
1981 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1982 (supply_fpregset, mips64_supply_gregset)
1983 (mips64_supply_fpregset): Update.
1984 * m68klinux-nat.c (fetch_register, supply_gregset)
1985 (supply_fpregset): Update.
1986 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1987 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1988 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1989 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1990 * infptrace.c (fetch_register): Update.
1991 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1992 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1993 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1994 (gnu_fetch_registers, gnu_store_registers): Update.
1995 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1996 * i386-linux-nat.c (fetch_register, supply_gregset)
1997 (dummy_sse_values): Update.
1998 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1999 * hppah-nat.c (fetch_register): Update.
2000 * hppa-linux-nat.c (fetch_register, supply_gregset)
2001 (supply_fpregset): Update.
2002 * go32-nat.c (fetch_register): Update.
2003 * dve3900-rom.c (fetch_bitmapped_register)
2004 (_initialize_r3900_rom): Update.
2005 * cris-tdep.c (supply_gregset): Update.
2006 * abug-rom.c (init_abug_cmds): Update.
2007 * core-aout.c (fetch_core_registers): Update.
2008 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2009 (fetch_register, fetch_fp_register): Update.
2010 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2011 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2012 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2013 * alphanbsd-tdep.c (fetch_core_registers): Update.
2014 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2015 * alpha-nat.c (fetch_osf_core_registers)
2016 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2017 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2018 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2019
2020 2004-07-21 Andrew Cagney <cagney@gnu.org>
2021
2022 * PROBLEMS: Mention breakpoints/1702.
2023 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2024 that is known to work.
2025
2026 2004-07-21 Andrew Cagney <cagney@gnu.org>
2027
2028 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2029 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2030 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2031 (handle_inferior_event): Wrap call to deprecated
2032 IGNORE_HELPER_CALL in #ifdef.
2033 * config/mips/tm-nbsd.h: Update.
2034
2035 2004-07-20 Jim Blandy <jimb@redhat.com>
2036
2037 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2038 bfd_mach_ppc has no segment registers.
2039
2040 Include PowerPC SPR numbers for special-purpose registers.
2041 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2042 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2043 new member in initializer.
2044 (S, S4, SN4, S64): New macros for defining special-purpose
2045 registers.
2046 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2047 registers_403, registers_403GC, registers_505, registers_860,
2048 registers_601, registers_602, registers_603, registers_604,
2049 registers_750, registers_e500): Use them.
2050
2051 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2052 replace references with expression used to initialize variable.
2053
2054 2004-07-20 Andrew Cagney <cagney@gnu.org>
2055
2056 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2057 read_memory_nobpt.
2058 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2059 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2060 (s390_sigtramp_frame_sniffer): Update.
2061 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2062 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2063 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2064 (mips32_fetch_instruction): Update.
2065 * mcore-tdep.c (get_insn): Update.
2066 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2067 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2068 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2069 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2070 (i386_linux_rt_sigtramp_start): Update.
2071 * i386-linux-nat.c (child_resume): Update.
2072 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2073 * hppa-linux-tdep.c (insns_match_pattern): Update.
2074 * gdbcore.h: Update.
2075 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2076 * frame.c (safe_frame_unwind_memory): Update.
2077 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2078 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2079 * alpha-tdep.c (alpha_read_insn): Update.
2080
2081 2004-07-20 Andrew Cagney <cagney@gnu.org>
2082
2083 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2084 containing both bytes and mask. Add "frame_type".
2085 * tramp-frame.c (tramp_frame_start): Update.
2086 (tramp_frame_prepend_unwinder): Update.
2087 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2088 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2089 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2090 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2091
2092 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2093
2094 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2095 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2096 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2097 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2098
2099 2004-07-17 Andrew Cagney <cagney@gnu.org>
2100
2101 * NEWS, PROBLEMS: Update for 6.2.
2102
2103 * README: Update to 6.2.
2104
2105 * utils.c (xvasprintf): Call xstrvprintf.
2106
2107 * parse.c: Update copyright.
2108 (null_post_parser): Eliminate ARGSUSED.
2109
2110 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2111 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2112 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2113
2114 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2115 * ppc-linux-nat.c: Use "Linux kernel".
2116 * hppa-linux-tdep.c: Use GNU/Linux.
2117 * hppa-linux-nat.c: Use GNU/Linux.
2118 * dwarfread.c: Add [sic] to use of Linux.
2119
2120 * hppa-linux-nat.c: Do not include <string.h>.
2121 (supply_fpregset): Remove "register" attribute.
2122
2123 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2124
2125 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2126
2127 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2128 * configure, config.in: Regenerated.
2129
2130 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2131 "bsd-kvm.h".
2132 (vaxbsd_supply_pcb): New function.
2133 (_initialize_vaxbsd_nat): New prototype and function.
2134 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2135 solib-sunos.o.
2136 (LOADLIBES): New variable.
2137 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2138 (LOADLIBES): New variable.
2139 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2140 (LOADLIBES): New variable.
2141 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2142
2143 2004-07-16 Andrew Cagney <cagney@gnu.org>
2144
2145 * defs.h (event_loop_p): Replace variable declaration with macro,
2146 always 1.
2147 * main.c (captured_main): Delete options "-async" and "-noasync".
2148 (event_loop_p): Delete variable.
2149 * NEWS: Mention that "-async" and "-noasync" were removed.
2150
2151 2004-07-16 Andrew Cagney <cagney@gnu.org>
2152
2153 * remote-m32r-sdi.c: Re-indent.
2154
2155 2004-07-16 Jim Blandy <jimb@redhat.com>
2156
2157 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2158 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2159 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2160 missing MPC823 SPRs.
2161 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2162 incorrect. (This was corrected in GDB's register name tables on
2163 2004-07-14.)
2164
2165 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2166 should be "esasrr" ("ESA Save and Restore Register").
2167
2168 2004-07-16 Andrew Cagney <cagney@gnu.org>
2169
2170 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2171 calls, no longer applicable. Update comments and rename parameter
2172 "step_frame" to "return_frame".
2173
2174 2004-07-16 Andrew Cagney <cagney@gnu.org>
2175
2176 * frame.c (fprint_field): New function.
2177 (fprint_frame_id): Use fprint_field.
2178
2179 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2180
2181 * ada-lang.c (ada_language_defn): Remove commented out code.
2182
2183 2004-07-15 Jim Blandy <jimb@redhat.com>
2184
2185 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2186 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2187
2188 2004-07-14 Jim Blandy <jimb@redhat.com>
2189
2190 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2191
2192 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2193
2194 * ppc-tdep.h (ppc_num_srs): New enum constant.
2195
2196 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2197 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2198 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2199 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2200 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2201 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2202 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2203 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2204 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2205 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2206 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2207 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2208 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2209 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2210 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2211 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2212 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2213 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2214 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2215 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2216 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2217 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2218 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2219 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2220 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2221 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2222 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2223 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2224 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2225 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2226 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2227 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2228 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2229 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2230 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2231 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2232 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2233 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2234 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2235 special-purpose register numbers.
2236
2237 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2238 manual mentions 'md_twb', but many mention 'm_twb', and at that
2239 point in the register list.)
2240
2241 2004-07-14 Andrew Cagney <cagney@gnu.org>
2242
2243 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2244 instead of "internal-error".
2245
2246 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2247
2248 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2249 that was inserted inside a comment.
2250
2251 2004-07-10 Randolph Chung <tausq@debian.org>
2252
2253 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2254 function.
2255 (hppa_hpux_push_dummy_code): New function.
2256 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2257 Set find_global_pointer method.
2258
2259 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2260
2261 * NEWS: Mention BSD libkvm interface.
2262
2263 2004-07-10 Michael Snyder <msnyder@redhat.com>
2264
2265 * symfile.c (generic_load): Comment typo.
2266 * stack.c (get_selected_block): Ditto.
2267 * regcache.c (regcache_cooked_read): Ditto.
2268 * monitor.c (monitor_debug): Ditto.
2269 * mips-tdep.c (mips_read_pc): Ditto.
2270 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2271 * gdb_mbuild.sh: Ditto.
2272 * gdbarch.sh: Ditto.
2273 * gdbarch.h: Ditto.
2274
2275 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2276
2277 * ada-tasks.c: Remove file.
2278
2279 Remove ARI problems:
2280
2281 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2282 beginning of line.
2283
2284 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2285 Add comment.
2286 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2287 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2288 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2289 (UMIN_OF_SIZE): Remove.
2290 (max_of_type): New function to replace orphan macro in gdbtypes.h
2291 (min_of_type): Ditto.
2292 (discrete_type_high_bound): Use max_of_type.
2293 (discrete_type_low_bound): Use min_of_type.
2294 (possible_user_operator_p): Move operator to beginning of line.
2295 (ada_is_variant_part): Ditto.
2296 (ensure_lval): Rewrite to avoid deprecated operations.
2297 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2298 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2299 (ada_enum_name): Remove assignments in 'if' statements.
2300 (build_ada_types): Add gdbarch parameter.
2301 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2302 with gdbarch_data_register_post_init.
2303 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2304 add_show_from_set.
2305
2306 * ada-valprint.c (inspect_it): Remove declaration.
2307 (repeat_count_threshold): Remove declaration.
2308 (ada_print_floating): Remove assignments in 'if' statements.
2309 (print_str): Move operator to beginning of line.
2310
2311 2004-07-08 Jim Blandy <jimb@redhat.com>
2312
2313 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2314
2315 2004-07-08 Bob Rossi <bob@brasko.net>
2316
2317 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2318
2319 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2320
2321 * language.h (struct_language_defn): Add new function pointer:
2322 la_class_name_from_physname. Also add new prototype for
2323 language_class_name_from_physname.
2324 * language.c (language_class_name_from_physname): New function.
2325 (unk_lang_class_name): Ditto.
2326 (unknown_language_defn, auto_language_defn): Change
2327 to add unk_lang_class_name function pointer for
2328 la_class_name_from_physname.
2329 (local_language_defn): Ditto.
2330 * dwarf2read.c (guess_structure_name): Change to call
2331 language_class_name_from_physname.
2332 (determine_class_name): Ditto.
2333 * cp-support.c (class_name_from_physname): Renamed.
2334 (cp_class_name_from_physname): New name of function.
2335 * cp-support.h: Ditto.
2336 * c-lang.c (c_language_defn): Change to add NULL
2337 for class_name_from_physname function pointer.
2338 (cplus_language_defn): Change to add cp_class_name_from_physname.
2339 * jv-lang.c (java_class_name_physname): New function.
2340 (java_find_last_component): New static routine.
2341 (java_language_defn): Add java_class_name_from_physname pointer.
2342 * ada-lang.c (ada_language_defn): Change to add NULL
2343 for class_name_from_physname function pointer.
2344 * f-lang.c (f_language_defn): Ditto.
2345 * m2-lang.c (m2_language_defn): Ditto.
2346 * objc-lang.c (objc_language_defn): Ditto.
2347 * p-lang.c (pascal_language_defn): Ditto.
2348 * scm-lang.c (scm_language_defn): Ditto.
2349
2350 2004-07-06 Andrew Cagney <cagney@gnu.org>
2351
2352 Patch from Bart Robinson.
2353 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2354 (O_LARGEFILE): Define to 0, if not defined.
2355
2356 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2357
2358 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2359 <machine/pcb.h> and "bsd-kvm.h".
2360 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2361 (m68kbsd_supply_pcb): New function.
2362 (_initialize_m68kbsd_nat): New prototype and function.
2363 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2364 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2365 (LOADLIBES): New variable.
2366 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2367 (LOADLIBES): New variable.
2368
2369 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2370
2371 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2372
2373 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2374 <sys/proc.h>.
2375 (bsd_kvm_cmdlist): New variable.
2376 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2377 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2378 command and "kvm proc" command.
2379 * Makefile.in (bsd-kvm.o): Update dependencies.
2380
2381 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2382
2383 * osabi.c: Update copyright year.
2384 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2385 notes if EI_OSABI is set to ELFOSABI_HPUX.
2386
2387 2004-07-01 Michael Snyder <msnyder@redhat.com>
2388
2389 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2390 that seems to have gotten whacked out of line.
2391
2392 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2393
2394 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2395 code.
2396
2397 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2398
2399 * ada-lang.c (decode_packed_array): Minor change to comment.
2400 (ada_value_slice_ptr): New function.
2401 (ada_value_slice): New function.
2402 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2403 test. Don't know why it is there.
2404 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2405 to avoid dereferencing huge arrays from which one is slicing.
2406 (empty_array): Correct to return an array rather than
2407 a subrange value.
2408 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2409 on empty arrays (let'em use 'FIRST instead).
2410
2411 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2412
2413 Address complaints from gdb_ari.sh:
2414
2415 * ada-exp.y: Include gdb_string.h rather than string.h.
2416 (convert_char_literal): Reformat declaration.
2417 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2418 * ada-lex.l: Change use of free to xfree (the macro would do so
2419 anyway, but this is harmless).
2420 Include gdb_string.h rather than string.h.
2421 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2422
2423 * ada-lang.c (parse): Remove K&Rism in parameter list.
2424 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2425
2426 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2427
2428 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2429 dead code.
2430
2431 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2432
2433 * alphabsd-nat.c: Update copyright year.
2434 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2435
2436 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2437
2438 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2439 (i386_cygwin_in_solib_call_trampoline): New function.
2440 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2441 and skip_trampoline_code gdbarch methods.
2442
2443 2004-06-29 Jim Blandy <jimb@redhat.com>
2444
2445 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2446 name actually used in the dependency lists.
2447
2448 2004-06-29 Randolph Chung <tausq@debian.org>
2449
2450 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2451
2452 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2453
2454 * win32-nat.c (child_pid_to_exec_file): New function.
2455 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2456 functionality.
2457
2458 2004-06-28 Andrew Cagney <cagney@gnu.org>
2459
2460 * defs.h (xstrvprintf): Declare.
2461 * utils.c (xstrvprintf): New function.
2462 (internal_vproblem, xstrprintf, xasprintf)
2463 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2464 * serial.c (serial_printf): Ditto.
2465 * complaints.c (vcomplaint): Ditto.
2466
2467 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2468
2469 * infcmd.c (attach_command): Move call to target_terminal_inferior
2470 behind loading symbol table.
2471
2472 2004-06-28 Andrew Cagney <cagney@gnu.org>
2473
2474 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2475 change - add back extern deprecated_ui_loop_hook declaration.
2476
2477 2004-06-28 Andrew Cagney <cagney@gnu.org>
2478
2479 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2480 xstrprintf.
2481 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2482 (c_value_of_variable): Ditto.
2483 * utils.c (internal_vproblem): Ditto.
2484 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2485 * remote.c (add_packet_config_cmd): Ditto.
2486 * remote-rdp.c (rdp_set_command_line): Ditto.
2487 * regcache.c (regcache_dump): Ditto.
2488 * frv-tdep.c (new_variant, new_variant): Ditto.
2489 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2490 (fbsd_find_memory_regions): Ditto.
2491 * breakpoint.c (create_thread_event_breakpoint)
2492 (create_breakpoints): Ditto.
2493 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2494 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2495
2496 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2497
2498 * ada-lang.c: Re-indent file, with some massaging to help indent
2499 a bit when the result is otherwise really too ugly.
2500
2501 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2502
2503 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2504 code_addr_p and special_addr_p to 'unsigned int'.
2505
2506 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2507
2508 * i386v4-nat.c: Update copyright year and tweak comment.
2509 (regmap): Remove trailing comma.
2510 (supply_gregset): Rename local variable i to regnum. Call
2511 regcache_raw_supply instead of supply_register.
2512 (fill_gregset): Rename argument regno to regnum. Call
2513 regcache_raw_collect instead of regcache_collect.
2514
2515 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2516
2517 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2518 and special_addr_p.
2519 (frame_id_build, frame_id_build_special): Update comments.
2520 (frame_id_build_wild): New prototype.
2521 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2522 struct frame_id fields.
2523 (frame_id_build_wild): New function.
2524 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2525
2526 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2527
2528 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2529 hppabsd-tdep.c.
2530
2531 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2532
2533 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2534
2535 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2536
2537 * ada-lang.c: Re-indent file.
2538
2539 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2540
2541 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2542 (no_symtab_msg): Likewise.
2543
2544 2004-06-27 Andreas Schwab <schwab@suse.de>
2545
2546 * source.c: Fix whitespace.
2547
2548 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2549
2550 * configure.in: Include <sys/param.h> for td_pcb test.
2551 * configure: Regenerated.
2552
2553 * i386nbsd-nat.c: New file.
2554 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2555 i386obsd-nat.c and i386obsd-tdep.c.
2556 (i386nbsd-nat.o): New dependency.
2557 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2558 bsd-kvm.o.
2559 (LOADLIBES): New variable.
2560 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2561 bsd-kvm.o.
2562 (LOADLIBES): New variable.
2563
2564 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2565 (LOADLIBES): New variable.
2566
2567 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2568 fetching from BSD_KVM_PADDR. Correctly lookup address for
2569 "_thread0".
2570
2571 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2572 "bsd-kvm.h".
2573 (amd64fbsd_supply_pcb): New funcion.
2574 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2575
2576 2004-06-27 <david@streamline-computing.com>
2577
2578 Partial fix for PR cli/1056.
2579 * valarith.c: Check for zero in division and remainder
2580 evaluation.
2581
2582 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2583
2584 * i387-tdep.c: Remove excessive whitespace.
2585
2586 2004-06-26 Andrew Cagney <cagney@gnu.org>
2587
2588 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2589 * gdb-events.h, gdb-events.c: Re-generate.
2590 * tui/tui-hooks.c (tui_install_hooks): Update.
2591 (tui_remove_hooks): Update.
2592 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2593
2594 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2595
2596 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2597 (gregset_t, fpregset_t): Remove typedefs.
2598 (REG_OFFSET): Rename argument.
2599 (amd64bsd_r_reg_offset): Rename from reg_offset.
2600 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2601 Remove functions.
2602 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2603 of reg_offset.
2604 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2605
2606 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2607
2608 * vax-tdep.c: Tweak comment.
2609
2610 Add OpenBSD/hppa support.
2611 * NEWS (New native configurations): Mention OpenBSD/hppa.
2612 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2613 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2614 files.
2615 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2616 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2617 * configure.host: Add hppa*-*-openbsd*.
2618 * configure.tgt: Add hppa*-*-openbsd*.
2619
2620 2004-06-25 Andrew Cagney <cagney@gnu.org>
2621
2622 * defs.h (deprecated_ui_loop_hook): Deprecated.
2623 * wince.c (child_wait): Update.
2624 * win32-nat.c (child_wait): Update.
2625 * v850ice.c (v850ice_wait): Update.
2626 * top.c (deprecated_ui_loop_hook): Update.
2627 * serial.h: Update.
2628 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2629 (do_unix_readchar): Update.
2630 * ser-tcp.c (net_open): Update.
2631 * remote-sim.c (gdb_os_poll_quit): Update.
2632 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2633
2634 2004-06-24 Andrew Cagney <cagney@gnu.org>
2635
2636 * defs.h (deprecated_pre_add_symbol_hook)
2637 (deprecated_post_add_symbol_hook): Deprecated.
2638 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2639 (symbol_file_add_with_addrs_or_offsets): Update references.
2640
2641 2004-06-24 Andrew Cagney <cagney@gnu.org>
2642
2643 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2644 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2645 * wince.c (ui_loop_hook): Delete extern declaration.
2646 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2647 * v850ice.c (ui_loop_hook): Delete extern declaration..
2648 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2649 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2650 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2651 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2652 ui_loop_hook declaration.
2653
2654 2004-06-24 Andrew Cagney <cagney@gnu.org>
2655
2656 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2657 entry_func_highpc fields.
2658 * objfiles.c (init_entry_point_info): Do not clear
2659 entry_func_lowpc and entry_func_highpc.
2660 (objfile_relocate): Do not relocate entry_func_lowpc and
2661 entry_func_highpc.
2662 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2663 entry_func_highpc.
2664 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2665 entry_func_highpc.
2666 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2667 entry_func_lowpc and entry_func_highpc with call to
2668 inside_entry_func.
2669
2670 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2671
2672 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2673 quad-precision floating point arguments in registers.
2674
2675 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2676
2677 From Michael Mueller <m.mueller99@kay-mueller.de>:
2678 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2679 account.
2680
2681 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2682
2683 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2684 to -1.
2685 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2686 untriggered watchpoints to a separate if clause. Update function
2687 comment regarding STOPPED_BY_WATCHPOINT argument.
2688
2689 2004-06-22 Jim Blandy <jimb@redhat.com>
2690
2691 * gdbarch.sh: Doc fix.
2692
2693 2004-06-21 Martin Hunt <hunt@redhat.com>
2694 Kevin Buettner <kevinb@redhat.com>
2695
2696 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2697 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2698 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2699 to set_gdbarch_sp_regnum(). Use cooked register number.
2700 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2701
2702 2004-06-21 Andrew Cagney <cagney@gnu.org>
2703
2704 * gdbarch.sh: When the macro field is empty, do not generate a
2705 macro definition. When the macro field is "=", generate the macro
2706 name from the upper-case function name.
2707 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2708 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2709 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2710 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2711 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2712 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2713 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2714 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2715 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2716 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2717 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2718 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2719 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2720 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2721 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2722 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2723 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2724 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2725 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2726 (DEPRECATED_USE_STRUCT_CONVENTION)
2727 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2728 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2729 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2730 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2731 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2732 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2733 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2734 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2735 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2736 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2737 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2738 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2739 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2740 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2741 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2742 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2743 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2744 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2745
2746 2004-06-21 Andrew Cagney <cagney@gnu.org>
2747
2748 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2749 macro name, and the function rather than macro value. Only wrap
2750 macro print statements in #ifdef. Move format logic to where it
2751 is needed.
2752 * gdbarch.c: Re-generate.
2753
2754 * gdbarch.sh (read): Delete "print_p" and "description", add
2755 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2756 Delete references to print_p.
2757 (TARGET_ARCHITECTURE): Delete print predicate.
2758 * gdbarch.c: Re-generate.
2759
2760 * gdbarch.sh: Check that multi-arch methods do not provide a
2761 macro.
2762 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2763 (print_registers_info, print_float_info, print_vector_info)
2764 (adjust_breakpoint_address, remote_translate_xfer_address)
2765 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2766 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2767 name from the multi-arch definition.
2768
2769 2004-06-20 Andrew Cagney <cagney@gnu.org>
2770
2771 * gdbarch.sh: Sort by the function, instead of macro name.
2772 * gdbarch.c: Re-generate.
2773
2774 2004-06-20 Andrew Cagney <cagney@gnu.org>
2775
2776 * gdbarch.sh: Use the function, instead of macro name in
2777 errors and the log file.
2778 (return_value): Remove stray ":" in spec.
2779
2780 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2781 * gdbarch.h, gdbarch.c: Re-generate.
2782 * Makefile.in (arch-utils.o): Update dependencies.
2783 * values.c (using_struct_return): Move code calling
2784 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2785 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2786 to legacy_return_value, simplify.
2787 * infcmd.c (print_return_value): Move code calling
2788 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2789 to legacy_return_value, simplify.
2790 * infcall.c (call_function_by_hand): Move code calling
2791 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2792 * arch-utils.c: Update copyright. Include "gdbcore.h".
2793 (legacy_return_value): New function.
2794 * arch-utils.h: Update copyright.
2795 (legacy_return_value): Declare.
2796
2797 2004-06-20 Andrew Cagney <cagney@gnu.org>
2798
2799 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2800 * gdbarch.h, gdbarch.c: Re-generate.
2801 * values.c (using_struct_return): Update call.
2802 * mcore-tdep.c: Update comment.
2803 * infcall.c (call_function_by_hand): Update comment.
2804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2805 * arch-utils.h (always_use_struct_convention): Update.
2806 * v850-tdep.c (v850_gdbarch_init): Update.
2807 * sh64-tdep.c (sh64_gdbarch_init): Update.
2808 * sh-tdep.c (sh_gdbarch_init): Update.
2809 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2810 * mips-tdep.c (mips_gdbarch_init): Update.
2811 * mcore-tdep.c (mcore_gdbarch_init): Update.
2812 * m32r-tdep.c (m32r_gdbarch_init): Update.
2813 * ia64-tdep.c (ia64_gdbarch_init): Update.
2814 * h8300-tdep.c (h8300_gdbarch_init): Update.
2815 * frv-tdep.c (frv_gdbarch_init): Update.
2816 * cris-tdep.c (cris_gdbarch_init): Update.
2817 * arm-tdep.c (arm_gdbarch_init): Update.
2818 * alpha-tdep.c (alpha_gdbarch_init): Update.
2819
2820 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2821
2822 * PROBLEMS: Add more specific information, and a work-around,
2823 for PR gdb/1458.
2824
2825 2004-06-18 Andrew Cagney <cagney@gnu.org>
2826
2827 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2828 * gdbarch.h, gdbarch.c: Re-generate.
2829 * ada-lang.c (ada_finish_decode_line_1): Update.
2830 * infrun.c (handle_inferior_event): Update.
2831 * infcall.c (find_function_addr): Update.
2832 * linespec.c (minsym_found): Update.
2833 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2834 Update.
2835 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2836 * cli/cli-cmds.c (disassemble_command): Update.
2837 * vax-tdep.c (vax_gdbarch_init): Update.
2838
2839 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2840
2841 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2842
2843 2004-06-17 Andrew Cagney <cagney@gnu.org>
2844
2845 GDB 6.1.1 released from the GDB 6.1 branch.
2846 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2847 * PROBLEMS: Ditto.
2848
2849 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2850
2851 PR gdb/1658
2852 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2853 operation as a uleb128. Found by Michael Coulter.
2854
2855 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2856
2857 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2858 make it non-static.
2859 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2860 to ada-lang.h; this is needed to be able to implement the kill command
2861 in multi-task mode.
2862 (task_ptid): Ditto.
2863 (task_entry): Ditto.
2864 (task_list): Ditto.
2865 (ada_build_task_list): Ditto.
2866
2867 * ada-lang.c: Conditionalize routines and data structures related
2868 to breakpoints, exceptions, completion, and symbol caching on
2869 GNAT_GDB, since these are not yet used in the submitted public sources.
2870 (ada_main_name): Editorial: Move definition out of exception-related
2871 code.
2872
2873 2004-06-15 Andrew Cagney <cagney@gnu.org>
2874
2875 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2876 deprecated_pc_in_call_dummy.
2877
2878 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2879
2880 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2881 bfd_get_section_size_before_reloc or _raw_size.
2882 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2883 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2884 (dwarf2_read_section): Likewise.
2885 * elfread.c (elf_locate_sections): Likewise.
2886 * gcore.c (derive_heap_segment): Likewise.
2887 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2888 * remote-e7000.c (e7000_load): Likewise.
2889 * remote-m32r-sdi.c (m32r_load): Likewise.
2890 * remote-mips.c (mips_load_srec): Likewise.
2891 (pmon_load_fast): Likewise.
2892 * remote.c (compare_sections_command): Likewise.
2893 * symfile.c (add_section_size_callback): Likewise.
2894 (load_section_callback): Likewise.
2895 (pc_in_unmapped_range): Likewise.
2896 (pc_in_mapped_range): Likewise.
2897 (sections_overlap): Likewise.
2898 (list_overlays_command): Likewise.
2899 (simple_overlay_update_1): Likewise.
2900 (simple_overlay_update): Likewise.
2901 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2902 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2903
2904 2004-06-14 Randolph Chung <tausq@debian.org>
2905
2906 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2907 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2908 static.
2909 (hppa_hpux_inferior_created): New function.
2910 (hppa_hpux_init_abi): Register observer.
2911 * symfile.c (hp_cxx_exception_support_initialized)
2912 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2913 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2914
2915 2004-06-14 Randolph Chung <tausq@debian.org>
2916
2917 * MAINTAINERS (Write After Approval): Alphabetize my entry
2918 correctly.
2919
2920 2004-06-14 Andrew Cagney <cagney@gnu.org>
2921
2922 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2923 testsuite maintainer.
2924
2925 2004-06-13 Andrew Cagney <cagney@gnu.org>
2926
2927 * infcmd.c (print_return_value): Fix logic, allow
2928 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2929
2930 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2931 defining any macros.
2932 * gdbarch.h: Re-generate.
2933
2934 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2935 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2936 * gdbarch.h: Re-generate.
2937
2938 * values.c (generic_use_struct_convention): Don't check gcc_p.
2939
2940 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2941 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2942 * gdbarch.h, gdbarch.c: Regenerate.
2943 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2944 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2945 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2946 deprecated_max_register_raw_size and
2947 deprecated_max_register_virtual_size.
2948 * v850-tdep.c (v850_gdbarch_init): Ditto.
2949 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2950 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2951 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2952 * cris-tdep.c (cris_gdbarch_init): Ditto.
2953
2954 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2955 * gdbarch.h, gdbarch.c: Re-generate.
2956 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2957 (m68hc11_use_struct_convention): Delete function.
2958 (m68hc11_extract_struct_value_address): Delete function.
2959 (m68hc11_return_value): New function.
2960 (m68hc11_gdbarch_init): Instead of store_return_value,
2961 extract_return_value, return_value_on_stack,
2962 deprecated_extract_struct_value_address and use_struct_convention,
2963 set return_value.
2964 * values.c (using_struct_return): Do not call
2965 RETURN_VALUE_ON_STACK.
2966 * arch-utils.h (generic_return_value_on_stack_not): Delete
2967 declaration.
2968 * arch-utils.c (generic_return_value_on_stack_not): Delete
2969 function.
2970
2971 2004-06-12 Andrew Cagney <cagney@gnu.org>
2972
2973 * values.c (register_value_being_returned): Delete function.
2974 * infcmd.c (legacy_return_value): Delete function.
2975 * infcall.c (call_function_by_hand): Inline
2976 "register_value_being_returned", simplify.
2977 * values.c (using_struct_return): Update comment, refer to
2978 print_return_value instead of register_value_being_returned.
2979 * infcmd.c (print_return_value): Inline calls to
2980 register_value_being_returned and legacy_return_value. Simplify.
2981
2982 2004-06-11 Randolph Chung <tausq@debian.org>
2983
2984 * somread.c (som_symtab_read): Exclude gcc local symbols.
2985
2986 2004-06-11 Randolph Chung <tausq@debian.org>
2987
2988 * infrun.c (handle_inferior_event): Handle the case when a
2989 trampoline ends up in the runtime resolver, and if the trampoline
2990 has no name. Rearrange the code so that all the trampoline
2991 processing happens before other step-out-of-range handling.
2992
2993 2004-06-11 Martin Hunt <hunt@redhat.com>
2994
2995 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2996 has no fpu.
2997
2998 2004-06-10 Andrew Cagney <cagney@gnu.org>
2999
3000 * blockframe.c (legacy_inside_entry_func): Delete.
3001 (legacy_frame_chain_valid): Inline call to
3002 legacy_inside_entry_func, simplify.
3003
3004 2004-06-10 Bob Rossi <bob@brasko.net>
3005
3006 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3007 * dwarf2read.c (partial_die_info): Add dirname field.
3008 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3009 (read_partial_die): Save away DW_AT_comp_dir.
3010 * defs.h (symtab_to_filename): Removed.
3011 * source.c (find_and_open_source): Added.
3012 (open_source_file): Just calls find_and_open_source.
3013 (symtab_to_filename): Removed.
3014 (symtab_to_fullname, psymtab_to_fullname): Added.
3015 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3016 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3017 symtab_to_filename.
3018 * symtab.h (partial_symtab): Add dirname field.
3019 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3020 (mi_cmd_file_list_exec_source_file): Call new function
3021 symtab_to_fullname to find fullname.
3022 (mi_cmd_file_list_exec_source_files): Added.
3023 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3024 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3025
3026 2004-06-10 Andrew Cagney <cagney@gnu.org>
3027
3028 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3029 to generic_use_struct_convention, the default value.
3030
3031 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3032 of abort.
3033
3034 * ns32k-tdep.c (ns32k_push_arguments): New function.
3035 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3036 * infcall.c (call_function_by_hand): Call error instead of
3037 legacy_push_arguments.
3038 * value.h (legacy_push_arguments): Delete declaration.
3039 * valops.c (legacy_push_arguments): Delete function.
3040 (value_push): Delete function.
3041
3042 2004-06-10 Brian Ford <ford@vss.fsi.com>
3043
3044 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3045 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3046 info.
3047 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3048
3049 2004-06-10 Andrew Cagney <cagney@gnu.org>
3050
3051 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3052 * gdbarch.h, gdbarch.c: Re-generate.
3053 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3054 parameters.
3055 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3056 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3057 deprecated_pc_in_call_dummy instead of
3058 DEPRECATED_PC_IN_CALL_DUMMY.
3059 (arm_skip_prologue): Ditto.
3060 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3061 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3062 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3063 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3064 Ditto.
3065 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3066 (sh64_init_extra_frame_info, sh64_get_saved_register)
3067 (sh64_pop_frame): Ditto.
3068 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3069 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3070 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3071 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3072 (h8300_pop_frame): Ditto.
3073 * blockframe.c (legacy_inside_entry_func)
3074 (legacy_frame_chain_valid): Ditto.
3075 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3076 to deprecated_pc_in_call_dummy.
3077
3078 2004-06-09 Andrew Cagney <cagney@gnu.org>
3079
3080 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3081 provide a default value.
3082 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3083 * gdbarch.h, gdbarch.c: Re-generate.
3084 * arch-utils.c (generic_convert_register_p): Rename
3085 legacy_convert_register_p
3086 (legacy_register_to_value, legacy_value_to_register): Delete
3087 functions.
3088 * arch-utils.h (generic_convert_register_p): Rename
3089 legacy_convert_register_p.
3090 (legacy_register_to_value, legacy_value_to_register): Delete
3091 declarations.
3092
3093 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3094 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3095 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3096 * gdbarch.h, gdbarch.c: Re-generate.
3097 * infcmd.c (default_print_registers_info): Simplify.
3098 * findvar.c (value_of_register): Simplify.
3099 * mi/mi-main.c (get_register): Simplify.
3100 * arch-utils.c (legacy_convert_register_p): Always return 0.
3101 (legacy_register_to_value, legacy_value_to_register): Always call
3102 internal_error.
3103
3104 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3105 #ifdef CLEAR_INSN_CACHE code.
3106 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3107 Delete #ifdef CLEAR_DEFERRED_STORES code.
3108
3109 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3110
3111 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3112 copyright.
3113 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3114
3115 * config/mips/mipsv4.mh: Delete file.
3116
3117 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3118 unreferenced macro.
3119 (hpread_adjust_stack_address): Delete declaration.
3120
3121 2004-06-08 Andrew Cagney <cagney@gnu.org>
3122
3123 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3124 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3125 PTRACE_ATTACH / PTRACE_DETACH available call error.
3126 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3127 * infttrace.c (update_thread_state_after_attach, attach, detach):
3128 Remove #ifdef wrappers.
3129 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3130 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3131 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3132 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3133 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3134 * config/nm-linux.h (ATTACH_DETACH): Delete.
3135 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3136 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3137 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3138 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3139 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3140
3141 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3142
3143 * configure.in: Set $configdir to the right OS specific value.
3144 Use value when setting $tcldir and $tkdir.
3145 * configure: Regenerate.
3146
3147 2004-06-06 Paul Brook <paul@codesourcery.com>
3148
3149 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3150 records.
3151
3152 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3153
3154 * ada-lang.c (lookup_symbol_in_language): New function to allow
3155 re-use of another language's symbol lookup code. (Placed here
3156 temporarily while Ada support is being integrated into the public
3157 tree).
3158 (restore_language): New auxiliary function for
3159 lookup_symbol_in_language.
3160 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3161 temporarily while Ada support is being integrated into the public
3162 tree).
3163
3164 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3165
3166 * Makefile.in (check//%): New.
3167
3168 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3169 (mn10300_store_return_value): Rewrite.
3170 (mn10300_type_align): New.
3171 (mn10300_use_struct_convention): Rewrite.
3172 (mn10300_return_value): New, using all of the above.
3173 (mn10300_pop_frame_regular): Add saved_regs_size.
3174 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3175
3176 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3177 regs if PC is on movm.
3178
3179 2004-06-07 Jim Blandy <jimb@redhat.com>
3180
3181 Add native Linux support for the PowerPC E500.
3182 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3183 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3184 all architectures except the E500.
3185 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3186 #definitions.
3187 (struct gdb_evrregset_t): New type.
3188 (have_ptrace_getsetevrregs): New variable.
3189 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3190 fetch_spe_registers): New functions.
3191 (fetch_register): Call fetch_spe_register as appropriate.
3192 Assert that we're only passed raw register numbers.
3193 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3194 Don't fetch gprs if they're pseudoregisters.
3195 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3196 store_spe_registers): New functions.
3197 (store_register): Call store_spe_register as appropriate.
3198 Assert that we're only passed raw register numbers.
3199 (store_ppc_registers): Call store_spe_registers as appropriate.
3200 Don't store gprs if they're pseudoregisters.
3201
3202 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3203
3204 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3205 struct if one exists, even if we are dealing with a zombie thread.
3206
3207 2004-06-07 Andrew Cagney <cagney@gnu.org>
3208
3209 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3210 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3211 Rename PC_REQUIRES_RUN_BEFORE_USE.
3212 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3213 #ifdef.
3214
3215 2004-06-07 Randolph Chung <tausq@debian.org>
3216
3217 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3218 unwinding after sp has been saved to the stack but before the end
3219 of the prologue, and after the fp has been modified but before it has
3220 been saved to the stack.
3221 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3222 Remove superfluous definitions.
3223 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3224
3225 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3226
3227 Committed by Randolph Chung.
3228 * hppa-linux-nat.c: Include the correct version of the header file
3229 depending on the kernel version.
3230
3231 2004-06-06 Randolph Chung <tausq@debian.org>
3232
3233 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3234 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3235
3236 2004-06-06 Randolph Chung <tausq@debian.org>
3237
3238 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3239 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3240 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3241 * hppa-tdep.c (hppa_symbol_address): New function definition.
3242 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3243
3244 2004-06-06 Randolph Chung <tausq@debian.org>
3245
3246 * hppa-tdep.h (struct value): Forward declaration.
3247 (gdbarch_tdep): Define tdep find_global_pointer method.
3248 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3249 associated with the function we are trying to call, and write it
3250 to the gp register.
3251 (hppa32_convert_from_funct_ptr_addr): New function.
3252 (hppa_find_global_pointer): New function.
3253 (hppa_gdbarch_init): Set default find_global_pointer method; set
3254 convert_from_func_ptr_addr method.
3255 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3256 (hppa_linux_init_abi): Set find_global_pointer method.
3257 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3258
3259 2004-06-06 Randolph Chung <tausq@debian.org>
3260
3261 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3262 to struct value *function.
3263 * gdbarch.c: Regenerate.
3264 * gdbarch.h: Likewise.
3265 * infcall.c (call_function_by_hand): Pass entire function value
3266 to push_dummy_call.
3267
3268 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3269 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3270 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3271 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3272 * arm-tdep.c (arm_push_dummy_call): Likewise.
3273 * avr-tdep.c (avr_push_dummy_call): Likewise.
3274 * cris-tdep.c (cris_push_dummy_call): Likewise.
3275 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3276 * frv-tdep.c (frv_push_dummy_call): Likewise.
3277 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3278 * hppa-tdep.c (hppa32_push_dummy_call)
3279 (hppa64_push_dummy_call): Likewise.
3280 * i386-tdep.c (i386_push_dummy_call): Likewise.
3281 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3282 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3283 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3284 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3285 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3286 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3287 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3288 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3289 (ppc64_sysv_abi_push_dummy_call): Likewise.
3290 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3291 (ppc64_sysv_abi_push_dummy_call): Likewise.
3292 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3293 * s390-tdep.c (s390_push_dummy_call): Likewise.
3294 * sh-tdep.c (sh_push_dummy_call_fpu)
3295 (sh_push_dummy_call_nofpu): Likewise.
3296 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3297 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3298 * vax-tdep.c (vax_push_dummy_call): Likewise.
3299
3300 2004-06-04 Jim Blandy <jimb@redhat.com>
3301
3302 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3303 gdbarch argument to register_size.
3304
3305 * rs6000-tdep.c (rs6000_store_return_value): Use
3306 regcache_cooked_write_part instead of
3307 deprecated_write_register_bytes.
3308 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3309 not gdbarch_deprecated_store_return_value.
3310
3311 * ppc-linux-nat.c (store_register, fetch_register): Remove
3312 incorrect assertions. Simplify and generalize handling of
3313 transfers whose sizes are not multiples of, or less than, sizeof
3314 (PTRACE_XFER_TYPE).
3315
3316 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3317
3318 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3319 as a new thread event.
3320 * thread-db.c (thread_get_info_callback): If the thread is a
3321 zombie, return TD_THR_ZOMBIE.
3322 (thread_from_lwp): If thread_get_info_callback returns
3323 TD_THR_ZOMBIE, check if the thread is still on the thread list
3324 and return a -1 ptid if not found.
3325 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3326 change the status to TARGET_WAITKIND_SPURIOUS.
3327
3328 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3329
3330 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3331 double values in little endian mode.
3332
3333 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3334
3335 Committed by Andrew Cagney.
3336 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3337 after last enum constant to avoid error from IBM C
3338 compiler.
3339
3340 2004-06-02 Jim Blandy <jimb@redhat.com>
3341
3342 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3343 to 'message', and make it local to the lone block that uses it.
3344
3345 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3346
3347 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3348
3349 * ada-exp.y: Update copyright notice.
3350 Include block.h.
3351
3352 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3353 SPECIAL_VARIABLE and unify the treatment of these cases.
3354
3355 (write_attribute_call0): Remove.
3356 (write_attribute_call1): Remove.
3357 (write_attribute_calln): Remove.
3358 (save_qualifier): Add missing semicolon.
3359
3360 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3361 temporarily disabled to allow compilation with FSF head version.
3362
3363 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3364 use individual operators (OP_*) for all attributes.
3365 (exp syntax): Use write_int.
3366 Handle STRING literals with OP_STRING.
3367 (variable syntax): Add limit parameter to calls to
3368 write_object_renaming.
3369
3370 (temp_parse_space): New definition to hold entities that need
3371 only live until the next call to ada_parse.
3372 (string_to_operator): Rename fields of ada_opname_table entries.
3373
3374 (write_var_from_sym): Record block.
3375 (write_var_from_name): Minor reformatting.
3376 Make sure saved name is properly encoded in the case of multiple
3377 matches, and set its language to Ada.
3378 Update comment.
3379 Modify to indicate unresolved name as symbol in the UNRESOLVED
3380 namespace, allocated in temp_parse_space.
3381 (write_int): New function.
3382
3383 (write_object_renaming): Add max_depth parameter to limit
3384 chains of object renamings.
3385 Handle case where root of renaming expression is itself a renaming.
3386 Use temp_parse_space for temporary name buffer.
3387 Handle renamings to dereferenced pointers (___XEXA suffices).
3388
3389 (ada_parse, yyerror, string_to_operator,
3390 write_var_from_sym, write_var_from_name, write_attribute_call0,
3391 write_attribute_call1, write_attribute_calln,
3392 write_object_renaming): Protoize.
3393
3394 (_initialize_ada_exp): New function.
3395
3396 * ada-lang.c: Update copyright notice.
3397 General terminology change to conform to GNAT compiler usage:
3398 mangle => encode, demangle => decode
3399 Include gdb_obstack.h.
3400 Include gdb_regex.h
3401 Include frame.h
3402 Include hashtab.h
3403 Include completer.h
3404 Include gdb_stat.h
3405 Include block.h
3406 Include infcall.h
3407
3408 (ADA_RETAIN_DOTS): Make sure this is defined.
3409 (TRUNCATION_TOWARDS_ZERO): Define.
3410 (struct string_vector): Define.
3411 (unresolved_names): Remove definition.
3412 (xnew_string_vector): New function.
3413 (string_vector_append): New function.
3414 (extract_string): Make static.
3415 (ada_unqualified_name): New function.
3416 (add_angle_brackets): New function.
3417 (function_name_from_pc): New function.
3418 (place_on_stack): Rename to ensure_lval.
3419
3420 (ensure_lval): Renamed from place_on_stack.
3421 Make identity on lvals.
3422 Update comment.
3423 (is_nonfunction): New interface.
3424 Only symbols in LOC_CONST class can be enumerals.
3425 (fill_in_ada_prototype): Remove; now independent of language.
3426 (add_defn_to_vec): Add obstack and symtab arguments.
3427 Use obstack to hold collected definitions.
3428 (num_defns_collected): New function.
3429 (defns_collected): New function.
3430 (ada_resolve_subexp): Rename to resolve_subexp.
3431 (resolve_subexp): Renamed from ada_resolve_subexp.
3432 (ada_op_name): Return non-const result.
3433 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3434 other purposes.
3435
3436 (to_fixed_array_type): Add declaration.
3437 (coerce_unspec_val_to_type): Remove offset parameter.
3438 (find_sal_from_funcs_and_line): New interface.
3439 (find_line_in_linetable): Ditto.
3440
3441 (all_sals_for_line): Rename to ada_sals_for_line and make
3442 global.
3443 Add new parameter. When set, do not ask the user to choose the
3444 instance, but use the first one found instead.
3445 Use given line number in returned sals.
3446 Fix comment.
3447 Skip the prologue if funfirstline is set.
3448 Correct for memory leak when 0 lines found.
3449
3450 (value_pos_atr): Use pos_atr.
3451 (pos_atr): New function.
3452 (standard_lookup): Add block parameter.
3453
3454 (makeTimeStart): Remove declaration and uses.
3455 (makeTimeStop): Remove declaration and uses.
3456
3457 (ada_completer_word_break_characters): Allow for VMS.
3458 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3459 (raise_sym_name): New constant.
3460 (raise_unhandled_sym_name): New constant.
3461 (raise_assert_sym_name): New constant.
3462 (process_raise_exception_name): New constant.
3463 (longest_exception_template): New constant.
3464 (warning_limit): New variable to limit warnings during expression
3465 evaluation.
3466 (warnings_issued): New variable to keep track of warnings issued.
3467 (known_runtime_file_name_patterns): New constant.
3468 (known_auxiliary_function_name_patterns): New constant.
3469 (symbol_list_obstack): New variable.
3470
3471 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3472 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3473 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3474 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3475 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3476 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3477 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3478 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3479 and strcmp.
3480
3481 (ada_get_field_index): New function.
3482 (lim_warning): New function.
3483 (ada_translate_error_message): New function.
3484 (MAX_OF_SIZE): New function.
3485 (MIN_OF_SIZE): New function.
3486 (UMAX_OF_SIZE): New function.
3487 (UMIN_OF_SIZE): New function.
3488 (discrete_type_high_bound): New function.
3489 (discrete_type_low_bound): New function.
3490 (base_type): New function.
3491 (do_command): Remove.
3492
3493 (ada_update_initial_language): Use language_ada, not language_unknown.
3494 (ada_encode): Renamed from ada_mangle.
3495 Obey ADA_RETAIN_DOTS.
3496 (ada_decode): Renamed from ada_demangle.
3497 Update coding conventions.
3498 (decoded_names_store): New hash table.
3499 (ada_decode_symbol): New function.
3500 (ada_la_decode): New function.
3501
3502 (modify_general_field): Correct computations of offset and bit
3503 position.
3504 (desc_base_type): Handle ref types, too.
3505 (ada_is_direct_array_type): New function.
3506
3507 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3508 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3509 (ada_is_bogus_array_descriptor,ada_type_of_array,
3510 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3511 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3512 ada_is_array_descriptor_type.
3513
3514 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3515 (ada_is_packed_array_type): Handle pointers or
3516 references to packed arrays as well.
3517 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3518 (decode_packed_array_type): Search for the packed array type
3519 symbol in the currently selected block and associated
3520 superblocks too.
3521 Use lookup_symbol again.
3522
3523 (decode_packed_array): Handle pointers and references.
3524 Update call to coerce_unspec_val_to_type.
3525 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3526 (ada_value_primitive_packed_val): Improve comment.
3527
3528 (ada_index_type): Substitute int type for "undefined".
3529 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3530 ada_array_langth, ada_is_string_type): Use renamed
3531 ada_is_simple_array_type.
3532 (empty_array): New function.
3533
3534 (ada_resolve): Rename to resolve.
3535 (resolve): Make static.
3536 Call renamed resolve_subexp.
3537 Update comment.
3538 (ada_resolve_subexp): Rename to resolve_subexp.
3539 (resolve_subexp): Update comment.
3540 Decomment disabled code.
3541 Add LOC_COMPUTED* cases.
3542 Modify to use temporary struct symbols (marked as being in
3543 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3544 OP_UNRESOLVED_VALUE.
3545 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3546 Add OP_STRING case.
3547 Remove OP_ARRAY.
3548 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3549 Use new ada_lookup_symbol_list interface.
3550 Use new ada_resolve_function interface.
3551 Remove OP_TYPE case.
3552
3553 (ada_args_match): Idiot proof against null actuals.
3554 Use intermediate variables to clarify.
3555 (ada_resolve_function): Update comment and interface.
3556 (mangled_ordered_before): Rename to encoded_ordered_before and
3557 update comment.
3558 (sort_choices): Update comment and interface.
3559 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3560 (user_select_syms): New interface.
3561 Use new sort_choices interface.
3562 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3563 (possible_user_operator_p): Idiot-proof against null values.
3564 (ada_simple_renamed_entity): Don't make cleanup; rely on
3565 caller to free result string.
3566 Remove const from return type.
3567 (make_array_descriptor): Rename uses of place_on_stack to
3568 ensure_lval.
3569 Make sure that arrays are on stack.
3570
3571 (HASH_SIZE): Define.
3572 (struct cache_entry): Define.
3573 (cache_space): Define.
3574 (cache): Define.
3575 (clear_ada_sym_cache): New function.
3576 (find_entry): New function.
3577 (lookup_cached_symbol): New function.
3578 (defn_vector_size): Define.
3579 (cache_symbol): New function.
3580 (defn_symbols): Remove.
3581
3582 (standard_lookup): Use lookup_symbol_in_language to get effect of
3583 C lookup.
3584 Cache results.
3585
3586 (symbol_completion_match): New function.
3587 (symbol_completion_add): New function.
3588 (ada_make_symbol_completion_list): New function.
3589
3590 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3591 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3592 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3593 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3594
3595 (ada_lookup_simple_minsym): New function.
3596 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3597
3598 (add_symbols_from_enclosing_procs): New interface.
3599 Conditionalize more helpfully.
3600 Don't bother if program isn't running.
3601 Use new interface to get_frame_block.
3602 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3603
3604 (remove_extra_symbols): New interface.
3605 (xget_renaming_scope): New function.
3606 (is_package_name): New function.
3607 (renaming_is_visible): New function.
3608 (remove_out_of_scope_renamings): New function.
3609
3610 (ada_lookup_symbol_list): New interface.
3611 Properly reinitialize the symbol list obstack.
3612 Don't call add_symbols_from_enclosing_procs if we start from a
3613 static or global block.
3614 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3615 add_symbols_from_enclosing_procs.
3616 Add symtab data to cached entries.
3617 Handle symbols prefixed with
3618 "standard__" specially; strip prefix and don't look in local symbols.
3619 Do not include out of scope renaming symbols in list of
3620 symbols returned.
3621 Add const to block parameter.
3622 Move check for non-local, non-global symbols earlier.
3623 Remove timing stuff.
3624 (ada_lookup_symbol): New interface.
3625 Find symtab as well.
3626 (ada_lookup_symbol_nonlocal): New function.
3627
3628 (is_name_suffix): Enhance suffix detection to recognize
3629 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3630 (is_dot_digits_suffix): New function.
3631 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3632
3633 (ada_add_block_symbols): New interface. Use obstack to return results
3634 in a vector of struct ada_symbol_infos. Add symtab argument.
3635 Use new interface to add_defn_to_vec.
3636 Remove calls to fill_in_ada_prototype.
3637 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3638
3639 (ada_finish_decode_line_1): Add const qualification to local to fix
3640 warning.
3641 Start looking in static block for functions to avoid attempts
3642 to search frame chain for up-level variables.
3643 Adapt to new ada_sals_for_line interface.
3644 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3645 Handle quoting of the function name inside the spec string.
3646 Skip prologue when funfirstline is set and update the
3647 function documentation to that effect.
3648
3649 (debug_print_lines, debug_print_block, debug_print_blocks,
3650 debug_print_symtab): Remove.
3651
3652 (ada_main_name): New function.
3653 (ada_exception_breakpoint_type): New function.
3654 (is_known_support_routine): New function.
3655 (ada_find_printable_frame): Renamed from find_printable_frame and made
3656 global.
3657 Remove level parameter.
3658 Use new interface to select_frame.
3659
3660 (begin_command): Remove.
3661 (ada_adjust_exception_stop): New function.
3662 (ada_print_exception_stop): New function.
3663 (exception_name_from_cond): New function.
3664 (ada_report_exception_break): Replace disabled code with
3665 conditionalization on GNAT_GDB.
3666 Get the exception name from the condition string.
3667 Remove and move functionality into new functions
3668 ada_print_exception_breakpoint_task and
3669 ada_print_exception_breakpoint_nontask.
3670 (error_breakpoint_runtime_sym_not_found): New function.
3671 (is_runtime_sym_defined): New function.
3672 (ada_breakpoint_rewrite): Uncomment suppressed code.
3673 Use symbolic error-message and runtime-symbol names.
3674 Surround runtime symbol names in quotes.
3675 Allow non-specific breakpoints on exceptions and assertions before
3676 program starts.
3677
3678 (ada_is_tagged_type): Add parameter.
3679 (ada_is_tag_type): New function.
3680 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3681 (ada_variant_discrim_type): Ditto.
3682 (value_tag_from_contents_and_address): New function.
3683 (type_from_tag): New function.
3684 (struct tag_args): New structure used to communicate with
3685 ada_tag_name_1.
3686 (ada_tag_name_1): New function.
3687 (ada_tag_name): New function.
3688
3689 (ada_scan_number): Update comment.
3690 (find_struct_field): New function.
3691 (ada_search_struct_field): Make static.
3692 (ada_value_struct_elt): New version that returns references when
3693 given pointers or references to structs.
3694 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3695 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3696 interface.
3697 (ada_value_ind): Use new ada_to_fixed_value interface.
3698 (ada_coerce_ref): Ditto.
3699 (field_offset): Remove.
3700
3701 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3702 (ada_find_renaming_symbol): New function.
3703 (ada_prefer_type): Prefer named types over unnamed ones.
3704 (variant_field_index): New function.
3705 (contains_variant_part): Removed: subsumed by variant_field_index.
3706 (ada_template_to_fixed_record_type): New function, mostly from
3707 template_to_fixed_record_type.
3708 (template_to_fixed_record_type):
3709 Do not scan the type fields beyond the last one; prevents a
3710 potential SEGV.
3711 Handle case where variant field is listed BEFORE discriminant it
3712 depends on.
3713 Fix calculation of record length when bit length is
3714 not evenly divisible by char length.
3715 Move code to ada_template_to_fixed_record_type and call it.
3716
3717 (template_to_static_fixed_type): Revise comment.
3718 Modify to work on ordinary record types as well as templates,
3719 so as to handle fields that use ___XVE or ___XVU encodings.
3720 (to_record_with_fixed_variant_part): Fill out comment.
3721 Initialize C++ stuff in right type.
3722 Allow case where DVAL is null.
3723 Handle case where variant field is not last.
3724 Fix typo concerning record length.
3725 (to_fixed_record_type): Decomment disabled code.
3726 (to_fixed_record_type): Use variant_field_index instead of
3727 contains_variant_part.
3728 (to_fixed_variant_branch_type): Ditto.
3729 (to_fixed_array_type): Decomment disabled code.
3730 (ada_to_fixed_type): Convert tagged types to the specific type.
3731 Deactivate the size-check for array types in order to avoid
3732 some false size alarms.
3733 (to_static_fixed_type): Decomment disabled code.
3734 Modify to call template_to_static_fixed_type
3735 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3736 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3737 Remove valaddr argument, as it is never really used.
3738 (ada_to_fixed_value): Change interface to act on single struct value*
3739 operand.
3740 (adjust_pc_past_prologue): New function.
3741 (ada_attribute_name): Modify to take enum exp_opcode argument.
3742
3743 (ada_enum_name): Recognize new homonym-distinguishing convention.
3744 Adjust local variable's type to remove compiler warning.
3745 Fix a small problem in the part that unqualifies the enumeration name.
3746 (ada_value_binop): New function.
3747 (ada_value_equal): New function.
3748
3749 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3750 Don't give error message when not doing normal evaluation
3751 and a tagged type doesn't seem to contain a structure member.
3752 Give error message for packed arrays.
3753 For indexing arrays, handle pointers to packed arrays correctly.
3754 Handle case of 'first and 'last attributes of bare integral type
3755 without encoded subtype info.
3756 Remove some unnecessary casts.
3757 Fix uninitialized value of type in computing 'first, 'last, or 'length
3758 of array object.
3759 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3760 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3761 calls.
3762 Attributes are now exp_opcode values.
3763 Correct treatment of 'modulus.
3764 Better error message for taking 'length of wrong kind of type;
3765 improve comment.
3766 Change EVAL_NORMAL to noside for consistency.
3767 Use ada_value_binop for DIV, MOD, REM.
3768 Make special case out of array of length 0, since an argument
3769 of 0 upsets some platforms' malloc.
3770 Use OP_STRING instead of OP_ARRAY.
3771 For slice, add check that we have an array type before extracting
3772 a slice out of it. Avoids a SEGV.
3773 When evaluating an array slice, if the array type is a reference to
3774 an aligner type, then replace the aligner type by the actual type.
3775 Decomment disabled code.
3776 Remove some dead code.
3777 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3778 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3779 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3780 and UNOP_MBR to UNOP_IN_RANGE.
3781 If an array type has a parallel ___XVE type, then use it.
3782 Turn arrays into pointers for lvalue arrays.
3783 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3784 bounds error and handle 0-length slices.
3785 Use lim_warning.
3786 When selecting fields, apply ada_to_fixed_value (because the fields
3787 might have ___XVU or ___XVE encodings even if not dynamic.)
3788 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3789 (ada_is_system_address_type): New function.
3790
3791 (get_var_value): Use new interface to ada_lookup_symbol_list.
3792 (get_int_var_value): New interface.
3793 (to_fixed_range_type): Allow unknown bound, with warning.
3794 (ada_is_modular_type): Decomment disabled code.
3795 (ADA_OPERATORS): New definition.
3796 (ada_operator_length): New function.
3797 (ada_expr_op_name): New function.
3798 (ada_forward_operator_length): New function.
3799 (ada_dump_subexp_body): New function.
3800 (ada_print_subexp): New function.
3801 (ada_exp_descriptor): New constant.
3802 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3803 (ada_language_defn): Add ada_exp_descriptor entry.
3804 Change ada_parse => parse.
3805 Add post-parser entry.
3806 Use ada-specific non-local symbol lookup.
3807 Don't use C-style arrays.
3808 String lower-bound is 1.
3809 Decomment disabled code.
3810 (parse): New function.
3811 New fields ada_translate_error_message, ada_lookup_symbol,
3812 ada_lookup_minimal_symbol.
3813
3814 * ada-lang.h: Update copyright dates.
3815 Replace the mangle/demangle terminology throughout by the
3816 more appropriate encode/decode one.
3817 Include breakpoint.h.
3818 Forward declare struct partial_symbol, struct block.
3819 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3820 (EXTRACT_ADDRESS): Remove.
3821 (EXTRACT_INT): Remove.
3822 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3823 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3824 (MAX_RENAMING_CHAIN_LENGTH): Define.
3825 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3826
3827 (enum task_states): Remove.
3828 ada_task_states: Remove.
3829 (fat_string): Remove.
3830 (struct entry_call): Remove.
3831 (struct task_fields): Remove.
3832 (struct task_entry): Remove.
3833
3834 (struct ada_symbol_info): Define.
3835 (enum ada_attribute): Remove.
3836 (enum ada_operator): Define.
3837
3838 (ada_get_field_index): Declare.
3839 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3840 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3841 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3842 (ada_lookup_symbol_list): New interface.
3843 (ada_decode_symbol): Declare.
3844 (ada_decode): Declare.
3845 (ada_lookup_symbol): New interface.
3846 (ada_update_initial_language): Declare.
3847 (ada_lookup_simple_minsym): Declare.
3848 (user_select_syms): New interface.
3849 (ada_sals_for_line): Declare.
3850 (ada_is_tagged_type): New interface.
3851 (ada_tag_name): Declare.
3852 (ada_lookup_struct_elt_type): Remove declaration.
3853 (ada_search_struct_field): Remove declaration.
3854 (ada_attribute_name): New interface.
3855 (ada_is_system_address_type): Declare.
3856 (ada_to_fixed_value): Remove declaration.
3857 (ada_template_to_fixed_record_type_1): Declare.
3858 (get_int_var_value): New interface.
3859 (ada_find_any_symbol): Declare.
3860 (ada_find_renaming_symbol): Declare.
3861 (ada_mangle): Rename to ada_encode.
3862 (ada_simple_renamed_entity): Remove const.
3863 (ada_main_name): Declare.
3864 (get_current_task): Rename to ada_get_current_task.
3865 (get_entry_number): Remove declaration.
3866 (ada_report_exception_break): Remove declaration.
3867 (ada_print_exception_breakpoint_nontask): Declare.
3868 (ada_print_exception_breakpoint_task): Declare.
3869 (ada_find_printable_frame): Declare.
3870
3871 * ada-lex.l: Update copyright notices.
3872 Use xmalloc and xfree instead of malloc and free.
3873 Use new interface to name_lookup.
3874 Use new interface to
3875 ada_mangle=>ada_encode.
3876 Redo handling of '$...' variable to parallel current treatment
3877 in c-exp.y.
3878 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3879 digit_to_int, strtoulst, processInt, processReal, processId,
3880 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3881 yywrap): Protoize.
3882
3883 (processInt): Use cast to remove harmless warning.
3884 (processReal): Modify to get rid of compiler warning on scan formats.
3885
3886 (processId): Replace xmalloc with obstack_alloc for name and remove
3887 call to ada_name_string_cleanup.
3888 Remove obsolete disabled code.
3889 (name_lookup): Ditto.
3890 New interface.
3891 Use obsavestring on temp_parse_space instead of savestring
3892 on name, and remove call to ada_name_string_cleanup.
3893 Free string returned from ada_simple_renamed_entity.
3894 Use new interface to ada_lookup_symbol_list.
3895 Decomment disabled code.
3896 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3897 not types.
3898 When a type name lookup succeeds as a result of
3899 lookup_primitive_typename, check for regular type entry that has not
3900 yet been read in.
3901 Limit length of chain of renamed symbols we are willing to follow.
3902 Do not break names beginning with "standard__" into segments.
3903 (block_lookup): Use new interface to ada_lookup_symbol_list.
3904
3905 * ada-typeprint.c: Update copyright notice.
3906 (demangled_type_name): Rename to decoded_type_name.
3907 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3908 (print_range_bound): Correct handling of negative
3909 bounds that make the index type looked unsigned under STABS.
3910 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3911 (print_range_type_named): Use the builtin int type if no type
3912 corresponding to the given type name could be found.
3913 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3914 Add some bullet-proofing.
3915 (print_variant_clauses): Allow for variant branches with ___XVU
3916 encodings that are not dynamic fields.
3917 Use new interface to ada_is_tagged_type.
3918 (print_record_type): Allow for fields with ___XVE encodings that
3919 are not dynamic fields.
3920 Use new interface to ada_is_tagged_type.
3921 (ada_print_type): ada_is_array_descriptor =>
3922 ada_is_array_descriptor_type.
3923
3924 * ada-valprint.c: Update copyright notice.
3925 Include gdb_string.h
3926 Include infcall.h
3927 (ui_memcpy): New function.
3928 (ada_print_floating): New function.
3929 (ada_print_str): Order arguments correctly.
3930 Correct handling of empty arrays and arrays of 0-length items.
3931 ada_is_array_descriptor => ada_is_array_descriptor_type
3932 Print values of type System.Address in hexadecimal format.
3933 Use ada_print_floating to print floating-point numbers in Ada format.
3934 Print class tag values with type names.
3935 No longer print the address of reference values. Avoids
3936 a potential confusion.
3937 (ada_value_print): Stop printing the object type for reference
3938 values, but preserve that behavior for access types. Avoids
3939 a potential confusion.
3940 Simplify one conditional expression, as the first part is now
3941 necessarily true.
3942 ada_is_array_descriptor => ada_is_array_descriptor_type
3943 Add check for arrays for null records, and print them by hand.
3944
3945 2004-06-01 Jim Blandy <jimb@redhat.com>
3946
3947 * ppc-tdep.h: Delete unused 'regoff' member.
3948 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3949
3950 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3951
3952 Fix PR symtab/1661.
3953 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3954 (hpread_read_struct_type): Likewise.
3955
3956 2004-06-01 Andrew Cagney <cagney@gnu.org>
3957
3958 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3959 instead of xasprintf.
3960 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3961 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3962 (mi_cmd_data_list_register_names)
3963 (mi_cmd_data_list_changed_registers)
3964 (mi_cmd_data_list_register_values)
3965 (get_register, mi_cmd_data_write_register_values)
3966 (mi_cmd_data_write_register_values)
3967 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3968 (mi_cmd_target_download, mi_cmd_target_select)
3969 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3970 (mi_execute_cli_command, mi_execute_async_cli_command)
3971 (mi_execute_async_cli_command): Ditto.
3972 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3973 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3974
3975 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3976 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3977 error_last_message instead of mi_error_last_message.
3978 * mi/mi-main.c (mi_error_last_message): Delete function.
3979
3980 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3981 "invalid number of columns" error. Delete redundant "out of
3982 memory" check.
3983
3984 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3985
3986 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3987 (gregset_t, fpregset_t): Remove typedefs.
3988 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3989 (REG_OFFSET): Rename argument.
3990 (i386bsd_r_reg_offset): Rename from reg_offset.
3991 (REG_ADDR): Remove macro.
3992 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3993 functions.
3994 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3995 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3996 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3997 instead of supply_gregset.
3998 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3999 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4000 instead of fill_gregset.
4001 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4002
4003 * i386bsd-nat.c: Don't include "gregset.h".
4004 (supply_gregset, fill_gregset): Make static.
4005 (supply_fpregset, fill_fpregset): Remove.
4006 * Makefile.in (i386bsd-nat.o): Update dependencies.
4007
4008 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4009
4010 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4011 "gdb_assert.h". Con't include "gregset.h".
4012 (fbsd_make_corefile_notes): Use regset-based core file support
4013 instead off fill_gregset and fill_fpregset.
4014 * Makefile.in (fbsd-proc.o): Update dependencies.
4015
4016 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4017 instructions.
4018 (m88k_frame_prev_register): Simplify code a bit.
4019
4020 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4021 (amd64_collect_fpregset): New function.
4022 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4023
4024 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4025
4026 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4027 (i386_collect_gregset): New function.
4028 (i386_supply_fpregset): Adjust comment.
4029 (i386_collect_fpregset): New function.
4030 (i386_regset_from_core_section): Use i386_collect_gregset and
4031 i386_collect_fpregset.
4032
4033 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4034 handle VALUEP being null.
4035
4036 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4037
4038 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4039
4040 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4041
4042 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4043 assembler in OpenBSD 3.5-current.
4044 (amd64obsd_sigcontext_addr): Likewise.
4045
4046 2004-05-28 Jim Blandy <jimb@redhat.com>
4047
4048 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4049 register set, so our regcache isn't declared "legacy" and our E500
4050 pseudoregister read and write functions aren't ignored.
4051 (rs6000_register_byte, rs6000_register_raw_size,
4052 rs6000_register_virtual_type, rs6000_register_convertible,
4053 rs6000_register_convert_to_virtual,
4054 rs6000_register_convert_to_raw): Deleted.
4055 (rs6000_register_type, rs6000_convert_register_p,
4056 rs6000_register_to_value, rs6000_value_to_register): New
4057 functions.
4058 (rs6000_gdbarch_init): Don't register
4059 gdbarch_deprecated_register_size,
4060 gdbarch_deprecated_register_bytes,
4061 gdbarch_deprecated_register_byte,
4062 gdbarch_deprecated_register_raw_size,
4063 gdbarch_deprecated_register_virtual_type,
4064 gdbarch_deprecated_register_convertible,
4065 gdbarch_deprecated_register_convert_to_virtual, or
4066 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4067 register gdbarch_register_type, gdbarch_convert_register_p,
4068 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4069
4070 2004-05-26 Jim Blandy <jimb@redhat.com>
4071
4072 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4073 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4074 functions, updated to match the register numberings used in GCC.
4075 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4076 rs6000_dwarf2_reg_to_regnum as register number conversions
4077 functions for STABS and Dwarf2.
4078
4079 2004-05-26 Randolph Chung <tausq@debian.org>
4080
4081 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4082 in header file.
4083
4084 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4085
4086 * NEWS: Document new "start" command.
4087
4088 2004-05-25 Randolph Chung <tausq@debian.org>
4089
4090 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4091 hppa-linux.
4092
4093 2004-05-25 Randolph Chung <tausq@debian.org>
4094
4095 * hppa-hpux-tdep.c (offsetof): Define.
4096 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4097 (hppa32_hpux_frame_base_before_sigtramp)
4098 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4099 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4100 (hppa64_hpux_frame_base_before_sigtramp)
4101 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4102 functions.
4103 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4104 (hppa_hpux_sigtramp_frame_unwind_cache)
4105 (hppa_hpux_sigtramp_frame_this_id)
4106 (hppa_hpux_sigtramp_frame_prev_register)
4107 (hppa_hpux_sigtramp_frame_unwind)
4108 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4109 (hppa_hpux_init_abi): Register sigtramp unwinder.
4110 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4111
4112 2004-05-25 Randolph Chung <tausq@debian.org>
4113
4114 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4115 and multiple stack unwinds.
4116 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4117
4118 2004-05-25 Andrew Cagney <cagney@gnu.org>
4119
4120 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4121 * symfile-mem.h: Delete file.
4122 * symfile-mem.c: Do not include "symfile-mem.h".
4123 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4124 "struct bfd_section". When an error do not bother returning NULL.
4125 (add_symbol_file_from_memory_command): Use "struct bfd" and
4126 "struct bfd_section".
4127 * Makefile.in (symfile_mem_h): Delete.
4128 (symfile-mem.o): Update dependencies.
4129
4130 2004-05-25 Nick Roberts <nickrob@gnu.org>
4131
4132 * gdb-mi.el: New file.
4133
4134 2004-05-25 Andrew Cagney <cagney@gnu.org>
4135
4136 * inftarg.c: Include "observer.h".
4137 (child_attach, child_create_inferior): Notify inferior_created.
4138 * corelow.c: Include "observer.h".
4139 (core_open): Notify inferior_created.
4140 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4141
4142 2004-05-25 Andrew Cagney <cagney@gnu.org>
4143
4144 * target.h (struct target_ops): Add from_tty to
4145 to_create_inferior.
4146 (target_create_inferior, find_default_create_inferior): Update.
4147 * infcmd.c (run_command): Update.
4148 * wince.c (child_create_inferior): Update.
4149 * win32-nat.c (child_create_inferior): Update.
4150 * uw-thread.c (uw_thread_create_inferior): Update.
4151 * thread-db.c (thread_db_create_inferior): Update.
4152 * target.c (debug_to_create_inferior)
4153 (find_default_create_inferior): Update.
4154 (maybe_kill_then_create_inferior): Update.
4155 * sol-thread.c (sol_thread_create_inferior): Update.
4156 * remote.c (extended_remote_async_create_inferior)
4157 (extended_remote_create_inferior): Update.
4158 * remote-vx.c (vx_create_inferior): Update.
4159 * remote-st.c (st2000_create_inferior): Update.
4160 * remote-sim.c (gdbsim_create_inferior): Update.
4161 * remote-sds.c (sds_create_inferior): Update.
4162 * remote-rdp.c (remote_rdp_create_inferior): Update.
4163 * remote-rdi.c (arm_rdi_create_inferior): Update.
4164 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4165 * remote-e7000.c (e7000_create_inferior): Update.
4166 * procfs.c (procfs_create_inferior): Update.
4167 * ocd.c (ocd_create_inferior): Update.
4168 * ocd.h (ocd_create_inferior): Update.
4169 * nto-procfs.c (procfs_create_inferior): Update.
4170 * monitor.c (monitor_create_inferior): Update.
4171 * lin-lwp.c (lin_lwp_create_inferior): Update.
4172 * inftarg.c (child_create_inferior): Update.
4173 * hpux-thread.c (hpux_thread_create_inferior): Update.
4174 * gnu-nat.c (gnu_create_inferior): Update.
4175
4176 2004-05-25 Andrew Cagney <cagney@gnu.com>
4177
4178 * MAINTAINERS: Update e-mail address.
4179
4180 2004-05-24 Randolph Chung <tausq@debian.org>
4181
4182 * thread.c (info_threads_command, thread_apply_all_command)
4183 (thread_apply_command, thread_command, do_captured_thread_select):
4184 Remove HPUXHPPA-specific code.
4185
4186 2004-05-24 Randolph Chung <tausq@debian.org>
4187
4188 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4189 unused symbols.
4190 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4191 references.
4192
4193 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4194
4195 * infcmd.c (kill_if_already_running): New function, extracted
4196 from run_command().
4197 (run_command): Replace extracted code by call to
4198 kill_if_already_running().
4199 (start_command): New function.
4200 (_initialize_infcmd): Add "start" command.
4201
4202 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4203
4204 Add OpenBSD/m88k support.
4205 * NEWS (New native configurations): Mention OpenBSD/m88k.
4206 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4207 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4208 * Makefile.in (m88k_tdep_h): New variable.
4209 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4210 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4211 * configure.host: Add m88*-*-openbsd*.
4212 * configure.tgt: Add m88*-*-openbsd*.
4213
4214 2004-05-24 Jim Blandy <jimb@redhat.com>
4215
4216 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4217 to approve changes.
4218
4219 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4220
4221 * symtab.c (fixup_section): Search section table when lookup by
4222 name fails.
4223
4224 2004-05-24 Randolph Chung <tausq@debian.org>
4225
4226 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4227 be "small_struct".
4228
4229 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4230
4231 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4232 register number in regcache_raw_collect call.
4233 (m68kbsd_collect_fpregset): Likewise.
4234 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4235
4236 * regset.h (struct regset): Add back `regset' member.
4237
4238 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4239
4240 * configure.in: Check for td_pcb in `struct thread'.
4241 * configure, config.in: Regenerated.
4242
4243 * dpx2-nat.c: Remove file.
4244 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4245 (dpx2-nat.o): Remove dependencies.
4246
4247 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4248 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4249 (amd64obsd_supply_pcb): New function.
4250 (_initialize_amd64obsd_nat): Enable libkvm interface.
4251 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4252 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4253 (LOADLIBES): New variable.
4254
4255 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4256 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4257 (sparc32nbsd_supply_pcb): New function.
4258 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4259 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4260 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4261 (LOADLIBES): New variable.
4262
4263 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4264
4265 * bsd-kvm.c, bsd-kvm.h: New files.
4266 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4267 "bsd-kvm.h".
4268 (i386fbsd_supply_pcb): New function.
4269 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4270 (i386fbsd-nat.o): Update dependencies.
4271 (bsd_kvm_h): New variable.
4272 (bsd-kvm.o): New dependency.
4273 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4274 (LOADLIBES): New variable.
4275
4276 * regset.c: Tweak comment.
4277 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4278 macro.
4279 * regset.h: Update copyright year.
4280 (struct regset): Remove `descr' member, add `gdbarch' member.
4281 (regset_alloc): Adjust prototype and comment.
4282 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4283 (i386_supply_fpregset): Likewise.
4284 (i386_regset_from_core_section): Update call to regset_alloc.
4285 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4286 REGSET->arch.
4287 (i386obsd_aout_regset_from_core_section): Update call to
4288 regset_alloc.
4289 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4290 REGSET->arch.
4291 (i386nbsd_aout_regset_from_core_section): Update call to
4292 regset_alloc.
4293 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4294 REGSET->arch.
4295 (amd64_regset_from_core_section): Update call to regset_alloc.
4296 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4297 REGSET->arch.
4298 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4299 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4300 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4301 (sparc32nbsd_init_abi): Update call to regset_alloc.
4302 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4303 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4304 (sparc64obsd_init_abi): Update call to regset_alloc.
4305 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4306 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4307 (sparc64nbsd_init_abi): Update call to regset_alloc.
4308 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4309 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4310 (sparc64fbsd_init_abi): Update call to regset_alloc.
4311
4312 2004-05-22 Jim Blandy <jimb@redhat.com>
4313
4314 * ppc-tdep.h (spe_register_p): New declaration.
4315 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4316 ppc_spefscr_regnum.
4317 * rs6000-tdep.c (spe_register_p): New function.
4318 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4319 spefscr.
4320 (rs6000_gdbarch_init): Initialize the new members of the tdep
4321 structure.
4322
4323 2004-05-21 Jim Blandy <jimb@redhat.com>
4324
4325 * ppc-linux-nat.c (fetch_register): Move code back to be next
4326 to the comment that describes it. (Moved code, instead of
4327 comment, for symmetry with store_register.)
4328
4329 Allocate regset structures in the gdbarch's obstack, not using
4330 xmalloc.
4331 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4332 Add 'arch' argument. Allocate the regset on arch's obstack, not
4333 using xmalloc.
4334 * regset.h (regset_alloc): Update declaration.
4335 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4336 gdbarch argument.
4337 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4338 * i386-tdep.c (i386_regset_from_core_section): Same.
4339 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4340 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4341 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4342 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4343 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4344 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4345
4346 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4347
4348 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4349
4350 2004-05-21 Jim Blandy <jimb@redhat.com>
4351
4352 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4353 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4354
4355 2004-05-20 Jim Blandy <jimb@redhat.com>
4356
4357 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4358
4359 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4360
4361 * regset.h: Make prototype const-correct.
4362 * regset.c (regset_xmalloc): Make const-correct.
4363
4364 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4365
4366 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4367 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4368 (symbol_search_name): Declare.
4369
4370 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4371 (iter_name_next_hashed): Ditto.
4372 (iter_name_next_linear): Ditto.
4373 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4374
4375 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4376 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4377 (symbol_search_name): New function.
4378
4379 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4380
4381 * minsyms.c (build_minimal_symbol_hash_tables): Change
4382 test for adding to demangled hash table to check for difference
4383 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4384
4385 2004-05-19 Jim Blandy <jimb@redhat.com>
4386
4387 Use a constructor function to create regset structures.
4388 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4389 (struct regset): Use supply_regset_ftype. Add new
4390 'collect_regset' member.
4391 (regset_xmalloc): New declaration.
4392 * regset.c: New file.
4393 * am64-tdep.c (amd64_regset_from_core_section): Use
4394 regset_xmalloc to construct regset structures.
4395 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4396 * i386-tdep.c (i386_regset_from_core_section): Same.
4397 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4398 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4399 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4400 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4401 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4402 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4403 * Makefile.in (COMMON_OBS): Add regset.o.
4404 (regset.o): New rule.
4405
4406 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4407
4408 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4409 and pthread_cond_wait.c.
4410
4411 2004-05-18 Jim Blandy <jimb@redhat.com>
4412
4413 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4414 before the mach-specific switch, and then let the individual cases
4415 override the defaults, rather than leaving them uninitialized
4416 until the switch and then setting them in each case.
4417
4418 2004-05-18 Randolph Chung <tausq@debian.org>
4419
4420 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4421 millicode functions.
4422
4423 2004-05-18 Randolph Chung <tausq@debian.org>
4424
4425 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4426 references to dld_flags_buffer consistent.
4427
4428 2004-05-18 Randolph Chung <tausq@debian.org>
4429
4430 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4431 it for unwinding the stack.
4432
4433 2004-05-18 Randolph Chung <tausq@debian.org>
4434
4435 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4436 Undefine these so we can overide them using gdbarch.
4437
4438 2004-05-18 Randolph Chung <tausq@debian.org>
4439
4440 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4441 handling for 64-bit HPUX (elf).
4442
4443 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4444
4445 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4446 constants.
4447 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4448 * ia64-tdep.c (examine_prologue): Likewise.
4449 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4450 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4451
4452 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4453
4454 * vax-tdep.c (vax_return_value): Implement
4455 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4456
4457 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4458
4459 * vax-tdep.c (vax_return_value): Fix typo.
4460
4461 2004-05-17 Andrew Cagney <cagney@redhat.com>
4462
4463 * MAINTAINERS: Mark Salter was also responsible for
4464 testsuite/config/
4465
4466 * NEWS: Mention signal fixes.
4467
4468 2004-05-17 Randolph Chung <tausq@debian.org>
4469
4470 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4471 check to see if we are unwinding an export stub. Export stubs clobber
4472 the %rp in the call path and stores the original rp in a stack slot.
4473
4474 2004-05-17 Jim Blandy <jimb@redhat.com>
4475
4476 * MAINTAINERS: Update address for J.T. Conklin.
4477
4478 2004-05-17 Randolph Chung <tausq@debian.org>
4479
4480 * hppa-tdep.c: Remove superfluous #include's.
4481 * Makefile.in (hppa-tdep.o): Update dependencies.
4482
4483 2004-05-17 Randolph Chung <tausq@debian.org>
4484
4485 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4486 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4487 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4488 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4489 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4490 Remove static function declarations.
4491
4492 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4493
4494 * alphabsd-nat.c: Update copyright year.
4495 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4496
4497 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4498 and M68K_A2_REGNUM.
4499
4500 * m68k-tdep.c (m68k_svr4_return_value): Implement
4501 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4502
4503 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4504
4505 * sol-thread.c Update copyright year. Fix various coding
4506 standards violations. Tweak a few comments.
4507 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4508 Delete prototypes.
4509
4510 2004-05-15 Randolph Chung <tausq@debian.org>
4511
4512 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4513 as pointer instead of array reference since HPUX compiler does
4514 not accept unsized array arguments.
4515 * somsolib.c (dld_flags_buffer): Use constant array size.
4516
4517 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4518
4519 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4520 offset with decimal offset.
4521 (amd64obsd_sigcontext_addr): Return correct address for entire
4522 signal trampoline.
4523
4524 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4525 instead of get_frame_base.
4526
4527 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4528 (fill_gregset): Use regcache_raw_collect.
4529
4530 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4531 ppcobsd-tdep.c.
4532
4533 * config/sparc/tm-nbsd64.h: Remove file.
4534 * config/tm-sunos.h: Remove file.
4535
4536 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4537
4538 * rs6000-tdep.c (store_param_on_stack_p): New function,
4539 an improved version of some code extracted from skip_prologue().
4540 (skip_prologue): Use store_param_on_stack_p() to detect
4541 instructions saving a parameter on the stack. Detect when r0
4542 is used to save a parameter.
4543 Do not mark "li rx, SIMM" instructions as part of the prologue,
4544 unless the following instruction is also part of the prologue.
4545
4546 2004-05-14 Andrew Cagney <cagney@redhat.com>
4547
4548 * infrun.c (handle_inferior_event): Simplify
4549 STEP_OVER_UNDEBUGGABLE.
4550
4551 * infrun.c (handle_step_into_function): Delete function.
4552 (handle_inferior_event): Inline calls to
4553 handle_step_into_function.
4554
4555 2004-05-14 Jerome Guitton <guitton@gnat.com>
4556
4557 * rs6000-nat.c: Fix a comment.
4558
4559 2004-05-12 David Anderson <davea@sgi.com>
4560
4561 Committed by Jim Blandy <jimb@redhat.com>:
4562 * regcache.c (struct regcache_descr): fix comment spelling.
4563
4564 2004-05-13 J. Brobecker <brobecker@gnat.com>
4565
4566 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4567 Fixes a link link failure.
4568
4569 2004-05-13 J. Brobecker <brobecker@gnat.com>
4570
4571 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4572 error that was causing the build to fail.
4573
4574 2004-05-13 J. Brobecker <brobecker@gnat.com>
4575
4576 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4577 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4578
4579 2004-05-13 Andrew Cagney <cagney@redhat.com>
4580
4581 * infrun.c (handle_inferior_event): Check for
4582 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4583 calls. Update comments.
4584
4585 2004-05-13 Jim Blandy <jimb@redhat.com>
4586
4587 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4588 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4589 (store_regs_user_thread, store_regs_kernel_thread): Use
4590 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4591 * ppc-linux-nat.c (fill_gregset): Same.
4592 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4593 (ppc_linux_sigtramp_cache): Same.
4594 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4595 (ppcnbsd_sigtramp_cache_init): Same.
4596 * rs6000-nat.c (fetch_core_registers): Same.
4597 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4598 (rs6000_frame_cache): Same.
4599
4600 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4601 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4602 of assuming that the gprs are numbered starting with zero.
4603 * ppc-linux-nat.c (fill_gregset): Same.
4604 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4605 * ppcnbsd-nat.c (getregs_supplies): Same.
4606 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4607 * rs6000-nat.c (fetch_core_registers): Same.
4608 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4609
4610 2004-05-07 Michael Snyder <msnyder@redhat.com>
4611
4612 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4613 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4614
4615 2004-05-13 Andrew Cagney <cagney@redhat.com>
4616
4617 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4618
4619 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4620
4621 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4622 base_address for shared libraries.
4623
4624 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4625
4626 * MAINTAINERS (write after approval): Add myself.
4627
4628 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4629
4630 * breakpoint.c (bpstat_stop_status): Add new argument
4631 STOPPED_BY_WATCHPOINT. Use it instead of testing
4632 target_stopped_data_address agaist 0 to check whether
4633 or not we stopped due to a hardware watchpoint.
4634 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4635 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4636 with new argument.
4637
4638 2004-05-12 Jim Blandy <jimb@redhat.com>
4639
4640 * configure.in: When checking whether we should use the -bbigtoc
4641 option, don't forget to restore the original value of LDFLAGS.
4642 * configure: Regenerated.
4643
4644 2004-05-12 Andrew Cagney <cagney@redhat.com>
4645
4646 * thread.c (load_infrun_state): Delete step_sp.
4647 * infrun.c (context_switch): Ditto.
4648 * inferior.h (step_sp): Ditto.
4649 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4650 * gdbthread.h (struct thread_info, save_infrun_state)
4651 (restore_infrun_state): Ditto.
4652
4653 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4654
4655 * MAINTAINERS (write after approval): Add myself.
4656
4657 2004-05-12 Andrew Cagney <cagney@redhat.com>
4658
4659 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4660 eliminate reference to step_sp.
4661 (struct execution_control_state, init_execution_control_state)
4662 (handle_inferior_event, keep_going): Delete update_step_sp and
4663 step_sp.
4664 * infcmd.c (step_sp): Note that variable is unused.
4665
4666 2004-05-11 Andrew Cagney <cagney@redhat.com>
4667
4668 * infrun.c (step_over_function): Delete function.
4669 (handle_step_into_function): Use insert_step_resume_breakpoint.
4670 (insert_step_resume_breakpoint): Fix assertion.
4671
4672 2004-05-11 Nick Roberts <nickrob@gnu.org>
4673
4674 * utils.c (defaulted_query): Just use the normal query input type
4675 when printing the annotations.
4676
4677 2004-05-11 Andrew Cagney <cagney@redhat.com>
4678
4679 * infrun.c (handle_inferior_event): Simplify code handling
4680 step-into or return-from a signal trampoline.
4681
4682 2004-05-11 Andrew Cagney <cagney@redhat.com>
4683
4684 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4685 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4686
4687 2004-05-10 Jim Blandy <jimb@redhat.com>
4688
4689 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4690 with a call to internal_error.
4691
4692 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4693 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4694 processor variant lacks those registers.
4695 (ppc_floating_point_unit_p): Change description to make it clear
4696 that this returns info about the ISA, not the ABI.
4697 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4698 return true or false by checking tdep->ppc_fp0_regnum and
4699 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4700 arch/mach switching done in rs6000_gdbarch_init; it's better to
4701 keep that logic there, and just check the results here.
4702 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4703 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4704 floating-point registers.
4705 (ppc_supply_fpregset, ppc_collect_fpregset)
4706 (rs6000_push_dummy_call, rs6000_extract_return_value)
4707 (rs6000_store_return_value): Assert that we have floating-point
4708 registers.
4709 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4710 (rs6000_frame_cache): Don't note the locations at which
4711 floating-point registers were saved if we have no fprs.
4712 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4713 registers.
4714 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4715 (store_regs_user_thread, store_regs_kernel_thread): Only call
4716 supply_fprs / fill_fprs if we actually have floating-point
4717 registers.
4718 (special_register_p): Check ppc_fpscr_regnum before matching
4719 against it.
4720 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4721 supply / collect fpscr if we don't have it.
4722 * ppc-bdm.c: #include "gdb_assert.h".
4723 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4724 have floating-point registers, since I can't test this code on
4725 FP-free systems to adapt it.
4726 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4727 fpscr and floating point register numbers if they don't exist.
4728 (fetch_register): Assert that we have floating-point registers
4729 before we reach the code that handles them.
4730 (store_register): Same. And use tdep instead of calling
4731 gdbarch_tdep again.
4732 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4733 don't have them.
4734 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4735 fprs and fpscr if we don't have them.
4736 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4737 don't have them.
4738 * ppcnbsd-nat.c: #include "gdb_assert.h".
4739 (getfpregs_supplies): Assert that we have floating-point registers.
4740 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4741 * ppcobsd-tdep.c: #include "gdb_assert.h".
4742 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4743 have floating-point registers.
4744 * rs6000-nat.c (regmap): Don't match against the fpscr and
4745 floating point register numbers if they don't exist.
4746 (fetch_inferior_registers, store_inferior_registers,
4747 fetch_core_registers): Only fetch / store / supply the
4748 floating-point registers and the fpscr if we have them.
4749 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4750 (ppcobsd-tdep.o): Update dependencies.
4751
4752 2004-05-10 Andrew Cagney <cagney@redhat.com>
4753
4754 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4755 (context_switch): Do not switch through_sigtramp_breakpoint.
4756 * gdbthread.h (save_infrun_state, load_infrun_state)
4757 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4758 and structure member.
4759 * thread.c (load_infrun_state, save_infrun_state): Update.
4760
4761 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4762
4763 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4764
4765 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4766
4767 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4768 throughout.
4769 * aclocal.m4: Regenerate.
4770
4771 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4772
4773 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4774
4775 2004-05-10 Andrew Cagney <cagney@redhat.com>
4776
4777 * infrun.c (check_sigtramp2): Delete function.
4778 (handle_inferior_event): When single stepping, and taking a
4779 signal, set a breakpoint at the signal return address. Delete
4780 redundant calls to check_sigtramp2.
4781 (insert_step_resume_breakpoint): New function.
4782 (through_sigtramp_breakpoint, handle_inferior_event)
4783 (follow_exec, wait_for_inferior, fetch_inferior_event)
4784 (currently_stepping, keep_going): Delete most uses of
4785 through_sigtramp_breakpoint, not that it should be deleted.
4786 (delete_breakpoint_current_contents): Delete function.
4787
4788 2004-05-10 Randolph Chung <tausq@debian.org>
4789
4790 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4791 target.
4792 * config/pa/tm-linux.h: New file.
4793
4794 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4795
4796 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4797 of prefixes. Don't print the prefix twice in the CLI.
4798
4799 2004-05-10 Jim Blandy <jimb@redhat.com>
4800
4801 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4802 collect all the gprs.
4803
4804 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4805 loop collecting gprs.
4806
4807 2004-05-09 Andrew Cagney <cagney@redhat.com>
4808
4809 * remote-vx.c (net_step): Delete step-range code.
4810 * remote.c (remote_resume, init_all_packet_configs)
4811 (set_remote_protocol_E_packet_cmd)
4812 (show_remote_protocol_E_packet_cmd)
4813 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4814 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4815 (show_remote_protocol_e_packet_cmd): Ditto.
4816
4817 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4818
4819 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4820
4821 * hppa-tdep.h: Update copyright year.
4822 (struct trad_frame_saved_reg): Add opaque declaration.
4823
4824 * amd64-tdep.c (amd64_return_value): Implement
4825 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4826
4827 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4828 (m68k_value_to_register): New functions.
4829 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4830 value_to_register.
4831
4832 * defs.h (enum return_value_convention): Add
4833 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4834 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4835 * infcmd.c (legacy_return_value): New function.
4836 (print_return_value): Rwerite to implement
4837 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4838 * values.c (using_struct_return): Check for inequality to
4839 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4840 RETURN_VALUE_STRUCT_CONVENTION.
4841 * i386-tdep.c (i386_return_value): Implement
4842 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4843
4844 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4845 include "symtab.h", "opcode/vax.h" and "inferior.h".
4846 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4847 to read_memory_unsigned_integer.
4848 (vax_gdbarch_init): Reorder.
4849 (_initialize_vax_tdep): Spell out prototype.
4850 * Makefile.in (vax-tdep.o): Update dependencies.
4851
4852 2004-05-08 Andrew Cagney <cagney@redhat.com>
4853
4854 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4855 * target.c (target_detach, target_disconnect): Ditto.
4856
4857 * infcall.c (call_function_by_hand): When no
4858 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4859 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4860 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4861 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4862 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4863
4864 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4865 * gdbarch.h, gdbarch.c: Re-generate.
4866 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4867 deprecated_fix_call_dummy.
4868 * v850-tdep.c (v850_gdbarch_init): Ditto.
4869 * infcall.c (call_function_by_hand): Do not call
4870 DEPRECATED_FIX_CALL_DUMMY.
4871
4872 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4873 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4874 * gdbarch.h, gdbarch.c: Re-generate.
4875 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4876 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4877 deprecated_sizeof_call_dummy_words.
4878 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4880 * v850-tdep.c (v850_gdbarch_init): Ditto.
4881 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4882 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4883 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4884 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4885 * arch-utils.h (legacy_call_dummy_words)
4886 (legacy_sizeof_call_dummy_words): Delete declarations.
4887 * arch-utils.c (legacy_call_dummy_words)
4888 (legacy_sizeof_call_dummy_words): Delete variables.
4889
4890 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4891 * gdbarch.h, gdbarch.c: Re-generate.
4892 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4893 * infcall.c (call_function_by_hand): Eliminate call to
4894 DEPRECATED_PUSH_DUMMY_FRAME.
4895 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4896 push_dummy_frame.
4897 (ns32k_push_dummy_frame): Delete function.
4898
4899 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4900 deprecated_call_dummy_breakpoint_offset or
4901 deprecated_call_dummy_start_offset.
4902 * dummy-frame.c, arm-tdep.c: Update comments.
4903 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4904 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4905 * gdbarch.h, gdbarch.c: Re-generate.
4906
4907 * infcall.c (legacy_push_dummy_code): Delete function.
4908 (push_dummy_code): Delete call.
4909
4910 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4911 * gdbarch.h, gdbarch.c: Re-generate.
4912 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4913 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4914 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4915 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4916
4917 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4918 (struct frame_info): Delete opaque declaration.
4919 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4920 * frame.c (get_frame_type): Delete call.
4921
4922 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4923 pc_in_call_dummy.
4924 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4925 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4926
4927 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4928
4929 * alphanbsd-tdep.c: Include "gdb_string.h".
4930 * armnbsd-tdep.c: Update copyright year.
4931 Include "gdb_string.h".
4932 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4933 dependencies.
4934
4935 * delta68-nat.c: Remove file.
4936 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4937 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4938 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4939 (delta68-nat.o): Remove dependency.
4940
4941 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4942 function.
4943 (m68k_gdbarch_init): Don't set
4944 deprecated_frameless_function_invocation.
4945
4946 2004-05-07 Randolph Chung <tausq@debian.org>
4947
4948 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4949 read_memory_nobpt for code reading when doing frame unwinding.
4950 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4951
4952 2004-05-07 Randolph Chung <tausq@debian.org>
4953
4954 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4955 instead of sp, handle sigaltstack case.
4956 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4957 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4958 signal handler and not that of the caller.
4959 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4960 hppa_linux_sigtramp_find_sigcontext.
4961
4962 2004-05-07 Randolph Chung <tausq@debian.org>
4963
4964 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4965 hppa-linux-nat.c.
4966 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4967 * hppa-linux-nat.c (fetch_register, store_register): Define.
4968 (fetch_inferior_registers, store_inferior_registers): Define.
4969 (supply_gregset): Add comment and clean up some unneeded code.
4970 (fill_gregset): Add comment and fix so that it saves registers in
4971 the right place in the gregset.
4972 (fill_fpregset): Fix buffer overrun problem.
4973 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4974
4975 2004-05-07 Randolph Chung <tausq@debian.org>
4976
4977 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4978 do common handling of the pcoqt register.
4979 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4980 to use helper function.
4981 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4982 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4983 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4984 generic fallback unwinder when all else fails.
4985 (hppa_gdbarch_init): Add fallback sniffer.
4986 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4987 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4988 to use helper function.
4989
4990 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4991
4992 * config/djgpp/fnchange.lst: Add translation rules for
4993 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4994
4995 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4996
4997 * frame.c (get_prev_frame_1): Work around GCC bug.
4998 * frame.h: Add comment about GCC bug.
4999
5000 2004-05-07 Andrew Cagney <cagney@redhat.com>
5001
5002 * observer.c: Include "commands.h" and "gdbcmd.h".
5003 (observer_debug, _initialize_observer): Add the
5004 command "set/show debug observer".
5005 * observer.sh: When observer debugging, log notify calls.
5006 * Makefile.in (observer.o): Update dependencies.
5007
5008 2004-05-07 Jason Molenda (jmolenda@apple.com)
5009
5010 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5011
5012 2004-05-07 Jim Blandy <jimb@redhat.com>
5013
5014 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5015 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5016 to recognize gpr regnums, instead of assuming that
5017 tdep->ppc_fp0_regnum marks the end of the general-purpose
5018 registers.
5019
5020 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5021 the given architecture has floating-point registers.
5022
5023 2004-05-07 Andrew Cagney <cagney@redhat.com>
5024
5025 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5026 macro defined to 1.
5027 * gdbarch.h, gdbarch.c: Re-generate.
5028 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5029 deprecated_use_generic_dummy_frames.
5030
5031 2004-05-07 Brian Ford <ford@vss.fsi.com>
5032
5033 * NEWS: Mention Cygwin DWARF 2 support.
5034
5035 2004-05-07 Andrew Cagney <cagney@redhat.com>
5036
5037 * objfiles.h (struct entry_info): Delete unused fields
5038 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5039 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5040 * mipsread.c (mipscoff_symfile_read): Update.
5041 * mdebugread.c (parse_partial_symbols): Update.
5042 * dwarfread.c (read_file_scope): Update.
5043 * dwarf2read.c (read_file_scope): Update.
5044 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5045 * coffread.c (complete_symtab): Update.
5046
5047 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5048
5049 * infcall.c (_initialize_infcall): Fix typo.
5050
5051 2004-05-07 Andrew Cagney <cagney@redhat.com>
5052
5053 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5054 * command.h (add_setshow_zinteger_cmd): Declare.
5055
5056 2004-05-06 Randolph Chung <tausq@debian.org>
5057
5058 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5059 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5060 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5061 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5062 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5063 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5064 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5065 definitions ...
5066 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5067 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5068 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5069 (hppa64_hpux_frame_find_saved_regs_in_sig)
5070 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5071 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5072 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5073 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5074 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5075 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5076 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5077 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5078 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5079 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5080 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5081 (hppa32_register_type, hppa_cannot_store_register)
5082 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5083 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5084 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5085 * pa64solib.c (pa64_solib_have_load_event)
5086 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5087 (pa64_solib_unloaded_library_pathname): Likewise.
5088 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5089 (som_solib_library_pathname): Likewise.
5090
5091 2004-05-05 Jim Ingham <jingham@apple.com>
5092
5093 * breakpoint.c (create_breakpoints): Copy the ignore count and
5094 thread id over from the pended breakpoint to the actual
5095 breakpoint.
5096
5097 2004-05-05 Andrew Cagney <cagney@redhat.com>
5098
5099 * gdbarch.sh (PARM_BOUNDARY): Delete.
5100 gdbarch.h, gdbarch.c: Re-generate.
5101 * valops.c (PARM_BOUNDARY): Delete macro.
5102 (value_push): Delete PARM_BOUNDARY code.
5103 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5104
5105 2004-05-04 Jim Blandy <jimb@redhat.com>
5106
5107 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5108 Don't assume that the gprs, fprs, and UISA sprs are
5109 contiguous, start at register number zero, and end with fpscr.
5110 Instead, use the numbers from the tdep structure.
5111
5112 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5113 should no longer be used in code specific to the RS6000 and its
5114 derivatives.
5115 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5116 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5117 tdep->ppc_fp0_regnum.
5118 (ppc_supply_fpregset, ppc_collect_fpregset)
5119 (rs6000_push_dummy_call, rs6000_extract_return_value)
5120 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5121 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5122 FP0_REGNUM.
5123 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5124 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5125 Same.
5126 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5127 bdm_ppc_store_registers): Same.
5128 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5129 (store_register, fill_fpregset): Same.
5130 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5131 (ppc_linux_supply_fpregset): Same.
5132 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5133 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5134 Same.
5135 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5136 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5137 ppc64_sysv_abi_return_value): Same.
5138 * rs6000-nat.c (regmap, fetch_inferior_registers)
5139 (store_inferior_registers, fetch_core_registers): Same.
5140
5141 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5142
5143 * m68knbsd-nat.c: Remove file.
5144 * m68knbsd-tdep.c: Remove file.
5145 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5146 dependencies.
5147 * configure.host: Add m68k-*-netbsdelf*.
5148 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5149 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5150 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5151 (XM_FILE): Remove.
5152 * config/m68k/nbsdelf.mh: New file.
5153 * config/m68k/nbsd.mt: New file.
5154 * config/m68k/nbsdaout.mt: Remove file.
5155 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5156 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5157 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5158 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5159 (use_struct_convention): Remove prototype.
5160 (USE_STRUCT_CONVENTION): Remove define.
5161 * config/m68k/xm-nbsd.h: Remove file.
5162
5163 2004-05-04 Michael Snyder <msnyder@redhat.com>
5164
5165 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5166 reg_struct_return method (as gcc usually does for cross targets).
5167
5168 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5169
5170 Committed by Andrew Cagney.
5171 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5172 alignment padding when accessing ucontext struct members.
5173
5174 2004-05-04 Jim Blandy <jimb@redhat.com>
5175
5176 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5177 'ppc_gplast_regnum' member.
5178 (ppc_num_gprs): New enum constant.
5179 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5180 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5181 * rs6000-nat.c (regmap, fetch_inferior_registers,
5182 store_inferior_registers): Same.
5183 * rs6000-tdep.c (e500_pseudo_register_read)
5184 (e500_pseudo_register_write): Same.
5185 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5186
5187 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5188 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5189 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5190 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5191 FPLAST_REGNUM.
5192 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5193 Same.
5194 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5195 * rs6000-nat.c (regmap, fetch_inferior_registers)
5196 (store_inferior_registers): Same.
5197
5198 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5199 with FPLAST_REGNUM.
5200
5201 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5202
5203 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5204 failure detected by recent versions of GCC.
5205 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5206 to be consistent with the usage in dwarf2_create_include_psymtab.
5207
5208 2004-05-03 Michael Snyder <msnyder@redhat.com>
5209
5210 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5211 (heuristic_proc_start): Whitespace cleanup.
5212
5213 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5214
5215 * sun3-nat.c: Remove file.
5216 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5217 dependencies.
5218 (ALLDEPFILES): Remove sun3-nat.c.
5219 (sun3-nat.o): Remove dependencies.
5220
5221 * i386-interix-nat.c, i386-interix-tdep.c,
5222 config/i386/nm-interix.h, config/i386/interix.mh,
5223 config/i386/interix.mt: Remove files.
5224 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5225 dependencies.
5226
5227 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5228
5229 * m68k-tdep.h (struct gdbarch_tdep): Add member
5230 struct_value_regnum.
5231 (m68k_svr4_init_abi): New prototype.
5232 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5233 different calling conventions.
5234 (m68k_extract_return_value): Remove code dealing with single-field
5235 structs.
5236 (m68k_store_return_value): Remove code dealing with single-field
5237 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5238 (m68k_extract_struct_value_address): Remove function.
5239 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5240 (m68k_reg_struct_return_p, m68k_return_value)
5241 (m68k_svr4_return_value): New functions.
5242 (m68k_use_struct_convention): Remove function.
5243 (m68k_push_dummy_call): Use new struct_value_regnum member of
5244 `struct gdbarch_tdep' instead of hardcoded register number to
5245 store STRUCT_ADDR.
5246 (m68k_svr4_init_abi): New function.
5247 (m68k_gdbarch_init): Don't set extract_return_value,
5248 store_return_values, deprecated_extract_struct_value_address and
5249 use_struct_convention. Set return_value instead. Initialize new
5250 struct_value_regnum member of `struct gdbarch_tdep'.
5251 * m68klinux-tdep.c: Update copyright year.
5252 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5253 (m68k_linux_extract_struct_value_address): Remove function.
5254 (m68k_linux_init_abi): Don't set extract_return_value,
5255 store_return_values, deprecated_extract_struct_value_address and
5256 use_struct_convention. Call m68k_svr4_init_abi but override the
5257 new struct_value_regnum member of `struct gdbarch_tdep'.
5258 * Makefile.in (m68k-tdep.o): Update dependencies.
5259
5260 2004-05-03 J. Brobecker <brobecker@gnat.com>
5261
5262 * dwarf2read.c (line_header): Add new included_p field in
5263 field file_names.
5264 (partial_die_info): New field has_stmt_list. New field line_offset.
5265 (dwarf2_create_include_psymtab): New function.
5266 (dwarf2_build_include_psymtabs): New function.
5267 (add_file_name): Add forward declaration. Initialize new field.
5268 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5269 to be able to determine the list of files included by the
5270 given unit, and build their associated psymtabs.
5271 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5272 files as well.
5273 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5274 (read_file_scope): Update call to dwarf_decode_lines.
5275 (read_partial_die): Handle DW_AT_stmt_list attributes.
5276
5277 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5278
5279 Unfix PR gdb/1626.
5280 * configure.in: Revert special case for osf5.*.
5281 * configure: Regenerate.
5282
5283 2004-05-02 Jim Blandy <jimb@redhat.com>
5284
5285 Move the symbol-file-from-memory functions into their own file.
5286 * symfile-mem.c, symfile-mem.h: New files.
5287 * symfile.c (symbol_file_add_from_bfd): New function.
5288 (symbol_file_add): Call symbol_file_add_from_bfd.
5289 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5290 Moved to symfile-mem.c.
5291 (_initialize_symfile): Move definition of
5292 add-symbol-file-from-memory command to symfile-mem.c.
5293 * symfile.h (symbol_file_add_from_bfd): New declaration.
5294 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5295 * config/powerpc/linux.mt (TDEPFILES): Same.
5296 * Makefile.in (SFILES): Add symfile-mem.c.
5297 (symfile_mem_h): New variable.
5298 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5299 (symfile-mem.o): New rule.
5300
5301 2004-05-01 Andrew Cagney <cagney@redhat.com>
5302
5303 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5304 frame_find_by_id instead of frame_relative_level.
5305 (do_enable_breakpoint): Ditto.
5306 * thread.c: Update copyright.
5307 (info_threads_command): Ditto, simplify.
5308
5309 * frame.c (deprecated_generic_get_saved_register): Delete
5310 function, moved to "xstormy16-tdep.c".
5311 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5312 deprecated_generic_get_saved_register from "frame.c".
5313 (xstormy16_frame_saved_register): Call
5314 xstormy16_get_saved_register.
5315 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5316 static.
5317 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5318 * frame.h (deprecated_generic_get_saved_register): Delete.
5319
5320 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5321
5322 * dwarfread.c: Update documentation on the state of dwarf-1.
5323
5324 2004-05-01 Andrew Cagney <cagney@redhat.com>
5325
5326 * stack.c (select_frame_command): Delete call to
5327 frame_relative_level.
5328 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5329 Delete #if0 code.
5330 (frame_info): Do not print FRAMELESS.
5331 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5332 (catch_info): Delete #if0 code.
5333
5334 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5335 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5336 of frame_relative_level.
5337 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5338 to SENTINEL_FRAME.
5339 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5340 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5341 frame_relative_level.
5342
5343 * frame.h (deprecated_set_frame_type): Delete declaration.
5344 * frame.c (deprecated_set_frame_type): Delete function, update
5345 comments.
5346
5347 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5348 * gdbarch.h, gdbarch.c: Re-generate.
5349 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5350 (shnbsd_pc_in_sigtramp): Delete.
5351 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5352 pc_in_sigtramp.
5353 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5354 pc_in_sigtramp.
5355 * frame.h: Update comments.
5356 * ppc-linux-tdep.c: Update comments.
5357 * breakpoint.c (bpstat_what): Update comments.
5358
5359 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5360 m68klinux-tdep.o's dependencies, were previously added to
5361 m68klinux-nat.o.
5362
5363 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5364 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5365 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5366 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5367 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5368
5369 * Makefile.in (m68klinux-nat.o): Update dependencies.
5370 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5371 (m68k_linux_sigtramp_frame_cache)
5372 (m68k_linux_sigtramp_frame_this_id)
5373 (m68k_linux_sigtramp_frame_prev_register)
5374 (m68k_linux_sigtramp_frame_unwind)
5375 (m68k_linux_sigtramp_frame_sniffer)
5376 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5377 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5378 names, use trad-frame.h.
5379 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5380 (struct m68k_sigtramp_info): Delete.
5381 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5382 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5383 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5384 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5385 "m68klinux-tdep.c".
5386
5387 * infrun.c (check_sigtramp2): Delete check for
5388 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5389
5390 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5391
5392 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5393
5394 2004-05-01 Andrew Cagney <cagney@redhat.com>
5395
5396 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5397 (frv_linux_sigtramp_frame_cache)
5398 (frv_linux_sigtramp_frame_this_id)
5399 (frv_linux_sigtramp_frame_prev_register)
5400 (frv_linux_sigtramp_frame_unwind)
5401 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5402 include "linux" in function and variable names, directly call
5403 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5404 the latest trad-frame code.
5405 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5406 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5407 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5408 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5409 * frv-tdep.c (frv_sigtramp_frame_cache)
5410 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5411 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5412 frv-linux-tdep.c.
5413 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5414 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5415 (frv_set_sigcontext_reg_addr): Delete function.
5416
5417 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5418 (DEPRECATED_SIGTRAMP_END): Delete.
5419 * gdbarch.h, gdbarch.c: Re-generate.
5420 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5421 * config/vax/tm-vaxbsd.h: Update copyright.
5422 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5423 (DEPRECATED_IN_SIGTRAMP): Define.
5424 * config/m68k/tm-nbsd.h: Update copyright.
5425 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5426 (DEPRECATED_IN_SIGTRAMP): Define.
5427
5428 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5429
5430 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5431 encondings. Fixes PR gdb/1628.
5432
5433 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5434 DW_CFA_restore state without a matching DW_CFA_remember_state
5435 instead of aborting. Fixes PR backtrace/1589.
5436
5437 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5438
5439 * MAINTAINERS: Add self as AIX maintainer.
5440 Update my e-mail address in write-after-approval section.
5441
5442 2004-04-30 Andrew Cagney <cagney@redhat.com>
5443
5444 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5445 (legacy_get_prev_frame): Ditto.
5446
5447 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5448 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5449 * mipsread.c (sigtramp_address): Delete extern variable.
5450 (mipscoff_new_init): Delete reference.
5451 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5452 (fixup_sigtramp): Delete function.
5453 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5454 (fixup_sigtramp): Delete declarations.
5455
5456 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5457 deprecated_pc_in_sigtramp.
5458 (ppcnbsd_pc_in_sigtramp): Delete function.
5459
5460 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5461
5462 * config/m68k/nm-nbsd.h: Tweak comments.
5463 * config/m68k/nm-nbsdaout.h: Likewise.
5464
5465 2004-04-30 Andrew Cagney <cagney@redhat.com>
5466
5467 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5468 legacy_pc_in_sigtramp.
5469 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5470
5471 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5472
5473 Add OpenBSD/m68k support.
5474 * NEWS (New native configurations): Mention OpenBSD/m68k.
5475 * m68kbsd-tdep.c: New file.
5476 * m68kbsd-nat.c: New file.
5477 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5478 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5479 * configure.host: Add m68k-*-openbsd.
5480 * configure.tgt: Add m68k-*-openbsd.
5481 * config/m68k/tm-obsd.h: New file.
5482 * config/m68k/obsd.mt: New file.
5483 * config/m68k/obsd.mh: New file.
5484 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5485 m68kbsd-tdep.c.
5486
5487 2004-04-30 Andrew Cagney <cagney@redhat.com>
5488
5489 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5490 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5491
5492 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5493
5494 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5495 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5496
5497 2004-04-30 Brian Ford <ford@vss.fsi.com>
5498
5499 Revert 2004-04-16 change.
5500 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5501 (i386_coff_init_abi): Remove.
5502 * i386-tdep.h (i386_coff_init_abi): Remove.
5503 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5504
5505 2004-04-30 Andrew Cagney <cagney@redhat.com>
5506
5507 * blockframe.c (find_pc_partial_function): Delete use of
5508 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5509 DEPRECATED_SIGTRAMP_END.
5510
5511 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5512 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5513 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5514 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5515 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5516
5517 * defs.h (deprecated_inside_entry_file): Delete declaration.
5518 * blockframe.c (deprecated_inside_entry_file): Delete function.
5519 (legacy_frame_chain_valid): Delete call.
5520 * sh64-tdep.c (sh64_frame_chain): Delete call.
5521 * objfiles.h: Update comments.
5522 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5523 call.
5524 * frame.c (get_prev_frame): Delete call, update comments.
5525
5526 2004-04-30 Brian Ford <ford@vss.fsi.com>
5527
5528 * MAINTAINERS (Write After Approval): Add myself.
5529
5530 2004-04-30 Andrew Cagney <cagney@redhat.com>
5531
5532 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5533 * gdbarch.h, gdbarch.c: Re-generate.
5534 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5535 code.
5536
5537 2004-04-30 Andrew Cagney <cagney@redhat.com>
5538
5539 * gdb-events.sh (selected_thread_changed)
5540 (selected_frame_level_changed, target_changed): Delete.
5541 * gdb-events.h, gdb-events.c: Re-generate.
5542 * valops.c (value_assign): Update.
5543 * stack.c (select_frame_command, up_silently_base)
5544 (down_silently_base): Update.
5545
5546 2004-04-29 Andrew Cagney <cagney@redhat.com>
5547
5548 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5549 registers correctly.
5550 (print_gp_register_row, mips32_heuristic_proc_desc)
5551 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5552 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5553 references to mips_isa_regsize.
5554
5555 2004-04-29 Andrew Cagney <cagney@redhat.com>
5556
5557 * mips-tdep.c (struct gdbarch_tdep): Delete
5558 mips_fp_register_double.
5559 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5560 mips_abi_regsize.
5561 (mips_gdbarch_init): Do not set mips_fp_register_double.
5562 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5563
5564 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5565
5566 Committed by Andrew Cagney.
5567 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5568 function calls.
5569
5570 2004-04-29 Andrew Cagney <cagney@redhat.com>
5571
5572 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5573 gdbarch, use mips_abi, update callers.
5574 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5575 mips_abi_regsize, update callers.
5576 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5577 mips_default_abi_regsize.
5578 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5579 mips_default_abi_regsize.
5580
5581 2004-04-29 Andrew Cagney <cagney@redhat.com>
5582
5583 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5584 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5585 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5586 mips_default_abi_regsize.
5587 (mips_isa_regsize): Rename mips_regisze.
5588 * mipsnbsd-tdep.c: Update.
5589 * mips-linux-tdep.c: Update.
5590 * irix5-nat.c: Update.
5591 * mips-tdep.h (mips_isa_regsize): Update.
5592
5593 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5594 Delete all disabled code.
5595 * gdb-events.h, gdb-events.c: Re-generate.
5596
5597 2004-04-19 Jerome Guitton <guitton@gnat.com>
5598 Mark Kettenis <kettenis@gnu.org>
5599
5600 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5601 the function begins with a branch instruction.
5602
5603 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5604
5605 * i386-tdep.c: Fix spelling mistakes.
5606
5607 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5608 Andrew Cagney <cagney@redhat.com>
5609
5610 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5611 <sys/proc.h>.
5612 * acconfig.h: Provide default _KMEMUSER value.
5613 * config.in, configure: Re-generate.
5614 * NEWS: Mention fix.
5615
5616 2004-04-24 Randolph Chung <tausq@debian.org>
5617
5618 * configure.host (hppa*-*-linux*): New target.
5619 * configure.tgt (hppa*-*-linux*): Likewise.
5620 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5621 gdbarch_init_osabi() call earlier so that osabi-specific frame
5622 unwinders can be registered first.
5623 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5624 hppa-linux-nat.c.
5625 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5626 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5627 * config/pa/linux.mh: New file.
5628 * config/pa/linux.mt: New file.
5629 * config/pa/nm-linux.h: New file.
5630 * config/pa/xm-linux.h: New file.
5631 * hppa-linux-nat.c: New file.
5632 * hppa-linux-tdep.c: New file.
5633
5634 2004-04-28 Randolph Chung <tausq@debian.org>
5635
5636 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5637 return values.
5638 (hppa32_push_dummy_call): Fix small struct and floating point argument
5639 passing, and make sure the stack frame is properly aligned.
5640
5641 2004-04-28 Andrew Cagney <cagney@redhat.com>
5642
5643 * stack.c (print_stack_frame): Fix description.
5644
5645 * NEWS: Mention gdb/gdbserver/configure execute permission
5646 changed. PR server/519.
5647
5648 2004-04-28 Andrew Cagney <cagney@redhat.com>
5649
5650 * stack.c (print_stack_frame_stub): Delete declaration.
5651 (struct print_stack_frame_args, print_stack_frame)
5652 (print_frame_info, print_frame): Replace "source" with print what.
5653 Replace "print" with "print_level". Replace "args" with
5654 "print_args".
5655 * frame.h (show_and_print_stack_frame, print_stack_frame)
5656 (print_frame_info): Update declarations.
5657 * stack.c (select_and_print_frame, frame_command)
5658 (current_frame_command, up_command, down_command): Update calls -
5659 use get_selected_frame, pass "enum print_what" for source, do not
5660 call frame_relative_level.
5661 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5662 * remote-rdp.c (remote_rdp_open): Ditto.
5663 * remote-mips.c (common_open): Ditto.
5664 * remote-e7000.c (e7000_start_remote): Ditto.
5665 * ocd.c (ocd_start_remote): Ditto.
5666 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5667 * infrun.c (normal_stop): Ditto.
5668 * inflow.c (kill_command): Ditto.
5669 * infcmd.c (finish_command): Ditto.
5670 * corelow.c (core_open): Ditto.
5671 * tracepoint.c (finish_tfind_command): Ditto.
5672 * thread.c (info_threads_command, info_threads_command)
5673 (restore_current_thread, do_captured_thread_select): Ditto.
5674 * ada-tasks.c (task_command): Ditto.
5675
5676 2004-04-26 Orjan Friberg <orjanf@axis.com>
5677
5678 * frame.c: Include "observer.h".
5679 (frame_observer_target_changed): New function.
5680 (_initialize_frame): Attach target_changed observer.
5681 * regcache.c: Include "observer.h".
5682 (regcache_observer_target_changed): New function.
5683 (_initialize_regcache): Attach target_changed observer.
5684 * valops.c: Include "observer.h".
5685 (value_assign): Notify target_changed event when modifying register.
5686 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5687
5688 2004-04-26 Orjan Friberg <orjanf@axis.com>
5689
5690 From Paul Koning <pkoning@equallogic.com>:
5691 * breakpoint.c (free_valchain): New function.
5692 (insert_bp_location, delete_breakpoint): Use free_valchain.
5693 (remove_breakpoint): Do not remove the valchain.
5694 (bpstat_stop_status): If not stopped by watchpoint, skip
5695 watchpoints when generating stop status list.
5696 * infrun.c (handle_inferior_event): Make
5697 stepped_after_stopped_by_watchpoint a global variable.
5698 * remote.c (remote_stopped_data_address): Return watch data
5699 address rather than zero if stepped_after_stopped_by_watchpoint is
5700 set.
5701
5702 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5703
5704 Fix PR gdb/1626.
5705 * configure.in: Check for curses after termcap.
5706 On osf5.*, do not check for ncurses.
5707 * configure: Regenerate.
5708
5709 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5710
5711 * ppcobsd-nat.c: Include "ppc-tdep.h".
5712 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5713
5714 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5715 Fixes PR tdep/1623 and PR tdep/1624.
5716
5717 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5718
5719 * xmodem.h, xmodem.c: Remove files.
5720 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5721
5722 2004-04-23 Randolph Chung <tausq@debian.org>
5723
5724 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5725 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5726 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5727 for handling stackless frames.
5728 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5729
5730 2004-04-23 Randolph Chung <tausq@debian.org>
5731
5732 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5733 starts at a pc before the frame is created.
5734
5735 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5736
5737 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5738
5739 2004-04-23 Jerome Guitton <guitton@gnat.com>
5740
5741 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5742 use convert_typed_floating to get the appropriate format.
5743
5744 2004-04-22 Randolph Chung <tausq@debian.org>
5745
5746 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5747 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5748 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5749 (hppa_sign_extend): Add prototype.
5750 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5751 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5752 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5753 hppa targets will also use these functions.
5754 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5755 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5756 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5757 (hppa_gdbarch_init): Remove gdbarch setting of
5758 skip_trampoline_code, in_solib_call_trampoline and
5759 in_solib_return_trampoline.
5760 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5761 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5762 hppa_in_solib_call_trampoline.
5763 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5764 Moved from hppa-tdep.c.
5765 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5766 in_solib_call_trampoline and in_solib_return_trampoline.
5767
5768 2004-04-22 Randolph Chung <tausq@debian.org>
5769
5770 * hppa-tdep.c (hppa_debug): New variable.
5771 (find_unwind_entry, hppa_frame_cache): Add debug output.
5772 (_initialize_hppa_tdep): Add command to set debug flag.
5773
5774 2004-04-22 Andrew Cagney <cagney@redhat.com>
5775
5776 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5777 "trad-frame.h".
5778 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5779 signal trampoline unwinder.
5780 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5781
5782 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5783
5784 Add OpenBSD/powerpc support.
5785 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5786 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5787 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5788 (ppc_collect_fpregset): New prototypes.
5789 * ppcobsd-nat.c: New file.
5790 * ppcobsd-tdep.c: New file.
5791 * ppcobsd-tdep.h: New file.
5792 * rs6000-tdep.c: Include "regset.h".
5793 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5794 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5795 New functions.
5796 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5797 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5798 (rs6000-tdep.o): Update dependencies.
5799 * configure.host: Add powerpc-*-openbsd.
5800 * configure.tgt: Add powerpc-*-openbsd.
5801 * config/powerpc/obsd.mh: New file.
5802 * config/powerpc/nm-obsd.h: New file.
5803 * config/powerpc/obsd.mt: New file.
5804
5805 2004-04-22 Andrew Cagney <cagney@redhat.com>
5806
5807 * frame.h (show_frame_info): Delete declaration.
5808
5809 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5810 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5811 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5812 * frv-tdep.c (frv_frame_this_id): Ditto.
5813 * avr-tdep.c (avr_frame_this_id): Ditto.
5814
5815 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5816
5817 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5818
5819 2004-04-22 Jim Blandy <jimb@redhat.com>
5820
5821 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5822 register number zero.
5823
5824 2004-04-21 Michael Snyder <msnyder@redhat.com>
5825
5826 * mips-tdep.c (heuristic_proc_start):
5827 Warning() already prefixes "Warning: ".
5828
5829 2004-04-21 Andrew Cagney <cagney@redhat.com>
5830
5831 * annotate.h (deprecated_annotate_starting_hook)
5832 (deprecated_annotate_stopped_hook)
5833 (deprecated_annotate_exited_hook)
5834 (deprecated_annotate_signal_hook)
5835 (deprecated_annotate_signalled_hook): Deprecate.
5836 * tracepoint.h (deprecated_create_tracepoint_hook)
5837 (deprecated_delete_tracepoint_hook)
5838 (deprecated_modify_tracepoint_hook)
5839 (deprecated_trace_find_hook)
5840 (deprecated_trace_start_stop_hook): Deprecate.
5841 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5842 * remote.h (deprecated_target_resume_hook)
5843 (deprecated_target_wait_loop_hook): Deprecate.
5844 * gdbcore.h (deprecated_exec_file_display_hook)
5845 (deprecated_file_changed_hook): Deprecate.
5846 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5847 * defs.h (deprecated_modify_breakpoint_hook)
5848 (deprecated_command_loop_hook, deprecated_show_load_progress)
5849 (deprecated_print_frame_info_listing_hook)
5850 (deprecated_query_hook, deprecated_warning_hook)
5851 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5852 (deprecated_delete_breakpoint_hook)
5853 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5854 (deprecated_readline_begin_hook, deprecated_readline_hook)
5855 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5856 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5857 (deprecated_context_hook, deprecated_target_wait_hook)
5858 (deprecated_attach_hook, deprecated_detach_hook)
5859 (deprecated_call_command_hook, deprecated_set_hook)
5860 (deprecated_error_hook, deprecated_error_begin_hook)
5861 (deprecated_ui_load_progress_hook): Deprecate.
5862 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5863 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5864 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5865 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5866 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5867 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5868 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5869 * annotate.c, aix-thread.c: Update.
5870
5871 2004-04-21 Andrew Cagney <cagney@redhat.com>
5872
5873 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5874 * vaxnbsd-tdep.c: Include "gdb_string.h".
5875
5876 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5877 (add_symbol_file_from_memory_command): #if 0 function body, call
5878 error instead.
5879
5880 2004-04-21 Andrew Cagney <cagney@redhat.com>
5881
5882 * gdbcore.h: Update copyright.
5883 (deprecated_add_core_fns): Rename add_core_fns.
5884 * win32-nat.c (_initialize_core_win32): Update.
5885 * sun3-nat.c (_initialize_core_sun3): Update.
5886 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5887 * rs6000-nat.c (_initialize_core_rs6000): Update.
5888 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5889 * nto-tdep.c (_initialize_nto_tdep): Update.
5890 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5891 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5892 * mips-nat.c (_initialize_core_mips): Update.
5893 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5894 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5895 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5896 * lynx-nat.c (_initialize_core_lynx): Update.
5897 * irix5-nat.c (_initialize_core_irix5): Update.
5898 * i386-interix-nat.c (_initialize_core_interix): Update.
5899 * cris-tdep.c (_initialize_cris_tdep): Update.
5900 * corelow.c (deprecated_add_core_fns): Update.
5901 * core-regset.c (_initialize_core_regset): Update.
5902 * core-aout.c (_initialize_core_aout): Update.
5903 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5904 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5905 * alpha-nat.c (_initialize_core_alpha): Update.
5906
5907 2004-04-21 Jim Blandy <jimb@redhat.com>
5908
5909 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5910
5911 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5912
5913 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5914 Delete.
5915 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5916 (read_attribute_value): Update calls to dwarf_alloc_block.
5917 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5918 dwarf2_tmp_obstack.
5919 (psymtab_to_symtab_1): Likewise. Clean up using
5920 free_stack_comp_unit.
5921 (add_to_cu_func_list): Use the comp_unit_obstack.
5922
5923 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5924
5925 * dwarf2read.c (dwarf2_flag_true_p): New function.
5926 (die_is_declaration): Use the function above. Add some comments.
5927
5928 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5929
5930 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5931 architecture when registering sparcnbsd_core_osabi_sniffer.
5932 Adjust comment.
5933
5934 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5935
5936 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5937 return value.
5938
5939 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5940 * i386-tdep.c: Correct register numbering scheme comments
5941 throughout.
5942 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5943 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5944 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5945 (i386_gdb_arch_init): Likewise.
5946
5947 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5948 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5949 ppcnbsd-tdep.o.
5950
5951 * m68k-tdep.h: Tweak comments.
5952 * m68k-tdep.c: Tweak comment.
5953
5954 2004-04-17 Randolph Chung <tausq@debian.org>
5955
5956 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5957 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5958 (hppa_hpux_som_init_abi): Set is_elf to 0.
5959 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5960 * hppa-tdep.c (low_text_segment_address): Remove global.
5961 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5962 section offset to calculate segment address.
5963 (internalize_unwinds): Define low_text_segment_address as local and
5964 pass to record_text_segment_lowaddr for ELF targets.
5965 (hppa_gdbarch_init): Zero fill tdep structure.
5966 (hppa_dump_tdep): Print tdep structure.
5967 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5968
5969 2004-04-17 Randolph Chung <tausq@debian.org>
5970
5971 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5972 (hppa_gdbarch_init): Set pseudo_register_read.
5973 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5974 * regcache.c (supply_register): Remove check for
5975 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5976
5977 2004-04-17 Randolph Chung <tausq@debian.org>
5978
5979 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5980 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5981 (hpread_adjust_stack_address): Move to hpread.c.
5982 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5983 obj_private_struct): Move from tm-hppa.h.
5984 * hpread.c (hppa-tdep.h): Include.
5985 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5986 (hpread_read_function_type, hpread_read_doc_function_type)
5987 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5988 directly.
5989 * pa64solib.c (hppa-tdep.h): Include.
5990 * somsolib.c (hppa-tdep.h): Include.
5991 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5992 inferior_status): Remove unused forward declarations.
5993 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5994 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5995 obj_private_struct): Move to hppa-tdep.h.
5996 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5997
5998 2004-04-17 Randolph Chung <tausq@debian.org>
5999
6000 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6001 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6002 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6003 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6004 Remove forward declaration and make static.
6005 (hppa_reg_struct_has_addr): Remove.
6006
6007 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6008
6009 * observer.sh: Move comments in sed command to first column.
6010
6011 2004-04-16 Jason Molenda (jmolenda@apple.com)
6012
6013 * frame.c: Minor typeo corrections in comments.
6014
6015 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6016
6017 * observer.c (observer_test_first_notification_function): Update
6018 function profile.
6019 (observer_test_second_notification_function): Likewise.
6020 (observer_test_third_notification_function): Likewise.
6021
6022 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6023
6024 From Brian Ford <ford@vss.fsi.com>:
6025 * i386-tdep.c (i386_coff_init_abi): New function.
6026 * i386-tdep.h (i386_coff_init_abi): New prototype.
6027 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6028 register number translation functions for DWARF and DWARF 2.
6029
6030 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6031
6032 * dwarf2read.c: Back out my previous change, it was incorrect.
6033
6034 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6035
6036 * dwarf2read.c: Include "hashtab.h".
6037 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6038 has_namespace_info.
6039 (struct partial_die_info): Add comments. Use bitfields to reduce
6040 memory footprint. Add scope, scope_set, has_specification,
6041 spec_offset, die_parent, die_child, and die_sibling.
6042 (peek_die_abbrev): Add prototype.
6043 (partial_read_comp_unit_head): New function, broken out from
6044 dwarf2_build_psymtabs_hard.
6045 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6046 Use partial_read_comp_unit_head. Initialize the CU and
6047 comp_unit_obstack. Update calls to read_partial_die and
6048 scan_partial_symbols. Use free_stack_comp_unit and
6049 load_partial_dies.
6050 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6051 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6052 Update calls to helper functions. Remove NAMESPACE argument.
6053 Update comments.
6054 (partial_die_parent_scope, partial_die_full_name): New functions.
6055 (add_partial_symbol): Remove namespace argument. Update call to
6056 pdi_needs_namespace. Use partial_die_full_name. Handle
6057 DW_TAG_namespace. Check has_namespace_info flag.
6058 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6059 tag. Handle namespaces.
6060 (add_partial_namespace, add_partial_enumeration): Simplify.
6061 (guess_structure_name): New function, derived from
6062 add_partial_structure.
6063 (add_partial_structure): Remove.
6064 (determine_class_name): Update comment.
6065 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6066 (is_type_tag_for_partial, load_partial_dies): New functions.
6067 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6068 Record specifications instead of following them immediately.
6069 (find_partial_die_in_comp_unit, find_partial_die)
6070 (fixup_partial_die, free_stack_comp_unit)
6071 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6072 (partial_die_hash, partial_die_eq): New functions.
6073 * Makefile.in (hashtab_h): Define.
6074 (dwarf2read.o): Update dependencies.
6075 (observer_inc, observer_h): Move to the correct section.
6076
6077 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6078
6079 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6080 (die_is_declaration): Use the function above. Add comment.
6081
6082 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6083
6084 * dwarf2read.c (read_structure_scope): Identify stub types
6085 using die_is_declaration() only.
6086
6087 2004-04-15 Roland McGrath <roland@redhat.com>
6088
6089 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6090 argument instead of NAME.
6091 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6092 in call to symbol_file_add_with_addrs_or_offsets.
6093 (build_addr_info): New function, helper for ...
6094 (symbol_file_add_from_memory): New function.
6095 (add_symbol_file_from_memory_command): New function using that.
6096 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6097 (pre_add_symbol_hook): Add const to argument type.
6098 * symfile.h (symbol_file_add_from_memory): Declare it.
6099
6100 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6101
6102 * NEWS (New native configurations): Mention OpenBSD/vax.
6103 * configure.host: Add vax-*-openbsd*.
6104 * config/vax/obsd.mh: New file.
6105 * config/vax/nm-obsd.h: New file.
6106
6107 * vax-tdep.c: Include "regset.h".
6108 (vax_supply_gregset): New function.
6109 (vax_gregset): New variable.
6110 (vax_regset_from_core_section): New function.
6111 (vax_gdbarch_init): Set regset_from_core_section.
6112 * Makefile.in (vax-tdep.o): Update dependencies.
6113
6114 2004-04-15 Andrew Cagney <cagney@redhat.com>
6115
6116 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6117 (observer_normal_stop_notification_stub)
6118 (observer_attach_normal_stop, observer_detach_normal_stop):
6119 Delete, replaced by #include "observer.inc".
6120 * infrun.c (normal_stop): Pass "stop_bpstat" to
6121 observer_notify_normal_stop.
6122 * Makefile.in (observer_inc): Define.
6123 (observer.o): Update dependencies.
6124 (observer.h, observer.inc): New rules.
6125 * observer.h: Delete file.
6126 * observer.sh: New file.
6127
6128 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6129
6130 * vax-tdep.c (vax_frame_cache): Fix typo.
6131
6132 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6133
6134 * NEWS (New native configurations): Mention NetBSD/vax.
6135 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6136 * config/vax/nbsdelf.mh: New file.
6137 * config/vax/nbsdaout.mh: New file.
6138 * config/vax/nm-nbsd.h: New file.
6139 * config/vax/nm-nbsdaout.h: New file.
6140
6141 * vaxnbsd-tdep.c: New file.
6142 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6143 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6144 * config/vax/nbsd.mt: New file.
6145 * config/vax/tm-nbsd.h: New file.
6146
6147 * Makefile.in (vaxbsd-nat.o): New dependency.
6148
6149 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6150 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6151 struct_addr arguments. Don't push return value address.
6152 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6153 arguments to vax_store_arguments. Store return value address in
6154 R1.
6155 (vax_store_struct_return, vax_extract_return_value)
6156 (vax_store_return_value): Remove functions.
6157 (vax_return_value): New function.
6158 (vax_gdbarch_init): Set return value. Don't set
6159 deprecated_store_struct_return, deprecated_extract_struct_return
6160 and deprecated_store_return_value.
6161
6162 2004-04-14 Andreas Schwab <schwab@suse.de>
6163
6164 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6165 value buffer.
6166 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6167
6168 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6169
6170 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6171 (vax_unwind_dummy_id): New functions.
6172 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6173 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6174 variables.
6175 (vax_fix_call_dummy): Remove function.
6176 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6177 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6178 call_dummy_location, deprecated_call_dummy_words,
6179 deprecated_sizeof_call_dummy_words,
6180 deprecated_call_dummy_breakpoint_offset,
6181 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6182 and deprecated_dummy_write_sp.
6183
6184 2004-04-13 David Carlton <carlton@kealia.com>
6185
6186 * MAINTAINERS: Move myself to "paper trail" section.
6187
6188 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6189
6190 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6191 "trad-frame.h".
6192 (vax_frame_init_saved_regs): Remove function.
6193 (vax_sigtramp_saved_pc): Remove function.
6194 (vax_frame_saved_pc): Remove function.
6195 (vax_frame_args_address): Remove function.
6196 (vax_frame_num_args): Rewrite.
6197 (vax_frame_chain): Remove function.
6198 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6199 VAX_FP_REGNUM.
6200 (vax_pop_frame): Likewise.
6201 (vax_saved_pc_after_call): Remove function.
6202 (struct vax_frame_cache): New structure.
6203 (vax_frame_cache): New function.
6204 (vax_frame_this_id): New function.
6205 (vax_frame_prev_register): New function.
6206 (vax_frame_unwind): New variable.
6207 (vax_frame_sniffer): New function.
6208 (vax_frame_base_address): New function.
6209 (vax_frame_args_address): New function.
6210 (vax_frame_base): New variable.
6211 (vax_unwind_pc): New function.
6212 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6213 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6214 deprecated_frame_chain, deprecated_frame_saved_pc,
6215 deprecated_frame_args_address and
6216 deprecated_frame_init_saved_regs.
6217 * Makefile.in (vax-tdep.o): Update dependencies.
6218
6219 * vaxbsd-nat.c: New file.
6220
6221 * vax-tdep.h: Update copyright year. Adjust comments.
6222 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6223 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6224 (vax_regnum): New enum. Replacing...
6225 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6226 (VAX_PS_REGNUM): ... these removed macros.
6227 * vax-tdep.c (vax_register_name): Remove prototype.
6228 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6229 (vax_register_byte, vax_register_raw_size,
6230 vax_register_virtual_size, vax_register_virtual_type): Remove
6231 functions.
6232 (vax_register_type): New function.
6233 (vax_breakpoint_from_pc): Reorganize.
6234 (vax_gdbarch_init): Set register_type. Don't set
6235 deprecated_register_size, deprecated_register_bytes,
6236 deprecated_register_byte, deprecated_register_raw_size,
6237 deprecated_max_register_raw_size,
6238 deprecated_register_virtual_size,
6239 deprecated_max_register_virtual_size and
6240 deprecated_register_virtual_type. Add comment on stack direction.
6241
6242 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6243
6244 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6245 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6246 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6247
6248 2004-04-10 Randolph Chung <tausq@debian.org>
6249
6250 * MAINTAINERS (write after approval): Add myself.
6251
6252 2004-04-07 Randolph Chung <tausq@debian.org>
6253
6254 * hppa-tdep.c (hppa_inner_than): Remove.
6255 (is_pa_2): Remove unused static variable.
6256 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6257
6258 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6259
6260 * language.h (language_defn): Add new la_post_parser field.
6261 * parser-defs.h (null_post_parser): New declaration (default for
6262 la_post_parser).
6263
6264 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6265 insert call to that function.
6266 (parse_exp_in_context): New function, including code formerly in
6267 parse_exp_1. Calls language-dependent post-parser after
6268 prefixification.
6269 (parse_expression_in_context): New exported function.
6270 (null_post_parser): New definition.
6271 * expression.h (parse_expression_in_context): Add declaration.
6272
6273 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6274 * c-lang.c (c_language_defn): Ditto.
6275 (cplus_language_defn): Ditto.
6276 (asm_language_defn): Ditto.
6277 (minimal_language_defn): Ditto.
6278 * f-lang.c (f_language_defn): Ditto.
6279 * jv-lang.c (java_language_defn): Ditto.
6280 * language.c (unknown_language_defn): Ditto.
6281 (auto_language_defn): Ditto.
6282 (local_language_defn): Ditto.
6283 * m2-lang.c (m2_language_defn): Ditto.
6284 * scm-lang.c (scm_language_defn): Ditto.
6285 * obj-lang.c (objc_language_defn): Ditto.
6286
6287 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6288
6289 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6290 (amd64nbsd_mcontext_addr): New function.
6291 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6292 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6293 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6294
6295 * corelow.c (core_xfer_partial): Fix coding standards violation.
6296 Add support for TARGET_OBJECT_WCOOKIE.
6297
6298 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6299 deprecated_pc_in_sigtramp.
6300 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6301 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6302 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6303 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6304 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6305 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6306 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6307
6308 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6309 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6310 Fix typo.
6311
6312 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6313 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6314 (amd64_collect_fxsave): Likewise.
6315
6316 * i386-sol2-tdep.c: Include "gdb_string.h".
6317 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6318 name.
6319 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6320
6321 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6322
6323 * i386-sol2-tdep.c: Include "solib-svr4.h".
6324 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6325 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6326 * config/i386/tm-i386sol2.h: Include :solib.h".
6327 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6328 solib-svr4.o and solib-legacy.o.
6329 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6330 solib-svr4.o.
6331
6332 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6333
6334 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6335 whether a register is supplied by PTRACE_GETFPREGS.
6336 (store_inferior_registers): Likewise.
6337 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6338 whether a register is supplied by PT_GETFPREGS.
6339 (store_inferior_registers): Likewise.
6340
6341 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6342 * config/i386/linux64.mt (TDEPFILES): Likewise.
6343
6344 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6345
6346 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6347 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6348 the program counter is in the range specified by `struct
6349 gdbarch_tdep'.
6350 * amd64-linux-tdep.c: Include "symtab.h".
6351 (amd64_linux_pc_in_sigtramp): Remove function.
6352 (amd64_linux_sigtramp_p): New function.
6353 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6354 deprecated_pc_in_sigtramp.
6355 * amd64nbsd-tdep.c: Include "symtab.h".
6356 (amd64nbsd_sigtramp_p): New function.
6357 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6358 deprecated_pc_in_sigtramp.
6359 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6360 few comments.
6361 (amd64obsd_pc_in_sigtramp): Remove function.
6362 (amd64obsd_sigtramp_p): New function.
6363 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6364 deprecated_pc_in_sigtramp.
6365 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6366 (i386bsd_pc_ins_sigtramp): Remove prototype.
6367 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6368 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6369 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6370 the program counter is in the range specified by `struct
6371 gdbarch_tdep'.
6372 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6373 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6374 (i386_go32_pc_in_sigtramp): Remove function.
6375 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6376 Initialize TDEP->sigtramp_p.
6377 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6378 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6379 deprecated_pc_in_sigtramp.
6380 * i386-linux-tdep.c: Adjust comments.
6381 (i386_linux_pc_in_sigtramp): Remove function.
6382 (i386_linux_sigtramp_p): New function.
6383 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6384 deprecated_pc_in_sigtramp.
6385 * i386-nto-tdep.c: Update copyright year.
6386 (i386nto_pc_in_sigtramp): Remove function.
6387 (i386nto_sigtramp_p): New function.
6388 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6389 SP_REGNUM.
6390 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6391 deprecated_pc_in_sigtramp.
6392 * i386-sol2-tdep.c: Update copyright year.
6393 (i386_sol2_pc_in_sigtramp): Remove function.
6394 (i386_sol2_sigtramp_p): New function.
6395 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6396 deprecated_pc_in_sigtramp.
6397 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6398 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6399 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6400 deprecated_sigtramp_start and deprecated_sigtramp_end.
6401 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6402 (i386nbsd_pc_in_sigtramp): Remove function.
6403 (i386nbsd_sigtramp_p): New function.
6404 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6405 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6406 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6407 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6408 (i386obsd_pc_in_sigtramp): Remove function.
6409 (i386obsd_sigtramp_p): New function.
6410 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6411 functions.
6412 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6413 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6414 TDEP->sigtramp_p.
6415 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6416 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6417 dependencies.
6418
6419 * config/i386/i386aout.mt: Remove file.
6420
6421 * configure.tgt: Remove i[34567]86-*-go32*,
6422 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6423 and i[34567]86-*-isc*. Set gdb_target to i386 for
6424 i[34567]86-*-netware* and i[34567]86-*-*.
6425 * config/i386/i386.mt: New file.
6426 * config/i386/embed.mt: Remove file.
6427 * config/i386/go32.mt: Remove file.
6428 * config/i386/i386nw.mt: Remove file.
6429 * config/i386/i386v.mt: Remove file.
6430 * config/i386/tm-go32.h: Remove file.
6431
6432 * tui/tui-hooks.c: Include "readline/readline.h" after
6433 "gdb_curses.h" instead of before.
6434 * tui/tui-io.c: Likewise.
6435
6436 * tui/tui.c: Fix typo in comment.
6437
6438 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6439
6440 2004-04-08 Andrew Cagney <cagney@redhat.com>
6441
6442 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6443 (deprecated_exception_support_initialized): Declare.
6444 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6445 (initialize_hp_cxx_exception_support)
6446 (child_enable_exception_callback): Update.
6447 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6448 (deprecated_exception_support_initialized): Rename
6449 deprecated_exception_catchpoints_are_fragile and
6450 deprecated_exception_support_initialized.
6451 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6452
6453 * symtab.c (deprecated_hp_som_som_object_present): Rename
6454 hp_som_som_object_present.
6455 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6456 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6457 Update. Delete extern declaration.
6458 * valops.c (hp_som_som_object_present): Ditto.
6459 * parse.c (deprecated_hp_som_som_object_present)
6460 (parse_nested_classes_for_hpacc): Ditto.
6461 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6462 * hppa-hpux-tdep.c (hp_som_som_object_present)
6463 (initialize_hp_cxx_exception_support): Ditto.
6464 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6465 * cp-valprint.c (hp_som_som_object_present)
6466 (cp_print_class_method): Ditto.
6467 * c-typeprint.c (hp_som_som_object_present):
6468 (c_type_print_base): Ditto.
6469 * c-exp.y (hp_som_som_object_present): Ditto.
6470
6471 2004-04-08 Andrew Cagney <cagney@redhat.com>
6472
6473 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6474 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6475 (frame_unwind_find_by_frame): Re-implement the unwind code so
6476 that it can both prepend and append sniffers. Replace
6477 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6478 * tramp-frame.c (tramp_frame_append): Use
6479 frame_unwind_prepend_unwinder.
6480 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6481 frame_unwind_register_unwinder.
6482 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6483 tramp_frame_append.
6484 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6485 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6486 (mips_linux_init_abi): Update.
6487
6488 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6489
6490 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6491 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6492 file support.
6493
6494 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6495
6496 * ia64-tdep.c (elf.h): Don't include.
6497 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6498
6499 2004-04-07 Jason Molenda (jmolenda@apple.com)
6500
6501 * frame.h: Typeo corrections in comments.
6502
6503 2004-04-07 Jim Blandy <jimb@redhat.com>
6504
6505 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6506 %esp and %ebp
6507
6508 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6509
6510 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6511 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6512 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6513 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6514 and solib-legacy.o.
6515 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6516 solib-svr4.o.
6517 * config/sparc/tm-sol2.h: Update copyright year. Include
6518 "solib.h".
6519
6520 * sparc-sol2-tdep.c: Update copyright year. Include
6521 "solib-svr4.h".
6522 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6523 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6524 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6525 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6526 dependencies.
6527
6528 2004-04-06 Andrew Cagney <cagney@redhat.com>
6529
6530 * infttrace.c: Include "infttrace.h".
6531 * infttrace.h: Include "target.h".
6532 * Makefile.in (infttrace_h): Update.
6533 (infttrace.o): Update.
6534
6535 2004-04-06 Andrew Cagney <cagney@redhat.com>
6536
6537 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6538 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6539 move extern declarations from here ...
6540 * infttrace.h: ... to here.
6541 * Makefile.in (hppah-nat.o): Update dependencies.
6542
6543 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6544 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6545 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6546 (hppa_breakpoint_from_pc): Delete.
6547
6548 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6549
6550 2004-04-05 Andrew Cagney <cagney@redhat.com>
6551
6552 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6553 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6554 <sys/file.h>.
6555
6556 2004-04-06 Randolph Chung <tausq@debian.org>
6557
6558 Committed by Andrew Cagney (mechanical change).
6559 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6560 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6561 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6562 child_enable_exception_callback, current_ex_event,
6563 null_symtab_and_line, child_get_current_exception_event,
6564 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6565 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6566 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6567 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6568 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6569 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6570 Move hpux-specific definitions ...
6571 * hppa-hpux-tdep.c: ... to here.
6572
6573 2004-04-05 Andrew Cagney <cagney@redhat.com>
6574
6575 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6576 skip_prologue_using_sal.
6577
6578 2004-04-05 Andrew Cagney <cagney@redhat.com>
6579
6580 * config/i386/tm-i386.h: Delete file.
6581 * config/i386/tm-vxworks.h: Update copyright, do not include
6582 "tm-i386.h".
6583 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6584 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6585 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6586 * config/i386/ncr3000.mt (TM_FILE): Delete.
6587 * config/i386/interix.mt (TM_FILE): Delete.
6588 * config/i386/i386v.mt (TM_FILE): Delete.
6589 * config/i386/i386nw.mt (TM_FILE): Delete.
6590 * config/i386/i386gnu.mt (TM_FILE): Delete.
6591 * config/i386/i386aout.mt (TM_FILE): Delete.
6592 * config/i386/embed.mt (TM_FILE): Delete.
6593
6594 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6595
6596 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6597 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6598 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6599 (accg7_regnum): New constants.
6600 (last_spr_regnum, last_pseudo_regnum): Update.
6601 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6602 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6603 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6604 for accg registers.
6605 (frv_register_sim_regno): Update spr_map[].
6606
6607 2004-04-04 Andrew Cagney <cagney@redhat.com>
6608
6609 * config/mips/xm-riscos.h: Delete.
6610 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6611 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6612 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6613 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6614 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6615 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6616 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6617 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6618 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6619 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6620 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6621 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6622 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6623 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6624 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6625 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6626 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6627 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6628 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6629 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6630 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6631 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6632 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6633 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6634 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6635 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6636
6637 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6638 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6639 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6640 * configure.host: Remove m680[01]0-sun-sunos3*,
6641 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6642 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6643 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6644 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6645 mips-*-riscos*.
6646 * NEWS: Mention removed systems.
6647
6648 2004-04-04 Andrew Cagney <cagney@redhat.com>
6649
6650 GDB 6.1 release created from 6.1 branch.
6651
6652 2004-04-04 Andrew Cagney <cagney@redhat.com>
6653
6654 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6655 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6656 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6657
6658 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6659 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6660 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6661
6662 2004-04-03 Jim Blandy <jimb@redhat.com>
6663
6664 * MAINTAINERS: Chris Faylor has changed employers; add him to
6665 "paper trail" section, and update his E-mail address.
6666
6667 2004-04-03 Andrew Cagney <cagney@redhat.com>
6668
6669 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6670 generic dummy frames.
6671 * dummy-frame.c: Update copyright.
6672 (dummy_frame_sniffer): Delete check for generic dummy frames.
6673
6674 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6675 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6676 (REG_PARM_STACK_SPACE): Delete.
6677 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6678 Inline reference to REG_PARM_STACK_SPACE.
6679
6680 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6681 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6682 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6683 (FRAME_BASE_BEFORE_SIGTRAMP)
6684 (hppa32_hpux_frame_base_before_sigtramp)
6685 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6686 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6687 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6688 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6689 (FRAME_BASE_BEFORE_SIGTRAMP)
6690 (hppa64_hpux_frame_base_before_sigtramp)
6691 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6692
6693 2004-04-03 Andrew Cagney <cagney@redhat.com>
6694
6695 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6696
6697 2004-04-02 Andrew Cagney <cagney@redhat.com>
6698
6699 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6700 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6701 * dummy-frame.h: Delete out-of-date comments.
6702 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6703 * gdbarch.h, gdbarch.c: Re-generate.
6704
6705 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6706
6707 Committed by Andrew Cagney <cagney@redhat.com>.
6708 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6709 into account an instruction saving a register if we have already
6710 seen an earlier instruction saving that same register.
6711
6712 2004-04-02 Andrew Cagney <cagney@redhat.com>
6713
6714 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6715 * gdbarch.h, gdbarch.c: Re-generate.
6716 * frame.c (legacy_get_prev_frame): Delete references to
6717 DEPRECATED_INIT_FRAME_PC_FIRST.
6718
6719 * infrun.c (pc_in_sigtramp): Delete function.
6720 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6721 get_frame_type.
6722
6723 2004-04-02 Andrew Cagney <cagney@redhat.com>
6724
6725 * infrun.c (handle_step_into_function): Delete code conditional on
6726 legacy_frame_p.
6727 (handle_inferior_event, step_over_function): Ditto.
6728
6729 2004-04-02 Andrew Cagney <cagney@redhat.com>
6730
6731 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6732 "previous frame inner to this frame" test.
6733
6734 2004-04-02 Andrew Cagney <cagney@redhat.com>
6735
6736 * frame.c (safe_frame_unwind_memory): New function.
6737 * frame.h (safe_frame_unwind_memory): Declare. Update description
6738 of /safe_/ methods.
6739 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6740 "next_frame". Use safe_frame_unwind_memory.
6741 (tramp_frame_sniffer): Update call to tramp_frame_start.
6742
6743 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6744
6745 * dwarf2read.c (dwarf2_objfile_data_key): New.
6746 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6747 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6748 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6749 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6750 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6751 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6752 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6753 Remove variables.
6754 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6755 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6756 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6757 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6758 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6759 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6760 Remove macros.
6761 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6762 data.
6763 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6764 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6765 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6766 (read_partial_die, read_full_die, read_indirect_string)
6767 (dwarf_decode_line_header, dwarf_decode_macros)
6768 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6769 Update uses of removed variables.
6770 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6771 of removed macros.
6772 (_initialize_dwarf2_read): New function.
6773 * symfile.h (dwarf2_has_info): Update prototype.
6774 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6775 * elfread.c (elf_symfile_read): Likewise.
6776
6777 2004-04-01 Jim Blandy <jimb@redhat.com>
6778
6779 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6780 function for register numbers on all the rs6000-derived targets.
6781 (rs6000_gdbarch_init): Don't register a separate
6782 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6783 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6784 variants.
6785
6786 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6787 numbering.
6788
6789 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6790
6791 * valarith.c: Update copyright notice.
6792 (value_add): Handle range types.
6793 (value_sub): Ditto.
6794 (value_equal): Ditto.
6795 (value_less): Ditto.
6796 (value_neg): Ditto.
6797 (value_complement): Ditto.
6798 (value_binop): Simplify slightly by using is_integral_type and
6799 eliminiating unnecessary COERCE_ENUMs.
6800
6801 2004-03-31 Andrew Cagney <cagney@redhat.com>
6802
6803 * frame.h (frame_unwind_id): Declare.
6804 * frame.c (frame_unwind_id): New function.
6805 (get_prev_frame_1): New function.
6806 (frame_debug_got_null_frame): New function.
6807 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6808 code proper to prev_frame, update description.
6809 * infrun.c (step_over_function): Use frame_unwind_id.
6810
6811 2004-04-31 J. Brobecker <brobecker@gnat.com>
6812
6813 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6814 (hppa64_push_dummy_call): Likewise.
6815
6816 2004-03-30 Jim Blandy <jimb@redhat.com>
6817
6818 From Ulrich Weigand:
6819 * utils.c (query): Do not use a va_list variable multiple times.
6820
6821 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6822
6823 * Makefile.in (linux_nat_h): Update dependencies.
6824 * configure.in: Check for <gnu/libc-version.h>.
6825 * configure: Regenerate.
6826 * config.in: Regenerate.
6827 * linux-nat.h: Include "target.h". Add waitstatus field to
6828 struct lwp_info.
6829 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6830 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6831 to.
6832 (lin_lwp_handle_extended): New function. Handle clone events.
6833 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6834 thread exit events.
6835 (child_wait): Handle clone events.
6836 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6837 * linux-nat.c (linux_enable_event_reporting): Turn on
6838 PTRACE_O_TRACECLONE.
6839 (linux_handle_extended_wait): Handle clone events.
6840 * thread-db.c: Include <gnu/libc-version.h>.
6841 (struct private_thread_info): Add dying flag.
6842 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6843 higher.
6844 (attach_thread): Update comments. Handle dying threads.
6845 (detach_thread): Set the dying flag.
6846 (check_event): Always call attach_thread.
6847
6848 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6849
6850 * mips-tdep.c (mips_pdr_data): New.
6851 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6852 (_initialize_mips_tdep): Initialize mips_pdr_data.
6853
6854 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6855
6856 * minsyms.c (install_minimal_symbols): Move dropping leading
6857 char from linkage name from here...
6858 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6859 test for "__gnu_compiled*" symbols.
6860
6861 2004-03-28 Jim Blandy <jimb@redhat.com>
6862
6863 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6864 registers to temp register r0 and byte stores as prologue
6865 instructions.
6866
6867 2004-03-28 Andrew Cagney <cagney@redhat.com>
6868
6869 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6870 arm*-*-*.
6871
6872 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6873
6874 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6875 and switch the layout to force a display of register window.
6876
6877 2004-02-26 J. Brobecker <brobecker@gnat.com>
6878
6879 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6880 of the INTEGER class.
6881
6882 2004-03-26 Jim Blandy <jimb@redhat.com>
6883
6884 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6885 bytes long on PPC GNU/Linux.
6886
6887 2004-03-26 David Carlton <carlton@kealia.com>
6888
6889 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6890
6891 2004-03-25 Andrew Cagney <cagney@redhat.com>
6892
6893 * PROBLEMS: Add general section titles, remove references to
6894 specific releases.
6895
6896 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6897
6898 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6899 INT_REGISTER_SIZE.
6900 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6901 FP_REGISTER_VIRTUAL_SIZE.
6902 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6903 of DEPRECATED_REGISTER_RAW_SIZE.
6904 (arm_register_type): Add gdbarch argument.
6905 (arm_register_raw_size, arm_register_virtual_size): Delete.
6906 (arm_register_byte, arm_extract_return_value)
6907 (arm_store_return_value, arm_get_longjmp_target): Update references
6908 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6909 (arm_gdbarch_init): Likewise. Don't set
6910 deprecated_register_raw_size, deprecated_register_virtual_size,
6911 deprecated_max_register_raw_size,
6912 deprecated_max_register_virtual_size, or
6913 deprecated_max_register_virtual_type. Do set register_type.
6914 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6915 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6916 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6917 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6918 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6919 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6920 INT_REGISTER_SIZE.
6921 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6922 (remote_rdp_store_register): Likewise.
6923
6924 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6925
6926 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6927 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6928 to after osabi initialization.
6929 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6930 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6931 functions.
6932 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6933 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6934 variables.
6935 (mips_linux_init_abi): Append signal trampoline unwinders.
6936
6937 2004-03-24 Andrew Cagney <cagney@redhat.com>
6938
6939 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6940 * tramp-frame.c: Include "gdb_assert.h".
6941 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6942 correct sizeof.
6943 (tramp_frame_append): Validate the tramp frame's instructions.
6944 * Makefile.in (tramp-frame.o): Update dependencies.
6945
6946 2004-03-23 Andrew Cagney <cagney@redhat.com>
6947
6948 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6949
6950 2004-03-23 Andrew Cagney <cagney@redhat.com>
6951
6952 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6953 Nasser as past testsuite/lib/ (and other) maintainers.
6954
6955 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6956
6957 * infcmd.c (attach_command): Reread symbols if we already have
6958 an exec file.
6959
6960 2004-03-23 Andrew Cagney <cagney@redhat.com>
6961
6962 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6963
6964 2004-03-23 Andrew Cagney <cagney@redhat.com>
6965
6966 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6967 * gdbarch.h, gdbarch.c: Re-generate.
6968 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6969 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6970 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6971 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6972 (DEPRECATED_SIGTRAMP_START): Update.
6973 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6974 (DEPRECATED_SIGTRAMP_START): Update.
6975 * blockframe.c (find_pc_sect_partial_function): Update.
6976 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6977
6978 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6979
6980 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6981 if necessary.
6982
6983 2004-03-23 Andrew Cagney <cagney@redhat.com>
6984
6985 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6986 predicate, deprecate.
6987 * gdbarch.h, gdbarch.c: Re-generate.
6988 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6989 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6990 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6991 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6992 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6993 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6994 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6995 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6996 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6997 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6998 * blockframe.c (find_pc_partial_function): Update.
6999 * breakpoint.c (bpstat_what): Update.
7000 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7001 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7002 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7003 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7004 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7005 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7006 * i386-nto-tdep.c (i386nto_init_abi): Update.
7007 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7008 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7009 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7010 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7011 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7012 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7013 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7014 * infrun.c (pc_in_sigtramp): Update.
7015 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7016 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7017 * mips-tdep.c (mips_gdbarch_init): Update.
7018 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7019 * ppc-linux-tdep.c: Update comment.
7020 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7021 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7022 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7023 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7024 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7025 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7026 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7027 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7028 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7029 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7030
7031 2004-03-23 Andrew Cagney <cagney@redhat.com>
7032
7033 * tramp-frame.h, tramp-frame.h: New files.
7034 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7035 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7036
7037 * Makefile.in: Update all dependencies.
7038
7039 2004-03-23 Andrew Cagney <cagney@redhat.com>
7040
7041 * Makefile.in (trad_frame_h): Add $(frame_h).
7042 * trad-frame.h: Update copyright. Include "frame.h".
7043 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7044 (trad_frame_set_id, trad_frame_get_id): Declare.
7045 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7046 * trad-frame.c: Update copyright.
7047 (struct trad_frame_cache): Define.
7048 (trad_frame_cache_zalloc): New function.
7049 (trad_frame_set_id, trad_frame_get_id): New functions.
7050 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7051
7052 2004-03-22 Andrew Cagney <cagney@redhat.com>
7053
7054 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7055 s390_pltstub_unwind_cache.
7056 (s390_stub_frame_unwind_cache): Rename
7057 s390_pltstub_frame_unwind_cache.
7058 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7059 (s390_stub_frame_prev_register): Rename
7060 s390_pltstub_frame_prev_register.
7061 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7062 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7063
7064 From Ulrich Weigand:
7065 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7066 pointer calls like PLT calls.
7067
7068 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7069
7070 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7071 PC rather than the partial function start address. Use the start
7072 address to sanity check the found PDR.
7073
7074 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7075
7076 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7077 linux_handle_extended_wait.
7078
7079 2004-03-22 Andrew Cagney <cagney@redhat.com>
7080
7081 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7082 function.
7083
7084 * frame.h (generic_pop_current_frame): Delete declaration.
7085 (deprecate_pop_dummy_frame): Deprecate
7086 generic_pop_dummy_frame.
7087 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7088 (generic_pop_current_frame): Delete function.
7089 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7090 generic_pop_current_frame.
7091 * v850-tdep.c (v850_pop_frame): Update.
7092 * mcore-tdep.c (mcore_pop_frame): Update.
7093 * sh64-tdep.c (sh64_pop_frame): Update.
7094 * h8300-tdep.c (h8300_pop_frame): Update.
7095
7096 2004-03-22 Andrew Cagney <cagney@redhat.com>
7097
7098 * frame.h (deprecated_pc_in_call_dummy): Rename
7099 generic_pc_in_call_dummy.
7100 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7101 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7102 generic_pc_in_call_dummy.
7103 (pc_in_dummy_frame): Make static.
7104 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7105 * gdbarch.h, gdbarch.c: Re-generate.
7106 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7107 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7108 (legacy_get_prev_frame): Ditto.
7109 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7110 comment.
7111
7112 2004-03-21 Andrew Cagney <cagney@redhat.com>
7113
7114 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7115 declaration and out-of-date comment.
7116 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7117 Delete function.
7118 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7119 deprecated_pc_in_call_dummy.
7120
7121 * infrun.c (handle_inferior_event): For non legacy frames, use the
7122 frame ID and frame type to identify a signal trampoline. Update
7123 comments.
7124
7125 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7126
7127 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7128 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7129
7130 2004-03-21 Andrew Cagney <cagney@redhat.com>
7131
7132 * frame-unwind.h: Update copyright.
7133 (struct frame_data): Add opaque declaration.
7134 (frame_sniffer_ftype): Declare.
7135 (struct frame_unwind): Add "unwind_data" and "sniffer".
7136 (frame_unwind_register_unwinder): Declare.
7137 (frame_unwind_find_by_frame): Add parameter "this_cache".
7138 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7139 (legacy_get_prev_frame, legacy_get_prev_frame)
7140 (get_frame_type): Pass the prologue_cache to
7141 frame_unwind_find_by_frame.
7142 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7143 "unwinder".
7144 (frame_unwind_register_unwinder): New function.
7145 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7146
7147 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7148
7149 * bcache.c (print_percentage): Use floating point to avoid
7150 incorrect results when portion*100 overflows.
7151
7152 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7153
7154 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7155 (ppc_linux_init_extra_frame_info)
7156 (ppc_linux_frameless_function_invocation)
7157 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7158 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7159 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7160 (rs6000_frame_chain): Delete declarations.
7161 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7162 (ppc_linux_init_extra_frame_info)
7163 (ppc_linux_frameless_function_invocation)
7164 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7165 (ppc_linux_init_abi): Remove registration of above deleted functions.
7166 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7167 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7168 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7169 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7170 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7171 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7172 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7173 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7174 frame management for all OSABIs.
7175
7176 2004-03-19 Andrew Cagney <cagney@redhat.com>
7177
7178 Committed by Kevin Buettner <kevinb@redhat.com>.
7179
7180 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7181 Update copyright.
7182 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7183 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7184 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7185 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7186 unwinders. #ifdef legacy frame code.
7187 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7188 "frame-base.h".
7189 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7190 (struct rs6000_frame_cache, rs6000_frame_cache)
7191 (rs6000_frame_this_id, rs6000_frame_prev_register)
7192 (rs6000_frame_sniffer, rs6000_frame_unwind)
7193 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7194 (rs6000_frame_base): Implement a traditional frame unwinder.
7195 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7196 frame unwinder.
7197
7198 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7199
7200 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7201 breakpoint address for watchpoints or the catch eventpoints.
7202 Add new paramter ``bptype''. Adjust all callers.
7203
7204 2004-03-19 Andrew Cagney <cagney@redhat.com>
7205
7206 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7207
7208 * PROBLEMS: Delete note that ARM does not use frame code, problem
7209 fixed.
7210
7211 2004-03-18 Andrew Cagney <cagney@redhat.com>
7212
7213 * stack.c (return_command): Delete code wrapped in #ifdef
7214 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7215
7216 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7217
7218 2004-03-18 Andrew Cagney <cagney@redhat.com>
7219
7220 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7221 DEPRECATED_IN_SIGTRAMP.
7222 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7223 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7224 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7225 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7226 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7227 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7228 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7229 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7230 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7231 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7232
7233 2004-03-18 Andrew Cagney <cagney@redhat.com>
7234
7235 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7236 (struct frame_base_table_entry): Define.
7237 (struct frame_base_table): Re-implement as a linked list.
7238 (frame_base_init): Re-implement.
7239 (frame_base_table): Delete function.
7240 (append_predicate): Delete function.
7241 (frame_base_append_sniffer): Update.
7242 (frame_base_set_default): Update.
7243 (frame_base_find_by_frame): Update.
7244 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7245 * Makefile.in (frame-base.o): Update dependencies.
7246
7247 2004-03-17 Andrew Cagney <cagney@redhat.com>
7248
7249 * frame.c (legacy_get_prev_frame): Pass correct frame to
7250 frame_unwind_find_by_frame.
7251
7252 2004-03-17 David Carlton <carlton@kealia.com>
7253
7254 * NEWS: Mention C++ nested types and namespaces
7255
7256 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7257
7258 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7259 and "Regressions since gdb 5.3.". Add known regressions since
7260 gdb 6.0.
7261
7262 2004-03-16 David Carlton <carlton@kealia.com>
7263
7264 * dwarf2read.c (process_structure_scope): Process children even
7265 when we're a declaration.
7266
7267 2004-03-16 Andrew Cagney <cagney@redhat.com>
7268
7269 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7270 * blockframe.c (find_pc_partial_function)
7271 (find_pc_sect_partial_function): Merge into a single
7272 find_pc_partial_function.
7273
7274 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7275
7276 * i386bsd-nat.c: s/regno/regnum/g.
7277 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7278 FP0_REGNUM.
7279 (store_inferior_registers): Likewise.
7280
7281 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7282
7283 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7284 of i387_fill_fsave.
7285 (store_inferior_registers): Call i387_collect_fsave and
7286 i387_collect_fxsave instead of i387_fill_fsave and
7287 i387_fill_fxsave.
7288
7289 2004-03-15 Andrew Cagney <cagney@redhat.com>
7290
7291 * Makefile.in (frame-unwind.o): Update dependencies.
7292 * frame-unwind.c: Include "gdb_obstack.h".
7293 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7294 parameter.
7295 (append_predicate): Delete function.
7296 (struct frame_unwind_table_entry): New structure.
7297 (struct frame_unwind_table): Replace "sniffer" with "head" and
7298 "tail".
7299 (frame_unwind_append_sniffer): Update.
7300 (frame_unwind_find_by_frame): Update.
7301 (_initialize_frame_unwind): Registe frame_unwind_init using
7302 gdbarch_data_register_pre_init.
7303
7304 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7305
7306 * i386bsd-nat.c: Update copyright year.
7307 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7308 define unconditionally.
7309
7310 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7311
7312 * i387-tdep.h (i387_collect_fsave): New prototype.
7313 * i387-tdep.c (i387_collect_fsave): New function containing most
7314 of the code from i387_fill_fsave.
7315 (i387_fill_fsave): Call i387_collect_fsave.
7316
7317 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7318
7319 * i386-linux-tdep.c: Update copyright year.
7320 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7321 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7322 svr4_ilp32_link_map_offsets instead of
7323 i386_linux_svr4_fetch_link_map_offsets.
7324
7325 2004-03-15 David Carlton <carlton@kealia.com>
7326
7327 Fix for PR c++/1553:
7328 * dwarf2read.c (read_structure_type): Determine type name by
7329 calling determine_class_name.
7330 (determine_class_name): New.
7331 (determine_prefix): Look at TYPE_TAG_NAME and call
7332 determine_class_name when appropriate.
7333 (determine_prefix_aux, class_name): Delete.
7334 (read_namespace): Set die->type.
7335
7336 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7337
7338 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7339 unused macro definition. The definition in target.h (or perhaps
7340 elsewhere) takes precedence.
7341
7342 2004-03-15 Andrew Cagney <cagney@redhat.com>
7343
7344 * ppc-tdep.h: Update copyright.
7345 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7346 function signatures to match "regsets.h".
7347 * ppc-linux-tdep.c: Include "regset.h".
7348 (ELF_GREGSET_SIZE): Delete.
7349 (right_supply_register): New function.
7350 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7351 using right_supply_register.
7352 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7353 functions.
7354 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7355 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7356 (_initialize_ppc_linux_tdep): Do not register
7357 ppc_linux_regset_core_fns.
7358 (ppc_linux_regset_from_core_section): Replace
7359 fetch_core_registers.
7360 (ppc_linux_regset_core_fns): Delete.
7361 * ppc-linux-nat.c: (right_fill_reg): New function.
7362 (supply_gregset): Update call to ppc_linux_supply_gregset.
7363 (fill_gregset): Clear the register set, use right_fill_reg.
7364 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7365 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7366
7367 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7368 unsigned.
7369
7370 2004-03-15 Andrew Cagney <cagney@redhat.com>
7371
7372 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7373 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7374 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7375 and register_gdbarch_data.
7376 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7377 (struct gdbarch_data): Replace "init" by "pre_init" and
7378 "post_init".
7379 * gdbarch.h, gdbarch.c: Re-generate.
7380 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7381 with"obstack", use OBSTACK_ZALLOC.
7382 (dwarf2_frame_ops): Delete.
7383 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7384 (dwarf2_frame_init_reg): Use gdbarch_data.
7385 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7386 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7387 (_initialize_svr4_solib): Update.
7388 * user-regs.c (_initialize_user_regs): Update.
7389 * reggroups.c (_initialize_reggroup): Update.
7390 * regcache.c (_initialize_regcache): Update.
7391 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7392 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7393 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7394 * frame-unwind.c (_initialize_frame_unwind): Update.
7395 * frame-base.c (_initialize_frame_base): Update.
7396 * user-regs.c (user_reg_add): Update.
7397 * reggroups.c (reggroup_add): Update.
7398 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7399 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7400 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7401 * frame-base.c (frame_base_table): Update.
7402 * remote.c (_initialize_remote): Update.
7403 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7404
7405 2004-03-15 Andrew Cagney <cagney@redhat.com>
7406
7407 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7408
7409 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7410
7411 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7412 * frv-linux-tdep.c: New file.
7413 * frv-tdep.c (struct gdbarch_tdep): Add new field
7414 ``sigcontext_reg_addr''.
7415 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7416 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7417 (frv_sigramp_frame_sniffer): New functions.
7418 (frv_sigtramp_frame_unwind): New static global.
7419 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7420 sniffers.
7421 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7422 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7423
7424 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7425
7426 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7427 but not via a call to error(), when unable to read memory.
7428
7429 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7430
7431 * frv-tdep.c (frv_call_dummy_words): Delete.
7432 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7433
7434 2004-03-15 Andrew Cagney <cagney@redhat.com>
7435
7436 * infrun.c (handle_step_into_function, step_over_function): Only
7437 update and use STEP_FRAME_ID when the system is using legacy
7438 frames. Update comments.
7439
7440 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7441
7442 * amd64-linux-tdep.h: Remove file.
7443 * amd64-linux-tdep.c: Don't include "inferior.h" and
7444 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7445 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7446 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7447 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7448 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7449 macros.
7450 (user_to_gdb_regmap): Remove variable.
7451 (amd64_linux_gregset_reg_offset): New variable.
7452 (amd64_core_fns): Remove variable.
7453 (fetch_core_registers): Remove function.
7454 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7455 functions.
7456 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7457 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7458 * Makefile.in (amd64_linux_tdep_h): Remove.
7459 (amd64-linux-nat.o): Update dependencies.
7460 (amd64-linux-tdep.o): Update dependencies.
7461
7462 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7463 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7464 functions.
7465 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7466
7467 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7468 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7469
7470 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7471
7472 * dwarf2read.c (read_structure_type): Rename from
7473 read_structure_scope. Don't create a symbol or call process_die.
7474 Return immediately if die->type is set. Call read_type_die before
7475 dwarf2_add_member_fn.
7476 (process_structure_scope): New function.
7477 (read_enumeration_type, process_enumeration_scope): New functions,
7478 broken out from read_enumeration. Don't create the enumeration
7479 type if it has already been created.
7480 (read_enumeration): Removed.
7481 (process_die): Call read_structure_type, process_structure_scope,
7482 read_enumeration_type, and process_enumeration_scope. Just call
7483 new_symbol for base and subrange types. Add a comment about other
7484 type dies.
7485 (read_type_die): Call read_enumeration_type.
7486 (add_partial_structure, new_symbol): Update comments.
7487
7488 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7489
7490 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7491
7492 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7493
7494 * tui/tui-win.h (tui_get_cmd_list): Declare.
7495 * tui/tui-win.c (tui_command): New function.
7496 (tui_get_cmd_list): New function.
7497 (_initialize_tui_win): Moved initialization of tui command in
7498 tui_get_cmd_list.
7499
7500 * tui/tui-data.c (init_content_element): Setup new data members.
7501 (init_win_info): Likewise.
7502 (free_content_elements): Free it.
7503 * tui/tui-data.h (struct tui_data_element): Store the register
7504 content to print.
7505 (struct tui_data_info): Keep the current register group.
7506
7507 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7508
7509 * tui/tui-regs.h (tui_show_registers): Update prototype.
7510 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7511 (tui_resize_all): No need to calculate anything for register window.
7512 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7513 (tui_set_register_element, tui_set_general_regs_content): Remove.
7514 (tui_set_special_regs_content): Remove.
7515 (tui_set_general_and_special_regs_content): Remove.
7516 (tui_set_float_regs_content): Remove.
7517 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7518 (tui_set_regs_content): Remove.
7519 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7520 (tui_v_show_registers_command_support): Remove.
7521 (tui_show_registers): Use a reggroup to specify the registers to show.
7522 (tui_show_register_group): New function.
7523 (tui_display_registers_from): Compute the layout of register window
7524 and refresh with new API; be sure to delete old register windows.
7525 (tui_check_register_values): Update to use tui_get_register and
7526 tui_display_data.
7527 (tui_display_register): Just refresh the register window part.
7528 (tui_register_format): Format registers and save in tui_data_element.
7529 (tui_get_register): New to combine tui_reg_value_has_changed and
7530 tui_get_register_raw_value; fix to use the new gdb API.
7531 (tui_show_float_command): Renamed tui_reg_float_command.
7532 (tui_show_general_command): Renamed tui_reg_general_command.
7533 (tui_show_special_command): Renamed tui_reg_system_command.
7534 (_initialize_tui_regs): Remove unused commands.
7535
7536 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7537
7538 * NEWS (New native configurations): Mention OpenBSD/amd64.
7539
7540 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7541 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7542 Remove defines.
7543 * config/i386/nm-fbsd64.h: Likewise.
7544 * config/i386/nm-obsd.h: Likewise.
7545 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7546 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7547
7548 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7549
7550 * frv-tdep.c (set_variant_scratch_registers): New function.
7551 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7552 New constants.
7553
7554 From Richard Sandiford <rsandifo@redhat.com>:
7555 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7556
7557 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7558
7559 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7560 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7561 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7562 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7563 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7564 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7565 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7566 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7567 definitions from frv-tdep.c to frv-tdep.h.
7568
7569 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7570
7571 Add shared library support for FR-V FDPIC ABI:
7572 * Makefile.in (solib-frv.o): Add dependencies.
7573 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7574 New functions.
7575 (frv_push_dummy_call): Add support for FDPIC ABI.
7576 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7577 for FDPIC ABI.
7578 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7579 (frv_fdpic_find_canonical_descriptor): Declare.
7580 * solib-frv.c: New file.
7581 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7582 * config/frv/tm-frv.h (solib.h): Include.
7583
7584 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7585
7586 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7587 (frv-tdep.o): Update dependencies.
7588 * frv-tdep.h: New file.
7589 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7590 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7591 constants.
7592 (struct gdbarch_tdep): Add new member ``frv_abi''.
7593 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7594 functions.
7595 (new_variant): Set ``frv_abi'' field.
7596 (gdb_arch_init): Detect FDPIC executables.
7597
7598 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7599
7600 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7601 wrapper.
7602
7603 2004-03-11 Andrew Cagney <cagney@redhat.com>
7604
7605 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7606
7607 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7608
7609 * solist.h (master_so_list): New function.
7610 * solib.c (master_so_list): Likewise.
7611 * solib-svr4.c (enable_break): Iterate over so_list entries
7612 obtained from master list instead of entries obtained directly
7613 via svr4_current_sos().
7614
7615 2004-03-10 Ben Elliston <bje@gnu.org>
7616
7617 * MAINTAINERS: Update my mail address.
7618
7619 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7620
7621 * remote-m32r-sdi.c: Support hardware watchpoint.
7622
7623 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7624
7625 * user-regs.c: Update copyright years.
7626 (struct user_regs): Rename to gdb_user_regs.
7627 (append_user_reg, builtin_user_regs, user_regs_init)
7628 (user_reg_add, user_reg_map_name_to_regnum)
7629 (usernum_to_user_reg): Update.
7630
7631 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7632
7633 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7634 (skip_children): New functions.
7635 (locate_pdi_sibling): Call skip_children.
7636
7637 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7638
7639 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7640 * gdbtypes.c (check_typedef): Update comments.
7641
7642 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7643
7644 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7645 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7646 pointer. Update comment about comp_unit_head.
7647 (struct abbrev_info): Shorten two int flags.
7648 (dwarf_alloc_abbrev): Take a CU argument.
7649 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7650 each time through the loop. Update cleanup argument.
7651 (psymtab_to_symtab_1): Update cleanup call.
7652 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7653 abbrev_obstack.
7654 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7655 Just call obstack_free and clear the pointer.
7656
7657 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7658
7659 * infrun.c (handle_inferior_event): Remove short-circuit code for
7660 events in a different thread.
7661
7662 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7663
7664 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7665 print the whole transfer.
7666 (initialize_targets): Update description of "set debug target".
7667
7668 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7669
7670 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7671
7672 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7673
7674 * MAINTAINERS (write after approval): Add myself.
7675
7676 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7677
7678 * sh-tdep.c (sh_print_registers_info): Use for loop.
7679 Don't skip multiple registers when a float register is encountered.
7680
7681 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7682
7683 Fix PR tdep/1291.
7684 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7685 to official SH documentation.
7686
7687 2004-03-07 Andrew Cagney <cagney@redhat.com>
7688
7689 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7690 unused function.
7691
7692 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7693
7694 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7695 (arm_get_next_pc): Handle BX and BLX.
7696
7697 2004-03-07 Andrew Cagney <cagney@redhat.com>
7698
7699 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7700 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7701 HPPA_SP_REGNUM.
7702 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7703 (hppa_target_read_fp): Delete.
7704 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7705 register_virtual_size, max_register_raw_size,
7706 max_register_virtual_size, register_byte, register_size,
7707 target_read_fp, fp_regnum, and register_bytes. Set register_type
7708 instead of register_virtual_type.
7709 (hppa32_register_type, hppa64_register_type): Replace
7710 hppa32_register_virtual_type and hppa64_register_virtual_type.
7711 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7712 (HPPA_FP_REGNUM): Define.
7713
7714 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7715
7716 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7717 (pa_do_registers_info): Delete.
7718 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7719 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7720 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7721
7722 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7723 GDB_TARGET_IS_HPPA code.
7724 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7725 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7726 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7727 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7728 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7729 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7730 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7731 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7732 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7733 (hppa_frameless_function_invocation, hppa64_store_return_value)
7734 (hppa_store_struct_return, hppa64_extract_return_value)
7735 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7736 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7737 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7738 (find_proc_framesize, deposit_21, restore_pc_queue)
7739 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7740 (rp_saved, pc_in_linker_stub): Delete.
7741
7742 Unconditionally enable 64-bit frame and ABI code.
7743 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7744 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7745 push_dummy_frame, fix_call_dummy, push_arguments,
7746 call_dummy_location, extract_return_value, use_struct_convention,
7747 store_return_value, store_struct_return, saved_pc_after_call,
7748 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7749 frame_chain, frame_chain_valid, frameless_function_invocation,
7750 frame_saved_pc, and pop_frame.
7751
7752 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7753 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7754 (hppa_gdbarch_init): Do not set PC_REGNUM.
7755
7756 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7757
7758 * config/alpha/tm-fbsd.h: Remove file.
7759 * config/alpha/fbsd.mt: Tweak comment.
7760 (TM_FILE): Set to tm-alpha.h.
7761
7762 2004-03-05 Andrew Cagney <cagney@redhat.com>
7763
7764 * infrun.c (step_over_function): When non-legacy code, and no
7765 step_frame_id, use the unwinder to get the caller's frame ID.
7766
7767 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7768
7769 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7770 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7771 bfd_arch_unknown. Adjust comment.
7772
7773 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7774 * i386obsd-tdep.c: Correct spelling in comment.
7775 * i386nbsd-tdep.c: Correct spelling in comment.
7776 * sparc-tdep.c: Correct spelling in comments.
7777
7778 2004-03-05 David Carlton <carlton@kealia.com>
7779
7780 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7781 bug.
7782
7783 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7784
7785 * sparc-tdep.c: Fix typo in comment.
7786
7787 2004-03-04 J. Brobecker <brobecker@gnat.com>
7788
7789 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7790
7791 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7792
7793 * dwarf2read.c: Add comment describing memory lifetimes.
7794 (struct dwarf2_pinfo): Update comment.
7795 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7796 (read_enumeration, new_symbol): Don't use obsavestring.
7797
7798 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7799
7800 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7801 instead of amd64_fill_fxsave.
7802 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7803 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7804
7805 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7806 Reorganize code a bit.
7807
7808 2004-03-04 Orjan Friberg <orjanf@axis.com>
7809
7810 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7811 when the frame pointer is pushed. Don't set the frame pointer's
7812 address on the stack unless it's actually located there.
7813 Set the SRP's address on the stack correctly when the PC is still in
7814 the prologue.
7815 (cris_return_value): New function.
7816 (cris_gdbarch_init): Clear deprecated store_return_value,
7817 extract_return_value.
7818
7819 2004-03-02 Jim Blandy <jimb@redhat.com>
7820
7821 * stabsread.c (reg_value_complaint): The maximum register number
7822 is one less than the number of registers.
7823
7824 2004-03-02 Andrew Cagney <cagney@redhat.com>
7825
7826 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7827 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7828 trailing comma and redundant assignment of I386_ST0_REGNUM.
7829 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7830 32-bit segment registers.
7831
7832 2004-03-01 Andrew Cagney <cagney@redhat.com>
7833
7834 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7835 use frame_relative_level and get_next_frame.
7836
7837 2004-02-29 Andrew Cagney <cagney@redhat.com>
7838
7839 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7840 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7841 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7842 Delete macro.
7843
7844 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7845
7846 * inflow.c (terminal_inferior): Don't give up the terminal if we
7847 previously couldn't get the inferior's terminal state.
7848
7849 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7850
7851 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7852 PC_REGNUM.
7853
7854 2004-02-28 Andrew Cagney <cagney@redhat.com>
7855
7856 * NEWS: Refer to GDB 6.1.
7857 * README: Refer to GDB 6.1.
7858 * PROBLEMS: Refer to GDB 6.1.
7859
7860 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7861
7862 * thread-db.c (disable_thread_signals): Remove unused function.
7863
7864 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7865
7866 * amd64-nat.c: Include "gdb_string.h".
7867 (amd64_collect_native_gregset): Zero-extend the 32-bit
7868 general-purpose registers and %eip.
7869
7870 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7871 * amd64-tdep.c (amd64_collect_fxsave): New function.
7872 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7873
7874 * i387-tdep.h: Update copyright year.
7875 (i387_collect_fxsave): New prototype.
7876 * i387-tdep.c: Update copyright year.
7877 (i387_collect_fxsave): New function containing most of the code
7878 from i387_fill_fxsave.
7879 (i387_fill_fxsave): Call i387_collect_fxsave.
7880
7881 2004-02-28 Andrew Cagney <cagney@redhat.com>
7882
7883 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7884 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7885
7886 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7887
7888 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7889
7890 2004-02-28 Andrew Cagney <cagney@redhat.com>
7891
7892 * utils.c: Use "", instead of <>, to include readline.
7893 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7894 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7895 * source.c, solib.c, exec.c, event-top.c: Ditto.
7896 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7897 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7898 * Makefile.in: Update all dependencies.
7899 (readline_tilde_h, readline_history_h): Define.
7900 (readline_headers): Delete.
7901
7902 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7903
7904 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7905 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7906 "config/i386/tm-lx64.h".
7907
7908 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7909 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7910 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7911
7912 2004-02-28 Andrew Cagney <cagney@redhat.com>
7913
7914 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7915
7916 * breakpoint.c (_initialize_breakpoint): Use
7917 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7918 Add help to show command.
7919
7920 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7921
7922 * i386-nat.c: Reformat to be closer to coding standards.
7923 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7924 `retval'. Make variables `align' and `size' local to while-loop.
7925 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7926 (_initialize_i386_nat): New prototype.
7927
7928 * tui/tui.c: Include <readline/readline.h> instead of
7929 "readline/readline.h". Include it after <term.h> and
7930 "gdb_curses.h".
7931
7932 2004-02-27 Andrew Cagney <cagney@redhat.com>
7933
7934 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7935 the new frame unwind code.
7936 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7937 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7938 PCOQ_HEAD_REGNUM.
7939
7940 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7941 "return_value" and "push_dummy_call".
7942 (hppa32_use_struct_convention): Delete unused function.
7943 (hppa32_store_return_value): Delete unused function.
7944 (hppa32_extract_return_value): Delete unused function.
7945 (hppa32_stack_align): Delete function.
7946
7947 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7948
7949 * coffread.c (enter_linenos): Don't let rawptr reference memory
7950 outside linetab[]'s limits.
7951
7952 2004-02-27 Andrew Cagney <cagney@redhat.com>
7953
7954 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7955 inferior stack space - the stack needs to grow upwards.
7956 (hppa32_frame_align): New function.
7957 (hppa64_frame_align): Replace hppa_frame_align.
7958 (hppa_gdbarch_init): Update.
7959
7960 2004-02-26 Orjan Friberg <orjanf@axis.com>
7961
7962 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7963 (dwarf2-frame.h): Include.
7964 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7965 Remove static variables related to ABI setting.
7966 (struct gdbarch_tdep): Remove cris_abi member.
7967 (struct frame_extra_info): Remove.
7968 (cris_unwind_cache, stack_item): New structs.
7969 (cris_frame_unwind, cris_frame_base): New variables.
7970 (push_stack_item, pop_stack_item)
7971 (cris_frame_unwind_cache, cris_frame_this_id)
7972 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7973 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7974 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7975 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7976 (cris_reg_struct_has_addr): New functions.
7977 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7978 (cris_frame_saved_pc, cris_saved_pc_after_call,
7979 (cris_store_struct_return, cris_frameless_function_invocation)
7980 (cris_pop_frame, cris_skip_prologue_main)
7981 (cris_abi_original_store_return_value)
7982 (cris_abi_v2_store_return_value)
7983 (cris_abi_original_extract_return_value)
7984 (cris_abi_v2_extract_return_value)
7985 (cris_abi_original_reg_struct_has_addr)
7986 (cris_abi_v2_reg_struct_has_addr)
7987 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7988 (cris_push_return_address, cris_abi_update): Remove.
7989 (_initialize_cris_tdep): Remove ABI command.
7990 (cris_dump_tdep): Ditto.
7991 (cris_gdbarch_init): Remove ABI command.
7992 Set store_return_value, extract_return_value, push_dummy_code,
7993 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7994 frame_unwind_append_sniffer, frame_base_set_default.
7995 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7996 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7997 sizeof_call_dummy_words, get_saved_register, push_return_address,
7998 pop_frame, store_struct_return, frame_init_saved_regs,
7999 init_extra_frame_info, frameless_function_invocation, frame_chain,
8000 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8001 dummy_write_sp.
8002
8003 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8004
8005 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8006 * valprint.c (print_hex_chars): Change from static to external.
8007 (print_char_chars): New function.
8008 * printcmd.c (print_scalar_formatted): For integer and enum types
8009 that are longer than LONGEST, perform processing via appropriate
8010 print_*_chars routines.
8011
8012 2004-02-26 Andrew Cagney <cagney@redhat.com>
8013
8014 * Makefile.in: Update dependencies.
8015 Changes from Ulrich Weigand,
8016 * s390-tdep.c: Include "dwarf2-frame.h".
8017 (s390_dwarf2_frame_init_reg): New function.
8018 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8019 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8020
8021 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8022
8023 * breakpoint.c (pending_break_support): New setting variable.
8024 (break_command_1): Account for pending_break_support setting
8025 when creating pending breakpoints.
8026 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8027 (_initialize_breakpoint): Add "set breakpoint pending" and
8028 "show breakpoint pending" commands.
8029
8030 2004-02-26 Andrew Cagney <cagney@redhat.com>
8031
8032 Fix PR i18n/1570.
8033 * charset.c (backslashable, backslashed, represented): Remove 'e'
8034 from list of escaped characters, not part of ISO-C.
8035
8036 2004-02-25 J. Brobecker <brobecker@gnat.com>
8037
8038 From Peter Schauer <schauer@pdf.de>:
8039 * tui/tui.c: Move system header includes after local includes.
8040 Fixes a build failure on solaris systems.
8041
8042 2004-02-25 J. Brobecker <brobecker@gnat.com>
8043
8044 * configure.in: Refine the previous change.
8045 * configure: Regenerate.
8046
8047 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8048
8049 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8050 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8051 "amd64-tdep.h" instead of "x86-64-tdep.h".
8052 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8053 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8054 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8055 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8056 and "x86-64-tdep.c".
8057 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8058 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8059 and "x86-64-tdep.c".
8060 * amd64bsd-nat.c: Update copyright year.
8061 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8062 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8063 "x86-64-tdep.h".
8064 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8065 "x86-64-tdep.h".
8066 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8067 "x86-64-tdep.h".
8068 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8069 "x86-64-tdep.h".
8070 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8071 "x86-64-tdep.h".
8072 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8073 "x86-64-tdep.h".
8074 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8075 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8076 * Makefile.in (amd64_linux_tdep_h): Renamed from
8077 x86_64_linux_tdep_h.
8078 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8079 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8080 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8081 (amd64obsd-tdep.o): Update dependencies.
8082 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8083 dependencies.
8084 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8085 dependencies.
8086 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8087 amd64-linux-nat.c amd64-linux-tdep.c.
8088 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8089 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8090 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8091 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8092 amd64-tdep.o and amd64-linux-tdep.o.
8093 (TM_FILE): Set to tm-linux64.h.
8094 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8095 (NAT_FILE): Set to nm-linux64.h.
8096 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8097 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8098 amd64-tdep.o.
8099 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8100 amd64-tdep.o.
8101 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8102 amd64-tdep.o.
8103
8104 2004-02-25 Roland McGrath <roland@redhat.com>
8105
8106 * remote.c (remote_protocol_qPart_auxv): New variable.
8107 (init_all_packet_configs): Initialize it.
8108 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8109 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8110 (show_remote_cmd): Call it.
8111 (_initialize_remote): Initialize commands.
8112 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8113 service TARGET_OBJECT_AUXV requests.
8114
8115 2004-02-25 J. Brobecker <brobecker@gnat.com>
8116
8117 * configure.in: Make sure that the wborder function is available.
8118 Otherwise, search for it in the cur_colr library.
8119 * configure: Regenerate.
8120
8121 2004-02-25 Andrew Cagney <cagney@redhat.com>
8122
8123 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8124
8125 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8126
8127 * config/i386/tm-x86-64linux.h: Tweak comments.
8128
8129 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8130
8131 * MAINTAINERS: Add self to write-after-approval list.
8132
8133 2004-02-25 Andrew Cagney <cagney@redhat.com>
8134
8135 PR cli/1566. Problem found, and fix suggested by David Allan.
8136 * cli/cli-script.c (execute_control_command): Unconditionally
8137 install a cleanup. Default "ret" to "invalid_control". Use
8138 "break" instead of "return" to escape from the switch.
8139
8140 2004-02-24 J. Brobecker <brobecker@gnat.com>
8141
8142 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8143 with the lines macro defined in term.h on AiX.
8144 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8145 a collision with the label_width macro defined in term.h on AiX.
8146
8147 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8148
8149 Committed by Kevin Buettner <kevinb@redhat.com>.
8150
8151 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8152 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8153 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8154 instead of ia64_write_pc().
8155 * ia64-linux-tdep.c (regcache.h): Include.
8156 (ia64_linux_write_pc): New function.
8157
8158 2004-02-23 Roland McGrath <roland@redhat.com>
8159
8160 * auxv.c (info_auxv_command): Fix typos in error messages.
8161
8162 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8163
8164 * x86-64-tdep.h: Tweak comment.
8165 (enum amd64_regnum): New.
8166 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8167 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8168 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8169 (X86_64_XMM1_REGNUM): Removed.
8170 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8171 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8172 prototypes for renamed functions.
8173 * x86-64-tdep.c: Fix typo.
8174 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8175 register numbers.
8176 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8177 Use constants from `enum amd64_regnum' for register numbers.
8178 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8179 (amd64_analyze_prologue, amd64_frame_cache,
8180 amd64_sigtramp_frame_cache): Use constants from `enum
8181 amd64_regnum' for register numbers.
8182 (amd64_supply_fpregset): Adjust for renamed functions.
8183 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8184 `enum amd64_regnum' for register numbers.
8185 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8186 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8187 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8188 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8189 (amd64_linux_fill_gregset): Adjust for renamed macros.
8190 (fetch_core_registers): Adjust for renamed functions.
8191 (amd64_linux_init_abi): Adjust for renamed functions.
8192 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8193 renamed functions.
8194 * amd64-nat.c: Adjust for renamed macros.
8195 * amd64bsd-nat.c (fetch_inferior_registers)
8196 (store_inferior_registers): Use constants from `enum amd64_regnum'
8197 for register numbers. Adjust for renamed variables.
8198 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8199 renamed variables.
8200 (_initialize_amd64fbsd_nat): Use constants from `enum
8201 amd64_regnum' for register numbers.
8202 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8203 `enum amd64_regnum' for register numbers.
8204 (amd64fbsd_init_abi): Adjust for renamed functions.
8205 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8206 `enum amd64_regnum' for register numbers.
8207 (amd64nbsd_init_abi): Adjust for renamed functions.
8208 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8209 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8210 `enum amd64_regnum' for register numbers.
8211 (amd64obsd_init_abi): Adjust for renamed functions.
8212 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8213
8214 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8215
8216 * breakpoint.c (print_one_breakpoint): Do not output spaces
8217 after printing <PENDING> for a pending breakpoint.
8218
8219 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8220
8221 * printcmd.c (print_scalar_formatted): Initialize val_long
8222 to remove compiler warning message.
8223
8224 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8225
8226 * defs.h (nquery, yquery): New prototypes.
8227 * breakpoint.c (break_command_1): Use new nquery interface.
8228 * utils.c (defaulted_query, nquery, yquery): New functions.
8229
8230 2004-02-23 Andrew Cagney <cagney@redhat.com>
8231
8232 * hppa-tdep.c (hppa_frame_align): New function.
8233 (hppa32_push_dummy_call): New function.
8234 (hppa64_push_dummy_call): New function.
8235 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8236 disabled.
8237
8238 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8239 FIX_CALL_DUMMY when push_dummy_call is available.
8240 (call_function_by_hand, push_dummy_code): Ditto.
8241
8242 2004-02-22 Andrew Cagney <cagney@redhat.com>
8243
8244 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8245 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8246 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8247 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8248 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8249 call_dummy_location to ON_STACK.
8250
8251 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8252
8253 * x86-64-linux-tdep.c: Tweak comment.
8254 (amd64_linux_supply_gregset): Renamed from
8255 x86_64_linux_supply_gresget.
8256 (amd64_linux_fill_gregset): Renamed from
8257 x86_64_linux_fill_gregset.
8258 (fetch_core_registers): Adjust for renamed functions.
8259 (amd64_core_fns): Renamed from x86_64_core_fns.
8260 (amd64_linux_sigtramp_start): Renamed from
8261 x86_64_linux_sigtramp_start.
8262 (amd64_linux_pc_in_sigtramp): Renamed from
8263 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8264 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8265 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8266 (amd64_linux_sigcontext_addr): Renamed from
8267 x86_64_linux_sigcontext_addr.
8268 (amd64_linux_sc_reg_offset): Renamed from
8269 x86_64_linux_sc_reg_offset.
8270 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8271 Adjust for renamed functions and variables.
8272 (_initialize_amd64_linux_tdep): Renamed from
8273 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8274 variables.
8275 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8276 Adjust for renamed functions.
8277
8278 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8279 from x86_64_linux_gregset64_reg_offset.
8280 (amd64_linux_gregset32_reg_offset): Rename from
8281 x86_64_linux_gregset64_reg_offset.
8282 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8283 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8284 (amd64_linux_dr_set_control): Renamed from
8285 x86_64_linux_dr_set_control. Adjust for renamed functions.
8286 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8287 Adjust for renamed functions.
8288 (amd64_linux_dr_reset_addr): Renamed from
8289 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8290 (amd64_linux_dr_get_status): Renamed from
8291 x86_64_linux_dr_get_status. Adjust for renamed functions.
8292 (_initialize_amd64_linux_nat): Renamed from
8293 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8294 functions.
8295 * config/i386/nm-x86-64linux.h: Update copyright year.
8296 Adjust for renamed functions.
8297
8298 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8299 amd64fbsd_sigtramp_start.
8300 (amd64fbsd_sigtramp_end_addr): Renamed from
8301 amd64fbsd_sigtramp_end.
8302 (amd64fbsd_init_abi): Adjust for renamed variables.
8303 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8304 variables.
8305 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8306 amd64fbsd_sigtramp_start.
8307 (amd64fbsd_sigtramp_end_addr): Renamed from
8308 amd64fbsd_sigtramp_end.
8309
8310 2004-02-22 Andrew Cagney <cagney@redhat.com>
8311
8312 * hppa-tdep.c (hppa32_return_value): New function.
8313 (hppa64_return_value): New function.
8314 (hppa_gdbarch_init): Set return_value; keep disabled.
8315
8316 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8317 struct-return and inferior function call methods.
8318
8319 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8320 "frame-base.h".
8321 (struct hppa_frame_cache): Define.
8322 (hppa_frame_cache, hppa_frame_this_id): New functions.
8323 (hppa_frame_prev_register): New function.
8324 (hppa_frame_unwind, hppa_frame_base): New variables.
8325 (hppa_frame_unwind_sniffer): New function.
8326 (hppa_frame_base_address, hppa_unwind_pc): New function.
8327 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8328 sniffer, and frame base sniffer; keep disabled.
8329 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8330 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8331
8332 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8333 to predicates for "seriously old code".
8334
8335 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8336 runtime if(0).
8337
8338 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8339 unsigned.
8340 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8341
8342 * config/pa/tm-hppa.h: Update copyright.
8343 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8344 (deprecated_init_frame_pc_default): Delete declaration.
8345 (hppa_frame_init_saved_regs): Delete declaration.
8346 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8347 * hppa-tdep.c: Include "arch-utils.h".
8348 (hppa_gdbarch_init): Set deprecated init_frame_pc
8349 and deprecated frame_init_saved_regs.
8350 (hppa_frame_init_saved_regs): Make static.
8351
8352 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8353
8354 Remove old 386BSD support.
8355 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8356 * configure.host: Remove i[34567]86-*-bsd*.
8357 * configure.tgt: Remove i[34567]86-*-bsd*.
8358 * i386b-nat.c: Removed.
8359 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8360 (i386b-nat.o): Remove dependencies.
8361
8362 * config/i386/i386bsd.mh: Removed.
8363 * config/i386/i386bsd.mt: Removed.
8364 * config/i386/nm-i386bsd.h: Removed.
8365 * config/i386/tm-i386bsd.h: Removed.
8366 * config/i386/xm-i386bsd.h: Removed.
8367
8368 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8369
8370 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8371 (amd64fbsd_init_abi): Set link map offsets.
8372 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8373 (amd64nbsd_init_abi): Set link map offsets.
8374 * amd64obsd-tdep.c: Include "solib-svr4.h".
8375 (amd64obsd_init_abi): Set link map offsets.
8376 * i386fbsd-tdep.c: Include "solib-svr4.h".
8377 (i386fbsd_init_abi): Set link map offsets.
8378 * i386nbsd-tdep.c: Include "solib-svr4.h".
8379 (i386nbsdelf_init_abi): Set link map offsets.
8380 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8381 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8382 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8383 solib-legacy.o and core-aout.o. Reformat.
8384 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8385 solib-svr4.o, solib-legacy.o. Reformat.
8386 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8387 * config/i386/nbsdelf.mh: Reformat.
8388 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8389 solib-svr4.o, solib-legacy.o and corelow.o.
8390 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8391 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8392 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8393 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8394 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8395 (TM_FILE): Set to tm-fbsd.h.
8396 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8397 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8398 solib-svr4.o.
8399 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8400 solib-svr4.o.
8401 (TM_FILE): Set to nm-nbsd.h.
8402 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8403 Simplify shared library support. Don't include "elf/common.h".
8404 (SVR4_SHARED_LIBS): Don't define.
8405 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8406 "solib.h".
8407 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8408 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8409 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8410 Don't include "i386/tm-i386.h". Include "solib.h".
8411 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8412 Don't include "i386/tm-i386.h".
8413 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8414 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8415 Include "i386/xm-i386.h".
8416 (HOST_LONG_DOUBLE_FORMAT): Remove.
8417
8418 Fix OpenBSD/i386 sigtramp recognition.
8419 * i386-tdep.h: Update copyright year.
8420 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8421 (i386bsd_sigtramp_end): New prototypes.
8422 (i386fbsd_sigtramp_start_addr): Renamed from
8423 i386fbsd_sigtramp_start.
8424 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8425 (i386obsd_sigtramp_start_addr): Renamed from
8426 i386obsd_sigtramp_start.
8427 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8428 * i386bsd-tdep.c: Update copyright year.
8429 (i386bsd_pc_in_sigtramp): Make public.
8430 * i386fbsd-nat.c: Update copyright year.
8431 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8432 * i386fbsd-tdep.c: Update copyright year.
8433 (i386fbsd_sigtramp_start_addr): Renamed from
8434 i386fbsd_sigtramp_start.
8435 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8436 (i386fbsdaout_init_abi): Adjust for renamed variables.
8437 * i386obsd-nat.c: Update copyright year.
8438 (_initialize_i386obsd_nat): Adjust for renamed variables.
8439 * i386obsd-tdep.c: Include "target.h".
8440 (i386obsd_page_size): New variable.
8441 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8442 (i386obsd_sigtramp_end): New functions.
8443 (i386obsd_sigtramp_start_addr): Renamed from
8444 i386obsd_sigtramp_start.
8445 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8446 (i386obsd_init_abi): Adjust for renamed variables. Set
8447 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8448 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8449
8450 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8451 trampoline change in OpenBSD kernel.
8452
8453 * amd64-nat.c: Update copyright year.
8454 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8455 architecture from REGCACHE.
8456
8457 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8458 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8459
8460 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8461
8462 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8463 i[34567]86-*-openbsd3.[0-3].
8464 * config/i386/obsdaout.mh: New file.
8465
8466 * config/i386/obsd.mh (MH_FLAGS): Remove.
8467
8468 Fix PR build/1549.
8469 * i386obsd-tdep.c: Update copyright years. Include
8470 "solib-svr4.h".
8471 (i386obsd_init_abi): Don't set regset_from_core_section here.
8472 (i386obsd_aout_init_abi): New function. Set
8473 regset_from_core_section here.
8474 (i386obsd_elf_init_abi): New function.
8475 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8476 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8477 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8478 (TM_FILE): Set to tm-nbsd.h.
8479
8480 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8481 solib-sunos.o.
8482
8483 * solib-svr4.h: Update copyright year.
8484 (svr4_ilp32_fetch_link_map_offsets)
8485 (svr4_lp64_fetch_link_map_offsets): New prototype.
8486 * solib-svr4.c: Update copyright year.
8487 (svr4_ilp32_fetch_link_map_offsets)
8488 (svr4_lp64_fetch_link_map_offsets): New function.
8489
8490 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8491
8492 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8493 to the partial symbol table.
8494
8495 2004-02-20 J. brobecker <brobecker@gnat.com>
8496
8497 * PROBLEMS: Add description of problem documented under gdb/1560.
8498
8499 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8500
8501 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8502 comments.
8503 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8504 functions.
8505 (amd64obsd_init_abi): Reorder initializations. Use
8506 amd64obsd_r_reg_offset to initialize the general-purpose register
8507 set details. Set regset_from_core_section.
8508 (_initialize_amd64obsd_tdep): Rename from
8509 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8510 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8511 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8512
8513 * NEWS (New native configurations): Mention OpenBSD/alpha.
8514 * configure.tgt: Add alpha*-*-openbsd*.
8515 * configure.host: Add alpha*-*-openbsd*.
8516 * alphanbsd-tdep.c: Update copyright year.
8517 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8518
8519 2004-02-20 Andrew Cagney <cagney@redhat.com>
8520
8521 Fix PR tdep/1372.
8522 * configure.tgt: Delete target "none-*-*".
8523 * configure.host: Delete host "none-*-*".
8524 * config/none/none.mh: Delete file.
8525 * config/none/none.mt: Delete file.
8526 * config/none/xm-none.h: Delete file.
8527 * config/none/tm-none.h: Delete file.
8528 * config/none/nm-none.h: Delete file.
8529
8530 2004-02-19 Fred Fish <fnf@redhat.com>
8531
8532 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8533 cache->uses_fp prior to setting it.
8534
8535 2004-02-19 Fred Fish <fnf@redhat.com>
8536
8537 Fix for PR breakpoint/1558.
8538 * sh-tdep.c (IS_JSR): New macro.
8539 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8540
8541 2004-02-19 Jim Blandy <jimb@redhat.com>
8542
8543 * findvar.c (value_from_register): Doc fix.
8544
8545 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8546
8547 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8548 type being greater than sizeof of host's LONGEST. Always use
8549 unpack_long() unless format 'f' chosen.
8550
8551 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8552
8553 Committed by Elena Zannoni <ezannoni@redhat.com>
8554
8555 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8556 contains a symbol wich is the best, non-exact match for the given
8557 pc. Update comments.
8558
8559 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8560
8561 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8562 macro, which was part of the now removed Mach 3 port.
8563 * utils.c (request_quit): Ditto.
8564
8565 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8566
8567 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8568 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8569
8570 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8571
8572 Committed by Mark Kettenis <kettenis@gnu.org>.
8573
8574 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8575 Define.
8576
8577 2004-02-18 Andrew Cagney <cagney@redhat.com>
8578
8579 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8580 CONFIG_INSTALL and CONFIG_UNINSTALL.
8581 * configure: Re-generate.
8582 * interps.h (INTERP_TUI): Define.
8583 * Makefile.in: Update dependencies.
8584 (TUI): New macro.
8585 (tui-main.o): Specify dependencies.
8586 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8587 * tui/tui-main.c: New file.
8588
8589 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8590
8591 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8592 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8593 dependencies.
8594 * configure.host: Add x86_64-*-openbsd*.
8595 * configure.tgt: Add x86_64-*-openbsd*.
8596 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8597
8598 * tui/tui.c: Don't include <malloc.h>.
8599
8600 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8601 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8602 amd64nbsd-tdep.c.
8603
8604 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8605 static. Remove extraneous whitespace.
8606 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8607 static.
8608
8609 2004-02-17 Jim Blandy <jimb@redhat.com>
8610
8611 * findvar.c (value_from_register): Doc fix.
8612
8613 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8614
8615 Committed by Jim Blandy <jimb@redhat.com>.
8616
8617 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8618 CORE_ADDR as type for selectors. Correct types for GNU run time
8619 message lookup function to use double indirection.
8620 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8621 * objc-lang.h (lookup_child_selector): Adapt prototype.
8622
8623 * s390-nat.c (SUBOFF): New macro.
8624 (supply_gregset, fill_gregset): Use it to handle debugging
8625 of 32-bit exectuables running under a 64-bit kernel.
8626 * s390-tdep.c: Include "solib-svr4.h".
8627 (s390_svr4_fetch_link_map_offset): New function.
8628 (s390x_svr_fetch_link_map_offset): Likewise.
8629 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8630 * Makefile.in (s390-tdep.o): Update dependencies.
8631
8632 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8633 "frame-unwind.h".
8634 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8635 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8636 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8637 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8638 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8639 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8640 S390_SIGNAL_FRAMESIZE,
8641 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8642 (struct frame_extra_info): Remove.
8643 (s390_memset_extra_info): Remove.
8644 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8645 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8646 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8647 (is_rse): Renamed to ...
8648 (is_rsy): ... this. Support long displacements.
8649 (is_rxe): Renamed to ...
8650 (is_rxy): ... this. Support long displacements.
8651 (compute_x_addr): Support long displacements.
8652 (struct s390_prologue_data): New data type.
8653 (s390_on_stack): Change API to use struct s390_prologue_data.
8654 (s390_store): Reimplement.
8655 (s390_load): New function.
8656 (s390_get_signal_frame_info): Remove.
8657 (s390_get_frame_info): Remove, replace by ...
8658 (s390_analyze_prolog): ... this new function.
8659 (s390_check_function_end): Remove.
8660 (s390_function_start): Remove.
8661 (s390_frameless_function_invokation): Remove.
8662 (s390_is_sigreturn): Remove.
8663 (s390_init_frame_pc_first): Remove.
8664 (s390_init_frame_extra_info): Remove.
8665 (s390_frame_init_saved_regs): Remove.
8666 (s390_frame_saved_pc_nofix): Remove.
8667 (s390_frame_saved_pc): Remove.
8668 (s390_frame_chain): Remove.
8669 (s390_fp_regnum, s390_read_fp): Remove.
8670 (s390_pop_frame_regular, s390_pop_frame): Remove.
8671 (s390_saved_pc_after_call): Remove.
8672 (s390_skip_prologue): Reimplement.
8673 (s390_in_function_epilogue_p): Support long displacements.
8674 (struct s390_unwind_cache): New data structure.
8675 (s390_frame_unwind_cache): New function.
8676 (s390_prologue_frame_unwind_cache): Likewise.
8677 (s390_backchain_frame_unwind_cache): Likewise.
8678 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8679 (s390_frame_unwind): Define.
8680 (s390_frame_sniffer): New function.
8681 (struct s390_pltstub_unwind_cache): New data structure.
8682 (s390_pltstub_frame_unwind_cache): New function.
8683 (s390_pltstub_frame_this_id): Likewise.
8684 (s390_pltstub_frame_prev_register): Likewise.
8685 (s390_pltstub_frame_unwind): Define.
8686 (s390_pltstub_frame_sniffer): New function.
8687 (struct s390_sigtramp_unwind_cache): New data structure.
8688 (s390_sigtramp_frame_unwind_cache): New function.
8689 (s390_sigtramp_frame_this_id): Likewise.
8690 (s390_sigtramp_frame_prev_register): Likewise.
8691 (s390_sigtramp_frame_unwind): Define.
8692 (s390_sigtramp_frame_sniffer): New function.
8693 (s390_frame_base_address, s390_local_base_address): New functions.
8694 (s390_frame_base): Define.
8695 (s390_unwind_pc, s390_unwind_sp): New function.
8696 (s390_push_dummy_call): Use new frame base location.
8697 (s390_unwind_dummy_id): Likewise.
8698 (s390_gdbarch_init): Remove calls to:
8699 set_gdbarch_frameless_function_invocation,
8700 set_gdbarch_deprecated_init_frame_pc,
8701 set_gdbarch_deprecated_frame_chain,
8702 set_gdbarch_deprecated_frame_init_saved_regs,
8703 set_gdbarch_deprecated_pop_frame,
8704 set_gdbarch_deprecated_init_extra_frame_info,
8705 set_gdbarch_deprecated_init_frame_pc_first,
8706 set_gdbarch_deprecated_target_read_fp,
8707 set_gdbarch_deprecated_frame_saved_pc,
8708 set_gdbarch_deprecated_saved_pc_after_call,
8709 set_gdbarch_deprecated_fp_regnum.
8710 Add calls to:
8711 set_gdbarch_in_solib_call_trampoline,
8712 frame_unwind_append_sniffer,
8713 frame_base_set_default,
8714 set_gdbarch_unwind_pc,
8715 set_gdbarch_unwind_sp.
8716 * Makefile.in (s390-tdep.o): Update dependencies.
8717
8718 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8719 (S390_STACK_FRAME_OVERHEAD): Remove.
8720 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8721 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8722 (s390_promote_integer_argument): Remove.
8723 (s390_cannot_extract_struct_value_address): Remove.
8724 (s390_use_struct_convention, s390_store_struct_return): Remove.
8725 (s390_extract_return_value, s390_store_return_value): Remove.
8726 (s390_return_value_convention, s390_return_value): New functions.
8727 (is_float_singleton): Handle typedefs.
8728 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8729 Remove, replace by ...
8730 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8731 s390_function_arg_integer): ... these new functions.
8732 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8733 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8734 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8735 Fill in tdep->abi.
8736 Remove calls to:
8737 set_gdbarch_deprecated_store_struct_return,
8738 set_gdbarch_deprecated_extract_return_value,
8739 set_gdbarch_deprecated_store_return_value,
8740 set_gdbarch_use_struct_convention,
8741 set_gdbarch_extract_struct_value_address,
8742 set_gdbarch_deprecated_pc_in_call_dummy,
8743 set_gdbarch_deprecated_push_arguments,
8744 set_gdbarch_deprecated_save_dummy_frame_tos,
8745 set_gdbarch_deprecated_push_return_address,
8746 set_gdbarch_deprecated_sizeof_call_dummy_words,
8747 set_gdbarch_deprecated_call_dummy_words,
8748 set_gdbarch_deprecated_dummy_write_sp.
8749 Add calls to:
8750 set_gdbarch_push_dummy_call,
8751 set_gdbarch_unwind_dummy_id,
8752 set_gdbarch_return_value.
8753
8754 * config/s390/nm-linux.h: Update comments.
8755 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8756 (STOPPED_BY_WATCHPOINT): Redefine.
8757 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8758 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8759 (s390_stopped_by_watchpoint): Likewise.
8760 (watch_area_cnt): Remove.
8761 * s390-nat.c: Update comments.
8762 (watch_area): Remove typedef.
8763 Global replace watch_area by struct watch_area.
8764 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8765 (s390_stopped_by_watchpoint): Remove pid argument,
8766 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8767 (s390_fix_watch_points): Remove pid argument,
8768 use s390_inferior_tid. Recompute area spanned by watchpoints.
8769 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8770 argument. Reimplement.
8771
8772 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8773 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8774 (FETCH_INFERIOR_REGISTERS): Define.
8775 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8776 core-regset.o.
8777 * config/s390/s390x.mt: Remove.
8778 * config/s390/tm-s390.h: Remove.
8779 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8780 (TARGET_ELF64): Remove.
8781 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8782 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8783 s390*-*-* case; always set gdb_target to s390.
8784 * regformats/reg-s390.dat: Remove control registers.
8785 * regformats/reg-s390x.dat: Likewise.
8786 * s390-tdep.h: New file.
8787 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8788 Include "inferior.h" and "s390-tdep.h".
8789 Remove private definition of offsetof.
8790 (s390_register_u_addr): Remove.
8791 (regmap_gregset, regmap_fpregset): Define.
8792 (supply_gregset, fill_gregset): Reimplement.
8793 (supply_fpregset, fill_fpregset): Likewise.
8794 (s390_inferior_tid): New function.
8795 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8796 (fetch_inferior_registers, store_inferior_registers): Likewise.
8797 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8798 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8799 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8800 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8801 (struct gdbarch_tdep): Define.
8802 (struct s390_register_info): Define.
8803 (s390_register_info): New variable.
8804 (s390_register_name): Reimplement.
8805 (s390_register_type): New function.
8806 (s390_register_raw_size, s390x_register_raw_size): Remove.
8807 (s390_cannot_fetch_register): Remove.
8808 (s390_register_byte): Remove.
8809 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8810 (s390_dwarf_regmap): New variable.
8811 (s390_dwarf_reg_to_regnum): New function.
8812 (s390_stab_reg_to_regnum): Remove.
8813 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8814 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8815 (s390_convert_register_p): Likewise.
8816 (s390_register_to_value, s390_value_to_register): Likewise.
8817 (s390_register_reggroup_p): Likewise.
8818 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8819 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8820 (s390_supply_regset, s390_regset_from_core_section): New functions.
8821 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8822 (S390_FPR_SIZE): Likewise.
8823 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8824 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8825 (S390_NUM_GPRS): Move here from tm-s390.h.
8826 (S390_NUM_FPRS): Likewise.
8827 (s390_in_function_epilogue_p): New function.
8828 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8829 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8830 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8831 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8832 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8833 Remove calls to:
8834 set_gdbarch_deprecated_max_register_raw_size,
8835 set_gdbarch_deprecated_max_register_virtual_size,
8836 set_gdbarch_deprecated_register_byte,
8837 set_gdbarch_cannot_fetch_register,
8838 set_gdbarch_cannot_store_register,
8839 set_gdbarch_deprecated_register_size,
8840 set_gdbarch_deprecated_register_raw_size,
8841 set_gdbarch_deprecated_register_virtual_size,
8842 set_gdbarch_deprecated_register_virtual_type,
8843 set_gdbarch_deprecated_register_bytes.
8844 Add calls to:
8845 set_gdbarch_num_pseudo_regs,
8846 set_gdbarch_register_type,
8847 set_gdbarch_convert_register_p,
8848 set_gdbarch_register_to_value,
8849 set_gdbarch_value_to_register,
8850 set_gdbarch_register_reggroup_p,
8851 set_gdbarch_regset_from_core_section,
8852 set_gdbarch_pseudo_register_read,
8853 set_gdbarch_pseudo_register_write,
8854 set_gdbarch_in_function_epilogue_p.
8855 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8856 (s390_tdep_h): New variable.
8857
8858 2004-02-17 Jim Blandy <jimb@redhat.com>
8859
8860 * findvar.c (value_from_register): If the type has no length, just
8861 return an acceptable value --- don't report an internal error.
8862
8863 * stabsread.c (read_type): If we find any type numbers that are
8864 forward references, complain if the references aren't resolved by
8865 the time we're finished reading.
8866 (cleanup_undefined_types): Make error message more appropriate for
8867 a complaint.
8868
8869 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8870
8871 * Makefile.in (defs_h): Remove dependency on progress_h.
8872 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8873 progress.h.
8874 * main.c (captured_main): Delete use of START_PROGRESS and
8875 END_PROGRESS.
8876
8877 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8878
8879 * objfiles.c (terminate_minimal_symbol_table): Add back
8880 initialization of MSYMBOL_TYPE.
8881
8882 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8883
8884 Committed by Andrew Cagney.
8885 * Makefile.in (ia64_tdep_h): New macro.
8886 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8887 (ia64-tdep.o): Likewise.
8888 * ia64-tdep.h: New file.
8889 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8890 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8891 (ia64_aix_sigcontext_register_address): Likewise.
8892 (ia64_linux_getunwind_table): Delete declaration.
8893 * ia64-linux-tdep.c: Likewise.
8894
8895 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8896
8897 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8898 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8899 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8900
8901 2004-02-17 Andrew Cagney <cagney@redhat.com>
8902
8903 * symtab.c (skip_prologue_using_sal): New function.
8904 * symtab.h (skip_prologue_using_sal): Declare.
8905 * frv-tdep.c: Include "symtab.h".
8906 (skip_prologue_using_sal): Delete function.
8907 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8908 * rs6000-tdep.c (refine_prologue_limit): Mention
8909 skip_prologue_using_sal.
8910 * ia64-tdep.c (refine_prologue_limit): Ditto.
8911 * Makefile.in: Update dependencies.
8912
8913 2004-02-16 Andrew Cagney <cagney@redhat.com>
8914
8915 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8916 START_INFERIOR_TRAPS_EXPECTED.
8917 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8918 START_INFERIOR_TRAPS_EXPECTED.
8919 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8920 Delete macro.
8921 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8922 macro, moved to "nm-osf.h". Update copyright.
8923 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8924 update copyright.
8925
8926 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8927 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8928 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8929 frameless_look_for_prologue.
8930 * frame.h (legacy_frameless_look_for_prologue): Rename
8931 frameless_look_for_prologue.
8932 * gdbarch.h, gdbarch.c: Re-generate.
8933 * sh64-tdep.c (sh64_gdbarch_init): Update.
8934 * sh-tdep.c (sh_gdbarch_init): Update.
8935 * s390-tdep.c (s390_gdbarch_init): Update.
8936 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8937 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8938 * m68k-tdep.c (m68k_gdbarch_init): Update.
8939 (delta68_frame_args_address): Update.
8940 * m32r-tdep.c (m32r_gdbarch_init): Update.
8941 * hppa-tdep.c (hppa_gdbarch_init): Update.
8942 * h8300-tdep.c (h8300_gdbarch_init): Update.
8943 * frv-tdep.c (frv_gdbarch_init): Update.
8944 (frv_frameless_function_invocation): Update.
8945 * cris-tdep.c (cris_gdbarch_init): Update.
8946 (cris_frameless_function_invocation): Update.
8947 * avr-tdep.c (avr_gdbarch_init): Update.
8948 * arm-tdep.c (arm_gdbarch_init): Update.
8949 * stack.c (frame_info): Update, call predicate.
8950 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8951 * frame.c (legacy_get_prev_frame): Update, call predicate..
8952 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8953 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8954 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8955 invocation.
8956 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8957 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8958 * vax-tdep.c (vax_gdbarch_init): Ditto.
8959
8960 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8961 function.
8962
8963 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8964
8965 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8966 initializations.
8967
8968 2004-02-16 Andrew Cagney <cagney@redhat.com>
8969
8970 * tui/tui-windata.c: Include "gdb_string.h".
8971 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8972 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8973 * Makefile.in: Update dependencies.
8974
8975 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8976
8977 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8978 * infrun.c: Include "gdb_assert.h".
8979 (singlestep_ptid, saved_singlestep_ptid)
8980 (stepping_past_singlestep_breakpoint): New variables.
8981 (resume): Set singlestep_ptid. Check for singlestep thread
8982 hop.
8983 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8984 (handle_inferior_event): Handle singlestep thread hop.
8985
8986 2004-02-16 Andrew Cagney <cagney@redhat.com>
8987
8988 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8989 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8990 (dwarf2_frame_init_reg): Ditto.
8991
8992 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8993 suggested by Joshua Neuheisel
8994
8995 * configure.in: Always check for curses, including pdcurses.
8996 Warn, instead of error, when no curses are found. Enable TUI when
8997 curses is available.
8998 * configure: Re-generate.
8999
9000 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9001
9002 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9003 sh_sh4_register_convert_to_virtual.
9004 (sh_register_convert_to_raw): Rename from
9005 sh_sh4_register_convert_to_raw.
9006 (sh_pseudo_register_read): Accomodate above name change.
9007 (sh_pseudo_register_write): Ditto.
9008
9009 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9010
9011 * sh-tdep.c (sh_generic_register_name): Remove.
9012 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9013
9014 2004-02-15 Andrew Cagney <cagney@redhat.com>
9015
9016 * configure.in (build_warnings): Add -Wunused-function.
9017 * configure: Re-generate.
9018
9019 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9020 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9021
9022 * procfs.c (procfs_init_inferior): Assume that
9023 START_INFERIOR_TRAPS_EXPECTED is defined.
9024 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9025 * config/ns32k/tm-nbsd.h: Delete file,
9026 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9027
9028 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9029 * config/vax/tm-vax.h: Delete file.
9030
9031 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9032 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9033 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9034 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9035 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9036 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9037 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9038
9039 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9040
9041 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9042 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9043 (struct dwarf2_frame_ops): New.
9044 (dwarf2_frame_default_init_reg): New function, based on
9045 dwarf2_frame_init_reg.
9046 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9047 (dwarf2_frame_init_reg): Call architecture-specific function.
9048 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9049 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9050 instead of dwarf2_frame_data.
9051 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9052 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9053
9054 2004-02-15 Andrew Cagney <cagney@redhat.com>
9055
9056 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9057 register_gdbarch_swap.
9058 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9059 * f-lang.c (_initialize_f_language): Update, use
9060 DEPRECATED_REGISTER_GDBARCH_SWAP.
9061 * remote.c (_initialize_remote): Ditto.
9062 * regcache.c (_initialize_regcache): Ditto.
9063 * parse.c (_initialize_parse): Ditto.
9064 * infrun.c (_initialize_infrun): Ditto.
9065 * mi/mi-main.c (_initialize_mi_main): Ditto.
9066 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9067
9068 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9069 poking .cacheable directly.
9070 * symfile.c (symfile_bfd_open): Ditto.
9071
9072 * Makefile.in: Update all dependencies.
9073
9074 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9075 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9076 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9077 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9078 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9079
9080 2004-02-14 Andrew Cagney <cagney@redhat.com>
9081
9082 * arch-utils.c (legacy_convert_register_p): Check
9083 DEPRECATED_REGISTER_CONVERTIBLE_P.
9084 * findvar.c (value_of_register): Ditto.
9085
9086 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9087 * gdbarch.h, gdbarch.c: Re-generate.
9088 * arch-utils.c (deprecated_register_convertible_not): Delete.
9089 * arch-utils.h (deprecated_register_convertible_not): Delete.
9090 * mi/mi-main.c (get_register): Update. Update copyright.
9091 * infcmd.c (default_print_registers_info): Update.
9092
9093 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9094 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9095 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9096 * gdbarch.h, gdbarch.c: Re-generate.
9097 * frame.c (deprecated_get_next_frame_hack): Delete function.
9098 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9099 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9100 Update.
9101 * infcall.c (call_function_by_hand): Update.
9102
9103 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9104
9105 * symfile.c (init_entry_point_info, entry_point_address): Move
9106 from here...
9107 * objfiles.c (init_entry_point_info, entry_point_address):..to
9108 here.
9109 * symfile.h (init_entry_point_info, entry_point_address): Remove
9110 prototypes.
9111 * objfiles.h (init_entry_point_info, entry_point_address):Add
9112 prototypes.
9113 * cris-tdep.c: Remove include of symfile.h. Add include of
9114 objfiles.h.
9115 * infcall.c: Ditto.
9116 * mcore-tdep.c: Ditto.
9117 * mn10300-tdep.c: Ditto.
9118 * sh64-tdep.c: Ditto.
9119 * v850-tdep.c: Ditto.
9120 * arm-tdep.c: Remove include of symfile.h.
9121 * blockframe.c: Ditto.
9122 * coffread.c: Ditto.
9123 * dbxread.c: Ditto.
9124 * dwarf2read.c: Ditto.
9125 * dwarfread.c: Ditto.
9126 * frv-tdep.c: Ditto.
9127 * ia64-tdep.c: Ditto.
9128 * mdebugread.c: Ditto.
9129 * mipsread.c: Ditto.
9130 * rs6000-tdep.c: Ditto.
9131 * s390-tdep.c: Ditto.
9132 * sh-tdep.c: Ditto.
9133 * xstormy16-tdep.c: Ditto.
9134 * gdbarch.sh: Remove include of symfile.h.
9135 * gdbarch.c: Regenerate.
9136 * solib-irix.c (enable_break): Use entry_point_address().
9137 Add comment about include file.
9138 * xcoffread.c: Add comment about include file.
9139 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9140 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9141 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9142 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9143 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9144
9145 2004-02-13 Andrew Cagney <cagney@redhat.com>
9146
9147 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9148 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9149 copyright.
9150 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9151
9152 2004-02-12 Fred Fish <fnf@redhat.com>
9153
9154 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9155 set_gdbarch_store_return_value.
9156
9157 2004-02-12 Andrew Cagney <cagney@redhat.com>
9158
9159 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9160 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9161 (interrupt_query): Ditto.
9162 (ofunc): Delete unused variable.
9163 * cris-tdep.c (cris_abi): Delete unused function.
9164 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9165 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9166 (cris_get_asr_quick_shift_steps): Ditto.
9167 (cris_skip_prologue_frameless_p): Ditto.
9168 * arm-tdep.c (arm_push_return_address): Delete unused function.
9169 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9170 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9171 * s390-tdep.c (s390_function_start): Delete unused function.
9172
9173 2004-02-12 Andrew Cagney <cagney@redhat.com>
9174
9175 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9176 gdbarch.h, gdbarch.c: Re-generate.
9177 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9178 to generic_prologue_frameless_p.
9179 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9180 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9181
9182 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9183
9184 * mips-linux-tdep.c: Include "frame.h".
9185 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9186 (mips_linux_skip_resolver): New functions.
9187 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9188 and set_gdbarch_in_solib_call_trampoline.
9189 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9190 to after set_gdbarch_in_solib_return_trampoline. Only set the
9191 solib hooks to mips16 functions if the OS ABI is unknown.
9192 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9193 including "config/tm-linux.h".
9194 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9195 * Makefile.in (mips-linux-tdep.o): Update.
9196
9197 2004-02-11 David Carlton <carlton@kealia.com>
9198
9199 * linespec.c (decode_compound): Only look for a class symbol when
9200 considering all but the rightmost component.
9201
9202 2004-02-11 Andrew Cagney <cagney@redhat.com>
9203
9204 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9205 abi code are are separatly grouped.
9206
9207 2004-02-11 Andrew Cagney <cagney@redhat.com>
9208
9209 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9210 * gdbarch.h, gdbarch.c: Re-generate.
9211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9212 * v850-tdep.c (v850_gdbarch_init): Update.
9213 * sh64-tdep.c (sh64_gdbarch_init): Update.
9214 * sh-tdep.c (sh_gdbarch_init): Update.
9215 * s390-tdep.c (s390_gdbarch_init): Update.
9216 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9217 * mips-tdep.c (mips_gdbarch_init): Update.
9218 * mcore-tdep.c (mcore_gdbarch_init): Update.
9219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9220 * m32r-tdep.c (m32r_gdbarch_init): Update.
9221 * ia64-tdep.c (ia64_gdbarch_init): Update.
9222 * hppa-tdep.c (hppa_gdbarch_init): Update.
9223 * h8300-tdep.c (h8300_gdbarch_init): Update.
9224 * frv-tdep.c (frv_gdbarch_init): Update.
9225 * d10v-tdep.c (d10v_gdbarch_init): Update.
9226 * cris-tdep.c (cris_gdbarch_init): Update.
9227 * avr-tdep.c (avr_gdbarch_init): Update.
9228 * arm-tdep.c (arm_gdbarch_init): Update.
9229 * alpha-tdep.c (alpha_gdbarch_init): Update.
9230
9231 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9232
9233 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9234 comma.
9235 (sh_sh4al_dsp_register_name): Ditto.
9236
9237 2004-02-10 Andrew Cagney <cagney@redhat.com>
9238
9239 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9240 (mips_init_frame_pc_first): Delete function.
9241 (mips_frame_saved_pc): Delete function.
9242 (mips_frame_chain): Delete function.
9243 (mips_init_extra_frame_info): Delete function.
9244 (mips_xfer_register): Delete unused variable "reg".
9245 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9246 (mips_n32n64_return_value): Delete unused variable "reg".
9247 (mips_n32n64_return_value): Delete unused variable "pos".
9248 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9249 (mips_o32_return_value): Delete unused variable "pos".
9250 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9251 (mips_print_fp_register): Delete unused variable "namelen"
9252 (mips_print_fp_register): Delete unused variable "flt2"
9253 (get_frame_pointer): Delete function.
9254 (cached_proc_desc): Delete static variable.
9255 (mips_pop_frame): Delete function.
9256 (mips_find_saved_regs): Delete function.
9257 (mips_get_saved_register): Delete function.
9258 (mips_saved_pc_after_call): Delete function.
9259 (SIGFRAME_BASE): Delete macro.
9260 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9261 (SIGFRAME_PC_OFF): Delete macro.
9262 (SIGFRAME_REGSAVE_OFF): Delete macro.
9263 (mips_dump_tdep): Do not print deleted macro definitions.
9264
9265 2004-02-10 Andrew Cagney <cagney@redhat.com>
9266
9267 * Makefile.in (SFILES): Remove explictly listed tui files.
9268 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9269
9270 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9271
9272 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9273 to use paddr functions to format ia64 addresses and long values.
9274 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9275 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9276 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9277 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9278 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9279
9280 2004-02-10 Andrew Cagney <cagney@redhat.com>
9281
9282 * defs.h: Do not include "tui.h".
9283 * gdb_curses.h: New file.
9284 * tui/tui-hooks.h: New file.
9285 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9286 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9287 (tui_initialize_io): Delete declaration.
9288 (tui_initialize_readline: Delete redundant declaration.
9289 (struct tui_point): Delete definition.
9290 * tui/tui-data.h (struct tui_point): Define.
9291 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9292 * utils.c: Include "tui/tui.h".
9293 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9294 * printcmd.c [TUI]: Include "tui/tui.h".
9295 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9296 * tui/tui-command.c: Include "gdb_curses.h".
9297 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9298 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9299 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9300 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9301 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9302 * Makefile.in: Update all dependencies.
9303 (tui_hooks_h, gdb_curses_h): Define.
9304 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9305
9306 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9307
9308 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9309 auxf2. Add comments about some other rarely used fields.
9310
9311 2004-02-10 Andrew Cagney <cagney@redhat.com>
9312
9313 * Makefile.in (init.c): Fix script removing duplicates. Problem
9314 reported by Peter Schauer.
9315
9316 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9317
9318 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9319 obstack_specify_allocation.
9320 * objfiles.c (allocate_objfile): Ditto.
9321 * solib-sunos.c (solib_add_common_symbols)
9322 (allocate_rt_common_objfile): Ditto.
9323 * symfile.c (reread_symbols): Ditto.
9324 * gdb_obstack.h: Add comment.
9325
9326 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9327
9328 * linespec.c (decode_line_1, locate_first_half)
9329 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9330 commented out code.
9331
9332 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9333
9334 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9335 obstack_free.
9336
9337 2004-02-09 Andrew Cagney <cagney@redhat.com>
9338
9339 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9340 fails, try find_pc_section. Fix PR c++/1267.
9341 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9342 instead of find_pc_mapped_section.
9343 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9344 not default to the section containing PC. Fix PR symtab/1519.
9345
9346 2004-02-09 Andrew Cagney <cagney@redhat.com>
9347
9348 * Makefile.in (mips-tdep.o): Update dependencies.
9349 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9350 "trad-frame.h".
9351 (mips_unwind_pc): Return the pseudo PC register.
9352 (mips_unwind_dummy_id): New function.
9353 (mips16_fetch_instruction): New function.
9354 (mips32_fetch_instruction): New function.
9355 (struct mips_frame_cache): Define.
9356 (mips_mdebug_frame_cache): New function.
9357 (mips_mdebug_frame_this_id): New function.
9358 (mips_mdebug_frame_prev_register): New function.
9359 (mips_mdebug_frame_unwind): Define.
9360 (mips_mdebug_frame_sniffer): New function.
9361 (mips_mdebug_frame_base_address): New function.
9362 (mips_mdebug_frame_base): Define.
9363 (mips_mdebug_frame_base_sniffer): New function.
9364 (mips_gdbarch_init): Append unwind and base sniffers. Set
9365 unwind_dummy_id.
9366
9367 2004-02-08 Andrew Cagney <cagney@redhat.com>
9368
9369 * frame.c: Print both the register number and name.
9370
9371 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9372 and a sed into a single sed. Make .c and .o patterns more robust.
9373 (OBS): Delete.
9374 (INIT_FILES): Replace OBS with COMMON_OBS.
9375 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9376
9377 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9378
9379 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9380 the PT_WCOOKIE request.
9381
9382 2004-02-08 Andrew Cagney <cagney@redhat.com>
9383
9384 * mips-tdep.c (mips_unwind_pc): New function.
9385 (mips_gdbarch_init): Set mips_unwind_pc.
9386
9387 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9388 (get_frame_id): Allow the UNKNOWN_FRAME.
9389 (frame_register_unwind, get_frame_type): Ditto.
9390
9391 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9392 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9393 unwind_dummy_id indicates a legacy frame.
9394
9395 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9396 * configure: Re-generate.
9397
9398 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9399 methods.
9400
9401 2004-02-08 Andrew Cagney <cagney@redhat.com>
9402
9403 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9404 makefile macro.
9405 * configure: Re-generate.
9406 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9407 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9408 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9409 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9410 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9411 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9412 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9413 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9414 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9415 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9416
9417 2004-02-07 Andrew Cagney <cagney@redhat.com>
9418
9419 * Makefile.in: Update all dependencies.
9420
9421 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9422 * configure: Re-generate.
9423 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9424 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9425 (COMMON_OBS): Add "main.o" and "annotate.o".
9426 (ANNOTATE_OBS): Delete.
9427 (OBS): Remove ANNOTATE_OBS.
9428 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9429 CONFIG_INITS.
9430 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9431 against CONFIG_OBS and "main.o".
9432 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9433 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9434
9435 * tui/tui-command.c: Include "gdb_string.h", delete register
9436 attribute, use ISO-C function signatures.
9437 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9438 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9439 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9440 * tui/tui.c: Ditto.
9441
9442 * tui/tui-command.c: Change variable and function names to lower
9443 case.
9444 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9445 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9446 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9447 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9448 * tui/tui-winsource.c, tui/tui.c: Ditto.
9449
9450 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9451
9452 * buildsym.c (free_pending_blocks, finish_block)
9453 (record_pending_block, make_blockvector, end_symtab): Replace
9454 symbol_obstack with objfile_obstack.
9455 * coffread.c (process_coff_symbol, coff_read_struct_type)
9456 (coff_read_enum_type): Ditto.
9457 * cp-namespace.c (initialize_namespace_symtab)
9458 (check_one_possible_namespace_symbol): Ditto.
9459 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9460 (dwarf2_symbol_mark_computed): Ditto.
9461 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9462 * elfread.c (elf_symtab_read): Ditto.
9463 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9464 (hpread_read_enum_type, hpread_read_function_type)
9465 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9466 Ditto.
9467 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9468 (java_link_class_type): Ditto.
9469 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9470 (new_symbol): Ditto.
9471 * minsyms.c (install_minimal_symbols): Ditto.
9472 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9473 (terminate_minimal_symbol_table): Replace symbol_obstack with
9474 objfile_obstack.
9475 (free_objfile): Remove freeing of symbol_obstack.
9476 * objfiles.h: Remove symbol_obstack field.
9477 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9478 objfile_obstack.
9479 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9480 symbol_obstack.
9481 (solib_add_common_symbols): Replace symbol_obstack with
9482 objfile_obstack.
9483 * somsolib.c (som_solib_add): Ditto.
9484 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9485 (common_block_start, common_block_end): Ditto.
9486 * symfile.c (reread_symbols): Remove freeing and init of
9487 symbol_obstack.
9488 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9489 * symfile.h: Update comment.
9490 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9491 stats printing.
9492 * symtab.c (symbol_set_names): Replace symbol_obstack with
9493 objfile_obstack.
9494 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9495 Update comments.
9496 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9497 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9498 objfile_obstack.
9499
9500 2004-02-07 Andrew Cagney <cagney@redhat.com>
9501
9502 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9503 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9504 fields and variables.
9505 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9506 (m_beInvisible): Delete macro.
9507 * tui/tui-data.h: Fix case case fields and variables.
9508 (m_genWinPtrIsNull): Delete macro.
9509 (tui_win_list): Rename winList.
9510 (TUI_SRC_WIN): Rename srcWin.
9511 (TUI_DISASM_WIN): Rename disassemWin.
9512 (TUI_DATA_WIN): Rename dataWin.
9513 (TUI_CMD_WIN): Rename cmdWin.
9514 (m_genWinPtrNotNull): Delete macro.
9515 (m_winPtrIsNull): Delete macro.
9516 (m_winPtrNotNull): Delete macro.
9517 (tui_win_is_source_type): Replace m_winIsSourceType
9518 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9519 (tui_win_has_locator): Replace m_hasLocator.
9520 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9521 m_setWinHighlightOff.
9522 * tui/tui-data.c: Update references.
9523 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9524 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9525 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9526 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9527 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9528 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9529 * tui/tui-winsource.c, tui/tui.c: Ditto.
9530
9531 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9532
9533 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9534 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9535 StackGhost.
9536
9537 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9538 variable `i6' to `i7'.
9539 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9540
9541 2004-02-07 Andrew Cagney <cagney@redhat.com>
9542
9543 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9544 (TuiPoint, TuiPointPtr): Ditto.
9545 (TuiStatus, TuiStatusPtr): Ditto.
9546 (TuiWinType, TuiWinTypePtr): Ditto.
9547 (struct tui_point): Rename _TuiPoint.
9548 (tui_get_low_disassembly_address): Rename
9549 tuiGetLowDisassemblyAddress.
9550 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9551 (tuiFree): Delete declaration.
9552 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9553 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9554 * tui/tui.c (tuiFree): Delete function.
9555 * cli/cli-cmds.c (disassemble_command): Update references.
9556 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9557 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9558 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9559 * tui/tui-winsource.c: Ditto.
9560
9561 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9562
9563 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9564 coffstab_build_psymtabs, elfstab_build_psymtabs)
9565 (stabsect_build_psymtabs): Replace psymbol_obstack with
9566 objfile_obstack.
9567 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9568 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9569 Ditto.
9570 * dwarfread.c (scan_compilation_units): Ditto.
9571 * elfread.c (elfstab_offset_sections): Ditto.
9572 * hppa-tdep.c (read_unwind_info): Ditto.
9573 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9574 (hpread_end_psymtab): Ditto.
9575 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9576 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9577 Ditto.
9578 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9579 * objfiles.c (add_to_objfile_sections)
9580 (build_objfile_section_table): Ditto.
9581 (allocate_objfile): Remove init of psymbol_obstack.
9582 (free_objfile): Remove freeing of psymbol_obstack.
9583 * objfiles.h (struct objfile): Remove field
9584 psymbol_obstack. Update comments.
9585 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9586 psymbol_obstack with objfile_obstack.
9587 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9588 psymbol_obstack.
9589 * somread.c (som_symfile_offsets, init_import_symbols)
9590 (init_export_symbols): Replace psymbol_obstack with
9591 objfile_obstack.
9592 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9593 * symfile.c (default_symfile_offsets, syms_from_objfile)
9594 (reread_symbols): Remove freeing and init of psymbol_obstack.
9595 (cashier_psymtab): Update comment.
9596 * symmisc.c (print_objfile_statistics): Don't report stats for
9597 psymbol obstack.
9598 * symtab.h (struct general_symbol_info, struct partial_symtab):
9599 Update comments.
9600 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9601 (xcoff_symfile_offsets): Replace psymbol_obstack with
9602 objfile_obstack.
9603
9604 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9605
9606 * objfiles.h (struct objfile): Add objfile_obstack field.
9607 Remove type_obstack field.
9608
9609 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9610 read_structure_scope read_enumeration, new_symbol): Replace
9611 type_obstack with objfile_obstack.
9612 * dwarfread.c (struct_type, enum_type): Ditto.
9613 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9614 (lookup_fundamental_type): Ditto.
9615 * gdbtypes.h (TYPE_ALLOC): Ditto.
9616 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9617 (hpread_read_doc_function_type, hpread_read_struct_type)
9618 (fix_static_member_physnames, hpread_read_array_type)
9619 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9620 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9621 (java_link_class_type): Ditto.
9622 * mdebugread.c (parse_type): Ditto.
9623 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9624 * solib-sunos.c (solib_add_common_symbols): Ditto.
9625 * stabsread.c (define_symbol, read_type, read_member_functions,
9626 read_cpp_abbrev, read_one_struct_field): Ditto.
9627 * symfile.c (reread_symbols): Ditto.
9628 * symmisc.c (print_objfile_statistics): Ditto.
9629
9630 2004-02-07 Andrew Cagney <cagney@redhat.com>
9631
9632 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9633 (tui_exec_info_content): Rename TuiExecInfoContent.
9634 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9635 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9636 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9637 (TuiList, TuiListPtr): Ditto.
9638 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9639 (TuiDataType, TuiDataTypePtr): Ditto.
9640 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9641 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9642 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9643 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9644 (TuiDataElement, TuiDataElementPtr): Ditto.
9645 (TuiWinElement, TuiWinElementPtr): Ditto.
9646 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9647 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9648 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9649 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9650 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9651 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9652 * tui/tui-command.c, tui/tui-data.c: Update references.
9653 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9654 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9655 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9656 * tui/tui-winsource.c, tui/tui.c: Ditto.
9657
9658 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9659
9660 * dwarf2-frame.h: Update copyright.
9661 (enum dwarf2_frame_reg_rule): New.
9662 (struct dwarf2_frame_state_reg): New.
9663 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9664 * dwarf2-frame.c: Update copyright.
9665 (enum dwarf2_reg_rule): Remove.
9666 (struct dwarf2_frame_state): Remove defenition of `struct
9667 dwarf2_frame_state_reg'.
9668 (read_reg): Call get_frame_arch to get the architecture instead of
9669 using CURRENT_GDBARCH.
9670 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9671 DWARF2_FRAME_.
9672 (dwarf2_frame_init_reg): New function.
9673 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9674 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9675 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9676 tags with DWARF2_FRAME_.
9677 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9678 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9679 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9680
9681 2004-02-06 Andrew Cagney <cagney@redhat.com>
9682
9683 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9684 (enum tui_data_type): Rename _TuiDataType.
9685 (struct tui_layout_def): Rename _TuiLayoutDef.
9686 (struct tui_source_element): Rename _TuiSourceElement.
9687 (struct tui_data_element): Rename _TuiDataElement.
9688 (struct tui_command_element): Rename _TuiCommandElement.
9689 (struct tui_locator_element): Rename _TuiLocatorElement.
9690 (union tui_which_element): Define.
9691 (struct tui_win_element): Rename _TuiWinElement.
9692 (struct tui_data_info): Rename _TuiDataInfo.
9693 (struct tui_source_info): Rename _TuiSourceInfo.
9694 (struct tui_command_info): Rename _TuiCommandInfo.
9695 (tui_initialize_static_data): Rename initializeStaticData.
9696 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9697 (tui_alloc_win_info): Rename allocWinInfo.
9698 (tui_init_generic_part): Rename initGenericPart.
9699 (tui_init_win_info): Rename initWinInfo.
9700 (tui_alloc_content): Rename allocContent.
9701 (tui_add_content_elements): Rename addContentElements.
9702 (tui_init_content_element): Rename initContentElement.
9703 (tui_free_window): Rename freeWindow.
9704 (tui_free_win_content): Rename freeWinContent.
9705 (tui_free_data_content): Rename freeDataContent.
9706 (tui_free_all_source_wins_content): Rename
9707 freeAllSourceWinsContent.
9708 (tui_del_window): Rename tuiDelWindow.
9709 (tui_del_data_windows): Rename tuiDelDataWindows.
9710 (tui_partial_win_by_name): Rename partialWinByName.
9711 (tui_win_name): Rename winName.
9712 (tui_current_layout): Rename currentLayout.
9713 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9714 (tui_term_height): Rename termHeight.
9715 (tui_set_term_height_to): Rename setTermHeightTo.
9716 (tui_term_width): Rename termWidth.
9717 (tui_set_term_width_to): Rename setTermWidthTo.
9718 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9719 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9720 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9721 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9722 (tui_source_windows): Rename sourceWindows.
9723 (tui_clear_source_windows): Rename clearSourceWindows.
9724 (tui_clear_source_windows_detail): Rename
9725 clearSourceWindowsDetail.
9726 (tui_clear_win_detail): Rename clearWinDetail.
9727 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9728 (tui_default_tab_len): Rename tuiDefaultTabLen.
9729 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9730 (tui_win_with_focus): Rename tuiWinWithFocus.
9731 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9732 (tui_layout_def): Rename tuiLayoutDef.
9733 (tui_win_resized): Rename tuiWinResized.
9734 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9735 (tui_next_win): Rename tuiNextWin.
9736 (tui_prev_win): Rename tuiPrevWin.
9737 (tui_add_to_source_windows): Rename addToSourceWindows.
9738 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9739 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9740 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9741 * tui/tui.c, tui/tui-data.c: Ditto.
9742 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9743 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9744
9745 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9746 (struct symtab): Declare.
9747 (tui_set_source_content): Rename tuiSetSourceContent.
9748 (tui_show_symtab_source): Rename tuiShowSource.
9749 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9750 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9751 * tui/tui-source.c: Update copyright. Update references.
9752 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9753 * tui/tui-stack.c: Update references.
9754
9755 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9756 (struct tui_win_info): Declare.
9757 (tui_scroll_forward): Rename tuiScrollForward.
9758 (tui_scroll_backward): Rename tuiScrollBackward.
9759 (tui_scroll_left): Rename tuiScrollLeft.
9760 (tui_scroll_right): Rename tuiScrollRight.
9761 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9762 (tui_resize_all): Rename tuiResizeAll.
9763 (tui_refresh_all_win): Rename tuiRefreshAll.
9764 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9765 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9766 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9767 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9768
9769 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9770 (tui_erase_data_content): Rename tuiEraseDataContent.
9771 (tui_display_all_data): Rename tuiDisplayAllData.
9772 (tui_check_data_values): Rename tuiCheckDataValues.
9773 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9774 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9775 (tui_first_data_element_no_in_line): Rename
9776 tuiFirstDataElementNoInLine.
9777 (tui_delete_data_content_windows): Rename
9778 tuiDeleteDataContentWindows.
9779 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9780 (tui_display_data_from): Rename tuiDisplayDataFrom.
9781 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9782 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9783 * tui/tui-win.c, tui/tui-regs.c: Update references.
9784 * tui/tui-layout.c, tui/tui.c: Update references.
9785
9786 * tui/tui-wingeneral.h: Update copyright.
9787 (m_allBeVisible): Delete macro.
9788 (m_allBeInvisible): Delete macro.
9789 (struct tui_gen_win_info): Declare.
9790 (struct tui_win_info): Declare.
9791 (tui_unhighlight_win): Rename unhighlightWin.
9792 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9793 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9794 (tui_make_window): Rename makeWindow.
9795 (tui_copy_win): Rename copyWin.
9796 (tui_box_win): Rename boxWin.
9797 (tui_highlight_win): Rename highlightWin.
9798 (tui_check_and_display_highlight_if_needed): Rename
9799 checkAndDisplayHighlightIfNeeded.
9800 (tui_refresh_all): Rename refreshAll.
9801 (tui_delete_win): Rename tuiDelwin.
9802 (tui_refresh_win): Rename tuiRefreshWin.
9803 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9804 (tui_make_visible, tui_make_invisible): New functions.
9805 (tui_make_all_visible, tui_make_all_invisible): New functions.
9806 (make_all_visible): Rename makeAllVisible.
9807 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9808 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9809 * tui/tui-windata.c, tui/tui-win.c: Update references.
9810 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9811 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9812
9813 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9814
9815 * proc-api.c (write_with_trace): Initialize local variable to
9816 silence compiler warning.
9817
9818 2004-02-06 Andrew Cagney <cagney@redhat.com>
9819
9820 * tui/tui-source.h: Do not include "defs.h".
9821 (struct tui_win_info): Declare.
9822 (tui_set_source_content_nil): Declare.
9823 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9824 (union tui_line_or_address): Rename _TuiLineOrAddress.
9825 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9826 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9827 (tui_update_source_window_as_is): Rename
9828 tuiUpdateSourceWindowAsIs.
9829 (tui_update_source_windows_with_addr): Rename
9830 tuiUpdateSourceWindowsWithAddr.
9831 (tui_update_source_windows_with_line): Rename
9832 tuiUpdateSourceWindowsWithLine.
9833 (tui_clear_source_content): Rename tuiClearSourceContent.
9834 (tui_erase_source_content): Rename tuiEraseSourceContent.
9835 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9836 (tui_show_source_content): Rename tuiShowSourceContent.
9837 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9838 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9839 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9840 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9841 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9842 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9843 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9844 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9845 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9846 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9847 (struct tui_win_info): Declare.
9848 * tui/tui-stack.c: Update references.
9849 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9850 * tui/tui-win.c, tui/tui-source.c: Ditto.
9851 * tui/tui.c, tui/tui-disasm.c: Ditto.
9852
9853 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9854
9855 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9856 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9857
9858 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9859
9860 * infrun.c (handle_inferior_event): Allow for breakpoint
9861 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9862 and SIGEMT. Update comments.
9863 * NEWS (Revised SPARC target): Mention support for non-executable
9864 stack.
9865
9866 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9867
9868 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9869 * inftarg.c: Update copyright year.
9870 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9871 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9872 (sparc_xfer_wcookie): New function.
9873 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9874 * Makefile.in (sparc-nat.o): Update dependencies.
9875 * config/sparc/nm-nbsd.h: Include "target.h".
9876 (NATIVE_XFER_WCOOKIE): New define.
9877 (sparc_xfer_wcookie): New prototype.
9878
9879 2004-02-04 Andrew Cagney <cagney@redhat.com>
9880
9881 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9882 SYSCALL_TRAP function.
9883 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9884
9885 2004-02-04 Andrew Cagney <cagney@redhat.com>
9886 Daniel Jacobowitz <drow@mvista.com>
9887
9888 * objfiles.h: Delete comments refering to inside_entry_func and
9889 DEPRECATED_FRAME_CHAIN_VALID.
9890 * defs.h (inside_entry_func): Update prototype..
9891 * blockframe.c (inside_entry_func): Rename to
9892 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9893 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9894
9895 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9896
9897 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9898 outside of #ifdef SOLIB_ADD region.
9899 (do_restore_lang_radix_cleanup): Ditto.
9900 (resolve_pending_breakpoint): Ditto.
9901
9902 2004-02-03 Andrew Cagney <cagney@redhat.com>
9903
9904 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9905 (process_note_abi_tag_sections): Delete unused function.
9906 (ia64_read_fp): Delete unused function.
9907 (gdbarch_extract_struct_value_address): Delete declaration.
9908
9909 2004-02-02 Andrew Cagney <cagney@redhat.com>
9910
9911 * vax-tdep.c (vax_frame_chain): Delete call to
9912 deprecated_inside_entry_file.
9913 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9914
9915 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9916
9917 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9918 column that's "empty" or "same value" when eliminating REG_RA
9919 rules.
9920
9921 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9922
9923 * NEWS: Add information about new pending breakpoint support.
9924
9925 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9926
9927 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9928 and pending fields for pending breakpoint support.
9929 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9930 (condition_command): Only parse condition if not a pending
9931 breakpoint.
9932 (print_one_breakpoint): Add support for pending breakpoints.
9933 (describe_other_breakpoints): Add checks to verify we are not
9934 dealing with pending breakpoints.
9935 (check_duplicates): Don't check pending breakpoints.
9936 (set_raw_breakpoint): Initialize pending flag.
9937 (do_restore_lang_radix_cleanup): New cleanup routine.
9938 (resolve_pending_breakpoint): New function.
9939 (re_enable_breakpoints_in_shlibs): Try and resolve any
9940 pending breakpoints via resolve_pending_breakpoint.
9941 (mention): Add pending breakpoint support.
9942 (parse_breakpoint_sals): Add new parameter to pass to
9943 decode_line_1 to indicate silent errors when files or functions
9944 are not found. Change all callers.
9945 (do_captured_parse_breakpoint): New function.
9946 (break_command_1): Change prototype to return an rc value and to
9947 take an optional pending breakpoint pointer. Support creating
9948 a pending breakpoint if a "not found" form of error occurs when
9949 parsing the breakpoint. Also support resolving an existing pending
9950 breakpoint and be silent if the resolution fails.
9951 (create_breakpoints): Change prototype to take pending breakpoint
9952 pointer. When resolving a pending breakpoint, use the new pointer
9953 to provide a conditional or commands added by the end-user.
9954 (delete_breakpoint): Add appropriate check for pending.
9955 (breakpoint_re_set_one): Ditto.
9956 (do_enable_breakpoint): Ditto.
9957
9958 2004-02-02 David Carlton <carlton@kealia.com>
9959
9960 * valops.c (enum oload_classification): New.
9961 (find_overload_match): Break implementation into separate
9962 functions; delete #if 0'd code; look for symbols within
9963 namespaces.
9964 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9965 (find_oload_champ,oload_method_static,classify_oload_match): New.
9966 * cp-support.h: Add declaration for cp_func_name; update
9967 declaration for make_symbol_overload_list.
9968 * cp-support.c (cp_func_name): New.
9969 (overload_list_add_symbol): Fix comment, use
9970 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9971 (make_symbol_overload_list): Take a function name and a namespace
9972 instead of a symbol; change implementation.
9973 (make_symbol_overload_list_using): New.
9974 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9975
9976 2004-02-02 Fred Fish <fnf@redhat.com>
9977
9978 * main.c (gdb_stdtarg): Move definition to group with other
9979 gdb_stdtarg definitions and update copyright years.
9980 * remote-sim.c (gdb_os_write_stderr): Write output to
9981 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9982 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9983 gdb_stderr stream and update copyright years.
9984
9985 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * Makefile.in (mips-linux-nat.o): Update dependencies.
9988 * mips-linux-nat.c: Include mips-tdep.h.
9989
9990 2004-02-01 Roland McGrath <roland@redhat.com>
9991
9992 * sol-thread.c (sol_thread_xfer_partial): New function.
9993 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9994 (init_sol_core_ops): Likewise.
9995
9996 * procfs.c (procfs_xfer_partial): New function.
9997 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9998 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9999
10000 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10001 procfs_xfer_auxv function.
10002
10003 * procfs.c (procfs_make_note_section): If we can read
10004 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10005 * linux-proc.c (linux_make_note_section): Likewise.
10006
10007 * auxv.h: New file.
10008 * auxv.c: New file.
10009 * Makefile.in (auxv_h): New variable.
10010 (COMMON_OBS): Add auxv.o here.
10011 (auxv.o): New target.
10012
10013 * corelow.c (core_xfer_partial): New function.
10014 (init_core_ops): Use it for core_ops.to_xfer_partial.
10015
10016 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10017 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10018 macro if that is defined.
10019
10020 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10023 and check the specified thread for each breakpoint.
10024 * breakpoint.h (bpstat_stop_status): Update prototype.
10025 * infrun.c (handle_inferior_event): Update calls to
10026 bpstat_stop_status.
10027
10028 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10029
10030 * Makefile.in (cli-cmds.o): Add $(readline_h).
10031
10032 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10033
10034 * cli/cli-cmds.c: Include readline.h.
10035 (complete_command): Pass the start of the last word to
10036 complete_line.
10037
10038 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10039
10040 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10041 argument, and change first argument to a CORE_ADDR.
10042 * breakpoint.h (bpstat_stop_status): Update prototype.
10043 * infrun.c (adjust_pc_after_break): Add a new comment.
10044 (handle_inferior_event): Update calls to bpstat_stop_status.
10045
10046 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10047
10048 * breakpoint.h: Update copyright years.
10049
10050 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10053 (bpstat_stop_status): Don't decrement PC.
10054 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10055 prototype.
10056 * infrun.c (adjust_pc_after_break): New function.
10057 (handle_inferior_event): Call it, early. Remove later references
10058 to DECR_PC_AFTER_BREAK.
10059 (normal_stop): Add commentary.
10060
10061 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10062
10063 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10064 2004-01-27 double-free fix.
10065
10066 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10067
10068 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10069 (sparc32_frame_prev_register): Handle StackGhost.
10070 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10071
10072 2004-01-29 Roland McGrath <roland@redhat.com>
10073
10074 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10075 * configure: Regenerated.
10076
10077 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10078 * Makefile.in (procfs.o): Add dep.
10079
10080 2004-01-28 Andrew Cagney <cagney@redhat.com>
10081
10082 * tui/tui-stack.h: Update copyright.
10083 (struct frame_info): Add opaque declaration.
10084 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10085 (tui_show_locator_content): Rename tuiShowLocatorContent.
10086 (tui_show_frame_info): Rename tuiShowFrameInfo.
10087 * tui/tui-stack.c: Update copyright. Update references.
10088 * tui/tui-winsource.c: Update references.
10089 * tui/tui-win.c: Update references.
10090 * tui/tui-layout.c: Update references.
10091 * tui/tui-hooks.c: Update copyright, update references.
10092 * tui/tui.c: Update copyright, update references.
10093 * tui/tui-disasm.c: Update references.
10094
10095 2004-01-28 David Carlton <carlton@kealia.com>
10096
10097 * dwarf2read.c (add_partial_structure): Use demangled name if
10098 namespace equals "".
10099
10100 2004-01-27 Jim Blandy <jimb@redhat.com>
10101
10102 Clean up misapplied patch:
10103 * dwarf2read.c (determine_prefix): Change one of the two forward
10104 declarations for 'determine_prefix_aux' to a declaration for this.
10105 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10106 argument to 'die_specification'.
10107
10108 * dwarf2read.c (read_func_scope): Re-indent comment.
10109
10110 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10111
10112 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10113 b->exp to NULL after freeing so that error during re-parsing or
10114 evaluation of expressions associated with breakpoint don't
10115 eventually lead to re-freeing of storage.
10116 Committed by Andrew Cagney.
10117
10118 2004-01-27 Andrew Cagney <cagney@redhat.com>
10119
10120 * source.c (ambiguous_line_spec): Delete undefined declaration.
10121 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10122 (m32r_set_server_address, m32r_set_download_path): Ditto.
10123 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10124
10125 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10126
10127 * dwarf2read.c: Update calls to changed and renamed functions, and
10128 references to moved variables.
10129
10130 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10131 language, language_defn, list_in_scope, and ftypes members.
10132 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10133 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10134 (baseaddr): Remove globals.
10135
10136 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10137 (set_cu_language, die_is_declaration, die_specification)
10138 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10139 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10140 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10141 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10142
10143 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10144 cu.list_in_scope. Don't initialize cu_header_offset.
10145 (add_partial_symbol): Add local baseaddr.
10146 (psymtab_to_symtab_1): Add local baseaddr. Use
10147 objfile->section_offsets for consistency. Don't initialize
10148 cu_header_offset; do initialize cu.header.offset and
10149 cu.list_in_scope.
10150 (read_file_scope, read_func_scope, read_lexical_block_scope)
10151 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10152
10153 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10154
10155 * PROBLEMS: Add gdb/1516.
10156
10157 2003-12-29 Robert Millan <robertmh@gnu.org>
10158
10159 Patch committed by Andrw Cagney.
10160 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10161 * configure.tgt: Match knetbsd*-gnu.
10162
10163 2004-01-26 Andrew Cagney <cagney@redhat.com>
10164
10165 * breakpoint.c (catch_command_1): Delete #ifdef code.
10166 (catch_fork_command_1): Delete #ifdef wrapper.
10167 (catch_exec_command_1): Ditto.
10168 (catch_load_command_1): Ditto.
10169 (catch_unload_command_1): Ditto.
10170
10171 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10172 (catch_breakpoint): Delete #if0ed function.
10173 (disable_catch_breakpoint): Ditto.
10174 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10175 (disable_catch, enable_catch, delete_catch): Ditto.
10176
10177 2004-01-26 Andrew Cagney <cagney@redhat.com>
10178
10179 * remote.c (echo_check, quit_flag): Delete variables.
10180 (cisco_kernel_mode): Delete variable.
10181 (minitelnet_return, tty_input, escape_count): Delete variables.
10182 (remote_cisco_mode): Delete variable.
10183 (remote_cisco_open, remote_cisco_close): Delete function.
10184 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10185 (init_remote_cisco_ops): Delete function.
10186 (_initialize_remote): Do not install "remote cisco" code.
10187 (read_frame): Delete cisco specific code.
10188 (remote_info_process): Delete function.
10189 (remote_wait): Delete cisco specific code.
10190 (remote_cisco_section_offsets): Delete function.
10191 (remote_cisco_objfile_relocate): Delete function.
10192 (remote_async_wait): Delete cisco specific code.
10193 (minitelnet, readtty, readsocket): Delete function.
10194
10195 2004-01-26 Andrew Cagney <cagney@redhat.com>
10196
10197 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10198 comments mentioning extract_returned_value_address.
10199 * infcmd.c (print_return_value): Update. Add comments on
10200 extract_returned_value_address.
10201 * stack.c (return_command): Add comments on
10202 extract_returned_value_address.
10203 * values.c: Update comment.
10204 * m32r-tdep.c: Update comment.
10205 * sparc-tdep.c: Update comment.
10206 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10208 * sh64-tdep.c (sh64_gdbarch_init): Update.
10209 * sh-tdep.c (sh_gdbarch_init): Update.
10210 * s390-tdep.c (s390_gdbarch_init): Update.
10211 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10212 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10213 * m68k-tdep.c (m68k_gdbarch_init): Update.
10214 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10215 * m32r-tdep.c (m32r_gdbarch_init): Update.
10216 * ia64-tdep.c (ia64_gdbarch_init): Update.
10217 * h8300-tdep.c (h8300_gdbarch_init): Update.
10218 * frv-tdep.c (frv_gdbarch_init): Update.
10219 * arm-tdep.c (arm_gdbarch_init): Update.
10220 * alpha-tdep.c (alpha_gdbarch_init): Update.
10221
10222 2004-01-26 Andrew Cagney <cagney@redhat.com>
10223
10224 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10225 SYMBOL_LOCATION_FUNCS
10226 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10227 "struct symbol_ops".
10228 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10229 type to "struct symbol_ops".
10230 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10231 (struct symbol): Replace ".aux_value.loc.funcs" and
10232 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10233 (SYMBOL_OBJFILE): Delete macro.
10234 (SYMBOL_LOCATION_FUNCS): Delete macro.
10235 (SYMBOL_LOCATION_BATON): Update.
10236 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10237 intead of SYMBOL_LOCATION_FUNCS.
10238 * ax-gdb.c (gen_var_ref): Ditto.
10239 * printcmd.c (address_info): Ditto.
10240 * findvar.c (read_var_value): Ditto.
10241 (symbol_read_needs_frame): Ditto.
10242
10243 2004-01-26 Andrew Cagney <cagney@redhat.com>
10244
10245 * dwarf2read.c (read_func_scope): Document frame-base hack.
10246
10247 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10248
10249 * infcmd.c (print_return_value): Plug memory leak; delete
10250 ui_stream object. Rename argument `structure_return' to
10251 `struct_return'.
10252
10253 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10254
10255 * infcmd.c (print_return_value): Wrap long lines.
10256 (finish_command_continuation, finish_command): Remove unused
10257 variable `funcaddr'. Fix some coding-standards problems.
10258
10259 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10260 SECT_SIZE is large enough, not whether it's exactly the right size.
10261 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10262 TDEP->fpregset to zero.
10263
10264 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10265 floating-point registers for traditional NetBSD core files.
10266 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10267 TDEP->sizeof_fpregset here.
10268
10269 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10270
10271 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10272 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10273 function with code split out from
10274 sparc32nbsd_sigcontext_frame_cache.
10275 (sparc32nbsd_sigcontext_frame_cache): Use
10276 sparc32nbsd_sigcontext_saved_regs.
10277 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10278 OpenBSD.
10279 * sparcobsd-tdep.c: New file.
10280 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10281 (sparcobsd-tdep.o): New dependency.
10282 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10283 * config/sparc/obsd.mt: New file.
10284
10285 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10286 TDEP->fpregset to be initialized to enable core file register
10287 sets.
10288
10289 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10290
10291 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10292 Add opaque declarations.
10293 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10294 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10295 function with code split out from
10296 sparc64nbsd_sigcontext_frame_cache.
10297 (sparc64nbsd_sigcontext_frame_cache): Use
10298 sparc64nbsd_sigcontext_saved_regs.
10299 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10300 OpenBSD.
10301 * sparc64obsd-tdep.c: New file.
10302 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10303 (sparc64obsd-tdep.o): New dependency.
10304 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10305 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10306 * config/sparc/obsd64.mt: New file.
10307
10308 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10309 read the instruction at PC.
10310
10311 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10312 value of GDB_OSABI_DEFAULT.
10313 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10314 instead of GDB_OSABI_NETBSD_AOUT.
10315
10316 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10317
10318 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10319 copyright.
10320
10321 2004-01-23 Andrew Cagney <cagney@redhat.com>
10322
10323 * printcmd.c (display_command): Replace tui_set_display call with
10324 tui_set_layout_for_display_command.
10325 * tui/tui.h (enum tui_win_type): Define.
10326 (tui_set_layout): Delete declaration.
10327 (tui_set_layout_for_display_command): Rename set_tui_layout.
10328 * tui/tui-data.h (enum tui_layout_type): Define.
10329 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10330 "tui.h".
10331 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10332 (tui_default_win_height): Rename tuiDefaultWinHeight.
10333 (tui_default_win_viewport_height): Rename
10334 tuiDefaultWinViewportHeight.
10335 (tui_set_layout): RenametuiSetLayout.
10336 * tui/tui-layout.c: Update references.
10337 * tui/tui.c: Update references.
10338 * tui/tui-disasm.c: Update references.
10339
10340 2004-01-23 David Carlton <carlton@kealia.com>
10341
10342 Partial workaround for PR c++/1511:
10343 * cp-namespace.c: Include frame.h.
10344 (cp_lookup_transparent_type): New
10345 (cp_lookup_transparent_type_loop): New.
10346 * cp-support.h: Declare cp_lookup_transparent_type.
10347 * symtab.c (basic_lookup_transparent_type): Renamed from
10348 lookup_transparent_type.
10349 (lookup_transparent_type): Replace old body by a call to
10350 current_language->la_lookup_transparent_type.
10351 * symtab.h: Update copyright. Declare
10352 basic_lookup_transparent_type.
10353 * language.h: Update copyright.
10354 (struct language_defn): Add la_lookup_transparent_type.
10355 * language.c: Update copyright.
10356 (unknown_language_defn): Add basic_lookup_transparent_type.
10357 (auto_language_defn): Add basic_lookup_transparent_type.
10358 (local_language_defn): Add basic_lookup_transparent_type.
10359 * ada-lang.c: Update copyright.
10360 (ada_language_defn): Add basic_lookup_transparent_type.
10361 * c-lang.c: Update copyright.
10362 (c_language_defn): Add basic_lookup_transparent_type.
10363 (cplus_language_defn): Add basic_lookup_transparent_type.
10364 (asm_language_defn): Add basic_lookup_transparent_type.
10365 (minimal_language_defn): Add basic_lookup_transparent_type.
10366 * f-lang.c: Update copyright.
10367 (f_language_defn): Add basic_lookup_transparent_type.
10368 * jv-lang.c: Update copyright.
10369 (java_language_defn): Add basic_lookup_transparent_type.
10370 * m2-lang.c: Update copyright.
10371 (m2_language_defn): Add basic_lookup_transparent_type.
10372 * objc-lang.c: Update copyright.
10373 (objc_language_defn): Add basic_lookup_transparent_type.
10374 * p-lang.c: Update copyright.
10375 (p_language_defn): Add basic_lookup_transparent_type.
10376 * scm-lang.c: Update copyright.
10377 (scm_language_defn): Add basic_lookup_transparent_type.
10378 * Makefile.in (cp-namespace.o): Depend on frame.h.
10379
10380 2004-01-23 David Carlton <carlton@kealia.com>
10381
10382 Patch for PR c++/1520:
10383 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10384 properly if we have a specification die.
10385 (determine_prefix_aux): Rename from determine_prefix.
10386 (determine_prefix): Like the old determine_prefix, but never
10387 returns NULL.
10388
10389 2004-01-23 Theodore A. Roth <troth@openavr.org>
10390
10391 * avr-tdep.c: Update copyright.
10392 (avr_iaddr_p): Delete unused function.
10393 (avr_saddr_p): Delete unused function.
10394
10395 2004-01-23 David Carlton <carlton@kealia.com>
10396
10397 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10398 Fix for PR symtab/1534.
10399
10400 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10401
10402 * NEWS (New native configurations): Mention OpenBSD/sparc and
10403 OpenBSD/sparc64.
10404 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10405 * configure.host: Likewise.
10406 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10407 handler for OpenBSD.
10408 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10409
10410 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10411
10412 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10413 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10414
10415 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10416 * cli/cli-cmds.c (shell_escape): Likewise.
10417
10418 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10419 OpenBSD .note.openbsd.ident sections.
10420
10421 2004-01-22 David Carlton <carlton@kealia.com>
10422
10423 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10424 get_scope_pc_bounds.
10425 (read_file_scope): Ditto.
10426 (get_scope_pc_bounds): New function, produced by extracting code
10427 from the above two functions, consolidating it, and adding support
10428 for DW_TAG_namespace.
10429
10430 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10431
10432 * osabi.c (MAX_NOTESZ): New define.
10433 (check_note): New function.
10434 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10435 check_note.
10436
10437 2004-01-21 Roland McGrath <roland@redhat.com>
10438
10439 * MAINTAINERS (write after approval): Add myself.
10440
10441 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10442
10443 * utils.c (init_page_info): Move declarations of `rows' and
10444 `cols' before the __GO32__-specific code. Move the closing brace
10445 outside the #ifdef __GO32__..#endif block.
10446 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10447
10448 2004-01-21 Paul Brook <paul@codesourcery.com>
10449
10450 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10451 BPSTAT_WHAT_CHECK_SHLIBS.
10452
10453 2004-01-21 Paul Brook <paul@codesourcery.com>
10454
10455 * MAINTAINERS: Add myself to write-after-approval.
10456
10457 2004-01-20 Andrew Cagney <cagney@redhat.com>
10458
10459 * ax-gdb.c (print_axs_value): Delete unused function.
10460 * jv-lang.c (java_lookup_type): Delete unused function.
10461 * cli/cli-dump.c (dump_filetype): Delete unused function.
10462 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10463 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10464 (mips_getstring): Delete unused function.
10465 (pmon_insert_breakpoint): Delete #if0ed function.
10466 (PMON_MAX_BP): Delete #if0ed MACRO.
10467 (mips_pmon_bp_info): Delete #if0ed variable.
10468 (pmon_remove_breakpoint): Delete #if0ed function.
10469 * monitor.c (monitor_write_even_block): Delete unused function.
10470 (monitor_write_memory_block): Delete #if0ed code.
10471 * dink32-rom.c (dink32_load): Delete unused function.
10472 (_initialize_dink32_rom): Delete #if0ed code.
10473 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10474
10475 * tui/tui-command.c: Update references.
10476 * tui/tui-io.c: Update references.
10477 * tui/tui-command.h: Update copyright.
10478 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10479
10480 * source.c (ambiguous_line_spec): Delete never-defined function.
10481 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10482 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10483 * cli/cli-cmds.c (validate_comname): Ditto.
10484
10485 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10486 "tui-data.h".
10487 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10488 (tui_show_disassem): Rename tuiShowDisassem.
10489 (tui_show_disassem_and_update_source): Rename
10490 tuiVerticalDisassemScroll.
10491 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10492 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10493 * tui/tui.h: Update copyright.
10494 (enum tui_status): Define.
10495 * tui/tui-data.h (enum tui_scroll_direction): Define.
10496 * tui/tui-disasm.c: Update copyright. Update references.
10497 * tui/tui-winsource.c: Update copyright. Update references.
10498 * tui/tui-win.c: Update references.
10499 * tui/tui-layout.c: Update references.
10500
10501 2004-01-20 Andrew Cagney <cagney@redhat.com>
10502
10503 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10504 sym2 to start of block.
10505
10506 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10507
10508 * MAINTAINERS: Delete mmalloc.
10509 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10510 * NEWS: Mention removal of --with-malloc.
10511 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10512 * config.in: Regenerate.
10513 * configure: Regenerate.
10514 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10515 USE_MMALLOC, MMCHECK_FORCE.
10516 * gdbinit.in: Remove mmalloc.
10517 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10518 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10519 * config/i386/go32.mh: Likewise.
10520 * config/i386/interix.mh: Likewise.
10521 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10522
10523 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10524
10525 * linespec.c (decode_variable, symtab_from_filename): Call
10526 error_silent with error message instead of throwing an exception
10527 directly.
10528 * defs.h (error_silent, error_output_message): Add prototypes.
10529 (catch_exceptions_with_msg): Ditto.
10530 * utils.c (error_silent, error_output_message): New functions.
10531 * top.c (catch_exceptions_with_msg): New function.
10532
10533 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10534
10535 * mi/mi-cmds.h (enum print_values): Add definition.
10536
10537 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10538 type and value for simple data types and just the name and type
10539 for complex ones, if required.
10540
10541 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10542 children, if required.
10543
10544 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10545
10546 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10547 unused declarations.
10548
10549 2004-01-19 Andrew Cagney <cagney@redhat.com>
10550
10551 * top.h (mapped_symbol_files): Delete declaration.
10552 * main.c (captured_main): Delete option "m" and "mapped".
10553 * objfiles.c (mapped_symbol_files): Delete variable.
10554 * symfile.c (symbol_file_command): Delete mmap code.
10555 (symbol_file_add_with_addrs_or_offsets): Ditto.
10556 (add_symbol_file_command, reread_separate_symbols): Ditto.
10557 * objfiles.h (OBJF_MAPPED): Delete.
10558 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10559 (free_objfile) [USE_MMALLOC]: Ditto.
10560 (open_existing_mapped_file): Delete function.
10561 (open_mapped_file): Delete function.
10562 (map_to_file): Delete function.
10563
10564 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10565
10566 * infrun.c (step_into_function): Account for possible breakpoint
10567 adjustment when computing ``stop_func_start''.
10568
10569 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10570
10571 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10572 the region size against the size of a pointer, not the size of
10573 a register as given by DEPRECATED_REGISTER_SIZE.
10574
10575 2004-01-19 Andrew Cagney <cagney@redhat.com>
10576
10577 * tui/tui-regs.h: Include "tui-data.h".
10578 (tuiFirstRegElementNoInLine): Delete declaration.
10579 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10580 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10581 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10582 (tui_calculate_regs_column_count): Rename
10583 tuiCalculateRegsColumnCount.
10584 (tui_check_register_values): Rename tuiCheckRegisterValues.
10585 (tui_show_registers): Rename tuiShowRegisters.
10586 (tui_display_registers_from_line): Rename
10587 tuiDisplayRegistersFromLine.
10588 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10589 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10590 (tui_first_reg_element_no_inline): Rename
10591 tuiFirstRegElementNoInLine.
10592 * tui/tui-data.h: Update copyright.
10593 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10594 * tui/tui-windata.c: Update copyright, update references.
10595 * tui/tui-regs.c: Update copyright, update references.
10596 * tui/tui-win.c: Update copyright, update references.
10597 * tui/tui-layout.c: Update copyright, update references.
10598
10599 2004-01-18 Andrew Cagney <cagney@redhat.com>
10600
10601 * tui/tui-io.c: Update copyright.
10602 (key_is_end_sequence, key_is_backspace): New functions.
10603 (key_is_command_char, key_is_start_sequence): New function.
10604 (tui_getc): Update references.
10605 * tui/tui-io.h: Update copyright.
10606 (m_tuiStartNewLine): Delete macro.
10607 (m_isBackspace, m_isDeleteChar): Delete macros.
10608 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10609 (m_isNextPage, m_isPrevPage): Delete macros.
10610 (m_isLeftArrow, m_isRightArrow): Delete macros.
10611 (m_isXdbStyleCommandChar): Delete macro.
10612 (key_is_start_sequence): Declare, replace m_isStartSequence.
10613 (key_is_end_sequence): Declare, replace m_isEndSequence.
10614 (key_is_backspace): Declare ,replace m_isBackspace.
10615 (key_is_command_char): Declare, replace m_isCommandChar.
10616 * tui/tui-command.c: Update copyright.
10617 (tuiDispatchCtrlChar): Update references.
10618
10619 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10620 tuiSourceWin.h.
10621
10622 * tui/tui-command.c: Rename tui/tuiCommand.c.
10623 * tui/tui-command.h: Rename tui/tuiCommand.h.
10624 * tui/tui-data.c: Rename tui/tuiData.c.
10625 * tui/tui-data.h: Rename tui/tuiData.h.
10626 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10627 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10628 * tui/tui-io.c: Rename tui/tuiIO.c.
10629 * tui/tui-io.h: Rename tui/tuiIO.h.
10630 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10631 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10632 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10633 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10634 * tui/tui-source.c: Rename tui/tuiSource.c.
10635 * tui/tui-source.h: Rename tui/tuiSource.h.
10636 * tui/tui-stack.c: Rename tui/tuiStack.c.
10637 * tui/tui-stack.h: Rename tui/tuiStack.h.
10638 * tui/tui-win.c: Rename tui/tuiWin.c.
10639 * tui/tui-win.h: Rename tui/tuiWin.h.
10640 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10641 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10642 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10643 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10644 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10645 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10646 * tui/tui-file.c: Update includes.
10647 * tui/tui-hooks.c: Update includes.
10648 * tui/tui-interp.c: Update includes.
10649 * tui/tui.c: Update includes.
10650 * Makefile.in: Update all tui/ dependencies.
10651 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10652
10653 * Makefile.in: Update copyright. Update dependencies.
10654
10655 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10656 problem.
10657
10658 2004-01-18 Andrew Cagney <cagney@redhat.com>
10659
10660 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10661 instead of register_gdbarch_init.
10662
10663 * remote-sds.c (tohex): Delete unused function. Update copyright.
10664 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10665 * v850-tdep.c (v850_register_virtual_size): Ditto.
10666 * target.c (normal_target_post_startup_inferior): Ditto.
10667 * source.c (ambiguous_line_spec): Ditto.
10668 * remote.c (adapt_remote_get_threadinfo): Ditto.
10669 * mi/mi-out.c (out_field_fmt): Ditto.
10670 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10671 (output_control_change_notification): Ditto.
10672 * m68k-tdep.c (m68k_register_byte): Ditto.
10673 (m68k_remote_breakpoint_from_pc): Ditto.
10674 * ui-out.c (init_ui_out_state): Delete unused declaration.
10675 * stabsread.c (search_value): Ditto.
10676 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10677 * maint.c (print_section_table): Ditto.
10678 * infrun.c (set_follow_fork_mode_command): Ditto.
10679
10680 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10681
10682 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10683 DW_CFA_def_cfa_exporession. Add support for
10684 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10685 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10686
10687 2004-01-18 Andrew Cagney <cagney@redhat.com>
10688
10689 * ocd.c: Update copyright.
10690 (bdm_read_register_command): Delete unused function.
10691 (_initialize_remote_ocd): Delete commented out reference.
10692 (get_quoted_char, reset_packet): Delete #if0ed function.
10693 (output_packet, put_quoted_char): Delete #if0ed function.
10694 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10695 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10696 (BDM_BREAKPOINT): Delete #if0ed macro.
10697 (remote_timeout): Delete #if0ed variable.
10698
10699 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10700
10701 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10702 (core-sol2.o): Remove dependency.
10703 * core-sol2.c: Remove file.
10704
10705 2004-01-17 Andrew Cagney <cagney@redhat.com>
10706
10707 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10708 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10709 enums.
10710
10711 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10712
10713 * remote.c: Update copyright years.
10714
10715 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10716
10717 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10718
10719 2004-01-17 Andrew Cagney <cagney@redhat.com>
10720
10721 * mdebugread.c: Update copyright.
10722 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10723 (parse_type, parse_procedure): Ditto.
10724 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10725
10726 * cris-tdep.c (cris_store_struct_return): Put back accidently
10727 deleted function.
10728
10729 * gdbarch.sh: Update copyright year.
10730 * gdbarch.h, gdbarch.c: Re-generate.
10731
10732 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10733
10734 Suggested by George Anzinger.
10735 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10736 correct stack offset. Include unknown opcode numbers in the error
10737 message.
10738
10739 2004-01-17 Andrew Cagney <cagney@redhat.com>
10740
10741 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10742 extract_struct_value_address, i386 does not set it.
10743 * sparc64-tdep.c (sparc64_init_abi): Do not set
10744 extract_struct_value_address, never called.
10745 (sparc64_extract_struct_value_address): Delete function.
10746 * m68hc11-tdep.c: Update copyright.
10747 (m68hc11_gdbarch_init): Delete redundant assignment of
10748 extract_struct_value_address.
10749 * i386-tdep.c: Update copyright.
10750 (i386_gdbarch_init): Do not set extract_struct_value_address,
10751 never called.
10752 (i386_extract_struct_value_address): Delete function.
10753 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10754 extract_struct_value_address, never called.
10755 (sparc32_extract_struct_value_address): #if 0 function. Add
10756 comments explaining its future.
10757
10758 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10759
10760 * arm-tdep.c (arm_write_pc): New function.
10761 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10762
10763 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10764
10765 * breakpoint.c (must_shift_inst_regs): Delete.
10766 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10767 and SHIFT_INST_REGS.
10768 * infcmd.c (step_1, step_1_continuation): Delete references to
10769 SHIFT_INST_REGS.
10770 * infrun.c (keep_going): Likewise.
10771 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10772 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10773
10774 2004-01-17 Andrew Cagney <cagney@redhat.com>
10775
10776 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10777 * gdbarch.h, gdbarch.c: Re-generate.
10778 * infcmd.c (print_return_value): Delete reference to
10779 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10780
10781 * cris-tdep.c (cris_gdbarch_init): Do not set
10782 deprecated_extract_struct_value_address.
10783
10784 * xstormy16-tdep.c: Update copyright.
10785 (xstormy16_extract_struct_value_address): Update to current
10786 extract struct value address interface.
10787 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10788 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10789 current extract struct value address interface.
10790 (sh64_gdbarch_init): Set extract_struct_value_address.
10791
10792 * cris-tdep.c: Update copyright.
10793 (cris_extract_struct_value_address): Delete function.
10794 (struct_return_address): Delete variable.
10795 (cris_store_struct_return): Do not set struct_return_address.
10796
10797 * mcore-tdep.c: Update copyright.
10798 (mcore_extract_struct_value_address): Delete function. Update
10799 comments.
10800 (mcore_gdbarch_init): Update.
10801 * mn10300-tdep.c: Update copyright.
10802 (mn10300_extract_struct_value_address): Delete function.
10803 (mn10300_gdbarch_init): Update.
10804 * v850-tdep.c: Update copyright.
10805 (v850_extract_struct_value_address): Delete.
10806 (v850_gdbarch_init): Update.
10807 * ns32k-tdep.c: Update copyright.
10808 (ns32k_extract_struct_value_address): Delete.
10809 (ns32k_gdbarch_init): Update.
10810 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10811 (hppa_gdbarch_init): Update.
10812 * vax-tdep.c: Update copyright.
10813 (vax_extract_struct_value_address): Delete.
10814 (vax_gdbarch_init): Update.
10815
10816 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10817 * gdbarch.h, gdbarch.c: Re-generate.
10818 * procfs.c (procfs_fetch_registers): Delete reference to
10819 DEPRECATED_NPC_REGNUM.
10820 (procfs_store_registers): Ditto.
10821 * regcache.c (generic_target_write_pc): Simplify.
10822 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10823
10824 * core-sol2.c (fetch_core_registers): Replace
10825 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10826
10827 * hppa-tdep.c: Update copyright year.
10828 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10829 NPC_REGNUM.
10830 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10831
10832 * mips-tdep.c (mips_write_pc): New function.
10833 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10834 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10835 (mips_find_saved_regs, mips_software_single_step: Ditto.
10836 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10837 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10838
10839 2004-01-17 Andrew Cagney <cagney@redhat.com>
10840
10841 * mips-tdep.c: Re-indent. Group functions by ABI.
10842
10843 2004-01-17 Andrew Cagney <cagney@redhat.com>
10844
10845 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10846 * gdbarch.c: Re-generate.
10847 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10848 DECR_PC_AFTER_BREAK to zero.
10849 * vax-tdep.c (vax_gdbarch_init): Ditto.
10850 * v850-tdep.c (v850_gdbarch_init): Ditto.
10851 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10852 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10853 * sh-tdep.c (sh_gdbarch_init): Ditto.
10854 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10855 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10856 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10857 * mips-tdep.c (mips_gdbarch_init): Ditto.
10858 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10860 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10861 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10862 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10863 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10864 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10865 * frv-tdep.c (frv_gdbarch_init): Ditto.
10866 * cris-tdep.c (cris_gdbarch_init): Ditto.
10867 * avr-tdep.c (avr_gdbarch_init): Ditto.
10868 * arm-tdep.c (arm_gdbarch_init): Ditto.
10869 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10870
10871 2004-01-17 J. Brobecker <brobecker@gnat.com>
10872
10873 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10874 Delete, no longer used.
10875 (read_subrange_type): New function, mostly extracted from
10876 read_array_type().
10877 (read_array_type): Replace extracted code by call to
10878 read_subrange_type().
10879 (dwarf2_get_attr_constant_value): New function.
10880 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10881 (add_partial_symbol): Likewise.
10882 (process_die): Likewise.
10883 (new_symbol): Likewise.
10884 (read_type_die): Likewise.
10885
10886 2004-01-16 Andrew Cagney <cagney@redhat.com>
10887
10888 * symfile.c: Update copyright year.
10889 (compare_symbols): Delete unused function.
10890 * stabsread.c: Update copyright year.
10891 (lrs_general_complaint): Delete unused function.
10892 (ref_search_value): Ditto.
10893 (get_substring): Delete declaration.
10894 * sh64-tdep.c: Update copyright year.
10895 (sh64_get_gdb_regnum): Delete unused function.
10896 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10897 Delete unused function.
10898
10899 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10900
10901 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10902 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10903
10904 2004-01-16 Andrew Cagney <cagney@redhat.com>
10905
10906 Changes from Peter Schauer.
10907 * rs6000-tdep.c: Update copyright year.
10908 (rs6000_push_dummy_call): Update the stack pointer before
10909 accessing the corresponding stack region.
10910 * rs6000-nat.c: Update copyright year.
10911 (set_host_arch): Set "info.abfd" to "exec_bfd".
10912
10913 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10914
10915 * blockframe.c: Update copyright year.
10916 (inside_entry_func): Don't treat a zero PC specially.
10917
10918 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10919
10920 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10921 variable.
10922 (gcore_create_callback): Ditto. Skip any memory segment that has
10923 no permissions set.
10924
10925 2004-01-14 David Carlton <carlton@kealia.com>
10926
10927 Change symbols for C++ nested types to contain the fully qualified
10928 name, if possible. (At least in the DWARF-2 case.) Partial fix
10929 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10930 c++/895.
10931 * c-exp.y (qualified_type): Handle types nested within classes.
10932 * cp-namespace.c: Update comments.
10933 (cp_set_block_scope): Delete #if 0.
10934 (cp_lookup_nested_type): Handle types nested within classes.
10935 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10936 when appropriate.
10937 (add_partial_symbol): Add the name of the enclosing namespace to
10938 types.
10939 (pdi_needs_namespace): New.
10940 (add_partial_namespace): Tweak comment.
10941 (add_partial_structure): New.
10942 (psymtab_to_symtab_1): Initialize processing_current_prefix
10943 here...
10944 (process_die): instead of here.
10945 (read_structure_scope): Try to figure out the name of the class or
10946 namespace that the structure might be defined within.
10947 (read_enumeration): Generate fully-qualified names, if possible.
10948 (read_namespace): Don't set name to NULL.
10949 (die_specification): New.
10950 (new_symbol): Generate fully-qualified names for types.
10951 (read_type_die): Determine appropriate prefix.
10952 (determine_prefix): New.
10953 (typename_concat): New.
10954 (class_name): New.
10955 * valops.c (value_aggregate_elt): Pass NOSIDE to
10956 value_struct_elt_for_reference.
10957 (value_struct_elt_for_reference): Make static, add NOSIDE
10958 parameter, call value_maybe_namespace_elt as a last resort.
10959 (value_namespace_elt): Break out code into
10960 value_maybe_namespace_elt.
10961 (value_maybe_namespace_elt): New.
10962
10963 2004-01-12 Andrew Cagney <cagney@redhat.com>
10964
10965 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10966 cooked floating-point registers.
10967 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10968 and value_to_register.
10969
10970 2004-01-13 Andrew Cagney <cagney@redhat.com>
10971
10972 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10973 * gdbarch.c: Re-generate.
10974 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10975 FUNCTION_START_OFFSET.
10976 * v850-tdep.c (v850_gdbarch_init): Ditto.
10977 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10978 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10979 * sh-tdep.c (sh_gdbarch_init): Ditto.
10980 * s390-tdep.c (s390_gdbarch_init): Ditto.
10981 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10982 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10983 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10984 * mips-tdep.c (mips_gdbarch_init): Ditto.
10985 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10986 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10987 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10988 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10989 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10990 * i386-tdep.c (i386_gdbarch_init): Ditto.
10991 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10992 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10993 * frv-tdep.c (frv_gdbarch_init): Ditto.
10994 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10995 * cris-tdep.c (cris_gdbarch_init): Ditto.
10996 * avr-tdep.c (avr_gdbarch_init): Ditto.
10997 * arm-tdep.c (arm_gdbarch_init): Ditto.
10998 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10999
11000 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11001
11002 * infrun.c (follow_fork_mode_ask): Remove.
11003 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11004 (follow_fork): Simplify and remove internal error for
11005 follow_fork_mode_ask.
11006 (_initialize_infrun): Update "set follow-fork-mode" help text.
11007
11008 2004-01-13 Andrew Cagney <cagney@redhat.com>
11009
11010 * configure.in: Update copyright year.
11011 (build_warnings): Add -Wunused-label.
11012 * configure: Re-generate.
11013
11014 2004-01-12 Andrew Cagney <cagney@redhat.com>
11015
11016 * exec.h (exec_ops): Make "extern".
11017
11018 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11019 the function is void.
11020 (mips_pseudo_register_write): Ditto.
11021
11022 2004-01-12 Andrew Cagney <cagney@redhat.com>
11023
11024 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11025 call. Never defined.
11026 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11027 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11028 (struct sparc_gregset, struct regcache): Ditto.
11029 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11030
11031 2004-01-12 Andrew Cagney <cagney@redhat.com>
11032
11033 * mi/ChangeLog: Delete file. Renamed to ...
11034 * mi/ChangeLog-1999-2003: New file.
11035 * tui/ChangeLog: Delete file. Renamed to ...
11036 * tui/ChangeLog-1998-2003: New file.
11037
11038 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11039
11040 * sparc64nbsd-tdep.c: Include "regset.h".
11041 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11042 Remove variables.
11043 (fetch_core_registers): Remove function.
11044 (sparc64nbsd_core_fns): Remove variable.
11045 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11046 functions.
11047 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11048 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11049 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11050
11051 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11052 sparc_extract_struct_value_address.
11053 (sparc32_gdbarch_init): Set extract_struct_value_address.
11054 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11055 function.
11056 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11057 return_value_on_stack.
11058
11059 * NEWS: Mention that %cs and %ss have been added to the AMD64
11060 configurations
11061
11062 * frame.c: Update copyright year.
11063 (get_prev_frame): Improve comment.
11064
11065 * sparc64fbsd-tdep.c: Include "regset.h".
11066 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11067 Remove variables.
11068 (fetch_core_registers): Remove function.
11069 (sparc64fbsd_core_fns): Remove variable.
11070 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11071 functions.
11072 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11073 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11074 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11075
11076 * sparcnbsd-tdep.c: Include "regset.h".
11077 (fetch_core_registers): Remove function.
11078 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11079 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11080 functions.
11081 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11082 TDEP->fpregset.
11083 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11084
11085 * sparc-tdep.h (struct regset): Provide opaque declaration.
11086 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11087 fpregset and sizeof_fpregset members.
11088 * sparc-tdep.c (struct regset): Provide opaque declaration.
11089 (sparc_regset_from_core_section): New function.
11090 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11091 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11092 Set regset_from_core_section when appropriate.
11093
11094 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11095
11096 * x86-64-tdep.c (amd64_non_pod_p): New function.
11097 (amd64_classify_aggregate): Return class memory for non-POD
11098 C++ structure types.
11099
11100 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11101 argument. Use it to reserve a register if necessary.
11102 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11103 amd64_push_arguments.
11104
11105 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11106
11107 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11108 register numbers in comments.
11109 * x86-64-tdep.h: Update copyright year.
11110 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11111 Adjust for addition of %cs and %ss.
11112 * amd64fbsd-nat.c: Update copyright year.
11113 (reg_offset): Add register offsets for %cs and %ss.
11114 * amd64fbsd-tdep.c: Update copyright year.
11115 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11116 (amd64fbsd_sc_reg_offset): Likewise.
11117 * x86-64-linux-nat.c: Update copyright year.
11118 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11119 and %ss.
11120 * amd64nbsd-nat.c: Update copyright year.
11121 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11122 * amd64nbsd-tdep.c: Update copyright year.
11123 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11124 * x86-64-linux-tdep.c: Update copyright year.
11125 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11126 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11127 * regformats/reg-x86-64.dat: Add %cs and %ss.
11128
11129 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11130 variables to prevent long lines. Update comments to reflect
11131 reality.
11132
11133 2004-01-09 David Carlton <carlton@kealia.com>
11134
11135 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11136 * dwarf2read.c (read_namespace): Pull out name-generating code
11137 into namespace_name. Rename previous_namespace to previous_prefix
11138 and processing_current_namespace to processing_current_prefix..
11139 (namespace_name): New function.
11140 (add_partial_symbol): Substitute uses of pdi->name with
11141 actual_name.
11142 * cp-support.h: Rename processing_current_namespace to
11143 processing_current_prefix.
11144 Update copyright year.
11145 * cp-namespace.c: Rename processing_current_namespace to
11146 processing_current_prefix.
11147 Update copyright year.
11148
11149 2004-01-09 Andrew Cagney <cagney@redhat.com>
11150
11151 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11152
11153 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11154
11155 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11156 complaining.
11157 (process_one_symbol): Deal with N_PATCH stabs.
11158
11159 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11160
11161 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11162 ifdeffed code.
11163 Update copyright year.
11164
11165 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11166
11167 * config/pa/tm-hppa.h: Update extern declarations for
11168 hppa32_hpux_frame_saved_pc_in_sigtramp,
11169 hppa32_hpux_frame_base_before_sigtramp, and
11170 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11171
11172 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11173
11174 * config/pa/tm-hppah.h: Update copyright years.
11175
11176 2004-01-08 Andrew Cagney <cagney@redhat.com>
11177
11178 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11179 (mips_o32_reg_struct_has_addr): Delete function.
11180 (mips_gdbarch_init): Update.
11181 (mips_extract_struct_value_address): Delete function.
11182
11183 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11184
11185 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11186 reality.
11187
11188 2004-01-07 Andrew Cagney <cagney@redhat.com>
11189
11190 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11191 architecture's elf flags (when available).
11192
11193 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11194 FPU to the start, check the MIPS FPU when looking for an old
11195 architecture.
11196 (set_mipsfpu_single_command): Update the architecture.
11197 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11198
11199 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11200 (mips_mask_address_p): Add "tdep" parameter.
11201 (show_mask_address, mips_addr_bits_remove): Update.
11202 (mips_dump_tdep): Update.
11203 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11204 (MIPS_STACK_ARGSIZE): Delete macro.
11205 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11206 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11207 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11208 (mips_dump_tdep): Update.
11209 (MIPS_SAVED_REGSIZE): Delete macro.
11210 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11211 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11212 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11213 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11214 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11215 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11216 (mips_pop_frame, return_value_location): Update.
11217 (mips_n32n64_return_value, mips_dump_tdep): Update.
11218
11219 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11220 MIPS ABI.
11221
11222 * mips-tdep.c: Update copyright.
11223 (mips_gdbarch_init): Merge two code blocks handling the register
11224 name and number layout.
11225
11226 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11227
11228 * tracepoint.c (validate_actionline): Fix segv at EOF
11229
11230 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11231
11232 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11233 properly for static fields.
11234
11235 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11236 Jason Molenda <jmolenda@apple.com>
11237
11238 * disasm.c: Update copyright to include 2004.
11239 (do_mixed_source_and_assembly): For uiout asm list
11240 and tuple cleanups, initialize to null_cleanup instead of
11241 NULL and do so prior to loop. Only reset when we close off
11242 the tuple/list. Move check for whether to close off the
11243 asm tuple/list to after dump_insns call where it will be run
11244 on each loop iteration.
11245
11246 2004-01-05 Andrew Cagney <cagney@redhat.com>
11247
11248 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11249 should be a switch case and not a label.
11250 * mips-tdep.c (mips32_next_pc): Delete unused labels
11251 "greater_equal_branch" and "less_zero_branch".
11252 * jv-valprint.c (java_print_value_fields): Delete unused label
11253 "flush_it".
11254
11255 * target.c (unpush_target): Only close a target that is in the
11256 target stack.
11257
11258 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11259
11260 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11261 address from [sp + 64] instead of %o2.
11262
11263 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11264 fixes PR backtrace/1476.
11265
11266 2004-01-05 Andrew Cagney <cagney@redhat.com>
11267
11268 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11269 move to start of file.
11270 * i386-tdep.h (struct regcache): Add opaque declaration.
11271 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11272 declaration.
11273 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11274 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11275 * win32-nat.c (fake_create_process): Use ISO C style definition.
11276 * stabsread.c (define_symbol): Delete #ifndef
11277 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11278 stabs_argument_has_addr call, macro never defined.
11279
11280 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11281
11282 * op50-rom.c: Delete.
11283 * w89k-rom.c: Delete.
11284 * Makefile.in: Remove references.
11285
11286 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11287
11288 * x86-64-tdep.c: Update copyright year.
11289 (struct amd64_register_info): Rename from x86_64_register_info.
11290 (amd64_register_info): Rename from x86_64_register_info.
11291 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11292 (amd64_register_name): Rename from x86_64_register_name.
11293 (amd64_register_type): Rename from x86_64_register_type.
11294 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11295 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11296 (amd64_dwarf_reg_to_regnum): Rename from
11297 x86_64_dwarf_reg_to_regnum.
11298 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11299 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11300 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11301 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11302 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11303 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11304 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11305 (amd64_frame_cache): Rename from x86_64_frame_cache.
11306 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11307 (amd64_frame_prev_register): Rename from
11308 x86_64_frame_prev_register.
11309 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11310 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11311 (amd64_sigtramp_frame_cache): Rename from
11312 x86_64_sigtramp_frame_cache.
11313 (amd64_sigtramp_frame_prev_register): Rename from
11314 x86_64_sigtramp_frame_prev_register.
11315 (amd64_sigtramp_frame_unwind): Rename from
11316 x86_64_sigtramp_frame_unwind.
11317 (amd64_sigtramp_frame_sniffer): Rename from
11318 x86_64_sigtramp_frame_sniffer.
11319 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11320 (amd64_frame_base): Rename from x86_64_frame_base.
11321 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11322 (amd64_frame_align): Rename from x86_64_frame_align.
11323 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11324 (amd64_regset_from_core_section): Rename from
11325 x86_64_regset_from_core_section.
11326 (x86_64_init_abi): Update comments.
11327
11328 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11329
11330 * MAINTAINERS (write after approval): Add myself.
11331
11332 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11333
11334 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11335 `float' arguments.
11336
11337 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11338
11339 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11340 such that it mentions a specific version of GCC that exhibits this
11341 bug.
11342
11343 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11344
11345 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11346 structure that has a single `float' member, store it in %f1 in
11347 addition to %f0.
11348
11349 * sparc-sol2-nat.c: Add missing '\'.
11350
11351 * sparc-tdep.c (sparc32_return_value): New function.
11352 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11353 Remove functions.
11354 (sparc32_gdbarch_init): Set return_value, don't set
11355 extract_return_value, store_return_value, use_struct_convention
11356 and return_value_on_stack.
11357
11358 * sparc-sol2-nat.c: Add missing ')'.
11359
11360 2004-01-03 J. Brobecker <brobecker@gnat.com>
11361
11362 * infrun.c (handle_step_into_function): New function.
11363 (handle_inferior_event): Extract out some code into the new
11364 function above.
11365
11366 2004-01-03 J. Brobecker <brobecker@gnat.com>
11367
11368 * infrun.c (handle_inferior_event): Move the declaration of
11369 real_stop_pc inside the if blocks where it is used.
11370
11371 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11372
11373 * sparc64-tdep.c (sparc64_16_byte_align_p)
11374 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11375 Use check_typedef to get subtypes of structures and unions.
11376 (sparc64_store_return_value): Fix calculation of the appropriate
11377 offset into VALBUF when storing a structure or union.
11378 (sparc64_return_value): New function.
11379 (sparc64_use_struct_convention): Remove function.
11380 (sparc64_init_abi): Set return_value, don't set
11381 extract_return_value, store_return_value and
11382 use_struct_convention.
11383
11384 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11385
11386 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11387 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11388 gdb/config/alpha/xm-alphaosf.h,
11389 gdb/config/powerpc/tm-ppcle-eabi.h,
11390 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11391 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11392 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11393 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11394 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11395 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11396 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11397 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11398 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11399 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11400 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11401 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11402 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11403 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11404 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11405 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11406 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11407 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11408 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11409 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11410 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11411 Remove lines for .cvsignore files.
11412
11413 2004-01-03 J. Brobecker <brobecker@gnat.com>
11414
11415 * infrun.c: Back out the previous change.
11416
11417 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11418
11419 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11420 sparc-*-sunos4* to the list of REMOVED configurations.
11421
11422 * configure.tgt: Add back sparc-*-vxworks*.
11423 * remote-vxsparc.c: Remove all includes except for "defs.h",
11424 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11425 Include "sparc-tdep.h".
11426 (SPARC_R_G1): New define.
11427 (vxsparc_gregset): New variable.
11428 (ext_format_sparc): Remove extern declaration.
11429 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11430 sparc32_supply_fpregset.
11431 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11432 sparc_collect_rwindow and sparc32_collect_fpregset.
11433 * config/sparc/tm-vxworks.h: New file, based on recently removed
11434 tm-vxsparc.h.
11435 * config/sparc/vxworks.mt: New file, based on recently removed
11436 vxworks.mt.
11437
11438 2004-01-03 J. Brobecker <brobecker@gnat.com>
11439
11440 * infrun.c (handle_step_into_function): New function.
11441 (handle_inferior_event): Extract out some code into the new
11442 function above.
11443
11444 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11445
11446 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11447 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11448 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11449 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11450 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11451 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11452 (sparc_nat_h): New variable.
11453 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11454 (tm-sun4os4.h): Remove dependency.
11455 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11456 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11457 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11458 sparc-tdep.o): Update dependencies.
11459 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11460 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11461 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11462 dependencies.
11463 * configure.host: Remove existing sparc-*-lynxos*,
11464 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11465 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11466 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11467 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11468 triplets.
11469 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11470 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11471 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11472 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11473 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11474 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11475 sparc64-*-solaris2* and sparc64-*-* triplets.
11476 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11477 "symtab.h" and "objfiles.h".
11478 (BIAS): Remove define.
11479 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11480 (X_DISP19): Remove macros.
11481 (sparc_fetch_instruction): Remove function.
11482 (struct gdbarch_tdep): Remove definition.
11483 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11484 (sparc_breakpoint_from_pc): Remove function.
11485 (struct sparc64_frame_cache): Remove definition.
11486 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11487 sparc64_unwind_pc): Remove functions.
11488 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11489 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11490 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11491 (sparc64_frame_cache): Change return type to `struct
11492 sparc_frame_cache *'. Simply call sparc_frame_cache.
11493 (sparc64_frame_this_id, sparc64_frame_prev_register,
11494 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11495 instead of `struct sparc64_frame_cache.
11496 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11497 sparc_analyze_control_transfer, sparc_software_single_step,
11498 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11499 _initialize_sparc64_tdep): Remove functions.
11500 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11501 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11502 macros.
11503 (sparc64_supply_gregset, sparc64_collect_gregset,
11504 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11505 (sparc64_init_abi): New function.
11506 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11507 inclusion guard. Include "sparc-tdep.h".
11508 (BIAS): Define.
11509 (r_tstate_offset, r_fprs_offset): New defines.
11510 (enum sparc_regnum): Remove defenition.
11511 (enum sparc64_regnum): Reformat.
11512 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11513 (sparc64_init_abi, sparc64_supply_gregset,
11514 sparc64_collect_gregset, sparc64_supply_fpregset,
11515 sparc64_collect_fpregset): New prototypes.
11516 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11517 Add extern declarations.
11518 (sparc64_sol2_init_abi): New prototype.
11519 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11520 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11521 prototypes.
11522 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11523 "sparnbsd-nat.h".
11524 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11525 functions.
11526 (_initialize_sparc64fbsd_nat): Remove initialization of
11527 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11528 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11529 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11530 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11531 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11532 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11533 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11534 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11535 (sparc64fbsd_r_y_offset): Remove variables.
11536 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11537 Make static and const.
11538 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11539 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11540 functions.
11541 (sparc64fbsd_gregset): New variable.
11542 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11543 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11544 and sparc64_supply_fpregset.
11545 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11546 (sparc64fbsd_sigtramp_frame_this_id)
11547 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11548 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11549 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11550 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11551 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11552 * sparcnbsd-tdep.c: Update copyright year. Include
11553 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11554 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11555 "value.h" and "sparcnbsd-tdep.h".
11556 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11557 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11558 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11559 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11560 defines.
11561 (sparcnbsd_gregset): New variable.
11562 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11563 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11564 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11565 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11566 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11567 variables.
11568 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11569 (sparc32nbsd_sigcontext_frame_this_id)
11570 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11571 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11572 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11573 (sparcnbsd_get_longjmp_target_32,
11574 sparcnbsd_get_longjmp_target_64): Remove functions.
11575 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11576 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11577 sparcnbsd_init_elf): Remove.
11578 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11579 (sparcnbsd_elf_init_abi): New functions.
11580 (_initialize_sparcnbsd_tdep): New prototype.
11581 (_initialize_sparnbsd_tdep): Update.
11582 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11583 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11584 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11585 * config/sparc/linux.mh: Update comment.
11586 (XM_FILE, HOST_IPC): Remove variables.
11587 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11588 sparc-linux-nat.o.
11589 * config/sparc/linux.mt: Update comment.
11590 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11591 * config/sparc/nbsd.mt: Reformat.
11592 * config/sparc/nbsd64.mh: Update comment.
11593 (NATDEPFILES): Add sparc-nat.o.
11594 * config/sparc/nbsd64.mt: Update comment.
11595 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11596 (TM_FILE): Set to tm-nbsd.h.
11597 * config/sparc/nbsdelf.mh: Update comment.
11598 (NATDEPFILES): Add sparc-nat.o.
11599 (XM_FILE): Delete.
11600 * config/sparc/nbsdaout.mh: Update comment.
11601 (NATDEPFILES): Add sparc-nat.o
11602 (XM_FILE): Delete.
11603 * config/sparc/nm-linux.h: Update copyright year. Don't include
11604 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11605 inclusion.
11606 (KERNEL_U_SIZE): Remove define.
11607 (kernel_u_size): Remove prototype.
11608 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11609 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11610 "regcache.h".
11611 (CHILD_PREPARE_TO_STORE): Remove define.
11612 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11613 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11614 sparcnbsd-nat.c: Rewrite files.
11615 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11616 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11617 sparcnbsd-tdep.h: Remove files.
11618 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11619 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11620 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11621 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11622 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11623 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11624 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11625 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11626 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11627 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11628 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11629 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11630 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11631 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11632 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11633 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11634 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11635 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11636 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11637
11638 2004-01-02 Andrew Cagney <cagney@redhat.com>
11639
11640 From 2003-12-18 Kazuhiro Inaoka:
11641 * configure.host: Add m32r-linux target.
11642
11643 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11644
11645 * top.c (print_gdb_version): Update year to 2004.
11646
11647 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11648
11649 * MAINTAINERS: Add myself to the write-after-approval category.
11650
11651 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11652
11653 From Bernardo Innocenti <bernie@develer.com>:
11654 * configure.tgt: Add uClinux target.
11655
11656 2004-01-02 Andrew Cagney <cagney@redhat.com>
11657
11658 * utils.c (do_my_cleanups): Make static, add forward declaration.
11659 * defs.h (do_my_cleanups): Delete declaration.
11660
11661 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11662
11663 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11664 bfd/ChangeLog-0203.
11665
11666 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11667
11668 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11669 in <machine/reg.h>.
11670 * configure, config.in: Regenerate.
11671
11672 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11673 tui/ChangeLog-1998-2003.
11674 \f
11675 Local Variables:
11676 mode: change-log
11677 left-margin: 8
11678 fill-column: 74
11679 version-control: never
11680 End:
This page took 0.427159 seconds and 5 git commands to generate.