2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c8cd9f6c
AC
12004-09-01 Andrew Cagney <cagney@gnu.org>
2
3 * frame.c: Include "objfiles.h".
4 (inside_main_func): New function.
5 (get_prev_frame): Use new inside_main_func.
6 * Makefile.in (frame.o): Update dependencies.
7 * defs.h (inside_main_func): Delete declaration.
8 * blockframe.c (inside_main_func): Delete function.
9
1168df01
JB
102004-08-31 Jim Blandy <jimb@redhat.com>
11
12 * dwarf2read.c (is_vtable_name): New function, based on logic from
13 read_structure_type, but passing the correct length to strncmp,
14 and using 'sizeof' instead of 'strlen'.
15 (read_structure_type): Call it.
16
f14f9744
JB
172004-08-31 Joel Brobecker <brobecker@gnat.com>
18
19 * config/powerpc/aix.mh: Add comment.
20
386d4518
PG
212004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
22
23 * MAINTAINERS: Add self to Write-After-Approval.
24
7d97d5e2
MI
252004-08-30 Manoj Iyer <manjo@austin.ibm.com>
26
27 * MAINTAINERS: Add self to Write-After-Approval.
28
68f53502
AC
292004-08-30 Andrew Cagney <cagney@gnu.org>
30
31 Fix PR breakpoints/1757.
32 * infrun.c (struct execution_control_state): Replace
33 remove_breakpoints_on_following_step with
34 step_after_step_resume_breakpoint.
35 (init_execution_control_state): Update.
36 (handle_inferior_event): For signals, when stepping off a
37 breakpoint, set step_after_step_resume_breakpoint. When
38 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
39 (keep_going): Delete code handling
40 remove_breakpoints_on_following_step.
41
7ca2d3a3
DL
422004-08-29 David Lecomber <david@streamline-computing.com>
43
44 Fix PR gdb/648
45 * language.h (enum array_ordering): New enum.
46 * language.h (struct language_defn): New la_array_ordering
47 attribute.
48 * language.c (unknown_language_defn, auto_language_defn)
49 (local_language_defn): Ditto.
50 * ada-lang.c (ada_language_defn): Ditto.
51 * c-lang.c (c_language_defn, cplus_language_defn)
52 (asm_language_defn, minimal_language_defn): Ditto.
53 * f-lang.c (f_language_defn): Ditto.
54 * jv-lang.c (java_language_defn): Ditto.
55 * m2-lang.c (f_language_defn): Ditto.
56 * objc-lang.c (objc_language_defn): Ditto.
57 * p-lang.c (pascal_language_defn): Ditto.
58 * scm-lang.c (scm_language_defn): Ditto.
59 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
60 oriented large to small in type structure.
61 * dwarf2read.c (read_array_order): New function.
62 (read_array_type): Use read_array_order to check row/column
63 major ordering.
64
e354df01
NW
652004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
66
67 * target.c (target_resize_to_sections): Check
68 current_target.to_sections for an old value when updating.
69
9185ddce
JB
702004-08-27 Joel Brobecker <brobecker@gnat.com>
71
72 * procfs.c (dbx_link_bpt_addr): New static global variable.
73 (dbx_link_shadow_contents): New static global variable.
74 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
75 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
76 if we just hit it.
77 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
78 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
79 from run to run.
80 (procfs_create_inferior): Remove syssgi syscall-exit notifications
81 after the inferior has been forked.
82 (remove_dbx_link_breakpoint): New function.
83 (dbx_link_addr): New function.
84 (insert_dbx_link_bpt_in_file): New function.
85 (insert_dbx_link_bpt_in_region): New function.
86 (insert_dbx_link_breakpoint): New function.
87 (proc_trace_syscalls_1): New function, extracted from
88 proc_trace_syscalls.
89 (proc_trace_syscalls): Replace extract code by call to
90 proc_trace_syscalls_1.
91 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
92 is no longer valid.
93
e6742ace
JB
942004-08-25 Jim Blandy <jimb@redhat.com>
95
96 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
97
8fb3e588
AC
982004-08-25 Andrew Cagney <cagney@gnu.org>
99
629a41ee
AC
100 * infrun.c (struct execution_control_state): Delete field
101 "stepping_through_sigtramp".
102 (init_execution_control_state): Do not set same.
103 (context_switch): Do not pass same to save_infrun_state and
104 load_infrun_state.
105 * gdbthread.h (struct thread_info): Delete field
106 stepping_through_sigtramp.
107 (save_infrun_state, load_infrun_state): Delete parameter
108 stepping_through_sigtramp.
109 * thread.c (load_infrun_state, save_infrun_state): Update.
110
8fb3e588
AC
111 * infrun.c: Re-indent. Move expression operators to the beginning
112 of the line. Remove long disabled #if 0 code.
113
49c54768
AC
1142004-08-24 Andrew Cagney <cagney@gnu.org>
115
116 * doublest.h (floatformat_ieee_quad): Rename
117 floatformat_ia64_quad.
118 * doublest.c (floatformat_ieee_quad): Rename
119 floatformat_ia64_quad.
120 (_initialize_doublest): Update.
121
5ca2e327
JB
1222004-08-24 Jim Blandy <jimb@redhat.com>
123
87808bd6
JB
124 * dwarf2expr.h (struct dwarf_expr_context): New members
125 'num_pieces' and 'pieces', for returning the result of an
126 expression that uses DW_OP_piece.
127 (struct dwarf_expr_piece): New struct type.
128 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
129 pieces.
130 (free_dwarf_expr_context): Free pieces, if any.
131 (add_piece): New function.
132 (execute_stack_op): Implement DW_OP_piece.
133 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
134 expression is a list of pieces, print an error message.
135 (dwarf2_loc_desc_needs_frame): If the expression yields
136 pieces, and any piece is in a register, then we need a frame.
137
5ca2e327
JB
138 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
139 the stack until we've decided what sort of result the evaluation
140 has produced. Use separate variables, with more specific names.
141
2afeb6b8
RE
1422004-08-23 Richard Earnshaw <rearnsha@arm.com>
143
144 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
145 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
146 (arm_netbsd_init_abi_common): Register them.
147
5885ab49
MK
1482004-08-22 Mark Kettenis <kettenis@gnu.org>
149
fda820a6
MK
150 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
151
1c5bf419
MK
152 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
153 safe_frame_unwind_memory instead of target_read_memory.
154
8cbba7c8
MK
155 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
156 Reorder includes.
157 (fetch_register, store_register): Remove prototypes.
158 (child_resume): Reorganize code and comments such that it is
159 grouped a bit more logically.
160 (attach): Explicitly compare errno against 0.
161 (detach): Likewise. Use perror_with_name instead of
162 print_sys_errmsg.
163 * Makefile.in (infptrace.o): Update dependencies.
164
c5fa4245
MK
165 * ia64-linux-nat.c: Update copyright year.
166 (fetch_debug_register, store_debug_register)
167 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
168 PTRACE_TYPE_ARG3.
169 * config/ia64/nm-linux.h: Update copyright year.
170 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
171
387c058c
MK
172 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
173 from CORE_ADDR to struct frame_info *. Use
174 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
175 (amd64_linux_sigtramp_p): Adjust for changed signature of
176 and64_linux_sigtramp_start
177
277215a6
MK
178 * gdb_ptrace.h: GNU/Linux.
179
25f6178e
MK
180 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
181 Remove defines.
182
652fc137
MK
183 * infptrace.c: Include "gdb_assert.h".
184 (PTRACE_XFER_TYPE): Remove define.
185 (offsetof): Only define if U_REGS_OFFSET isn't defined.
186 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
187 Tweak comment.
188 (fetch_inferior_registers, store_inferior_registers): Remove
189 redundant culry braces. Tweak comment. s/regno/regnum.
190 * Makefile.in (infptrace.o): Update dependencies.
191
5885ab49
MK
192 * configure.in: Change test for return type of ptrace to default
193 to `long' instead of `int'.
194 * configure: Regenerate.
195
11003ae3
MK
1962004-08-21 Mark Kettenis <kettenis@gnu.org>
197
6b95110c
MK
198 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
199
bcb3dc3d
MK
200 * configure.in: Check for ttrace function.
201 * configure, config.in: Regenerate.
202
11003ae3
MK
203 * gdb_ptrace.h: New file.
204 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
205 <sys/ptrace.h>.
206 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
207 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
208 (attach): Don't define PT_ATTACH.
209 (detach): Don't define PT_DETACH.
210 * Makefile.in (gdb_ptrace_h): New variable.
211 (infptrace.o): Update dependencies.
212
f8707cac
MK
2132004-08-16 Mark Kettenis <kettenis@gnu.org>
214
215 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
216 instead of `int' if not already defined.
217 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
218 PTRACE_TYPE_ARG3.
219 * infptrace.c (call_ptrace): Revert change that replaced
220 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
221
655c5466
MK
2222004-08-15 Mark Kettenis <kettenis@gnu.org>
223
156e5ba7
MK
224 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
225 Remove defines.
226
de9a9e51
MK
227 * linux-nat.c (kill_inferior): Add missing third and fourth
228 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
229
88800403
MK
230 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
231 PTRACE_TYPE_RET.
232
849a1d7c
MK
233 * proc-why.c (proc_prettyfprint_why): Fix format string.
234
61ad16d1
MK
235 * solib-osf.c (osf_current_sos): Remove unsused label.
236
a6ed5501
MK
237 * configure.in: Add <ncurses/ncurses.h> to the list of possible
238 curses headers.
239 * configure, config.in: Regenerate.
240 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
241 <ncurses/ncurses.h>.
242
016ddeca
MK
243 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
244 * config/nm-nbsd.h: Update copyright year.
245 (PTRACE_ARG3_TYPE): Remove define.
246
49ec097f
MK
247 * sparc-nat.c (fetch_inferior_registers)
248 (store_inferior_registers, sparc_xfer_wcookie):
249 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
250
9f8e0089
MK
251 * alphabsd-nat.c (fetch_inferior_registers):
252 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
253 PTRACE_TYPE_ARG3.
254 * amd64bsd-nat.c (fetch_inferior_registers)
255 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
256 PTRACE_TYPE_ARG3.
257 * armnbsd-nat.c: Update copyright year.
258 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
259 (store_register, store_regs, store_fp_register, store_fp_regs):
260 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
261 * hppabsd-nat.c (fetch_inferior_registers)
262 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
263 PTRACE_TYPE_ARG3.
264 * i386bsd-nat.c (fetch_inferior_registers)
265 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
266 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
267 * m68kbsd-nat.c (fetch_inferior_registers)
268 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
269 PTRACE_TYPE_ARG3.
270 * m88kbsd-nat.c (fetch_inferior_registers)
271 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
272 PTRACE_TYPE_ARG3.
273 * mipsnbsd-nat.c: Update copyright year.
274 (fetch_inferior_registers, store_inferior_registers):
275 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
276 * ns32knbsd-nat.c: Update copyright year.
277 (fetch_inferior_registers, store_inferior_registers):
278 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
279 * ppcnbsd-nat.c (fetch_inferior_registers):
280 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
281 PTRACE_TYPE_ARG3.
282 * ppcobsd-nat.c (fetch_inferior_registers):
283 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
284 PTRACE_TYPE_ARG3.
285 * shnbsd-nat.c: Update copyright year.
286 (fetch_inferior_registers, store_inferior_registers):
287 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
288 * vaxbsd-nat.c (fetch_inferior_registers)
289 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
290 PTRACE_TYPE_ARG3.
291
655c5466
MK
292 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
293 PTRACE_TYPE_ARG3.
294 * infptrace.c (call_ptrace, child_resume, attach, detach)
295 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
296 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
297 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
298 PTRACE_TYPE_ARG3.
299
c40d0d10
MK
3002004-08-14 Mark Kettenis <kettenis@gnu.org>
301
5cb0ff31
MK
302 * defs.h: Remove out-of-date comment.
303 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
304 [!GETENV_PROVIDED] (getenv): Remove prototype.
305
5f0f34cb
MK
306 * standalone.c: Remove file.
307 * Makefile.in (standalone.o): Remove dependency.
308
7532965f
MK
309 * i386-linux-nat.c (dummy_sse_values): Remove function and
310 prototype.
311 (i386_linux_dr_get): Fix typo in comment.
312 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
313
1bdc6c53
MK
314 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
315
c40d0d10
MK
316 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
317 from declaration.
318 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
319 from definition.
320
64218d3e
MK
3212004-08-13 Mark Kettenis <kettenis@gnu.org>
322
323 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
324 parenthesis in definition.
325 * configure: Regenerated.
326
926c94e7
MC
3272004-08-12 Michael Chastain <mec.gnu@mindspring.com>
328
329 * PROBLEMS: Mention build/1411.
330
69489883
NN
3312004-08-09 Robert Millan <robertmh@gnu.org>
332
333 Committed by Nathanael Nerode.
334 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
335 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
336
ebb7c577
AC
3372004-08-12 Andrew Cagney <cagney@gnu.org>
338
339 * NEWS: Mention fixes in GDB 6.2.1.
340 * PROBLEMS: Remove mention of mips-irix.
341
232d697c
JB
3422004-08-11 Joel Brobecker <brobecker@gnat.com>
343
344 * config/powerpc/xm-aix.h: Delete.
345 * config/powerpc/aix.mh (MH_FILE): Remove.
346 * config/powerpc/aix432.mh (MH_FILE): Remove.
347
72f4e82b
JB
3482004-08-11 Joel Brobecker <brobecker@gnat.com>
349
350 * config/powerpc/aix.mh: Remove obsolete comment.
351 * config/powerpc/aix432.mh: Likewise.
352
0687ccb2
JB
3532004-08-11 Joel Brobecker <brobecker@gnat.com>
354
355 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
356
dbf3ada7
JB
3572004-08-11 Joel Brobecker <brobecker@gnat.com>
358
e08e1886
JB
359 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
360 this file is now empty.
361 * config/xm-aix4.h: Remove, this file is no longer included
362 anywhere.
363
3642004-08-11 Joel Brobecker <brobecker@gnat.com>
365
366 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
367 that file is now empty.
dbf3ada7
JB
368 (termdef): Remove prototype, function no longer used.
369
4c525ef6
JB
3702004-08-11 Joel Brobecker <brobecker@gnat.com>
371
372 * doc/gdbint.texinfo (Host Definition): Remove documentation
373 for USE_O_NOCTTY, no longer used.
374 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
375 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
376
82e0b968
JB
3772004-08-11 Joel Brobecker <brobecker@gnat.com>
378
379 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
380 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
381 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
382
f2acbe1c
MK
3832004-08-11 Mark Kettenis <kettenis@gnu.org>
384
daa98270
MK
385 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
386 instead of FIVE_ARG_PTRACE.
387
f2acbe1c
MK
388 * inflow.c (O_NOCTTY): Define to zero if not already defined.
389 (new_tty): Use O_NOCTTY unconditionally.
390
cc377e6b
MK
3912004-08-10 Mark Kettenis <kettenis@gnu.org>
392
393 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
394 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
395 fflush on stdout.
396
3bcc18fa
JB
3972004-08-10 Joel Brobecker <brobecker@gnat.com>
398
399 * xcoff_symfile_finish: Replace last call to xmfree by call
400 to xfree.
401
7936743b
AC
4022004-08-10 Andrew Cagney <cagney@gnu.org>
403
cc503c8a
AC
404 * main.c (captured_main): Delete call to init_malloc.
405 * defs.h (init_malloc): Delete declaration.
406 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
407 (init_malloc): Delete functions.
408
2dc74dc1
AC
409 * defs.h (xmfree): Delete.
410 * utils.c (xmfree): Delete function.
411 (xfree): Inline calls to xmfree and mfree.
412 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
413 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
414 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
415 * somread.c (som_symfile_finish): Ditto.
416 * objfiles.c (allocate_objfile, free_objfile):
417 * nlmread.c (nlm_symfile_finish): Ditto.
418 * hpread.c (hpread_symfile_finish): Ditto.
419 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
420 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
421 * coffread.c (coff_symfile_finish): Ditto.
422
aa2ee5f6
AC
423 * defs.h (xmcalloc): Delete declaration.
424 * utils.c (xmcalloc): Delete.
425 (xcalloc): Inline calls to xmcalloc and mcalloc.
426 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
427 xcalloc and xfree.
428 * symtab.c (create_demangled_names_hash): Ditto.
429
0efffb96
AC
430 * defs.h (xmrealloc): Delete.
431 * utils.c (xmrealloc): Delete.
432 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
433 * symmisc.c (extend_psymbol_list): Use xrealloc.
434 * source.c (find_source_lines): Ditto.
435 * hpread.c (hpread_lookup_type): Ditto.
436 * dbxread.c (add_bincl_to_list): Ditto.
437
7936743b
AC
438 * utils.c (xmmalloc): Delete.
439 (xmalloc): Inline xmmalloc and mmalloc calls.
440 (msavestring): Use xmalloc.
441 * defs.h (xmmalloc): Delete declaration.
442 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
443 xmmalloc.
444 * symmisc.c (extend_psymbol_list): Ditto.
445 * symfile.c (init_psymbol_list): Ditto.
446 * source.c (find_source_lines): Ditto.
447 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
448 * elfread.c (elf_symtab_read): Ditto.
449 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
450 * coffread.c (coff_symfile_init): Ditto.
451
252ab814
DC
4522004-08-10 David Carlton <carlton@bactrian.org>
453
454 * MAINTAINERS: Remove David Carlton from c++ testsuite
455 maintainers.
456
8f5ba92b
JG
4572004-08-10 Jerome Guitton <guitton@gnat.com>
458
459 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
460 print a line feed before the prompt.
461
21749010
MK
4622004-08-10 Mark Kettenis <kettenis@gnu.org>
463
464 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
465
1f011ce2
JB
4662004-08-09 Joel Brobecker <brobecker@gnat.com>
467
468 General cleanup of the AIX xm include file:
469 * config/xm-aix4.h (fd_set): Remove undefine.
470 Remove include of <sys/select.h>.
471 (HAVE_TERMIO): Remove define.
472 (USG): Likewise.
473 (NULL): Remove redefine.
474 (alloca): Remove #pragma.
475 (vfork): Remove define.
476 (termdef): Remove.
477 (SIGWINCH_HANDLER): Remove.
478 (SIGWINCH_HANDLER_BODY): Remove.
479
cf4e7692
MK
4802004-08-09 Mark Kettenis <kettenis@gnu.org>
481
482 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
483 GDB_OSABI_OPENBSD_ELF.
484
ac5754fa
MK
4852004-08-07 Robert Millan <robertmh@gnu.org>
486
487 * bsd-kvm.c: Check for nlist.h before including it.
488
086ec9eb
MK
4892004-08-09 Mark Kettenis <kettenis@gnu.org>
490
bbe06c74
MK
491 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
492 sigcontext' offset consistency checks for ancient BSD.
493
3aa7b3b3
MK
494 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
495
086ec9eb
MK
496 * configure.in: Check for <sys/types.h>. Check return and
497 argument types of ptrace.
498 * configure, config.in: Regenerate.
499
09991fa0
JB
5002004-08-09 Jim Blandy <jimb@redhat.com>
501
502 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
503 rs6000_register_sim_regno): Doc fixes.
504
fed7ba43
JB
5052004-08-08 Joel Brobecker <brobecker@gnat.com>
506
507 * mips-tdep.c: Include "floatformat.h".
508 (n32n64_floatformat_always_valid): New function.
509 (floatformat_n32n64_long_double_big): New constant.
510 (mips_gdbarch_init): Set size and format of long double
511 for N32 and N64 ABIs.
512 * Makefile.in (mips-tdep.o): Update dependencies.
513
456fcf94
AC
5142004-08-08 Andrew Cagney <cagney@gnu.org>
515
2f9b146e
AC
516 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
517 print. Improve script's error messages.
518 * gdbarch.h: Re-generate.
519
456fcf94
AC
520 * gdbarch.sh (pformat): New function.
521 (float_format, double_format, long_double_format): List with bit
522 members. Use pformat when printing.
523 * gdbarch.c, gdbarch.h: Re-generate.
524
69e9e646
NW
5252004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
526
527 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
528 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
529 (ppcnbsd_supply_pcb): New function.
530 (_initialize_ppcnbsd_nat): New prototype and function.
531 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
532 (LOADLIBES): New variable.
533 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
534
5ef2d0aa
AC
5352004-08-08 Andrew Cagney <cagney@gnu.org>
536
537 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
538 (builtin_type_ieee_double, builtin_type_ia64_quad)
539 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
540 BE/LE floating-point types.
541 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
542 (builtin_type_ieee_double, builtin_type_ia64_quad)
543 (builtin_type_ia64_spill): Declare.
544 * doublest.c (_initialize_doublest, floatformat_ieee_single)
545 (floatformat_ieee_double, floatformat_arm_ext)
546 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
547 of LE/BE floatformats.
548 * doublest.h: (struct floatformat, floatformat_ieee_single)
549 (floatformat_ieee_double, floatformat_arm_ext)
550 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
551
5c7f2947
MK
5522004-08-08 Mark Kettenis <kettenis@gnu.org>
553
ecac404d
MK
554 * i386gnu-nat.c (gnu_store_registers): Fix typo.
555
9b8607ce
MK
556 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
557 instead of regcache_raw_supply when storing the registers.
558
f6052080
MK
559 * i386gnu-nat.c: Update copyright year.
560 (gnu_store_registers): Don't use deprecated_registers and
561 deprecated_registers_valid. Use regcache_valid_p and
562 regcache_raw_supply instead.
563
17777823
MK
564 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
565 frame_pc_unwind.
566
5240ceac
MK
567 * procfs.c (procfs_pid_to_str): Remove redundant and unused
568 variables. Incapitalized "process".
569
5c7f2947
MK
570 * configure.in: Add cursesX to the list of possible curses libs.
571 Add cursesX.h to the list of possible curses headers.
572 * configure, config.in: Regenerate.
573
da7d81e3
NW
5742004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
575
576 * configure.in: Test for struct lwp in <sys/lwp.h>.
577 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
578 the offset of l_addr in struct lwp.
579
7f245d65
NW
5802004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
581
582 * bsd-kvm.c: Include "gdbcore.h"
583 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
584
47b3f456
AC
5852004-08-07 Andrew Cagney <cagney@gnu.org>
586
70bd8e24
AC
587 * gdbtypes.c (build_flt, build_complex): New functions.
588 (gdbtypes_post_init): Use.
589
9b0dea39
AC
590 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
591
5cf7abac
AC
592 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
593 through to builtin_type_uint128.
594
64d2b26d
AC
595 * c-exp.y: Use builtin_type function to obtain builtin types.
596
7ad6570d
AC
597 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
598 builtin_uint128.
599 * gdbtypes.c (gdbtypes_post_init): Update.
600 (build_gdbtypes): Move initialization of builtin_type_int0
601 through to builtin_type_uint128 from here ...
602 (_initialize_gdbtypes): ... to here.
603 * d10v-tdep.c (d10v_register_type): Update.
604
47b3f456
AC
605 * doublest.c: Update copyright.
606 (floatformat_from_length): Call error when floatformat is NULL.
607 (extract_floating_by_length): Remove NULL fmt check.
608 (store_floating_by_length): Ditto.
609
0a8146bf
AC
6102004-08-07 Andrew Cagney <cagney@gnu.org>
611
612 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
613 that the register is valid.
614
c0ccb908
MK
6152004-08-05 Mark Kettenis <kettenis@chello.nl>
616
8e6bed05
MK
617 * i386-linux-tdep.c (i386_linux_sigtramp_start)
618 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
619 struct frame_info *. Use safe_frame_unwind_memory instead of
620 deprecated_read_memory_nobpt.
621 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
622 changed signature of i386_linux_sigtramp_start and
623 i386_linux_rt_sigtramp_start.
624
24f9f5e3
MK
625 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
626 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
627 instead of deprecated_read_memory_nobpt.
628 (i386nbsd_sigtramp_p): Adjust for changed signature of
629 i386nbsd_sigtramp_offset.
630
c822af0c
MK
631 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
632 safe_frame_unwind_memory instead of target_read_memory.
633
c0ccb908
MK
634 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
635 !NO_SYS_FILE.
636 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
637 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
638 (_initialize_kernel_u_addr): Remove prototype and function.
639 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
640 !NO_SYS_FILE.
641 * xcoffread.c: Likewise.
642
b9e1c0d6
MK
6432004-08-06 Mark Kettenis <kettenis@gnu.org>
644
645 * vax-nat.c: New file.
646 * vaxbsd-nat.c: Tweak comment.
647 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
648 vaxnbsd-tdep.c.
649 (vax-nat.o): New dependency.
650 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
651 (vax-*-ultrix2*): Remove.
652 * config/vax/vax.mh: New file.
653 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
654 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
655 (vax_register_u_addr): New prototype.
656 (REGISTER_U_ADDR): Define using vax_register_u_addr.
657 * config/vax/vaxult2.mh: Remove file.
658 * config/vax/vaxult.mh: Remove file.
659 * config/vax/vaxbsd.mh: Remove file.
660 * config/vax/vax.mt (TM_FILE): Remove.
661 * config/vax/tm-vaxbsd.h: Remove file.
662
9ad7bec7
JB
6632004-08-06 Joel Brobecker <brobecker@gnat.com>
664
665 * aix-thread.c (get_signaled_thread): New function.
666 (iter_trap): Delete, no longer used.
667 (iter_tid): New function.
668 (pd_update): Find the thread that received the SIGTRAP signal
669 by first locating the kernel thread, and then finding its
670 associated thread.
671
bf0d233d
UW
6722004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
673
674 * lin-lwp.c (child_wait): Continue inferior after processing
675 PTRACE_EVENT_CLONE event.
676
d0f853e1
NN
6772004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
678
679 * MAINTAINERS: Add self to Write-After-Approval.
680
ab14aeb0
JJ
6812004-08-05 Jeff Johnston <jjohnstn@redhat.com>
682
683 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
684 libunwind-xxxx.so" where xxxx is UNW_TARGET.
685
9c8dbfa9
AC
6862004-08-05 Andrew Cagney <cagney@gnu.org>
687
c8f3ca46
AC
688 * config/xm-sysv4.h: Delete file.
689 * config/mips/xm-irix5.h: Delete file.
690 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
691 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
692 * config/ia64/xm-aix.h: Delete file.
693 * config/ia64/aix.mh (XM_FILE): Delete.
694 * config/pa/xm-hppah.h: Delete file.
695 * config/pa/hpux11w.mh (XM_FILE): Delete.
696 * config/pa/hpux11.mh (XM_FILE): Delete.
697 * config/pa/hpux1020.mh (XM_FILE): Delete.
698 * config/pa/hppahpux.mh (XM_FILE): Delete.
699
5f7daaff
AC
700 * config/alpha/xm-alphalinux.h: Delete file.
701 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
702 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
703 * config/alpha/xm-alphaosf.h: Delete file.
704 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
705 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
706 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
707 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
708
69babf95
AC
709 * config/i386/xm-i386v.h: Delete file.
710 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
711 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
712 * config/i386/xm-i386sco.h: Delete file.
713 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
714 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
715 * config/i386/xm-i386v4.h: Delete file.
716 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
717 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
718 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
719 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
720
6f009c8a
AC
721 * config/vax/xm-vax.h: Delete file.
722 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
723 * config/vax/xm-vaxult2.h: Delete file.
724 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
725 * config/vax/vaxult2.mh (XM_FILE): Delete.
726 * config/vax/xm-vaxult.h: Delete file.
727 * config/vax/vaxult.mh (XM_FILE): Delete.
728 * config/vax/xm-vaxbsd.h: Delete file.
729 * config/vax/vaxbsd.mh (XM_FILE): Delete.
730
9c8dbfa9
AC
731 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
732 * gdbarch.h, gdbarch.c: Re-generate.
733 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
734 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
735 * frame.h: Delete deprecated_read_fp from comments.
736 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
737 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
738
84367a3e
MK
7392004-08-04 Mark Kettenis <kettenis@gnu.org>
740
9c8e3411
MK
741 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
742 trampoline in OpenBSD 3.5-current.
743
b87bc0d8
MK
744 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
745 SSE registers.
746
84367a3e
MK
747 * Makefile.in: Remove embedded page breaks.
748
a44bddec
JB
7492004-08-04 Jim Blandy <jimb@redhat.com>
750
7ab3286f
JB
751 * regcache.c (regcache_raw_read): Assert that, after calling
752 target_fetch_registers, the register we're reading is cached.
753
a44bddec
JB
754 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
755 a call to 'internal_error', with a more helpful error message.
756 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 757 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 758
35124113
AC
7592004-08-04 Andrew Cagney <cagney@gnu.org>
760
761 * Makefile.in: Update dependencies.
762
9f643768
JB
7632004-08-04 Jim Blandy <jimb@redhat.com>
764
6ced10dd
JB
765 Change the layout of the PowerPC E500 raw register cache to allow
766 the lower 32-bit halves of the GPRS to be their own raw registers,
767 not pseudoregisters.
768 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
769 add ppc_ev0_upper_regnum flag.
770 * rs6000-tdep.c: #include "reggroups.h".
771 (spe_register_p): Recognize the ev upper half registers as SPE
772 registers.
773 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
774 registers.
775 (e500_move_ev_register): New function.
776 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
777 vector registers are the pseudo-registers now, formed by splicing
778 together the gprs and the upper-half registers.
779 (e500_register_reggroup_p): New function.
780 (P): Macro deleted.
781 (P8, A4): New macro.
782 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
783 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
784 macros.
785 (registers_e500): Rearrange register set so that the raw register
786 set contains 32-bit GPRs and upper-half registers, and the SPE
787 vector registers become pseudo-registers.
788 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
789 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
790 register numbers are now the same for the E500 as they are for
791 other PowerPC variants. Register e500_register_reggroup_p as the
792 register group function for the E500.
793 * Makefile.in (rs6000-tdep.o): Update dependencies.
794
795 Adapt PPC E500 native support to the new raw regcache layout.
796 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
797 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
798 (fetch_spe_register, store_spe_register): Handle fetching/storing
799 all the SPE registers at once, if regno == -1. These now take
800 over the job of fetch_spe_registers and store_spe_registers.
801 (fetch_spe_registers, store_spe_registers): Deleted.
802 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
803 unconditionally; they're always raw. Fetch/store SPE upper half
804 registers, if present, instead of ev registers.
805 (fetch_register, store_register): Remove sanity checks: gprs are
806 never pseudo-registers now, so we never need to even mention any
807 registers that are ever pseudoregisters.
808
9f643768
JB
809 Use a fixed register numbering when communicating with the PowerPC
810 simulator.
811 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
812 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
813 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
814 New functions.
815 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
816 init_sim_regno_table.
817 * Makefile.in (gdb_sim_ppc_h): New variable.
818 (rs6000-tdep.o): Update dependencies.
819
1e2279c8
AC
8202004-08-02 Andrew Cagney <cagney@gnu.org>
821
1d94326f
AC
822 * cris-tdep.c (cris_register_size): Restore function, still used
823 locally.
824
331ae7ed
AC
825 * gdbarch.sh (deprecated_target_read_fp)
826 (deprecated_frame_locals_address, deprecated_frame_args_address)
827 (deprecated_frame_chain_valid, deprecated_frame_chain)
828 (deprecated_init_extra_frame_info, deprecated_pop_frame)
829 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
830 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
831 * gdbarch.h, gdbarch.c: Re-generate.
832 * regcache.c (deprecated_read_fp): Do not call
833 DEPRECATED_TARGET_READ_FP_P.
834 * infcmd.c (default_print_registers_info): Do not call
835 DEPRECATED_DO_REGISTERS_INFO.
836 * frame-base.c (default_frame_locals_address): Do not call
837 DEPRECATED_FRAME_LOCALS_ADDRESS.
838 (default_frame_args_address): Do not call
839 DEPRECATED_FRAME_ARGS_ADDRESS.
840
1e2279c8
AC
841 * gdbarch.sh (deprecated_register_raw_size)
842 (deprecated_register_virtual_size:int): Delete.
843 * gdbarch.h, gdbarch.c: Re-generate.
844 * cris-tdep.c (cris_register_size): Delete.
845 (cris_gdbarch_init): Update.
846 * alpha-tdep.c (alpha_register_raw_size)
847 (alpha_register_virtual_size): Delete.
848 (alpha_gdbarch_init): Update.
849
a90c06b4
AC
850 * gdbarch.sh (deprecated_register_virtual_type)
851 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
852 (deprecated_dummy_write_sp): Delete.
853 * gdbarch.h, gdbarch.c: Re-generate.
854
f42accbe
AC
855 * gdbarch.sh (deprecated_register_bytes): Delete.
856 * gdbarch.h, gdbarch.c: Re-generate.
857 * regcache.c (deprecated_register_bytes): New function.
858 * regcache.h (deprecated_register_bytes): Declare.
859 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
860 * v850-tdep.c (v850_gdbarch_init): Update.
861 * sh64-tdep.c (sh64_gdbarch_init): Update.
862 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
863 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
864 * mcore-tdep.c (mcore_gdbarch_init): Update.
865 * cris-tdep.c (cris_gdbarch_init): Update.
866 * arm-tdep.c (arm_gdbarch_init): Update.
867 * remote.c (init_remote_state): Update.
868 * remote-vx.c (vx_prepare_to_store): Update.
869 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
870 * irix5-nat.c (fetch_core_registers): Update.
871 * cris-tdep.c (cris_register_bytes_ok): Update.
872 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
873
45c9dd44
AC
874 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
875 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
876 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
877 (mips_insn16_frame_base_address, mips_insn16_frame_base)
878 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
879 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
880 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
881 (mips_insn32_frame_base_address, mips_insn32_frame_base)
882 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
883 with mips_insn16 and mips_insn32.
884
3acba339
AC
885 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
886 * rs6000-tdep.c (rs6000_push_dummy_call)
887 (rs6000_extract_return_value): Use register_size.
888 * xstormy16-tdep.c (xstormy16_get_saved_register)
889 (xstormy16_extract_return_value): Ditto.
890 * valops.c (value_assign): Ditto.
891 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
892 * v850-tdep.c (v850_extract_return_value): Ditto.
893 * tracepoint.c (collect_symbol): Ditto.
894 * target.c (debug_print_register): Ditto.
895 * stack.c (frame_info): Ditto.
896 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
897 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
898 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
899 (store_register_using_P): Ditto.
900 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
901 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
902 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
903 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
904 * regcache.c (deprecated_read_register_bytes)
905 (deprecated_write_register_bytes, read_register)
906 (write_register): Ditto.
907 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
908 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
909 * monitor.c (monitor_supply_register, monitor_fetch_register)
910 (monitor_store_register): Ditto.
911 * mn10300-tdep.c (mn10300_pop_frame_regular)
912 (mn10300_print_register): Ditto.
913 * mipsv4-nat.c (fill_fpregset): Ditto.
914 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
915 (mips64_fill_fpregset): Ditto.
916 * mi/mi-main.c (register_changed_p, get_register)
917 (mi_cmd_data_write_register_values): Ditto.
918 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
919 * irix5-nat.c (fill_gregset, fetch_core_registers):
920 * infrun.c (write_inferior_status_register): Ditto.
921 * infptrace.c (fetch_register, store_register): Ditto.
922 * infcmd.c (default_print_registers_info): Ditto.
923 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
924 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
925 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
926 * hpux-thread.c (hpux_thread_fetch_registers)
927 (hpux_thread_store_registers): Ditto.
928 * hppah-nat.c (store_inferior_registers, fetch_register):
929 * findvar.c (value_from_register): Ditto.
930 * dve3900-rom.c (fetch_bitmapped_register):
931 * cris-tdep.c (cris_gdbarch_init): Ditto.
932 * alpha-tdep.h: Ditto.
933 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
934
01e1877c
AC
935 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
936 DEPRECATED_REGISTER_RAW_SIZE from comments.
937 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
938 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
939 DEPRECATED_REGISTER_RAW_SIZE.
940 * findvar.c (value_of_register): Simplify by assuming that the
941 registers raw and virtual sizes are identical.
942 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
943 comment.
944 * arch-utils.c (generic_register_size): Simplify by assuming
945 register_type.
946
73f458fb
AC
947 * regcache.c (legacy_read_register_gen, real_register)
948 (legacy_write_register_gen): Delete, not used.
949
336a3131
AC
950 * regcache.c (struct regcache_descr): Delete legacy_p.
951 (init_legacy_regcache_descr): Delete function.
952 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
953 Do not use deprecated register functions.
954 (regcache_raw_read, deprecated_write_register_gen):
955 (deprecated_read_register_gen, regcache_raw_write): Delete code
956 predicated on legacy_p.
957 (register_size): Delete check against register raw size.
958
c1d546cd
AC
959 * cris-tdep.c (cris_register_type): Replace
960 cris_register_virtual_type.
961 (cris_gdbarch_init): Update, set register_type.
962
48c2c0a6
AC
963 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
964 * gdbarch.h, gdbarch.c: Re-generate.
965 * arm-tdep.c (arm_frameless_function_invocation): Delete.
966 (arm_gdbarch_init) Do not set frameless function invocation.
967 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
968 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
969 * frv-tdep.c (frv_frameless_function_invocation): Delete.
970 (frv_gdbarch_init): Do not set frameless function invocation.
971 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
972 * sh-tdep.c (sh_gdbarch_init): Ditto.
973 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
974 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
975 * avr-tdep.c (avr_gdbarch_init): Ditto.
976
474093a6
AC
977 * blockframe.c (legacy_frame_chain_valid): Delete function.
978
3c109c8b
AC
979 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
980 and pc. Update comments.
981 (pc_in_dummy_frame): Delete function.
982 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
983 use the "id".
984 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
985 call_hi, top and pc, use the id.
986 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
987
96860204
AC
988 * dummy-frame.c: Include "gdb_string.h".
989 (generic_save_call_dummy_addr, generic_push_dummy_frame)
990 (generic_save_dummy_frame_tos): Delete.
991 (dummy_frame_push): New function, replaces above.
992 * dummy-frame.h: Update copyright.
993 (dummy_frame_push): Declare.
994 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
995 (generic_save_call_dummy_addr): Delete declarations.
996 * infcall.c: Include "dummy-frame.h".
997 (call_function_by_hand): Add locals caller_regcache,
998 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
999 with call to frame_save_as_regcache plus cleanup. Delete calls to
1000 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1001 Move clear_proceed_status to just before the resume, add call to
1002 dummy_frame_push (discard cleanup).
1003 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1004 (dummy-frame.o): Add $(gdb_string_h).
1005
d67ec5db
AC
10062004-08-01 Andrew Cagney <cagney@gnu.org>
1007
1008 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1009 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1010 * dummy-frame.c (find_dummy_frame): Delete.
1011 (struct dummy_frame_cache, dummy_frame_sniffer)
1012 (dummy_frame_prev_register, dummy_frame_this_id)
1013 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1014 frame unwinder using a dummy_frame_cache.
1015
a81dcb05
AC
10162004-08-01 Andrew Cagney <cagney@gnu.org>
1017
1018 * frame.h (frame_save_as_regcache): Declare.
1019 * frame.c (frame_save_as_regcache): New function.
1020 (do_frame_read_register): Replace do_frame_unwind_register.
1021 (frame_pop): Use frame_save_as_regcache.
1022 * dummy-frame.c (generic_push_dummy_frame): Use
1023 frame_save_as_regcache.
1024
aa495d11
JB
10252004-08-01 Joel Brobecker <brobecker@gnat.com>
1026
1027 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1028 file as included until we record the first line in the linetable.
1029
ff65ac78
AC
10302004-08-01 Andrew Cagney <cagney@gnu.org>
1031
1032 * frame.h (deprecated_pop_dummy_frame)
1033 (deprecated_read_register_dummy)
1034 (deprecated_generic_find_dummy_frame): Delete.
1035 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1036 (deprecated_read_register_dummy)
1037 (deprecated_find_dummy_frame_regcache)
1038 (discard_innermost_dummy)
1039 (deprecated_pop_dummy_frame): Delete.
1040 (dummy_frame_this_id): Simplify.
1041 (struct dummy_frame): Delete "fp" and "sp".
1042 (find_dummy_frame): Simplify.
1043 (generic_push_dummy_frame): Do not set "fp" or "sp".
1044 (fprint_dummy_frames): Do not print "fp" and "sp"
1045
37bdc87e
MK
10462004-08-01 Mark Kettenis <kettenis@gnu.org>
1047
1048 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1049 (struct i386_insn): New structure.
1050 (i386_match_insn): New function.
1051 (i386_frame_setup_skip_insns): New variable.
1052 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1053 array i386_frame_setup_insns of instructions that should be
1054 skipped inside the frame setup sequence.
1055
8241eaa6
AC
10562004-08-01 Andrew Cagney <cagney@gnu.org>
1057
5bc602c7
AC
1058 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1059 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1060 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1061 * stack.c (frame_info): Delete references to
1062 DEPRECATED_FRAME_INIT_SAVED_REGS and
1063 deprecated_get_frame_saved_regs.
1064 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1065 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1066 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1067 (frame_unwind_register_signed)
1068 (frame_unwind_register_unsigned)
1069 (frame_unwind_unsigned_register): Use register_size.
1070 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1071 (deprecated_frame_xmalloc_with_cleanup)
1072 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1073 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1074
03d363a1
AC
1075 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1076 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1077 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1078 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1079
8241eaa6
AC
1080 * infcall.c (call_function_by_hand): Do not use
1081 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1082 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1083 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1084 DEPRECATED_STACK_ALIGN.
1085
f00df8b7
AC
10862004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1087
1088 Committed by Andrew Cagney.
1089 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1090
eec63939
AC
10912004-08-01 Andrew Cagney <cagney@gnu.org>
1092
1093 * mips-tdep.c (mips16_frame_cache)
1094 (mips16_frame_this_id, mips16_frame_prev_register)
1095 (mips16_frame_unwind, mips16_frame_sniffer)
1096 (mips16_frame_base_address, mips16_frame_base)
1097 (mips16_frame_base_sniffer, mips32_frame_cache)
1098 (mips32_frame_this_id, mips32_frame_prev_register)
1099 (mips32_frame_unwind, mips32_frame_sniffer)
1100 (mips32_frame_base_address, mips32_frame_base)
1101 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1102 separate heuristic mips16 and mips32 unwinders.
1103 (mips_stub_frame_cache, mips_stub_frame_this_id)
1104 (mips_stub_frame_prev_register)
1105 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1106 (mips_stub_frame_base_address, mips_stub_frame_base)
1107 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1108 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1109 match true mdebug frames.
1110 (non_heuristic_proc_desc): Add forward declaration.
1111
e66299b3
AC
11122004-08-01 Andrew Cagney <cagney@gnu.org>
1113
83cbbf3e
AC
1114 * config/mips/tm-irix6.h: Delete file.
1115 * config/mips/tm-irix5.h: Delete file.
1116 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1117 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1118
22d41b37
AC
1119 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1120 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1121 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1122 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1123 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1124 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1125 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1126 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1127 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1128 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1129 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1130 (TARGET_SIGNAL_RAW_VALUES): Delete.
1131 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1132 Delete.
1133 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1134 (TARGET_HW_WATCH_LIMIT): Delete.
1135 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1136 * minimon.h: Delete file.
1137
e66299b3
AC
1138 * trad-frame.c (trad_frame_get_this_base)
1139 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1140 functions.
1141 * trad-frame.h (trad_frame_set_this_base)
1142 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1143
1f67027d
AC
11442004-07-31 Andrew Cagney <cagney@gnu.org>
1145
1146 * trad-frame.c (trad_frame_get_prev_register): Rename
1147 trad_frame_get_prev_register.
1148 * vax-tdep.c (vax_frame_prev_register): Update.
1149 * trad-frame.h: Update.
1150 * trad-frame.c (trad_frame_get_register): Update.
1151 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1152 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1153 Update.
1154 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1155 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1156 Update.
1157 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1158 Update.
1159 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1160 Update.
1161 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1162 Update.
1163 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1164 Update.
1165 * s390-tdep.c (s390_frame_prev_register)
1166 (s390_stub_frame_prev_register)
1167 (s390_sigtramp_frame_prev_register): Update.
1168 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1169 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1170 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1171 * m88k-tdep.c (m88k_frame_prev_register)
1172 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1173 * m32r-tdep.c (m32r_frame_prev_register): Update.
1174 * hppa-tdep.c (hppa_frame_prev_register_helper)
1175 * frv-tdep.c (frv_frame_prev_register): Update.
1176 * d10v-tdep.c (d10v_frame_prev_register): Update.
1177 * cris-tdep.c (cris_frame_prev_register): Update.
1178 * avr-tdep.c (avr_frame_prev_register): Update.
1179 * arm-tdep.c (arm_prologue_prev_register)
1180 (arm_sigtramp_prev_register): Update.
1181
c1bf6f65
AC
11822004-07-31 Andrew Cagney <cagney@gnu.org>
1183
1184 * frame.h (legacy_saved_regs_unwind)
1185 (legacy_frame_chain_valid, legacy_frame_p)
1186 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1187 * dummy-frame.c (dummy_frame_this_id): Simplify.
1188 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1189 * frame.c (struct frame_info): Delete the field "type".
1190 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1191 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1192 (legacy_saved_regs_unwind, legacy_frame_p)
1193 (frame_type_from_pc): Delete.
1194 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1195 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1196
dc856692
MK
11972004-07-31 Mark Kettenis <kettenis@gnu.org>
1198
5a5effe1
MK
1199 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1200 indentation.
1201
d4fd50a6
MK
1202 * mips-nat.c: Remove file.
1203 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1204 (mips-nat.o): Remove dependency.
1205
2689df5a
MK
1206 * infptrace.c: Update copyright year.
1207 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1208 explicitly setting the buffer to all zeroes.
1209
dc856692
MK
1210 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1211 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1212
763910e0
AC
12132004-07-30 Andrew Cagney <cagney@gnu.org>
1214
1215 * GDB 6.2 released from gdb_6_2-branch.
1216
0b66e38c
EZ
12172004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1218
1219 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1220
1221 * exec.c (exec_file_attach):
1222 * nto-tdep.c (nto_find_and_open_solib):
1223 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1224 * solib.c (solib_open):
1225 * somsolib.c (som_solib_sizeof_symbol_table):
1226 * source.c (is_regular_file, openp, open_source_file):
1227 * symfile.c (symfile_bfd_open):
1228 * wince.c (upload_to_device): Differentiate between the search for
1229 binary and source files.
1230
be7d7357
AC
12312004-07-30 Andrew Cagney <cagney@gnu.org>
1232
1233 * complaints.c (_initialize_complaints): Pass NULL to
1234 add_setshow_zinteger_cmd for help_doc.
1235 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1236
ddc9cd0f
AC
12372004-07-30 Andrew Cagney <cagney@gnu.org>
1238
1239 Fix PR i18n/761.
1240 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1241 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1242 $(PACKAGE).pot and update-po.
1243 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1244 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1245 (update-po): New rules.
1246 (localedir): Define using autoconf.
1247 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1248 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1249 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1250 * configure.in: Generate CATALOGS and LINGUAS from contents of
1251 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1252 * configure: Re-generate.
1253 * po/gdbtext: New file
1254
e92f3704
JG
12552004-07-30 Jerome Guitton <guitton@gnat.com>
1256
1257 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1258 order.
1259
b0f35d58
DL
12602004-07-30 David Lecomber <dsl@sources.redhat.com>
1261
1262 * dwarf2read.c (read_file_scope): Set producer if attribute
1263 present.
1264 (struct dwarf2_cu): Added new member producer.
1265
ce7d4522
JG
12662004-07-30 Jerome Guitton <guitton@gnat.com>
1267
1268 * inflow.c (kill_command): release file handles in BFD.
1269 * exec.c (exec_file_attach): Ditto.
1270 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1271
05ee07c7
AC
12722004-07-29 Andrew Cagney <cagney@gnu.org>
1273
1274 * PROBLEMS (mips-irix): Note that it is broken.
1275
62eceb47
AC
12762004-07-29 Andrew Cagney <cagney@gnu.org>
1277
e57b8d41
AC
1278 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1279 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1280
d334389b
AC
1281 * config/xm-nbsd.h: Delete file.
1282 * config/arm/xm-nbsd.h: Delete file.
1283 * config/i386/xm-nbsd.h: Delete file.
1284 * config/ns32k/xm-nbsd.h: Delete file.
1285 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1286 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1287 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1288 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1289 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1290
e910f676
AC
1291 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1292 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1293 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1294 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1295 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1296 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1297
6fa856b9
AC
1298 * config/powerpc/xm-linux.h: Delete empty file.
1299 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1300 * config/powerpc/linux.mh (XM_FILE): Delete.
1301 * config/m68k/xm-linux.h: Delete empty file.
1302 * config/m68k/linux.mh (XM_FILE): Delete.
1303 * config/ia64/xm-linux.h: Delete empty file.
1304 * config/ia64/linux.mh (XM_FILE): Delete.
1305 * config/arm/xm-linux.h: Delete empty file.
1306 * config/arm/linux.mh (XM_FILE): Delete.
1307
471ae5ae
AC
1308 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1309 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1310 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1311 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1312 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1313 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1314 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1315 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1316
62eceb47
AC
1317 * config/m68k/xm-m68k.h: Delete file.
1318 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1319 copyright.
1320 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1321 * config/pa/xm-linux.h: Delete empty file.
1322 * config/pa/linux.mh (XM_FILE): Delete.
1323 * config/i386/xm-i386.h: Delete empty file.
1324 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1325 "i386/xm-i386.h".
1326 * config/i386/obsdaout.mh (XM_FILE): Delete.
1327 * config/i386/obsd64.mh (XM_FILE): Delete.
1328 * config/i386/fbsd64.mh (XM_FILE): Delete.
1329 * config/i386/nto.mh (XM_FILE): Delete.
1330 * config/i386/obsd.mh (XM_FILE): Delete.
1331 * config/i386/linux64.mh (XM_FILE): Delete.
1332 * config/i386/linux.mh (XM_FILE): Delete.
1333 * config/i386/i386sol2.mh (XM_FILE): Delete.
1334 * config/i386/i386gnu.mh (XM_FILE): Delete.
1335 * config/i386/fbsd.mh (XM_FILE): Delete.
1336 * config/i386/nbsd64.mh (XM_FILE): Delete.
1337
c35f4ffc
AC
13382004-07-29 Andrew Cagney <cagney@gnu.org>
1339
1340 * config/pa/xm-linux.h: Do not include "floatformat.h".
1341 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1342 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1343 * config/i386/xm-i386.h: Do not include "floatformat.h".
1344 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1345 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1346 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1347 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1348 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1349 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1350 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1351 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1352 * configure, config.in: Regenerate.
1353 * configure.host (gdb_host_float_format, gdb_host_double_format)
1354 (gdb_host_long_double_format): Set according to the host.
1355
624a44a3
AC
13562004-07-29 Andrew Cagney <cagney@gnu.org>
1357
1358 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1359
0dea2468
AC
13602004-07-28 Andrew Cagney <cagney@gnu.org>
1361
1362 * PROBLEMS: Mention threads/1650.
1363 * NEWS: Mention the NPTL fix.
1364
b3f42336
AC
13652004-07-28 Andrew Cagney <cagney@gnu.org>
1366
1367 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1368 (add_setshow_cmd_full): Make static.
1369 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1370 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1371 * cli/cli-decode.c (add_setshow_filename_cmd)
1372 (add_setshow_string_cmd): New functions.
1373 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1374 * mips-tdep.c (_initialize_mips_tdep): Update.
1375 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1376 * cli/cli-logging.c (_initialize_cli_logging): Update.
1377 * complaints.c (_initialize_complaints): Update.
1378 * remote.c (_initialize_remote): Update.
1379
3b64bf98
AC
13802004-07-28 Andrew Cagney <cagney@gnu.org>
1381
1382 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1383 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1384 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1385 print parameters. Make string parameters constant.
1386 * command.h: Update. Update copyright.
1387 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1388 * observer.c (_initialize_observer): Ditto.
1389 * frame.c (_initialize_frame): Ditto.
1390 * complaints.c (_initialize_complaints): Ditto.
1391 * maint.c (_initialize_maint_cmds): Ditto.
1392 * target.c (initialize_targets): Ditto.
1393 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1394 * infcall.c (_initialize_infcall): Ditto.
1395 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1396 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1397 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1398 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1399 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1400
e9667a65
AC
14012004-07-28 Andrew Cagney <cagney@gnu.org>
1402
54a5b07d
AC
1403 * gdbtypes.c (lookup_primitive_typename): Delete function.
1404 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1405 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1406 * gdbtypes.c (lookup_typename): Ditto.
1407 * f-exp.y (yylex): Ditto.
1408 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1409
e9667a65
AC
1410 * scm-lang.c (c_builtin_types): Delete extern declaration.
1411 (scm_language_defn): Replace
1412 string_char_type and primitive_type_vector with
1413 la_language_arch_info.
1414 * jv-lang.c (java_language_defn): Replace
1415 string_char_type and primitive_type_vector with
1416 la_language_arch_info.
1417 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1418 c_builtin_types in comment.
1419 * c-lang.h (struct language_arch_info): Declare opaque.
1420 (c_language_arch_info): Declare.
1421 (c_builtin_types): Delete declaration.
1422 * c-lang.c (c_language_arch_info): Set string_char_type to
1423 builtin_char, not builtin_true_char. Make global.
1424 (c_builtin_types): Delete array.
1425 (asm_language_defn, minimal_language_defn): Replace
1426 string_char_type and primitive_type_vector with
1427 la_language_arch_info.
1428
685419e2
AC
14292004-07-28 Andrew Cagney <cagney@gnu.org>
1430
1431 * gdbtypes.h (struct builtin_type): Rename true_char to
1432 builtin_true_char.
1433 * gdbtypes.c (gdbtypes_post_init): Update.
1434 * c-lang.c (arch_info): New function.
1435 (enum c_primitive_types): New enum.
1436 (c_language_defn): Instead of string_char_type and
1437 primitive_type_vector set la_language_arch_info.
1438
5a44ea29
AC
14392004-07-28 Andrew Cagney <cagney@gnu.org>
1440
1441 * language.h (struct language_arch_info): Fix typo
1442 s/primative/primitive/.
1443 * gdbtypes.c (lookup_primitive_typename): Ditto.
1444 * language.c (language_lookup_primitive_type_by_name)
1445 (unknown_language_arch_info): Ditto.
1446
f290d38e
AC
14472004-07-27 Andrew Cagney <cagney@gnu.org>
1448
1449 * defs.h (enum language): Add nr_languages.
1450 * language.h (struct language_arch_info): Define.
1451 (struct language_defn): Add la_language_arch_info.
1452 (language_lookup_primative_type_by_name): Declare.
1453 (language_string_char_type): Declare.
1454 * language.c (_initialize_language, language_gdbarch_post_init)
1455 (struct language_gdbarch, language_gdbarch_data): Implement
1456 per-architecture language information.
1457 (unknown_language_arch_info, language_string_char_type)
1458 (language_lookup_primative_type_by_name): New functions.
1459 (unknown_language_defn, auto_language_defn)
1460 (local_language_defn): Set la_language_arch_info to
1461 unknown_language_arch_info.
1462 (unknown_builtin_types): Delete.
1463 * gdbtypes.c (lookup_primitive_typename): Use
1464 language_lookup_primative_type_by_name.
1465 (create_string_type): Use language_string_char_type.
1466 * values.c (value_from_string): Use language_string_char_type.
1467 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1468 * p-lang.c (pascal_language_defn): Ditto.
1469 * m2-lang.c (m2_language_defn): Ditto.
1470 * jv-lang.c (java_language_defn): Ditto.
1471 * objc-lang.c (objc_language_defn): Ditto.
1472 * f-lang.c (f_language_defn): Ditto.
1473 * c-lang.c (c_language_defn, cplus_language_defn)
1474 (asm_language_defn, minimal_language_defn): Ditto.
1475
000177f0
AC
14762004-07-27 Andrew Cagney <cagney@gnu.org>
1477
1478 * gdbtypes.h (struct builtin_type): Declare.
1479 (builtin_type): Declare.
1480 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1481 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1482 (gdbtypes_post_init): New function.
1483 (builtin_type): New function.
1484
e22f895c
KI
14852004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1486
1487 * remote-m32r-sdi.c: Fix breakpoint bug.
1488 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1489 recv_char_data, recv_long_data): New functions to replace communication
1490 sequences.
1491
536517dd
MC
14922004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1493
1494 Document PR threads/1650.
1495 * PROBLEMS (Threads): Document problem with many threads
1496
a0a44d18
AC
14972004-07-26 Andrew Cagney <cagney@gnu.org>
1498
1499 * gdb-mi.el: Move from here ...
1500 * mi/gdb-mi.el: ... to here.
1501
7ac4ac06
AC
15022004-07-26 Andrew Cagney <cagney@gnu.org>
1503
1504 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1505 * main.c (captured_main): When in batch mode always detach.
1506
a1b461bf
AC
15072004-07-26 Andrew Cagney <cagney@gnu.org>
1508
1509 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1510 and h8300 as broken.
1511 * NEWS: END-OF-LIFE frame compatibility module.
1512 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1513 specific comments.
1514
cb1a6d5f
AC
15152004-07-26 Andrew Cagney <cagney@gnu.org>
1516
1517 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1518 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1519 * wince.c (_initialize_wince): Update.
1520 * win32-nat.c (_initialize_win32_nat): Update.
1521 * varobj.c (_initialize_varobj): Update.
1522 * valops.c (_initialize_valops): Update.
1523 * utils.c (initialize_utils, initialize_utils): Update.
1524 * tui/tui-win.c (_initialize_tui_win): Update.
1525 * top.c (init_main): Update.
1526 * symfile.c (_initialize_symfile): Update.
1527 * source.c (_initialize_source): Update.
1528 * somsolib.c (_initialize_som_solib): Update.
1529 * solib.c (_initialize_solib): Update.
1530 * solib-frv.c (_initialize_frv_solib): Update.
1531 * serial.c (_initialize_serial): Update.
1532 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1533 * remote.c (_initialize_remote, _initialize_remote): Update.
1534 * remote-vx.c (_initialize_vx): Update.
1535 * remote-utils.c (_initialize_sr_support): Update.
1536 * remote-sds.c (_initialize_remote_sds): Update.
1537 * remote-mips.c (_initialize_remote_mips): Update.
1538 * remote-e7000.c (_initialize_remote_e7000): Update.
1539 * proc-api.c (_initialize_proc_api): Update.
1540 * printcmd.c: Update.
1541 * parse.c (_initialize_parse): Update.
1542 * pa64solib.c (_initialize_pa64_solib): Update.
1543 * p-valprint.c (_initialize_pascal_valprint): Update.
1544 * monitor.c (_initialize_remote_monitors): Update.
1545 * mips-tdep.c (_initialize_mips_tdep): Update.
1546 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1547 * maint.c (_initialize_maint_cmds): Update.
1548 * lin-lwp.c (_initialize_lin_lwp): Update.
1549 * language.c (_initialize_language): Update.
1550 * kod.c (_initialize_kod): Update.
1551 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1552 * i386-tdep.c (_initialize_i386_tdep): Update.
1553 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1554 * gdbarch.sh: Update.
1555 * gdbarch.c: Re-generate.
1556 * gdb-events.sh: Update.
1557 * gdb-events.c: Re-generate.
1558 * frame.c (_initialize_frame): Update.
1559 * exec.c: Update.
1560 * demangle.c (_initialize_demangler): Update.
1561 * dcache.c (_initialize_dcache): Update.
1562 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1563 * cp-valprint.c (_initialize_cp_valprint): Update.
1564 * corefile.c (_initialize_core): Update.
1565 * command.h: Update.
1566 * cli/cli-decode.h: Update.
1567 * cli/cli-cmds.c (init_cli_cmds): Update.
1568 * charset.c (_initialize_charset): Update.
1569 * breakpoint.c (_initialize_breakpoint): Update.
1570 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1571 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1572 * aix-thread.c (_initialize_aix_thread): Update.
1573
b4632131
MK
15742004-07-24 Mark Kettenis <kettenis@gnu.org>
1575
1576 Partial fix for PR backtrace/1718.
1577 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1578 that GCC migrates into the prolugue. Don't handle any
1579 instructions that clobber %ebx.
1580
822c9732
AC
15812004-07-23 Andrew Cagney <cagney@gnu.org>
1582
1583 Use regcache_raw_collect instead of regcache_collect.
1584 * regcache.h (regcache_collect): Delete declaration.
1585 * regcache.c (regcache_colect): Delete function.
1586 * win32-nat.c (do_child_store_inferior_registers): Update.
1587 * sol-thread.c (sol_thread_store_registers): Update.
1588 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1589 * rs6000-nat.c (store_register): Update.
1590 * remote.c (store_register_using_P, remote_store_registers): Update.
1591 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1592 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1593 (fill_vrregset, store_spe_registers, fill_gregset)
1594 (fill_gregset): Update.
1595 * nto-procfs.c (procfs_store_registers): Update.
1596 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1597 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1598 * m68klinux-nat.c (store_register, fill_gregset): Update.
1599 * m68k-tdep.c (fill_gregset): Update.
1600 * infptrace.c (store_register): Update.
1601 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1602 * i386-linux-nat.c (store_register, fill_gregset): Update.
1603 * hppa-linux-nat.c (fill_gregset): Update.
1604 * go32-nat.c (store_register): Update.
1605 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1606 (store_fp_regs): Update.
1607 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1608 (store_nwfpe_extended, store_fpregister, store_fpregs)
1609 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1610 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1611 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1612 (store_regs_user_thread, store_regs_kernel_thread): Update.
1613
32b05c07
MK
16142004-07-24 Mark Kettenis <kettenis@gnu.org>
1615
1616 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1617 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1618 encoding.
1619 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1620 member of `struct comp_unit'.
1621
8567c30f
AC
16222004-07-23 Andrew Cagney <cagney@gnu.org>
1623
1624 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1625 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1626
f6da8dd8
MH
16272004-07-23 Martin Hunt <hunt@redhat.com>
1628 Kevin Buettner <kevinb@redhat.com>
1629
1630 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1631 alignment was being added to the offset instead of multiplied.
1632
bd921882
MK
16332004-07-23 Mark Kettenis <kettenis@gnu.org>
1634
24f033e8
MK
1635 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1636 changed signal trampoline in OpenBSD 3.5-current.
1637
90f3cecd
MK
1638 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1639 <machine/pcb.h> and "bsd-kvm.h".
1640 (sparc64nbsd_supply_pcb): New function.
1641 (_initialize_sparc64nbsd_nat): Renamed from
1642 _initialize_sparcnbsd_nat. Enable libkvm interface.
1643 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1644 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1645 (LOADLIBES): New variable.
1646
a4954a62
MK
1647 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1648
bd921882
MK
1649 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1650
23a6d369
AC
16512004-07-21 Andrew Cagney <cagney@gnu.org>
1652
1653 Use regcache_raw_supply instead of supply_register.
1654 * regcache.h (supply_register): Delete declaration.
1655 * regcache.c (supply_register): Delete function.
1656 * wince.c (do_child_fetch_inferior_registers): Update.
1657 * win32-nat.c (do_child_fetch_inferior_registers)
1658 (fetch_elf_core_registers): Update.
1659 * v850ice.c (v850ice_fetch_registers): Update.
1660 * thread-db.c (thread_db_store_registers): Update.
1661 * sol-thread.c (sol_thread_store_registers): Update.
1662 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1663 * rs6000-nat.c (fetch_register): Update.
1664 * rom68k-rom.c (rom68k_supply_one_register): Update.
1665 * remote.c (remote_wait, remote_async_wait): Update.
1666 * remote-st.c (get_hex_regs): Update.
1667 * remote-sim.c (gdbsim_fetch_register): Update.
1668 * remote-sds.c (sds_fetch_registers): Update.
1669 * remote-rdp.c (remote_rdp_fetch_register): Update.
1670 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1671 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1672 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1673 * remote-hms.c (init_hms_cmds): Update.
1674 * remote-est.c (init_est_cmds): Update.
1675 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1676 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1677 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1678 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1679 (fetch_register, supply_vrregset, supply_vrregset)
1680 (fetch_spe_registers): Update.
1681 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1682 * monitor.c (monitor_supply_register): Update.
1683 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1684 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1685 (mipsnbsd_supply_fpreg): Update.
1686 * mips-nat.c (fetch_inferior_registers)
1687 (fetch_core_registers): Update.
1688 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1689 (supply_fpregset, mips64_supply_gregset)
1690 (mips64_supply_fpregset): Update.
1691 * m68klinux-nat.c (fetch_register, supply_gregset)
1692 (supply_fpregset): Update.
1693 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1694 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1695 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1696 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1697 * infptrace.c (fetch_register): Update.
1698 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1699 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1700 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1701 (gnu_fetch_registers, gnu_store_registers): Update.
1702 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1703 * i386-linux-nat.c (fetch_register, supply_gregset)
1704 (dummy_sse_values): Update.
1705 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1706 * hppah-nat.c (fetch_register): Update.
1707 * hppa-linux-nat.c (fetch_register, supply_gregset)
1708 (supply_fpregset): Update.
1709 * go32-nat.c (fetch_register): Update.
1710 * dve3900-rom.c (fetch_bitmapped_register)
1711 (_initialize_r3900_rom): Update.
1712 * cris-tdep.c (supply_gregset): Update.
1713 * abug-rom.c (init_abug_cmds): Update.
1714 * core-aout.c (fetch_core_registers): Update.
1715 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1716 (fetch_register, fetch_fp_register): Update.
1717 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1718 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1719 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1720 * alphanbsd-tdep.c (fetch_core_registers): Update.
1721 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1722 * alpha-nat.c (fetch_osf_core_registers)
1723 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1724 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1725 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1726
73cc75f3
AC
17272004-07-21 Andrew Cagney <cagney@gnu.org>
1728
1729 * PROBLEMS: Mention breakpoints/1702.
1730 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1731 that is known to work.
1732
a53c66de
AC
17332004-07-21 Andrew Cagney <cagney@gnu.org>
1734
1735 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1736 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1737 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1738 (handle_inferior_event): Wrap call to deprecated
1739 IGNORE_HELPER_CALL in #ifdef.
1740 * config/mips/tm-nbsd.h: Update.
1741
708ff411
JB
17422004-07-20 Jim Blandy <jimb@redhat.com>
1743
412b3060
JB
1744 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1745 bfd_mach_ppc has no segment registers.
1746
13ac140c
JB
1747 Include PowerPC SPR numbers for special-purpose registers.
1748 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1749 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1750 new member in initializer.
1751 (S, S4, SN4, S64): New macros for defining special-purpose
1752 registers.
1753 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1754 registers_403, registers_403GC, registers_505, registers_860,
1755 registers_601, registers_602, registers_603, registers_604,
1756 registers_750, registers_e500): Use them.
1757
708ff411
JB
1758 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1759 replace references with expression used to initialize variable.
1760
1f602b35
AC
17612004-07-20 Andrew Cagney <cagney@gnu.org>
1762
1763 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1764 read_memory_nobpt.
1765 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1766 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1767 (s390_sigtramp_frame_sniffer): Update.
1768 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1769 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1770 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1771 (mips32_fetch_instruction): Update.
1772 * mcore-tdep.c (get_insn): Update.
1773 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1774 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1775 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1776 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1777 (i386_linux_rt_sigtramp_start): Update.
1778 * i386-linux-nat.c (child_resume): Update.
1779 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1780 * hppa-linux-tdep.c (insns_match_pattern): Update.
1781 * gdbcore.h: Update.
1782 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1783 * frame.c (safe_frame_unwind_memory): Update.
1784 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1785 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1786 * alpha-tdep.c (alpha_read_insn): Update.
1787
2cd8546d
AC
17882004-07-20 Andrew Cagney <cagney@gnu.org>
1789
1790 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1791 containing both bytes and mask. Add "frame_type".
1792 * tramp-frame.c (tramp_frame_start): Update.
1793 (tramp_frame_prepend_unwinder): Update.
1794 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1795 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1796 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1797 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1798
f928dd62
EZ
17992004-07-19 Eli Zaretskii <eliz@gnu.org>
1800
1801 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1802 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1803 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1804 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1805
d5c560f7
AC
18062004-07-17 Andrew Cagney <cagney@gnu.org>
1807
860660cb
AC
1808 * NEWS, PROBLEMS: Update for 6.2.
1809
8c266f54
AC
1810 * README: Update to 6.2.
1811
a552edd9
AC
1812 * utils.c (xvasprintf): Call xstrvprintf.
1813
c4a172b5
AC
1814 * parse.c: Update copyright.
1815 (null_post_parser): Eliminate ARGSUSED.
1816
da745b36
AC
1817 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1818 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1819 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1820
9cbc6ef0
AC
1821 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1822 * ppc-linux-nat.c: Use "Linux kernel".
1823 * hppa-linux-tdep.c: Use GNU/Linux.
1824 * hppa-linux-nat.c: Use GNU/Linux.
1825 * dwarfread.c: Add [sic] to use of Linux.
1826
1b89295f
AC
1827 * hppa-linux-nat.c: Do not include <string.h>.
1828 (supply_fpregset): Remove "register" attribute.
1829
d5c560f7
AC
1830 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1831
7ddd7709
MK
18322004-07-17 Mark Kettenis <kettenis@gnu.org>
1833
b1d19a62
MK
1834 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1835 * configure, config.in: Regenerated.
1836
7ddd7709
MK
1837 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1838 "bsd-kvm.h".
1839 (vaxbsd_supply_pcb): New function.
1840 (_initialize_vaxbsd_nat): New prototype and function.
1841 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1842 solib-sunos.o.
1843 (LOADLIBES): New variable.
1844 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1845 (LOADLIBES): New variable.
1846 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1847 (LOADLIBES): New variable.
1848 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1849
2c07db7a
AC
18502004-07-16 Andrew Cagney <cagney@gnu.org>
1851
1852 * defs.h (event_loop_p): Replace variable declaration with macro,
1853 always 1.
1854 * main.c (captured_main): Delete options "-async" and "-noasync".
1855 (event_loop_p): Delete variable.
1856 * NEWS: Mention that "-async" and "-noasync" were removed.
1857
717eb1cf
AC
18582004-07-16 Andrew Cagney <cagney@gnu.org>
1859
1860 * remote-m32r-sdi.c: Re-indent.
1861
c101bc14
JB
18622004-07-16 Jim Blandy <jimb@redhat.com>
1863
5109a438
JB
1864 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1865 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1866 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1867 missing MPC823 SPRs.
1868 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1869 incorrect. (This was corrected in GDB's register name tables on
1870 2004-07-14.)
1871
c101bc14
JB
1872 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1873 should be "esasrr" ("ESA Save and Restore Register").
1874
7ce450bd
AC
18752004-07-16 Andrew Cagney <cagney@gnu.org>
1876
1877 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1878 calls, no longer applicable. Update comments and rename parameter
1879 "step_frame" to "return_frame".
1880
ca73dd9d
AC
18812004-07-16 Andrew Cagney <cagney@gnu.org>
1882
1883 * frame.c (fprint_field): New function.
1884 (fprint_frame_id): Use fprint_field.
1885
31941f6d
JB
18862004-07-15 Joel Brobecker <brobecker@gnat.com>
1887
1888 * ada-lang.c (ada_language_defn): Remove commented out code.
1889
f86a7158
JB
18902004-07-15 Jim Blandy <jimb@redhat.com>
1891
1892 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1893 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1894
c24791ec
JB
18952004-07-14 Jim Blandy <jimb@redhat.com>
1896
29bb1356
JB
1897 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1898
cc98b5cc
JB
1899 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1900
8f088af7
JB
1901 * ppc-tdep.h (ppc_num_srs): New enum constant.
1902
0ea0ec5f
JB
1903 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1904 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1905 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1906 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1907 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1908 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1909 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1910 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1911 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1912 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1913 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1914 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1915 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1916 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1917 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1918 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1919 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1920 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1921 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1922 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1923 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1924 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1925 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1926 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1927 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1928 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1929 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1930 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1931 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1932 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1933 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1934 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1935 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1936 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1937 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1938 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1939 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1940 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1941 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1942 special-purpose register numbers.
1943
c24791ec
JB
1944 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1945 manual mentions 'md_twb', but many mention 'm_twb', and at that
1946 point in the register list.)
1947
d833db3b
AC
19482004-07-14 Andrew Cagney <cagney@gnu.org>
1949
1950 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1951 instead of "internal-error".
1952
080228b2
JB
19532004-07-10 Joel Brobecker <brobecker@gnat.com>
1954
1955 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1956 that was inserted inside a comment.
1957
c268433a
RC
19582004-07-10 Randolph Chung <tausq@debian.org>
1959
1960 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1961 function.
1962 (hppa_hpux_push_dummy_code): New function.
1963 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1964 Set find_global_pointer method.
1965
71009278
MK
19662004-07-10 Mark Kettenis <kettenis@gnu.org>
1967
1968 * NEWS: Mention BSD libkvm interface.
1969
b2fa5097
MS
19702004-07-10 Michael Snyder <msnyder@redhat.com>
1971
1972 * symfile.c (generic_load): Comment typo.
1973 * stack.c (get_selected_block): Ditto.
1974 * regcache.c (regcache_cooked_read): Ditto.
1975 * monitor.c (monitor_debug): Ditto.
1976 * mips-tdep.c (mips_read_pc): Ditto.
1977 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1978 * gdb_mbuild.sh: Ditto.
1979 * gdbarch.sh: Ditto.
1980 * gdbarch.h: Ditto.
1981
c3e5cd34
PH
19822004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1983
8a2225b2
PH
1984 * ada-tasks.c: Remove file.
1985
c3e5cd34
PH
1986 Remove ARI problems:
1987
1988 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1989 beginning of line.
1990
1991 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1992 Add comment.
1993 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1994 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1995 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1996 (UMIN_OF_SIZE): Remove.
1997 (max_of_type): New function to replace orphan macro in gdbtypes.h
1998 (min_of_type): Ditto.
1999 (discrete_type_high_bound): Use max_of_type.
2000 (discrete_type_low_bound): Use min_of_type.
2001 (possible_user_operator_p): Move operator to beginning of line.
2002 (ada_is_variant_part): Ditto.
2003 (ensure_lval): Rewrite to avoid deprecated operations.
2004 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2005 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2006 (ada_enum_name): Remove assignments in 'if' statements.
2007 (build_ada_types): Add gdbarch parameter.
2008 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2009 with gdbarch_data_register_post_init.
2010 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2011 add_show_from_set.
2012
2013 * ada-valprint.c (inspect_it): Remove declaration.
2014 (repeat_count_threshold): Remove declaration.
2015 (ada_print_floating): Remove assignments in 'if' statements.
2016 (print_str): Move operator to beginning of line.
2017
61ce229a
JB
20182004-07-08 Jim Blandy <jimb@redhat.com>
2019
2020 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2021
09bcec80
BR
20222004-07-08 Bob Rossi <bob@brasko.net>
2023
2024 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2025
31c27f77
JJ
20262004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2027
2028 * language.h (struct_language_defn): Add new function pointer:
2029 la_class_name_from_physname. Also add new prototype for
2030 language_class_name_from_physname.
2031 * language.c (language_class_name_from_physname): New function.
2032 (unk_lang_class_name): Ditto.
2033 (unknown_language_defn, auto_language_defn): Change
2034 to add unk_lang_class_name function pointer for
2035 la_class_name_from_physname.
2036 (local_language_defn): Ditto.
2037 * dwarf2read.c (guess_structure_name): Change to call
2038 language_class_name_from_physname.
2039 (determine_class_name): Ditto.
2040 * cp-support.c (class_name_from_physname): Renamed.
2041 (cp_class_name_from_physname): New name of function.
2042 * cp-support.h: Ditto.
2043 * c-lang.c (c_language_defn): Change to add NULL
2044 for class_name_from_physname function pointer.
2045 (cplus_language_defn): Change to add cp_class_name_from_physname.
2046 * jv-lang.c (java_class_name_physname): New function.
2047 (java_find_last_component): New static routine.
2048 (java_language_defn): Add java_class_name_from_physname pointer.
2049 * ada-lang.c (ada_language_defn): Change to add NULL
2050 for class_name_from_physname function pointer.
2051 * f-lang.c (f_language_defn): Ditto.
2052 * m2-lang.c (m2_language_defn): Ditto.
2053 * objc-lang.c (objc_language_defn): Ditto.
2054 * p-lang.c (pascal_language_defn): Ditto.
2055 * scm-lang.c (scm_language_defn): Ditto.
2056
ee28ca0f
AC
20572004-07-06 Andrew Cagney <cagney@gnu.org>
2058
2059 Patch from Bart Robinson.
2060 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2061 (O_LARGEFILE): Define to 0, if not defined.
2062
fdb1bf9d
MK
20632004-07-03 Mark Kettenis <kettenis@gnu.org>
2064
cb162ff6
MK
2065 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2066 <machine/pcb.h> and "bsd-kvm.h".
2067 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2068 (m68kbsd_supply_pcb): New function.
2069 (_initialize_m68kbsd_nat): New prototype and function.
2070 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2071 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2072 (LOADLIBES): New variable.
2073 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2074 (LOADLIBES): New variable.
2075
fdb1bf9d
MK
2076 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2077
963c4174
MK
20782004-07-03 Mark Kettenis <kettenis@gnu.org>
2079
2080 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2081 <sys/proc.h>.
2082 (bsd_kvm_cmdlist): New variable.
2083 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2084 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2085 command and "kvm proc" command.
2086 * Makefile.in (bsd-kvm.o): Update dependencies.
2087
533f1d8f
MK
20882004-07-02 Mark Kettenis <kettenis@gnu.org>
2089
2090 * osabi.c: Update copyright year.
2091 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2092 notes if EI_OSABI is set to ELFOSABI_HPUX.
2093
6780dcde
MS
20942004-07-01 Michael Snyder <msnyder@redhat.com>
2095
2096 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2097 that seems to have gotten whacked out of line.
2098
67bebe79
MK
20992004-07-01 Mark Kettenis <kettenis@gnu.org>
2100
2101 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2102 code.
2103
0b5d8877
PH
21042004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2105
2106 * ada-lang.c (decode_packed_array): Minor change to comment.
2107 (ada_value_slice_ptr): New function.
2108 (ada_value_slice): New function.
2109 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2110 test. Don't know why it is there.
2111 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2112 to avoid dereferencing huge arrays from which one is slicing.
2113 (empty_array): Correct to return an array rather than
2114 a subrange value.
2115 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2116 on empty arrays (let'em use 'FIRST instead).
2117
19c1ef65
PH
21182004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2119
2120 Address complaints from gdb_ari.sh:
2121
2122 * ada-exp.y: Include gdb_string.h rather than string.h.
2123 (convert_char_literal): Reformat declaration.
2124 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2125 * ada-lex.l: Change use of free to xfree (the macro would do so
2126 anyway, but this is harmless).
2127 Include gdb_string.h rather than string.h.
2128 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2129
2130 * ada-lang.c (parse): Remove K&Rism in parameter list.
2131 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2132
d81cbc94
MK
21332004-06-30 Mark Kettenis <kettenis@gnu.org>
2134
2135 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2136 dead code.
2137
07681759
MK
21382004-06-30 Mark Kettenis <kettenis@gnu.org>
2139
2140 * alphabsd-nat.c: Update copyright year.
2141 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2142
f7948b5f
JB
21432004-06-29 Joel Brobecker <brobecker@gnat.com>
2144
6e0cdd28 2145 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2146 (i386_cygwin_in_solib_call_trampoline): New function.
2147 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2148 and skip_trampoline_code gdbarch methods.
2149
8f113c9a
JB
21502004-06-29 Jim Blandy <jimb@redhat.com>
2151
2152 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2153 name actually used in the dependency lists.
2154
97dc871c
RC
21552004-06-29 Randolph Chung <tausq@debian.org>
2156
2157 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2158
47216e51
CV
21592004-06-29 Corinna Vinschen <vinschen@redhat.com>
2160
2161 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2162 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2163 functionality.
2164
e623b504
AC
21652004-06-28 Andrew Cagney <cagney@gnu.org>
2166
2167 * defs.h (xstrvprintf): Declare.
2168 * utils.c (xstrvprintf): New function.
2169 (internal_vproblem, xstrprintf, xasprintf)
2170 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2171 * serial.c (serial_printf): Ditto.
2172 * complaints.c (vcomplaint): Ditto.
2173
79acc9b3
CV
21742004-06-29 Corinna Vinschen <vinschen@redhat.com>
2175
2176 * infcmd.c (attach_command): Move call to target_terminal_inferior
2177 behind loading symbol table.
2178
1daf35d9
AC
21792004-06-28 Andrew Cagney <cagney@gnu.org>
2180
2181 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2182 change - add back extern deprecated_ui_loop_hook declaration.
2183
b435e160
AC
21842004-06-28 Andrew Cagney <cagney@gnu.org>
2185
2186 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2187 xstrprintf.
2188 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2189 (c_value_of_variable): Ditto.
2190 * utils.c (internal_vproblem): Ditto.
2191 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2192 * remote.c (add_packet_config_cmd): Ditto.
2193 * remote-rdp.c (rdp_set_command_line): Ditto.
2194 * regcache.c (regcache_dump): Ditto.
2195 * frv-tdep.c (new_variant, new_variant): Ditto.
2196 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2197 (fbsd_find_memory_regions): Ditto.
2198 * breakpoint.c (create_thread_event_breakpoint)
2199 (create_breakpoints): Ditto.
2200 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2201 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2202
06d5cf63
JB
22032004-06-28 Joel Brobecker <brobecker@gnat.com>
2204
2205 * ada-lang.c: Re-indent file, with some massaging to help indent
2206 a bit when the result is otherwise really too ugly.
2207
35809fad
UW
22082004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2209
2210 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2211 code_addr_p and special_addr_p to 'unsigned int'.
2212
40e20472
MK
22132004-06-27 Mark Kettenis <kettenis@gnu.org>
2214
2215 * i386v4-nat.c: Update copyright year and tweak comment.
2216 (regmap): Remove trailing comma.
2217 (supply_gregset): Rename local variable i to regnum. Call
2218 regcache_raw_supply instead of supply_register.
2219 (fill_gregset): Rename argument regno to regnum. Call
2220 regcache_raw_collect instead of regcache_collect.
2221
12b0b6de
UW
22222004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2223
2224 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2225 and special_addr_p.
2226 (frame_id_build, frame_id_build_special): Update comments.
2227 (frame_id_build_wild): New prototype.
2228 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2229 struct frame_id fields.
2230 (frame_id_build_wild): New function.
2231 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2232
47b42a3e
MK
22332004-06-27 Mark Kettenis <kettenis@gnu.org>
2234
2235 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2236 hppabsd-tdep.c.
2237
1265e4aa
JB
22382004-06-27 Joel Brobecker <brobecker@gnat.com>
2239
2240 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2241
76a01679
JB
22422004-06-27 Joel Brobecker <brobecker@gnat.com>
2243
2244 * ada-lang.c: Re-indent file.
2245
7aca490a
JB
22462004-06-27 Joel Brobecker <brobecker@gnat.com>
2247
2248 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2249 (no_symtab_msg): Likewise.
2250
5e987968
AS
22512004-06-27 Andreas Schwab <schwab@suse.de>
2252
2253 * source.c: Fix whitespace.
2254
315c4276
MK
22552004-06-27 Mark Kettenis <kettenis@gnu.org>
2256
d15be926
MK
2257 * configure.in: Include <sys/param.h> for td_pcb test.
2258 * configure: Regenerated.
2259
9062529b
MK
2260 * i386nbsd-nat.c: New file.
2261 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2262 i386obsd-nat.c and i386obsd-tdep.c.
2263 (i386nbsd-nat.o): New dependency.
2264 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2265 bsd-kvm.o.
2266 (LOADLIBES): New variable.
2267 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2268 bsd-kvm.o.
2269 (LOADLIBES): New variable.
2270
8010310e
MK
2271 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2272 (LOADLIBES): New variable.
2273
efe1d7b9
MK
2274 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2275 fetching from BSD_KVM_PADDR. Correctly lookup address for
2276 "_thread0".
2277
315c4276
MK
2278 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2279 "bsd-kvm.h".
2280 (amd64fbsd_supply_pcb): New funcion.
2281 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2282
399cfac6
DL
22832004-06-27 <david@streamline-computing.com>
2284
2285 Partial fix for PR cli/1056.
2286 * valarith.c: Check for zero in division and remainder
2287 evaluation.
2288
6235f9c8
MK
22892004-06-27 Mark Kettenis <kettenis@gnu.org>
2290
2291 * i387-tdep.c: Remove excessive whitespace.
2292
2726dafc
AC
22932004-06-26 Andrew Cagney <cagney@gnu.org>
2294
2295 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2296 * gdb-events.h, gdb-events.c: Re-generate.
2297 * tui/tui-hooks.c (tui_install_hooks): Update.
2298 (tui_remove_hooks): Update.
2299 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2300
0e56aeaf
MK
23012004-06-26 Mark Kettenis <kettenis@gnu.org>
2302
cb461069
MK
2303 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2304 (gregset_t, fpregset_t): Remove typedefs.
2305 (REG_OFFSET): Rename argument.
2306 (amd64bsd_r_reg_offset): Rename from reg_offset.
2307 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2308 Remove functions.
2309 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2310 of reg_offset.
2311 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2312
ecba89de
MK
2313 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2314
4cd80476
MK
2315 * vax-tdep.c: Tweak comment.
2316
0e56aeaf
MK
2317 Add OpenBSD/hppa support.
2318 * NEWS (New native configurations): Mention OpenBSD/hppa.
2319 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2320 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2321 files.
2322 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2323 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2324 * configure.host: Add hppa*-*-openbsd*.
2325 * configure.tgt: Add hppa*-*-openbsd*.
2326
98bbd631
AC
23272004-06-25 Andrew Cagney <cagney@gnu.org>
2328
2329 * defs.h (deprecated_ui_loop_hook): Deprecated.
2330 * wince.c (child_wait): Update.
2331 * win32-nat.c (child_wait): Update.
2332 * v850ice.c (v850ice_wait): Update.
2333 * top.c (deprecated_ui_loop_hook): Update.
2334 * serial.h: Update.
2335 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2336 (do_unix_readchar): Update.
2337 * ser-tcp.c (net_open): Update.
2338 * remote-sim.c (gdb_os_poll_quit): Update.
2339 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2340
769d7dc4
AC
23412004-06-24 Andrew Cagney <cagney@gnu.org>
2342
2343 * defs.h (deprecated_pre_add_symbol_hook)
2344 (deprecated_post_add_symbol_hook): Deprecated.
2345 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2346 (symbol_file_add_with_addrs_or_offsets): Update references.
2347
11c949aa
AC
23482004-06-24 Andrew Cagney <cagney@gnu.org>
2349
2350 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2351 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2352 * wince.c (ui_loop_hook): Delete extern declaration.
2353 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2354 * v850ice.c (ui_loop_hook): Delete extern declaration..
2355 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2356 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2357 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2358 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2359 ui_loop_hook declaration.
2360
eedc19af
AC
23612004-06-24 Andrew Cagney <cagney@gnu.org>
2362
2363 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2364 entry_func_highpc fields.
2365 * objfiles.c (init_entry_point_info): Do not clear
2366 entry_func_lowpc and entry_func_highpc.
2367 (objfile_relocate): Do not relocate entry_func_lowpc and
2368 entry_func_highpc.
2369 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2370 entry_func_highpc.
2371 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2372 entry_func_highpc.
2373 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2374 entry_func_lowpc and entry_func_highpc with call to
2375 inside_entry_func.
2376
d47079be
MK
23772004-06-24 Mark Kettenis <kettenis@gnu.org>
2378
2379 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2380 quad-precision floating point arguments in registers.
2381
2107e348
MK
23822004-06-24 Mark Kettenis <kettenis@gnu.org>
2383
2384 From Michael Mueller <m.mueller99@kay-mueller.de>:
2385 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2386 account.
2387
46587c42
JJ
23882004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2389
2390 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2391 to -1.
2392 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2393 untriggered watchpoints to a separate if clause. Update function
2394 comment regarding STOPPED_BY_WATCHPOINT argument.
2395
226f5cf4
JB
23962004-06-22 Jim Blandy <jimb@redhat.com>
2397
2398 * gdbarch.sh: Doc fix.
2399
f10683bb
MH
24002004-06-21 Martin Hunt <hunt@redhat.com>
2401 Kevin Buettner <kevinb@redhat.com>
2402
2403 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2404 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2405 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2406 to set_gdbarch_sp_regnum(). Use cooked register number.
2407 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2408
412d5987
AC
24092004-06-21 Andrew Cagney <cagney@gnu.org>
2410
2411 * gdbarch.sh: When the macro field is empty, do not generate a
2412 macro definition. When the macro field is "=", generate the macro
2413 name from the upper-case function name.
2414 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2415 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2416 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2417 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2418 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2419 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2420 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2421 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2422 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2423 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2424 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2425 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2426 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2427 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2428 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2429 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2430 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2431 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2432 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2433 (DEPRECATED_USE_STRUCT_CONVENTION)
2434 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2435 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2436 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2437 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2438 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2439 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2440 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2441 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2442 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2443 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2444 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2445 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2446 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2447 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2448 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2449 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2450 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2451 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2452
68908a3e
AC
24532004-06-21 Andrew Cagney <cagney@gnu.org>
2454
48f7351b
AC
2455 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2456 macro name, and the function rather than macro value. Only wrap
2457 macro print statements in #ifdef. Move format logic to where it
2458 is needed.
2459 * gdbarch.c: Re-generate.
2460
283354d8
AC
2461 * gdbarch.sh (read): Delete "print_p" and "description", add
2462 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2463 Delete references to print_p.
2464 (TARGET_ARCHITECTURE): Delete print predicate.
2465 * gdbarch.c: Re-generate.
2466
68908a3e
AC
2467 * gdbarch.sh: Check that multi-arch methods do not provide a
2468 macro.
2469 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2470 (print_registers_info, print_float_info, print_vector_info)
2471 (adjust_breakpoint_address, remote_translate_xfer_address)
2472 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2473 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2474 name from the multi-arch definition.
2475
a2428dbe
AC
24762004-06-20 Andrew Cagney <cagney@gnu.org>
2477
2478 * gdbarch.sh: Sort by the function, instead of macro name.
2479 * gdbarch.c: Re-generate.
2480
750eb019
AC
24812004-06-20 Andrew Cagney <cagney@gnu.org>
2482
66d659b1
AC
2483 * gdbarch.sh: Use the function, instead of macro name in
2484 errors and the log file.
2485 (return_value): Remove stray ":" in spec.
2486
750eb019
AC
2487 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2488 * gdbarch.h, gdbarch.c: Re-generate.
2489 * Makefile.in (arch-utils.o): Update dependencies.
2490 * values.c (using_struct_return): Move code calling
2491 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2492 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2493 to legacy_return_value, simplify.
2494 * infcmd.c (print_return_value): Move code calling
2495 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2496 to legacy_return_value, simplify.
2497 * infcall.c (call_function_by_hand): Move code calling
2498 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2499 * arch-utils.c: Update copyright. Include "gdbcore.h".
2500 (legacy_return_value): New function.
2501 * arch-utils.h: Update copyright.
2502 (legacy_return_value): Declare.
2503
b5622e8d
AC
25042004-06-20 Andrew Cagney <cagney@gnu.org>
2505
2506 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2507 * gdbarch.h, gdbarch.c: Re-generate.
2508 * values.c (using_struct_return): Update call.
2509 * mcore-tdep.c: Update comment.
2510 * infcall.c (call_function_by_hand): Update comment.
2511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2512 * arch-utils.h (always_use_struct_convention): Update.
2513 * v850-tdep.c (v850_gdbarch_init): Update.
2514 * sh64-tdep.c (sh64_gdbarch_init): Update.
2515 * sh-tdep.c (sh_gdbarch_init): Update.
2516 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2517 * mips-tdep.c (mips_gdbarch_init): Update.
2518 * mcore-tdep.c (mcore_gdbarch_init): Update.
2519 * m32r-tdep.c (m32r_gdbarch_init): Update.
2520 * ia64-tdep.c (ia64_gdbarch_init): Update.
2521 * h8300-tdep.c (h8300_gdbarch_init): Update.
2522 * frv-tdep.c (frv_gdbarch_init): Update.
2523 * cris-tdep.c (cris_gdbarch_init): Update.
2524 * arm-tdep.c (arm_gdbarch_init): Update.
2525 * alpha-tdep.c (alpha_gdbarch_init): Update.
2526
5191de37
MC
25272004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2528
2529 * PROBLEMS: Add more specific information, and a work-around,
2530 for PR gdb/1458.
2531
782263ab
AC
25322004-06-18 Andrew Cagney <cagney@gnu.org>
2533
2534 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2535 * gdbarch.h, gdbarch.c: Re-generate.
2536 * ada-lang.c (ada_finish_decode_line_1): Update.
2537 * infrun.c (handle_inferior_event): Update.
2538 * infcall.c (find_function_addr): Update.
2539 * linespec.c (minsym_found): Update.
2540 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2541 Update.
2542 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2543 * cli/cli-cmds.c (disassemble_command): Update.
2544 * vax-tdep.c (vax_gdbarch_init): Update.
2545
2f305df1
MK
25462004-06-18 Mark Kettenis <kettenis@gnu.org>
2547
2548 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2549
e5fe55f7
AC
25502004-06-17 Andrew Cagney <cagney@gnu.org>
2551
2552 GDB 6.1.1 released from the GDB 6.1 branch.
2553 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2554 * PROBLEMS: Ditto.
2555
473b7be6
DJ
25562004-06-16 Daniel Jacobowitz <dan@debian.org>
2557
2558 PR gdb/1658
2559 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2560 operation as a uleb128. Found by Michael Coulter.
2561
96d887e8
PH
25622004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2563
2564 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2565 make it non-static.
2566 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2567 to ada-lang.h; this is needed to be able to implement the kill command
2568 in multi-task mode.
2569 (task_ptid): Ditto.
2570 (task_entry): Ditto.
2571 (task_list): Ditto.
2572 (ada_build_task_list): Ditto.
2573
2574 * ada-lang.c: Conditionalize routines and data structures related
2575 to breakpoints, exceptions, completion, and symbol caching on
2576 GNAT_GDB, since these are not yet used in the submitted public sources.
2577 (ada_main_name): Editorial: Move definition out of exception-related
2578 code.
2579
31eef181
AC
25802004-06-15 Andrew Cagney <cagney@gnu.org>
2581
2582 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2583 deprecated_pc_in_call_dummy.
2584
2c500098
AM
25852004-06-15 Alan Modra <amodra@bigpond.net.au>
2586
2587 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2588 bfd_get_section_size_before_reloc or _raw_size.
2589 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2590 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2591 (dwarf2_read_section): Likewise.
2592 * elfread.c (elf_locate_sections): Likewise.
2593 * gcore.c (derive_heap_segment): Likewise.
2594 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2595 * remote-e7000.c (e7000_load): Likewise.
2596 * remote-m32r-sdi.c (m32r_load): Likewise.
2597 * remote-mips.c (mips_load_srec): Likewise.
2598 (pmon_load_fast): Likewise.
2599 * remote.c (compare_sections_command): Likewise.
2600 * symfile.c (add_section_size_callback): Likewise.
2601 (load_section_callback): Likewise.
2602 (pc_in_unmapped_range): Likewise.
2603 (pc_in_mapped_range): Likewise.
2604 (sections_overlap): Likewise.
2605 (list_overlays_command): Likewise.
2606 (simple_overlay_update_1): Likewise.
2607 (simple_overlay_update): Likewise.
2608 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2609 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2610
90f943f1
RC
26112004-06-14 Randolph Chung <tausq@debian.org>
2612
2613 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2614 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2615 static.
2616 (hppa_hpux_inferior_created): New function.
2617 (hppa_hpux_init_abi): Register observer.
2618 * symfile.c (hp_cxx_exception_support_initialized)
2619 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2620 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2621
700c15aa
RC
26222004-06-14 Randolph Chung <tausq@debian.org>
2623
3973a7d3
AC
2624 * MAINTAINERS (Write After Approval): Alphabetize my entry
2625 correctly.
700c15aa 2626
cea4838c
AC
26272004-06-14 Andrew Cagney <cagney@gnu.org>
2628
2629 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2630 testsuite maintainer.
2631
97092415
AC
26322004-06-13 Andrew Cagney <cagney@gnu.org>
2633
e8c3165b
AC
2634 * infcmd.c (print_return_value): Fix logic, allow
2635 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2636
bceabdd8
AC
2637 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2638 defining any macros.
2639 * gdbarch.h: Re-generate.
2640
57010b1c
AC
2641 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2642 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2643 * gdbarch.h: Re-generate.
2644
bc87dfa0
AC
2645 * values.c (generic_use_struct_convention): Don't check gcc_p.
2646
15ac804d
AC
2647 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2648 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2649 * gdbarch.h, gdbarch.c: Regenerate.
2650 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2651 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2653 deprecated_max_register_raw_size and
2654 deprecated_max_register_virtual_size.
2655 * v850-tdep.c (v850_gdbarch_init): Ditto.
2656 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2657 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2658 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2659 * cris-tdep.c (cris_gdbarch_init): Ditto.
2660
97092415
AC
2661 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2662 * gdbarch.h, gdbarch.c: Re-generate.
2663 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2664 (m68hc11_use_struct_convention): Delete function.
2665 (m68hc11_extract_struct_value_address): Delete function.
2666 (m68hc11_return_value): New function.
2667 (m68hc11_gdbarch_init): Instead of store_return_value,
2668 extract_return_value, return_value_on_stack,
2669 deprecated_extract_struct_value_address and use_struct_convention,
2670 set return_value.
2671 * values.c (using_struct_return): Do not call
2672 RETURN_VALUE_ON_STACK.
2673 * arch-utils.h (generic_return_value_on_stack_not): Delete
2674 declaration.
2675 * arch-utils.c (generic_return_value_on_stack_not): Delete
2676 function.
2677
44e5158b
AC
26782004-06-12 Andrew Cagney <cagney@gnu.org>
2679
2680 * values.c (register_value_being_returned): Delete function.
2681 * infcmd.c (legacy_return_value): Delete function.
2682 * infcall.c (call_function_by_hand): Inline
2683 "register_value_being_returned", simplify.
2684 * values.c (using_struct_return): Update comment, refer to
2685 print_return_value instead of register_value_being_returned.
2686 * infcmd.c (print_return_value): Inline calls to
2687 register_value_being_returned and legacy_return_value. Simplify.
2688
b887c273
RC
26892004-06-11 Randolph Chung <tausq@debian.org>
2690
2691 * somread.c (som_symtab_read): Exclude gcc local symbols.
2692
1b2bfbb9
RC
26932004-06-11 Randolph Chung <tausq@debian.org>
2694
3973a7d3
AC
2695 * infrun.c (handle_inferior_event): Handle the case when a
2696 trampoline ends up in the runtime resolver, and if the trampoline
2697 has no name. Rearrange the code so that all the trampoline
2698 processing happens before other step-out-of-range handling.
1b2bfbb9 2699
a9d61c86
MH
27002004-06-11 Martin Hunt <hunt@redhat.com>
2701
2702 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2703 has no fpu.
2704
2c87cf5a
AC
27052004-06-10 Andrew Cagney <cagney@gnu.org>
2706
2707 * blockframe.c (legacy_inside_entry_func): Delete.
2708 (legacy_frame_chain_valid): Inline call to
2709 legacy_inside_entry_func, simplify.
2710
0b67b468 27112004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2712
2713 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2714 * dwarf2read.c (partial_die_info): Add dirname field.
2715 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2716 (read_partial_die): Save away DW_AT_comp_dir.
2717 * defs.h (symtab_to_filename): Removed.
2718 * source.c (find_and_open_source): Added.
57c22c6c 2719 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2720 (symtab_to_filename): Removed.
2721 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2722 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2723 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2724 symtab_to_filename.
2725 * symtab.h (partial_symtab): Add dirname field.
2726 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2727 (mi_cmd_file_list_exec_source_file): Call new function
2728 symtab_to_fullname to find fullname.
57c22c6c 2729 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2730 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2731 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2732
9a1dd1ad
AC
27332004-06-10 Andrew Cagney <cagney@gnu.org>
2734
239ae8c7
AC
2735 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2736 to generic_use_struct_convention, the default value.
2737
fc720350
AC
2738 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2739 of abort.
2740
9a1dd1ad
AC
2741 * ns32k-tdep.c (ns32k_push_arguments): New function.
2742 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2743 * infcall.c (call_function_by_hand): Call error instead of
2744 legacy_push_arguments.
2745 * value.h (legacy_push_arguments): Delete declaration.
2746 * valops.c (legacy_push_arguments): Delete function.
2747 (value_push): Delete function.
2748
fea25152
BF
27492004-06-10 Brian Ford <ford@vss.fsi.com>
2750
2751 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2752 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2753 info.
2754 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2755
30a4a8e0
AC
27562004-06-10 Andrew Cagney <cagney@gnu.org>
2757
2758 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2759 * gdbarch.h, gdbarch.c: Re-generate.
2760 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2761 parameters.
2762 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2763 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2764 deprecated_pc_in_call_dummy instead of
2765 DEPRECATED_PC_IN_CALL_DUMMY.
2766 (arm_skip_prologue): Ditto.
2767 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2768 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2769 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2770 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2771 Ditto.
2772 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2773 (sh64_init_extra_frame_info, sh64_get_saved_register)
2774 (sh64_pop_frame): Ditto.
2775 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2776 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2777 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2778 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2779 (h8300_pop_frame): Ditto.
2780 * blockframe.c (legacy_inside_entry_func)
2781 (legacy_frame_chain_valid): Ditto.
2782 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2783 to deprecated_pc_in_call_dummy.
2784
81cfbe54
AC
27852004-06-09 Andrew Cagney <cagney@gnu.org>
2786
a1f4a1b6
AC
2787 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2788 provide a default value.
2789 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2790 * gdbarch.h, gdbarch.c: Re-generate.
2791 * arch-utils.c (generic_convert_register_p): Rename
2792 legacy_convert_register_p
2793 (legacy_register_to_value, legacy_value_to_register): Delete
2794 functions.
2795 * arch-utils.h (generic_convert_register_p): Rename
2796 legacy_convert_register_p.
2797 (legacy_register_to_value, legacy_value_to_register): Delete
2798 declarations.
2799
9730f241
AC
2800 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2801 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2802 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2803 * gdbarch.h, gdbarch.c: Re-generate.
2804 * infcmd.c (default_print_registers_info): Simplify.
2805 * findvar.c (value_of_register): Simplify.
2806 * mi/mi-main.c (get_register): Simplify.
2807 * arch-utils.c (legacy_convert_register_p): Always return 0.
2808 (legacy_register_to_value, legacy_value_to_register): Always call
2809 internal_error.
2810
8a1bf479
AC
2811 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2812 #ifdef CLEAR_INSN_CACHE code.
2813 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2814 Delete #ifdef CLEAR_DEFERRED_STORES code.
2815
4b38d6f1
AC
2816 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2817
2d62ecc7
AC
2818 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2819 copyright.
2820 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2821
be4f7469
AC
2822 * config/mips/mipsv4.mh: Delete file.
2823
81cfbe54
AC
2824 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2825 unreferenced macro.
2826 (hpread_adjust_stack_address): Delete declaration.
2827
d966f0cb
AC
28282004-06-08 Andrew Cagney <cagney@gnu.org>
2829
2830 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2831 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2832 PTRACE_ATTACH / PTRACE_DETACH available call error.
2833 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2834 * infttrace.c (update_thread_state_after_attach, attach, detach):
2835 Remove #ifdef wrappers.
2836 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2837 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2838 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2839 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2840 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2841 * config/nm-linux.h (ATTACH_DETACH): Delete.
2842 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2843 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2844 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2845 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2846 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2847
d91670b9
CV
28482004-06-08 Corinna Vinschen <vinschen@redhat.com>
2849
2850 * configure.in: Set $configdir to the right OS specific value.
2851 Use value when setting $tcldir and $tkdir.
2852 * configure: Regenerate.
2853
28ba0b33
PB
28542004-06-06 Paul Brook <paul@codesourcery.com>
2855
2856 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2857 records.
2858
f26caa11
PH
28592004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2860
2861 * ada-lang.c (lookup_symbol_in_language): New function to allow
2862 re-use of another language's symbol lookup code. (Placed here
2863 temporarily while Ada support is being integrated into the public
2864 tree).
2865 (restore_language): New auxiliary function for
2866 lookup_symbol_in_language.
2867 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2868 temporarily while Ada support is being integrated into the public
2869 tree).
2870
d560a54b
AO
28712004-06-08 Alexandre Oliva <aoliva@redhat.com>
2872
e75d110c
AO
2873 * Makefile.in (check//%): New.
2874
d560a54b
AO
2875 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2876 (mn10300_store_return_value): Rewrite.
2877 (mn10300_type_align): New.
2878 (mn10300_use_struct_convention): Rewrite.
2879 (mn10300_return_value): New, using all of the above.
2880 (mn10300_pop_frame_regular): Add saved_regs_size.
2881 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2882
a72fbdb7
AO
2883 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2884 regs if PC is on movm.
2885
01904826
JB
28862004-06-07 Jim Blandy <jimb@redhat.com>
2887
2888 Add native Linux support for the PowerPC E500.
2889 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2890 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2891 all architectures except the E500.
2892 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2893 #definitions.
2894 (struct gdb_evrregset_t): New type.
2895 (have_ptrace_getsetevrregs): New variable.
2896 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2897 fetch_spe_registers): New functions.
2898 (fetch_register): Call fetch_spe_register as appropriate.
2899 Assert that we're only passed raw register numbers.
2900 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2901 Don't fetch gprs if they're pseudoregisters.
2902 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2903 store_spe_registers): New functions.
2904 (store_register): Call store_spe_register as appropriate.
2905 Assert that we're only passed raw register numbers.
2906 (store_ppc_registers): Call store_spe_registers as appropriate.
2907 Don't store gprs if they're pseudoregisters.
2908
f90ef764
JJ
29092004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2910
2911 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2912 struct if one exists, even if we are dealing with a zombie thread.
2913
45b75230
AC
29142004-06-07 Andrew Cagney <cagney@gnu.org>
2915
2916 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2917 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2918 Rename PC_REQUIRES_RUN_BEFORE_USE.
2919 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2920 #ifdef.
2921
1658da49
RC
29222004-06-07 Randolph Chung <tausq@debian.org>
2923
2924 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2925 unwinding after sp has been saved to the stack but before the end
2926 of the prologue, and after the fp has been modified but before it has
2927 been saved to the stack.
2928 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2929 Remove superfluous definitions.
2930 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2931
9a727a3c
RC
29322004-06-07 Guy Martin <gmsoft@gentoo.org>
2933
2934 Committed by Randolph Chung.
2935 * hppa-linux-nat.c: Include the correct version of the header file
2936 depending on the kernel version.
2937
9e500012
RC
29382004-06-06 Randolph Chung <tausq@debian.org>
2939
2940 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2941 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2942
3388d7ff
RC
29432004-06-06 Randolph Chung <tausq@debian.org>
2944
2945 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2946 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2947 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2948 * hppa-tdep.c (hppa_symbol_address): New function definition.
2949 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2950
d49771ef
RC
29512004-06-06 Randolph Chung <tausq@debian.org>
2952
2953 * hppa-tdep.h (struct value): Forward declaration.
2954 (gdbarch_tdep): Define tdep find_global_pointer method.
2955 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2956 associated with the function we are trying to call, and write it
2957 to the gp register.
2958 (hppa32_convert_from_funct_ptr_addr): New function.
2959 (hppa_find_global_pointer): New function.
2960 (hppa_gdbarch_init): Set default find_global_pointer method; set
2961 convert_from_func_ptr_addr method.
2962 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2963 (hppa_linux_init_abi): Set find_global_pointer method.
2964 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2965
7d9b040b
RC
29662004-06-06 Randolph Chung <tausq@debian.org>
2967
2968 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2969 to struct value *function.
2970 * gdbarch.c: Regenerate.
2971 * gdbarch.h: Likewise.
2972 * infcall.c (call_function_by_hand): Pass entire function value
2973 to push_dummy_call.
2974
2975 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2976 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2977 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2978 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2979 * arm-tdep.c (arm_push_dummy_call): Likewise.
2980 * avr-tdep.c (avr_push_dummy_call): Likewise.
2981 * cris-tdep.c (cris_push_dummy_call): Likewise.
2982 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2983 * frv-tdep.c (frv_push_dummy_call): Likewise.
2984 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2985 * hppa-tdep.c (hppa32_push_dummy_call)
2986 (hppa64_push_dummy_call): Likewise.
2987 * i386-tdep.c (i386_push_dummy_call): Likewise.
2988 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2989 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2990 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2991 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2992 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2993 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2994 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2995 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2996 (ppc64_sysv_abi_push_dummy_call): Likewise.
2997 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2998 (ppc64_sysv_abi_push_dummy_call): Likewise.
2999 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3000 * s390-tdep.c (s390_push_dummy_call): Likewise.
3001 * sh-tdep.c (sh_push_dummy_call_fpu)
3002 (sh_push_dummy_call_nofpu): Likewise.
3003 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3004 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3005 * vax-tdep.c (vax_push_dummy_call): Likewise.
3006
4a19ea35
JB
30072004-06-04 Jim Blandy <jimb@redhat.com>
3008
8327ccee
JB
3009 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3010 gdbarch argument to register_size.
3011
a3c001ce
JB
3012 * rs6000-tdep.c (rs6000_store_return_value): Use
3013 regcache_cooked_write_part instead of
3014 deprecated_write_register_bytes.
3015 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3016 not gdbarch_deprecated_store_return_value.
3017
4a19ea35
JB
3018 * ppc-linux-nat.c (store_register, fetch_register): Remove
3019 incorrect assertions. Simplify and generalize handling of
3020 transfers whose sizes are not multiples of, or less than, sizeof
3021 (PTRACE_XFER_TYPE).
3022
b9b5d7ea
JJ
30232004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3024
3025 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3026 as a new thread event.
720c7d64 3027 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3028 zombie, return TD_THR_ZOMBIE.
720c7d64 3029 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3030 TD_THR_ZOMBIE, check if the thread is still on the thread list
3031 and return a -1 ptid if not found.
3032 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3033 change the status to TARGET_WAITKIND_SPURIOUS.
3034
c8a3b559
CV
30352004-06-03 Corinna Vinschen <vinschen@redhat.com>
3036
3037 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3038 double values in little endian mode.
3039
20605361
AC
30402004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3041
3042 Committed by Andrew Cagney.
3043 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3044 after last enum constant to avoid error from IBM C
3045 compiler.
3046
bc97b3ba
JB
30472004-06-02 Jim Blandy <jimb@redhat.com>
3048
3049 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3050 to 'message', and make it local to the lone block that uses it.
3051
1da28ab0
JB
3052 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3053
4c4b4cd2
PH
30542004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3055
8a2225b2
PH
3056 * ada-exp.y: Update copyright notice.
3057 Include block.h.
3058
3059 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3060 SPECIAL_VARIABLE and unify the treatment of these cases.
3061
3062 (write_attribute_call0): Remove.
3063 (write_attribute_call1): Remove.
3064 (write_attribute_calln): Remove.
3065 (save_qualifier): Add missing semicolon.
3066
3067 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3068 temporarily disabled to allow compilation with FSF head version.
3069
3070 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3071 use individual operators (OP_*) for all attributes.
3072 (exp syntax): Use write_int.
3073 Handle STRING literals with OP_STRING.
3074 (variable syntax): Add limit parameter to calls to
3075 write_object_renaming.
3076
3077 (temp_parse_space): New definition to hold entities that need
3078 only live until the next call to ada_parse.
3079 (string_to_operator): Rename fields of ada_opname_table entries.
3080
3081 (write_var_from_sym): Record block.
3082 (write_var_from_name): Minor reformatting.
3083 Make sure saved name is properly encoded in the case of multiple
3084 matches, and set its language to Ada.
3085 Update comment.
3086 Modify to indicate unresolved name as symbol in the UNRESOLVED
3087 namespace, allocated in temp_parse_space.
3088 (write_int): New function.
3089
3090 (write_object_renaming): Add max_depth parameter to limit
3091 chains of object renamings.
3092 Handle case where root of renaming expression is itself a renaming.
3093 Use temp_parse_space for temporary name buffer.
3094 Handle renamings to dereferenced pointers (___XEXA suffices).
3095
3096 (ada_parse, yyerror, string_to_operator,
3097 write_var_from_sym, write_var_from_name, write_attribute_call0,
3098 write_attribute_call1, write_attribute_calln,
3099 write_object_renaming): Protoize.
3100
3101 (_initialize_ada_exp): New function.
3102
3103 * ada-lang.c: Update copyright notice.
3104 General terminology change to conform to GNAT compiler usage:
3105 mangle => encode, demangle => decode
3106 Include gdb_obstack.h.
3107 Include gdb_regex.h
3108 Include frame.h
3109 Include hashtab.h
3110 Include completer.h
3111 Include gdb_stat.h
3112 Include block.h
3113 Include infcall.h
3114
3115 (ADA_RETAIN_DOTS): Make sure this is defined.
3116 (TRUNCATION_TOWARDS_ZERO): Define.
3117 (struct string_vector): Define.
3118 (unresolved_names): Remove definition.
3119 (xnew_string_vector): New function.
3120 (string_vector_append): New function.
3121 (extract_string): Make static.
3122 (ada_unqualified_name): New function.
3123 (add_angle_brackets): New function.
3124 (function_name_from_pc): New function.
3125 (place_on_stack): Rename to ensure_lval.
3126
3127 (ensure_lval): Renamed from place_on_stack.
3128 Make identity on lvals.
3129 Update comment.
3130 (is_nonfunction): New interface.
3131 Only symbols in LOC_CONST class can be enumerals.
3132 (fill_in_ada_prototype): Remove; now independent of language.
3133 (add_defn_to_vec): Add obstack and symtab arguments.
3134 Use obstack to hold collected definitions.
3135 (num_defns_collected): New function.
3136 (defns_collected): New function.
3137 (ada_resolve_subexp): Rename to resolve_subexp.
3138 (resolve_subexp): Renamed from ada_resolve_subexp.
3139 (ada_op_name): Return non-const result.
3140 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3141 other purposes.
3142
3143 (to_fixed_array_type): Add declaration.
3144 (coerce_unspec_val_to_type): Remove offset parameter.
3145 (find_sal_from_funcs_and_line): New interface.
3146 (find_line_in_linetable): Ditto.
3147
3148 (all_sals_for_line): Rename to ada_sals_for_line and make
3149 global.
3150 Add new parameter. When set, do not ask the user to choose the
3151 instance, but use the first one found instead.
3152 Use given line number in returned sals.
3153 Fix comment.
3154 Skip the prologue if funfirstline is set.
3155 Correct for memory leak when 0 lines found.
3156
3157 (value_pos_atr): Use pos_atr.
3158 (pos_atr): New function.
3159 (standard_lookup): Add block parameter.
3160
3161 (makeTimeStart): Remove declaration and uses.
3162 (makeTimeStop): Remove declaration and uses.
3163
3164 (ada_completer_word_break_characters): Allow for VMS.
3165 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3166 (raise_sym_name): New constant.
3167 (raise_unhandled_sym_name): New constant.
3168 (raise_assert_sym_name): New constant.
3169 (process_raise_exception_name): New constant.
3170 (longest_exception_template): New constant.
3171 (warning_limit): New variable to limit warnings during expression
3172 evaluation.
3173 (warnings_issued): New variable to keep track of warnings issued.
3174 (known_runtime_file_name_patterns): New constant.
3175 (known_auxiliary_function_name_patterns): New constant.
3176 (symbol_list_obstack): New variable.
3177
3178 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3179 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3180 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3181 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3182 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3183 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3184 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3185 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3186 and strcmp.
3187
3188 (ada_get_field_index): New function.
3189 (lim_warning): New function.
3190 (ada_translate_error_message): New function.
3191 (MAX_OF_SIZE): New function.
3192 (MIN_OF_SIZE): New function.
3193 (UMAX_OF_SIZE): New function.
3194 (UMIN_OF_SIZE): New function.
3195 (discrete_type_high_bound): New function.
3196 (discrete_type_low_bound): New function.
3197 (base_type): New function.
3198 (do_command): Remove.
3199
3200 (ada_update_initial_language): Use language_ada, not language_unknown.
3201 (ada_encode): Renamed from ada_mangle.
3202 Obey ADA_RETAIN_DOTS.
3203 (ada_decode): Renamed from ada_demangle.
3204 Update coding conventions.
3205 (decoded_names_store): New hash table.
3206 (ada_decode_symbol): New function.
3207 (ada_la_decode): New function.
3208
3209 (modify_general_field): Correct computations of offset and bit
3210 position.
3211 (desc_base_type): Handle ref types, too.
3212 (ada_is_direct_array_type): New function.
3213
3214 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3215 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3216 (ada_is_bogus_array_descriptor,ada_type_of_array,
3217 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3218 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3219 ada_is_array_descriptor_type.
3220
3221 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3222 (ada_is_packed_array_type): Handle pointers or
3223 references to packed arrays as well.
3224 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3225 (decode_packed_array_type): Search for the packed array type
3226 symbol in the currently selected block and associated
3227 superblocks too.
3228 Use lookup_symbol again.
3229
3230 (decode_packed_array): Handle pointers and references.
3231 Update call to coerce_unspec_val_to_type.
3232 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3233 (ada_value_primitive_packed_val): Improve comment.
3234
3235 (ada_index_type): Substitute int type for "undefined".
3236 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3237 ada_array_langth, ada_is_string_type): Use renamed
3238 ada_is_simple_array_type.
3239 (empty_array): New function.
3240
3241 (ada_resolve): Rename to resolve.
3242 (resolve): Make static.
3243 Call renamed resolve_subexp.
3244 Update comment.
3245 (ada_resolve_subexp): Rename to resolve_subexp.
3246 (resolve_subexp): Update comment.
3247 Decomment disabled code.
3248 Add LOC_COMPUTED* cases.
3249 Modify to use temporary struct symbols (marked as being in
3250 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3251 OP_UNRESOLVED_VALUE.
3252 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3253 Add OP_STRING case.
3254 Remove OP_ARRAY.
3255 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3256 Use new ada_lookup_symbol_list interface.
3257 Use new ada_resolve_function interface.
3258 Remove OP_TYPE case.
3259
3260 (ada_args_match): Idiot proof against null actuals.
3261 Use intermediate variables to clarify.
3262 (ada_resolve_function): Update comment and interface.
3263 (mangled_ordered_before): Rename to encoded_ordered_before and
3264 update comment.
3265 (sort_choices): Update comment and interface.
3266 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3267 (user_select_syms): New interface.
3268 Use new sort_choices interface.
3269 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3270 (possible_user_operator_p): Idiot-proof against null values.
3271 (ada_simple_renamed_entity): Don't make cleanup; rely on
3272 caller to free result string.
3273 Remove const from return type.
3274 (make_array_descriptor): Rename uses of place_on_stack to
3275 ensure_lval.
3276 Make sure that arrays are on stack.
3277
3278 (HASH_SIZE): Define.
3279 (struct cache_entry): Define.
3280 (cache_space): Define.
3281 (cache): Define.
3282 (clear_ada_sym_cache): New function.
3283 (find_entry): New function.
3284 (lookup_cached_symbol): New function.
3285 (defn_vector_size): Define.
3286 (cache_symbol): New function.
3287 (defn_symbols): Remove.
3288
3289 (standard_lookup): Use lookup_symbol_in_language to get effect of
3290 C lookup.
3291 Cache results.
3292
3293 (symbol_completion_match): New function.
3294 (symbol_completion_add): New function.
3295 (ada_make_symbol_completion_list): New function.
3296
3297 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3298 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3299 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3300 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3301
3302 (ada_lookup_simple_minsym): New function.
3303 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3304
3305 (add_symbols_from_enclosing_procs): New interface.
3306 Conditionalize more helpfully.
3307 Don't bother if program isn't running.
3308 Use new interface to get_frame_block.
3309 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3310
3311 (remove_extra_symbols): New interface.
3312 (xget_renaming_scope): New function.
3313 (is_package_name): New function.
3314 (renaming_is_visible): New function.
3315 (remove_out_of_scope_renamings): New function.
3316
3317 (ada_lookup_symbol_list): New interface.
3318 Properly reinitialize the symbol list obstack.
3319 Don't call add_symbols_from_enclosing_procs if we start from a
3320 static or global block.
3321 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3322 add_symbols_from_enclosing_procs.
3323 Add symtab data to cached entries.
3324 Handle symbols prefixed with
3325 "standard__" specially; strip prefix and don't look in local symbols.
3326 Do not include out of scope renaming symbols in list of
3327 symbols returned.
3328 Add const to block parameter.
3329 Move check for non-local, non-global symbols earlier.
3330 Remove timing stuff.
3331 (ada_lookup_symbol): New interface.
3332 Find symtab as well.
3333 (ada_lookup_symbol_nonlocal): New function.
3334
3335 (is_name_suffix): Enhance suffix detection to recognize
3336 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3337 (is_dot_digits_suffix): New function.
3338 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3339
3340 (ada_add_block_symbols): New interface. Use obstack to return results
3341 in a vector of struct ada_symbol_infos. Add symtab argument.
3342 Use new interface to add_defn_to_vec.
3343 Remove calls to fill_in_ada_prototype.
3344 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3345
3346 (ada_finish_decode_line_1): Add const qualification to local to fix
3347 warning.
3348 Start looking in static block for functions to avoid attempts
3349 to search frame chain for up-level variables.
3350 Adapt to new ada_sals_for_line interface.
3351 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3352 Handle quoting of the function name inside the spec string.
3353 Skip prologue when funfirstline is set and update the
3354 function documentation to that effect.
3355
3356 (debug_print_lines, debug_print_block, debug_print_blocks,
3357 debug_print_symtab): Remove.
3358
3359 (ada_main_name): New function.
3360 (ada_exception_breakpoint_type): New function.
3361 (is_known_support_routine): New function.
3362 (ada_find_printable_frame): Renamed from find_printable_frame and made
3363 global.
3364 Remove level parameter.
3365 Use new interface to select_frame.
3366
3367 (begin_command): Remove.
3368 (ada_adjust_exception_stop): New function.
3369 (ada_print_exception_stop): New function.
3370 (exception_name_from_cond): New function.
3371 (ada_report_exception_break): Replace disabled code with
3372 conditionalization on GNAT_GDB.
3373 Get the exception name from the condition string.
3374 Remove and move functionality into new functions
3375 ada_print_exception_breakpoint_task and
3376 ada_print_exception_breakpoint_nontask.
3377 (error_breakpoint_runtime_sym_not_found): New function.
3378 (is_runtime_sym_defined): New function.
3379 (ada_breakpoint_rewrite): Uncomment suppressed code.
3380 Use symbolic error-message and runtime-symbol names.
3381 Surround runtime symbol names in quotes.
3382 Allow non-specific breakpoints on exceptions and assertions before
3383 program starts.
3384
3385 (ada_is_tagged_type): Add parameter.
3386 (ada_is_tag_type): New function.
3387 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3388 (ada_variant_discrim_type): Ditto.
3389 (value_tag_from_contents_and_address): New function.
3390 (type_from_tag): New function.
3391 (struct tag_args): New structure used to communicate with
3392 ada_tag_name_1.
3393 (ada_tag_name_1): New function.
3394 (ada_tag_name): New function.
3395
3396 (ada_scan_number): Update comment.
3397 (find_struct_field): New function.
3398 (ada_search_struct_field): Make static.
3399 (ada_value_struct_elt): New version that returns references when
3400 given pointers or references to structs.
3401 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3402 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3403 interface.
3404 (ada_value_ind): Use new ada_to_fixed_value interface.
3405 (ada_coerce_ref): Ditto.
3406 (field_offset): Remove.
3407
3408 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3409 (ada_find_renaming_symbol): New function.
3410 (ada_prefer_type): Prefer named types over unnamed ones.
3411 (variant_field_index): New function.
3412 (contains_variant_part): Removed: subsumed by variant_field_index.
3413 (ada_template_to_fixed_record_type): New function, mostly from
3414 template_to_fixed_record_type.
3415 (template_to_fixed_record_type):
3416 Do not scan the type fields beyond the last one; prevents a
3417 potential SEGV.
3418 Handle case where variant field is listed BEFORE discriminant it
3419 depends on.
3420 Fix calculation of record length when bit length is
3421 not evenly divisible by char length.
3422 Move code to ada_template_to_fixed_record_type and call it.
3423
3424 (template_to_static_fixed_type): Revise comment.
3425 Modify to work on ordinary record types as well as templates,
3426 so as to handle fields that use ___XVE or ___XVU encodings.
3427 (to_record_with_fixed_variant_part): Fill out comment.
3428 Initialize C++ stuff in right type.
3429 Allow case where DVAL is null.
3430 Handle case where variant field is not last.
3431 Fix typo concerning record length.
3432 (to_fixed_record_type): Decomment disabled code.
3433 (to_fixed_record_type): Use variant_field_index instead of
3434 contains_variant_part.
3435 (to_fixed_variant_branch_type): Ditto.
3436 (to_fixed_array_type): Decomment disabled code.
3437 (ada_to_fixed_type): Convert tagged types to the specific type.
3438 Deactivate the size-check for array types in order to avoid
3439 some false size alarms.
3440 (to_static_fixed_type): Decomment disabled code.
3441 Modify to call template_to_static_fixed_type
3442 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3443 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3444 Remove valaddr argument, as it is never really used.
3445 (ada_to_fixed_value): Change interface to act on single struct value*
3446 operand.
3447 (adjust_pc_past_prologue): New function.
3448 (ada_attribute_name): Modify to take enum exp_opcode argument.
3449
3450 (ada_enum_name): Recognize new homonym-distinguishing convention.
3451 Adjust local variable's type to remove compiler warning.
3452 Fix a small problem in the part that unqualifies the enumeration name.
3453 (ada_value_binop): New function.
3454 (ada_value_equal): New function.
3455
3456 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3457 Don't give error message when not doing normal evaluation
3458 and a tagged type doesn't seem to contain a structure member.
3459 Give error message for packed arrays.
3460 For indexing arrays, handle pointers to packed arrays correctly.
3461 Handle case of 'first and 'last attributes of bare integral type
3462 without encoded subtype info.
3463 Remove some unnecessary casts.
3464 Fix uninitialized value of type in computing 'first, 'last, or 'length
3465 of array object.
3466 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3467 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3468 calls.
3469 Attributes are now exp_opcode values.
3470 Correct treatment of 'modulus.
3471 Better error message for taking 'length of wrong kind of type;
3472 improve comment.
3473 Change EVAL_NORMAL to noside for consistency.
3474 Use ada_value_binop for DIV, MOD, REM.
3475 Make special case out of array of length 0, since an argument
3476 of 0 upsets some platforms' malloc.
3477 Use OP_STRING instead of OP_ARRAY.
3478 For slice, add check that we have an array type before extracting
3479 a slice out of it. Avoids a SEGV.
3480 When evaluating an array slice, if the array type is a reference to
3481 an aligner type, then replace the aligner type by the actual type.
3482 Decomment disabled code.
3483 Remove some dead code.
3484 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3485 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3486 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3487 and UNOP_MBR to UNOP_IN_RANGE.
3488 If an array type has a parallel ___XVE type, then use it.
3489 Turn arrays into pointers for lvalue arrays.
3490 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3491 bounds error and handle 0-length slices.
3492 Use lim_warning.
3493 When selecting fields, apply ada_to_fixed_value (because the fields
3494 might have ___XVU or ___XVE encodings even if not dynamic.)
3495 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3496 (ada_is_system_address_type): New function.
3497
3498 (get_var_value): Use new interface to ada_lookup_symbol_list.
3499 (get_int_var_value): New interface.
3500 (to_fixed_range_type): Allow unknown bound, with warning.
3501 (ada_is_modular_type): Decomment disabled code.
3502 (ADA_OPERATORS): New definition.
3503 (ada_operator_length): New function.
3504 (ada_expr_op_name): New function.
3505 (ada_forward_operator_length): New function.
3506 (ada_dump_subexp_body): New function.
3507 (ada_print_subexp): New function.
3508 (ada_exp_descriptor): New constant.
3509 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3510 (ada_language_defn): Add ada_exp_descriptor entry.
3511 Change ada_parse => parse.
3512 Add post-parser entry.
3513 Use ada-specific non-local symbol lookup.
3514 Don't use C-style arrays.
3515 String lower-bound is 1.
3516 Decomment disabled code.
3517 (parse): New function.
3518 New fields ada_translate_error_message, ada_lookup_symbol,
3519 ada_lookup_minimal_symbol.
3520
3521 * ada-lang.h: Update copyright dates.
3522 Replace the mangle/demangle terminology throughout by the
3523 more appropriate encode/decode one.
3524 Include breakpoint.h.
3525 Forward declare struct partial_symbol, struct block.
3526 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3527 (EXTRACT_ADDRESS): Remove.
3528 (EXTRACT_INT): Remove.
3529 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3530 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3531 (MAX_RENAMING_CHAIN_LENGTH): Define.
3532 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3533
3534 (enum task_states): Remove.
3535 ada_task_states: Remove.
3536 (fat_string): Remove.
3537 (struct entry_call): Remove.
3538 (struct task_fields): Remove.
3539 (struct task_entry): Remove.
3540
3541 (struct ada_symbol_info): Define.
3542 (enum ada_attribute): Remove.
3543 (enum ada_operator): Define.
3544
3545 (ada_get_field_index): Declare.
3546 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3547 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3548 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3549 (ada_lookup_symbol_list): New interface.
3550 (ada_decode_symbol): Declare.
3551 (ada_decode): Declare.
3552 (ada_lookup_symbol): New interface.
3553 (ada_update_initial_language): Declare.
3554 (ada_lookup_simple_minsym): Declare.
3555 (user_select_syms): New interface.
3556 (ada_sals_for_line): Declare.
3557 (ada_is_tagged_type): New interface.
3558 (ada_tag_name): Declare.
3559 (ada_lookup_struct_elt_type): Remove declaration.
3560 (ada_search_struct_field): Remove declaration.
3561 (ada_attribute_name): New interface.
3562 (ada_is_system_address_type): Declare.
3563 (ada_to_fixed_value): Remove declaration.
3564 (ada_template_to_fixed_record_type_1): Declare.
3565 (get_int_var_value): New interface.
3566 (ada_find_any_symbol): Declare.
3567 (ada_find_renaming_symbol): Declare.
3568 (ada_mangle): Rename to ada_encode.
3569 (ada_simple_renamed_entity): Remove const.
3570 (ada_main_name): Declare.
3571 (get_current_task): Rename to ada_get_current_task.
3572 (get_entry_number): Remove declaration.
3573 (ada_report_exception_break): Remove declaration.
3574 (ada_print_exception_breakpoint_nontask): Declare.
3575 (ada_print_exception_breakpoint_task): Declare.
3576 (ada_find_printable_frame): Declare.
3577
3578 * ada-lex.l: Update copyright notices.
3579 Use xmalloc and xfree instead of malloc and free.
3580 Use new interface to name_lookup.
3581 Use new interface to
3582 ada_mangle=>ada_encode.
3583 Redo handling of '$...' variable to parallel current treatment
3584 in c-exp.y.
3585 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3586 digit_to_int, strtoulst, processInt, processReal, processId,
3587 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3588 yywrap): Protoize.
3589
3590 (processInt): Use cast to remove harmless warning.
3591 (processReal): Modify to get rid of compiler warning on scan formats.
3592
3593 (processId): Replace xmalloc with obstack_alloc for name and remove
3594 call to ada_name_string_cleanup.
3595 Remove obsolete disabled code.
3596 (name_lookup): Ditto.
3597 New interface.
3598 Use obsavestring on temp_parse_space instead of savestring
3599 on name, and remove call to ada_name_string_cleanup.
3600 Free string returned from ada_simple_renamed_entity.
3601 Use new interface to ada_lookup_symbol_list.
3602 Decomment disabled code.
3603 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3604 not types.
3605 When a type name lookup succeeds as a result of
3606 lookup_primitive_typename, check for regular type entry that has not
3607 yet been read in.
3608 Limit length of chain of renamed symbols we are willing to follow.
3609 Do not break names beginning with "standard__" into segments.
3610 (block_lookup): Use new interface to ada_lookup_symbol_list.
3611
3612 * ada-typeprint.c: Update copyright notice.
3613 (demangled_type_name): Rename to decoded_type_name.
3614 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3615 (print_range_bound): Correct handling of negative
3616 bounds that make the index type looked unsigned under STABS.
3617 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3618 (print_range_type_named): Use the builtin int type if no type
3619 corresponding to the given type name could be found.
3620 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3621 Add some bullet-proofing.
3622 (print_variant_clauses): Allow for variant branches with ___XVU
3623 encodings that are not dynamic fields.
3624 Use new interface to ada_is_tagged_type.
3625 (print_record_type): Allow for fields with ___XVE encodings that
3626 are not dynamic fields.
3627 Use new interface to ada_is_tagged_type.
3628 (ada_print_type): ada_is_array_descriptor =>
3629 ada_is_array_descriptor_type.
3630
3631 * ada-valprint.c: Update copyright notice.
3632 Include gdb_string.h
3633 Include infcall.h
3634 (ui_memcpy): New function.
3635 (ada_print_floating): New function.
3636 (ada_print_str): Order arguments correctly.
3637 Correct handling of empty arrays and arrays of 0-length items.
3638 ada_is_array_descriptor => ada_is_array_descriptor_type
3639 Print values of type System.Address in hexadecimal format.
3640 Use ada_print_floating to print floating-point numbers in Ada format.
3641 Print class tag values with type names.
3642 No longer print the address of reference values. Avoids
3643 a potential confusion.
3644 (ada_value_print): Stop printing the object type for reference
3645 values, but preserve that behavior for access types. Avoids
3646 a potential confusion.
3647 Simplify one conditional expression, as the first part is now
3648 necessarily true.
3649 ada_is_array_descriptor => ada_is_array_descriptor_type
3650 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3651
f65f91b5
JB
36522004-06-01 Jim Blandy <jimb@redhat.com>
3653
3654 * ppc-tdep.h: Delete unused 'regoff' member.
3655 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3656
d4687fa0
MC
36572004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3658
3659 Fix PR symtab/1661.
3660 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3661 (hpread_read_struct_type): Likewise.
3662
de169ec9
AC
36632004-06-01 Andrew Cagney <cagney@gnu.org>
3664
c6902d46
AC
3665 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3666 instead of xasprintf.
3667 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3668 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3669 (mi_cmd_data_list_register_names)
3670 (mi_cmd_data_list_changed_registers)
3671 (mi_cmd_data_list_register_values)
3672 (get_register, mi_cmd_data_write_register_values)
3673 (mi_cmd_data_write_register_values)
3674 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3675 (mi_cmd_target_download, mi_cmd_target_select)
3676 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3677 (mi_execute_cli_command, mi_execute_async_cli_command)
3678 (mi_execute_async_cli_command): Ditto.
3679 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3680 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3681
6085fc2d
AC
3682 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3683 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3684 error_last_message instead of mi_error_last_message.
3685 * mi/mi-main.c (mi_error_last_message): Delete function.
3686
de169ec9
AC
3687 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3688 "invalid number of columns" error. Delete redundant "out of
3689 memory" check.
3690
1fc7d519
MK
36912004-05-31 Mark Kettenis <kettenis@gnu.org>
3692
6cfb2041
MK
3693 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3694 (gregset_t, fpregset_t): Remove typedefs.
3695 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3696 (REG_OFFSET): Rename argument.
3697 (i386bsd_r_reg_offset): Rename from reg_offset.
3698 (REG_ADDR): Remove macro.
3699 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3700 functions.
3701 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3702 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3703 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3704 instead of supply_gregset.
3705 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3706 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3707 instead of fill_gregset.
3708 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3709
1fc7d519
MK
3710 * i386bsd-nat.c: Don't include "gregset.h".
3711 (supply_gregset, fill_gregset): Make static.
3712 (supply_fpregset, fill_fpregset): Remove.
3713 * Makefile.in (i386bsd-nat.o): Update dependencies.
3714
2c34abbe
MK
37152004-05-30 Mark Kettenis <kettenis@gnu.org>
3716
448724fb
MK
3717 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3718 "gdb_assert.h". Con't include "gregset.h".
3719 (fbsd_make_corefile_notes): Use regset-based core file support
3720 instead off fill_gregset and fill_fpregset.
3721 * Makefile.in (fbsd-proc.o): Update dependencies.
3722
5ca8ca7c
MK
3723 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3724 instructions.
3725 (m88k_frame_prev_register): Simplify code a bit.
3726
593adc23
MK
3727 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3728 (amd64_collect_fpregset): New function.
3729 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3730
8d1b517b
MK
3731 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3732
7fdafb5a
MK
3733 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3734 (i386_collect_gregset): New function.
3735 (i386_supply_fpregset): Adjust comment.
3736 (i386_collect_fpregset): New function.
3737 (i386_regset_from_core_section): Use i386_collect_gregset and
3738 i386_collect_fpregset.
3739
8693c419
MK
3740 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3741 handle VALUEP being null.
3742
2c34abbe
MK
3743 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3744
45d134d8
MK
37452004-05-29 Mark Kettenis <kettenis@gnu.org>
3746
1698f4e7
MK
3747 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3748
45d134d8
MK
3749 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3750 assembler in OpenBSD 3.5-current.
3751 (amd64obsd_sigcontext_addr): Likewise.
3752
691d145a
JB
37532004-05-28 Jim Blandy <jimb@redhat.com>
3754
3755 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3756 register set, so our regcache isn't declared "legacy" and our E500
3757 pseudoregister read and write functions aren't ignored.
3758 (rs6000_register_byte, rs6000_register_raw_size,
3759 rs6000_register_virtual_type, rs6000_register_convertible,
3760 rs6000_register_convert_to_virtual,
3761 rs6000_register_convert_to_raw): Deleted.
3762 (rs6000_register_type, rs6000_convert_register_p,
3763 rs6000_register_to_value, rs6000_value_to_register): New
3764 functions.
3765 (rs6000_gdbarch_init): Don't register
3766 gdbarch_deprecated_register_size,
3767 gdbarch_deprecated_register_bytes,
3768 gdbarch_deprecated_register_byte,
3769 gdbarch_deprecated_register_raw_size,
3770 gdbarch_deprecated_register_virtual_type,
3771 gdbarch_deprecated_register_convertible,
3772 gdbarch_deprecated_register_convert_to_virtual, or
3773 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3774 register gdbarch_register_type, gdbarch_convert_register_p,
3775 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3776
18ed0c4e
JB
37772004-05-26 Jim Blandy <jimb@redhat.com>
3778
3779 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3780 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3781 functions, updated to match the register numberings used in GCC.
3782 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3783 rs6000_dwarf2_reg_to_regnum as register number conversions
3784 functions for STABS and Dwarf2.
3785
779af9e3
RC
37862004-05-26 Randolph Chung <tausq@debian.org>
3787
3788 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3789 in header file.
3790
c23968a2
JB
37912004-05-25 Joel Brobecker <brobecker@gnat.com>
3792
3793 * NEWS: Document new "start" command.
3794
3a7d1c27
RC
37952004-05-25 Randolph Chung <tausq@debian.org>
3796
3797 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3798 hppa-linux.
3799
43613416
RC
38002004-05-25 Randolph Chung <tausq@debian.org>
3801
3802 * hppa-hpux-tdep.c (offsetof): Define.
3803 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3804 (hppa32_hpux_frame_base_before_sigtramp)
3805 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3806 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3807 (hppa64_hpux_frame_base_before_sigtramp)
3808 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3809 functions.
3810 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3811 (hppa_hpux_sigtramp_frame_unwind_cache)
3812 (hppa_hpux_sigtramp_frame_this_id)
3813 (hppa_hpux_sigtramp_frame_prev_register)
3814 (hppa_hpux_sigtramp_frame_unwind)
3815 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3816 (hppa_hpux_init_abi): Register sigtramp unwinder.
3817 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3818
6d1be3f1
RC
38192004-05-25 Randolph Chung <tausq@debian.org>
3820
3821 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3822 and multiple stack unwinds.
3823 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3824
97c34f65
AC
38252004-05-25 Andrew Cagney <cagney@gnu.org>
3826
3827 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3828 * symfile-mem.h: Delete file.
3829 * symfile-mem.c: Do not include "symfile-mem.h".
3830 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3831 "struct bfd_section". When an error do not bother returning NULL.
3832 (add_symbol_file_from_memory_command): Use "struct bfd" and
3833 "struct bfd_section".
3834 * Makefile.in (symfile_mem_h): Delete.
3835 (symfile-mem.o): Update dependencies.
3836
e23cbd82
NR
38372004-05-25 Nick Roberts <nickrob@gnu.org>
3838
3839 * gdb-mi.el: New file.
3840
20d2ca3e
AC
38412004-05-25 Andrew Cagney <cagney@gnu.org>
3842
3843 * inftarg.c: Include "observer.h".
3844 (child_attach, child_create_inferior): Notify inferior_created.
3845 * corelow.c: Include "observer.h".
3846 (core_open): Notify inferior_created.
3847 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3848
c27cda74
AC
38492004-05-25 Andrew Cagney <cagney@gnu.org>
3850
3851 * target.h (struct target_ops): Add from_tty to
3852 to_create_inferior.
3853 (target_create_inferior, find_default_create_inferior): Update.
3854 * infcmd.c (run_command): Update.
3855 * wince.c (child_create_inferior): Update.
3856 * win32-nat.c (child_create_inferior): Update.
3857 * uw-thread.c (uw_thread_create_inferior): Update.
3858 * thread-db.c (thread_db_create_inferior): Update.
3859 * target.c (debug_to_create_inferior)
3860 (find_default_create_inferior): Update.
3861 (maybe_kill_then_create_inferior): Update.
3862 * sol-thread.c (sol_thread_create_inferior): Update.
3863 * remote.c (extended_remote_async_create_inferior)
3864 (extended_remote_create_inferior): Update.
3865 * remote-vx.c (vx_create_inferior): Update.
3866 * remote-st.c (st2000_create_inferior): Update.
3867 * remote-sim.c (gdbsim_create_inferior): Update.
3868 * remote-sds.c (sds_create_inferior): Update.
3869 * remote-rdp.c (remote_rdp_create_inferior): Update.
3870 * remote-rdi.c (arm_rdi_create_inferior): Update.
3871 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3872 * remote-e7000.c (e7000_create_inferior): Update.
3873 * procfs.c (procfs_create_inferior): Update.
3874 * ocd.c (ocd_create_inferior): Update.
3875 * ocd.h (ocd_create_inferior): Update.
3876 * nto-procfs.c (procfs_create_inferior): Update.
3877 * monitor.c (monitor_create_inferior): Update.
3878 * lin-lwp.c (lin_lwp_create_inferior): Update.
3879 * inftarg.c (child_create_inferior): Update.
3880 * hpux-thread.c (hpux_thread_create_inferior): Update.
3881 * gnu-nat.c (gnu_create_inferior): Update.
3882
1db2a798
AC
38832004-05-25 Andrew Cagney <cagney@gnu.com>
3884
3885 * MAINTAINERS: Update e-mail address.
3886
007d08bb
RC
38872004-05-24 Randolph Chung <tausq@debian.org>
3888
3889 * thread.c (info_threads_command, thread_apply_all_command)
3890 (thread_apply_command, thread_command, do_captured_thread_select):
3891 Remove HPUXHPPA-specific code.
3892
69e7b95e
RC
38932004-05-24 Randolph Chung <tausq@debian.org>
3894
3895 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3896 unused symbols.
3897 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3898 references.
3899
a4d5f2e0
JB
39002004-05-24 Joel Brobecker <brobecker@gnat.com>
3901
3902 * infcmd.c (kill_if_already_running): New function, extracted
3903 from run_command().
3904 (run_command): Replace extracted code by call to
3905 kill_if_already_running().
3906 (start_command): New function.
3907 (_initialize_infcmd): Add "start" command.
3908
bf2ca189
MK
39092004-05-24 Mark Kettenis <kettenis@gnu.org>
3910
3911 Add OpenBSD/m88k support.
3912 * NEWS (New native configurations): Mention OpenBSD/m88k.
3913 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3914 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3915 * Makefile.in (m88k_tdep_h): New variable.
3916 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3917 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3918 * configure.host: Add m88*-*-openbsd*.
3919 * configure.tgt: Add m88*-*-openbsd*.
3920
80fadb11
JB
39212004-05-24 Jim Blandy <jimb@redhat.com>
3922
3923 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3924 to approve changes.
3925
19e2d14b
KB
39262004-05-24 Kevin Buettner <kevinb@redhat.com>
3927
3928 * symtab.c (fixup_section): Search section table when lookup by
3929 name fails.
3930
1b07b470
RC
39312004-05-24 Randolph Chung <tausq@debian.org>
3932
3933 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3934 be "small_struct".
3935
368702b1
MK
39362004-05-24 Mark Kettenis <kettenis@gnu.org>
3937
5df97fde
MK
3938 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3939 register number in regcache_raw_collect call.
3940 (m68kbsd_collect_fpregset): Likewise.
3941 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3942
368702b1
MK
3943 * regset.h (struct regset): Add back `regset' member.
3944
a770d4ec
MK
39452004-05-23 Mark Kettenis <kettenis@gnu.org>
3946
70f9f479
MK
3947 * configure.in: Check for td_pcb in `struct thread'.
3948 * configure, config.in: Regenerated.
3949
2e16d79e
MK
3950 * dpx2-nat.c: Remove file.
3951 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3952 (dpx2-nat.o): Remove dependencies.
3953
492cf391
MK
3954 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3955 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3956 (amd64obsd_supply_pcb): New function.
3957 (_initialize_amd64obsd_nat): Enable libkvm interface.
3958 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3959 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3960 (LOADLIBES): New variable.
3961
a770d4ec
MK
3962 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3963 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3964 (sparc32nbsd_supply_pcb): New function.
3965 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3966 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3967 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3968 (LOADLIBES): New variable.
3969
9ea75c57
MK
39702004-05-22 Mark Kettenis <kettenis@gnu.org>
3971
2e0c3539
MK
3972 * bsd-kvm.c, bsd-kvm.h: New files.
3973 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3974 "bsd-kvm.h".
3975 (i386fbsd_supply_pcb): New function.
3976 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3977 (i386fbsd-nat.o): Update dependencies.
3978 (bsd_kvm_h): New variable.
3979 (bsd-kvm.o): New dependency.
3980 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3981 (LOADLIBES): New variable.
3982
9ea75c57
MK
3983 * regset.c: Tweak comment.
3984 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3985 macro.
3986 * regset.h: Update copyright year.
3987 (struct regset): Remove `descr' member, add `gdbarch' member.
3988 (regset_alloc): Adjust prototype and comment.
3989 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3990 (i386_supply_fpregset): Likewise.
3991 (i386_regset_from_core_section): Update call to regset_alloc.
3992 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3993 REGSET->arch.
3994 (i386obsd_aout_regset_from_core_section): Update call to
3995 regset_alloc.
3996 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3997 REGSET->arch.
3998 (i386nbsd_aout_regset_from_core_section): Update call to
3999 regset_alloc.
4000 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4001 REGSET->arch.
4002 (amd64_regset_from_core_section): Update call to regset_alloc.
4003 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4004 REGSET->arch.
4005 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4006 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4007 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4008 (sparc32nbsd_init_abi): Update call to regset_alloc.
4009 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4010 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4011 (sparc64obsd_init_abi): Update call to regset_alloc.
4012 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4013 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4014 (sparc64nbsd_init_abi): Update call to regset_alloc.
4015 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4016 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4017 (sparc64fbsd_init_abi): Update call to regset_alloc.
4018
867e2dc5
JB
40192004-05-22 Jim Blandy <jimb@redhat.com>
4020
4021 * ppc-tdep.h (spe_register_p): New declaration.
4022 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4023 ppc_spefscr_regnum.
4024 * rs6000-tdep.c (spe_register_p): New function.
4025 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4026 spefscr.
4027 (rs6000_gdbarch_init): Initialize the new members of the tdep
4028 structure.
4029
617a4cba
JB
40302004-05-21 Jim Blandy <jimb@redhat.com>
4031
0397dee1
JB
4032 * ppc-linux-nat.c (fetch_register): Move code back to be next
4033 to the comment that describes it. (Moved code, instead of
4034 comment, for symmetry with store_register.)
4035
617a4cba
JB
4036 Allocate regset structures in the gdbarch's obstack, not using
4037 xmalloc.
4038 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4039 Add 'arch' argument. Allocate the regset on arch's obstack, not
4040 using xmalloc.
4041 * regset.h (regset_alloc): Update declaration.
4042 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4043 gdbarch argument.
4044 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4045 * i386-tdep.c (i386_regset_from_core_section): Same.
4046 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4047 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4048 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4049 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4050 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4051 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4052
9aa3914d
JB
40532004-05-21 Joel Brobecker <brobecker@gnat.com>
4054
4055 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4056
99c87dab
JB
40572004-05-21 Jim Blandy <jimb@redhat.com>
4058
4059 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4060 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4061
c2b6b4aa
JB
40622004-05-20 Jim Blandy <jimb@redhat.com>
4063
4064 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4065
144529d0
MK
40662004-05-20 Mark Kettenis <kettenis@gnu.org>
4067
4068 * regset.h: Make prototype const-correct.
4069 * regset.c (regset_xmalloc): Make const-correct.
4070
4725b721
PH
40712004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4072
4073 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4074 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4075 (symbol_search_name): Declare.
4076
4077 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4078 (iter_name_next_hashed): Ditto.
4079 (iter_name_next_linear): Ditto.
4080 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4081
4082 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4083 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4084 (symbol_search_name): New function.
4085
4086 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4087
4088 * minsyms.c (build_minimal_symbol_hash_tables): Change
4089 test for adding to demangled hash table to check for difference
4090 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4091
be07a590
JB
40922004-05-19 Jim Blandy <jimb@redhat.com>
4093
4094 Use a constructor function to create regset structures.
4095 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4096 (struct regset): Use supply_regset_ftype. Add new
4097 'collect_regset' member.
4098 (regset_xmalloc): New declaration.
4099 * regset.c: New file.
4100 * am64-tdep.c (amd64_regset_from_core_section): Use
4101 regset_xmalloc to construct regset structures.
4102 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4103 * i386-tdep.c (i386_regset_from_core_section): Same.
4104 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4105 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4106 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4107 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4108 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4109 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4110 * Makefile.in (COMMON_OBS): Add regset.o.
4111 (regset.o): New rule.
4112
604368f5
JB
41132004-05-19 Joel Brobecker <brobecker@gnat.com>
4114
4115 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4116 and pthread_cond_wait.c.
4117
82d69f8b
JB
41182004-05-18 Jim Blandy <jimb@redhat.com>
4119
4120 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4121 before the mach-specific switch, and then let the individual cases
4122 override the defaults, rather than leaving them uninitialized
4123 until the switch and then setting them in each case.
4124
5859efe5
RC
41252004-05-18 Randolph Chung <tausq@debian.org>
4126
4127 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4128 millicode functions.
4129
9ca80cf8
RC
41302004-05-18 Randolph Chung <tausq@debian.org>
4131
4132 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4133 references to dld_flags_buffer consistent.
4134
ed70ba00
RC
41352004-05-18 Randolph Chung <tausq@debian.org>
4136
4137 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4138 it for unwinding the stack.
4139
63100632
RC
41402004-05-18 Randolph Chung <tausq@debian.org>
4141
4142 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4143 Undefine these so we can overide them using gdbarch.
4144
090ccbb7
RC
41452004-05-18 Randolph Chung <tausq@debian.org>
4146
4147 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4148 handling for 64-bit HPUX (elf).
4149
594706e6
DJ
41502004-05-18 Daniel Jacobowitz <dan@debian.org>
4151
4152 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4153 constants.
4154 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4155 * ia64-tdep.c (examine_prologue): Likewise.
4156 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4157 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4158
e5483145
MK
41592004-05-18 Mark Kettenis <kettenis@gnu.org>
4160
4161 * vax-tdep.c (vax_return_value): Implement
4162 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4163
caed1a45
MK
41642004-05-17 Mark Kettenis <kettenis@gnu.org>
4165
4166 * vax-tdep.c (vax_return_value): Fix typo.
4167
3c0b7db2
AC
41682004-05-17 Andrew Cagney <cagney@redhat.com>
4169
5aae53e5
AC
4170 * MAINTAINERS: Mark Salter was also responsible for
4171 testsuite/config/
4172
3c0b7db2
AC
4173 * NEWS: Mention signal fixes.
4174
22b0923d
RC
41752004-05-17 Randolph Chung <tausq@debian.org>
4176
4177 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4178 check to see if we are unwinding an export stub. Export stubs clobber
4179 the %rp in the call path and stores the original rp in a stack slot.
4180
22f2b2f3
JB
41812004-05-17 Jim Blandy <jimb@redhat.com>
4182
4183 * MAINTAINERS: Update address for J.T. Conklin.
4184
cea96d64
RC
41852004-05-17 Randolph Chung <tausq@debian.org>
4186
4187 * hppa-tdep.c: Remove superfluous #include's.
4188 * Makefile.in (hppa-tdep.o): Update dependencies.
4189
f08f6a4a
RC
41902004-05-17 Randolph Chung <tausq@debian.org>
4191
4192 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4193 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4194 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4195 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4196 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4197 Remove static function declarations.
4198
51da707a
MK
41992004-05-17 Mark Kettenis <kettenis@gnu.org>
4200
caed1a45
MK
4201 * alphabsd-nat.c: Update copyright year.
4202 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4203
c0c2b0db
MK
4204 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4205 and M68K_A2_REGNUM.
4206
51da707a
MK
4207 * m68k-tdep.c (m68k_svr4_return_value): Implement
4208 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4209
8d027a04
MK
42102004-05-16 Mark Kettenis <kettenis@gnu.org>
4211
4212 * sol-thread.c Update copyright year. Fix various coding
4213 standards violations. Tweak a few comments.
4214 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4215 Delete prototypes.
4216
0d99fdb9
RC
42172004-05-15 Randolph Chung <tausq@debian.org>
4218
4219 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4220 as pointer instead of array reference since HPUX compiler does
4221 not accept unsized array arguments.
4222 * somsolib.c (dld_flags_buffer): Use constant array size.
4223
f7e3843a
MK
42242004-05-15 Mark Kettenis <kettenis@gnu.org>
4225
0fe85704
MK
4226 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4227 offset with decimal offset.
4228 (amd64obsd_sigcontext_addr): Return correct address for entire
4229 signal trampoline.
4230
a54f9a00
MK
4231 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4232 instead of get_frame_base.
4233
feae6502
MK
4234 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4235 (fill_gregset): Use regcache_raw_collect.
4236
0382d099
MK
4237 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4238 ppcobsd-tdep.c.
4239
f7e3843a
MK
4240 * config/sparc/tm-nbsd64.h: Remove file.
4241 * config/tm-sunos.h: Remove file.
4242
773df3e5
JB
42432004-05-15 Joel Brobecker <brobecker@gnat.com>
4244
4245 * rs6000-tdep.c (store_param_on_stack_p): New function,
4246 an improved version of some code extracted from skip_prologue().
4247 (skip_prologue): Use store_param_on_stack_p() to detect
4248 instructions saving a parameter on the stack. Detect when r0
4249 is used to save a parameter.
4250 Do not mark "li rx, SIMM" instructions as part of the prologue,
4251 unless the following instruction is also part of the prologue.
4252
95918acb
AC
42532004-05-14 Andrew Cagney <cagney@redhat.com>
4254
06f32659
AC
4255 * infrun.c (handle_inferior_event): Simplify
4256 STEP_OVER_UNDEBUGGABLE.
4257
95918acb
AC
4258 * infrun.c (handle_step_into_function): Delete function.
4259 (handle_inferior_event): Inline calls to
4260 handle_step_into_function.
4261
40711ff1 42622004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4263
4264 * rs6000-nat.c: Fix a comment.
4265
02f60eae
JB
42662004-05-12 David Anderson <davea@sgi.com>
4267
4268 Committed by Jim Blandy <jimb@redhat.com>:
4269 * regcache.c (struct regcache_descr): fix comment spelling.
4270
552e377b
JB
42712004-05-13 J. Brobecker <brobecker@gnat.com>
4272
4273 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4274 Fixes a link link failure.
4275
349766b2
JB
42762004-05-13 J. Brobecker <brobecker@gnat.com>
4277
4278 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4279 error that was causing the build to fail.
4280
0d4d5484
JB
42812004-05-13 J. Brobecker <brobecker@gnat.com>
4282
4283 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4284 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4285
0b30808c
AC
42862004-05-13 Andrew Cagney <cagney@redhat.com>
4287
4288 * infrun.c (handle_inferior_event): Check for
4289 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4290 calls. Update comments.
4291
cdf2c5f5
JB
42922004-05-13 Jim Blandy <jimb@redhat.com>
4293
063715bf
JB
4294 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4295 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4296 (store_regs_user_thread, store_regs_kernel_thread): Use
4297 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4298 * ppc-linux-nat.c (fill_gregset): Same.
4299 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4300 (ppc_linux_sigtramp_cache): Same.
4301 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4302 (ppcnbsd_sigtramp_cache_init): Same.
4303 * rs6000-nat.c (fetch_core_registers): Same.
4304 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4305 (rs6000_frame_cache): Same.
4306
cdf2c5f5
JB
4307 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4308 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4309 of assuming that the gprs are numbered starting with zero.
4310 * ppc-linux-nat.c (fill_gregset): Same.
4311 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4312 * ppcnbsd-nat.c (getregs_supplies): Same.
4313 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4314 * rs6000-nat.c (fetch_core_registers): Same.
4315 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4316
450bd37b
MS
43172004-05-07 Michael Snyder <msnyder@redhat.com>
4318
4319 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4320 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4321
4a72a2a6
AC
43222004-05-13 Andrew Cagney <cagney@redhat.com>
4323
4324 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4325
8edfa926
BM
43262004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4327
4328 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4329 base_address for shared libraries.
4330
723e0e3d
BM
43312004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4332
4333 * MAINTAINERS (write after approval): Add myself.
4334
00d4360e
UW
43352004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4336
4337 * breakpoint.c (bpstat_stop_status): Add new argument
4338 STOPPED_BY_WATCHPOINT. Use it instead of testing
4339 target_stopped_data_address agaist 0 to check whether
4340 or not we stopped due to a hardware watchpoint.
4341 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4342 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4343 with new argument.
4344
ec76baa5
JB
43452004-05-12 Jim Blandy <jimb@redhat.com>
4346
4347 * configure.in: When checking whether we should use the -bbigtoc
4348 option, don't forget to restore the original value of LDFLAGS.
4349 * configure: Regenerated.
4350
f2c9ca08
AC
43512004-05-12 Andrew Cagney <cagney@redhat.com>
4352
4353 * thread.c (load_infrun_state): Delete step_sp.
4354 * infrun.c (context_switch): Ditto.
4355 * inferior.h (step_sp): Ditto.
4356 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4357 * gdbthread.h (struct thread_info, save_infrun_state)
4358 (restore_infrun_state): Ditto.
4359
090ddb2a
UW
43602004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4361
4362 * MAINTAINERS (write after approval): Add myself.
4363
8aad930b
AC
43642004-05-12 Andrew Cagney <cagney@redhat.com>
4365
4366 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4367 eliminate reference to step_sp.
4368 (struct execution_control_state, init_execution_control_state)
4369 (handle_inferior_event, keep_going): Delete update_step_sp and
4370 step_sp.
4371 * infcmd.c (step_sp): Note that variable is unused.
4372
922d5ae0
AC
43732004-05-11 Andrew Cagney <cagney@redhat.com>
4374
4375 * infrun.c (step_over_function): Delete function.
4376 (handle_step_into_function): Use insert_step_resume_breakpoint.
4377 (insert_step_resume_breakpoint): Fix assertion.
4378
017c5ca5
NR
43792004-05-11 Nick Roberts <nickrob@gnu.org>
4380
4381 * utils.c (defaulted_query): Just use the normal query input type
4382 when printing the annotations.
4383
42edda50
AC
43842004-05-11 Andrew Cagney <cagney@redhat.com>
4385
4386 * infrun.c (handle_inferior_event): Simplify code handling
4387 step-into or return-from a signal trampoline.
4388
d28b44a7
AC
43892004-05-11 Andrew Cagney <cagney@redhat.com>
4390
4391 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4392 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4393
383f0f5b
JB
43942004-05-10 Jim Blandy <jimb@redhat.com>
4395
d0b57c3a
JB
4396 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4397 with a call to internal_error.
4398
383f0f5b
JB
4399 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4400 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4401 processor variant lacks those registers.
4402 (ppc_floating_point_unit_p): Change description to make it clear
4403 that this returns info about the ISA, not the ABI.
4404 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4405 return true or false by checking tdep->ppc_fp0_regnum and
4406 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4407 arch/mach switching done in rs6000_gdbarch_init; it's better to
4408 keep that logic there, and just check the results here.
4409 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4410 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4411 floating-point registers.
4412 (ppc_supply_fpregset, ppc_collect_fpregset)
4413 (rs6000_push_dummy_call, rs6000_extract_return_value)
4414 (rs6000_store_return_value): Assert that we have floating-point
4415 registers.
4416 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4417 (rs6000_frame_cache): Don't note the locations at which
4418 floating-point registers were saved if we have no fprs.
4419 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4420 registers.
4421 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4422 (store_regs_user_thread, store_regs_kernel_thread): Only call
4423 supply_fprs / fill_fprs if we actually have floating-point
4424 registers.
4425 (special_register_p): Check ppc_fpscr_regnum before matching
4426 against it.
4427 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4428 supply / collect fpscr if we don't have it.
4429 * ppc-bdm.c: #include "gdb_assert.h".
4430 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4431 have floating-point registers, since I can't test this code on
4432 FP-free systems to adapt it.
4433 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4434 fpscr and floating point register numbers if they don't exist.
4435 (fetch_register): Assert that we have floating-point registers
4436 before we reach the code that handles them.
4437 (store_register): Same. And use tdep instead of calling
4438 gdbarch_tdep again.
4439 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4440 don't have them.
4441 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4442 fprs and fpscr if we don't have them.
4443 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4444 don't have them.
4445 * ppcnbsd-nat.c: #include "gdb_assert.h".
4446 (getfpregs_supplies): Assert that we have floating-point registers.
4447 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4448 * ppcobsd-tdep.c: #include "gdb_assert.h".
4449 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4450 have floating-point registers.
4451 * rs6000-nat.c (regmap): Don't match against the fpscr and
4452 floating point register numbers if they don't exist.
4453 (fetch_inferior_registers, store_inferior_registers,
4454 fetch_core_registers): Only fetch / store / supply the
4455 floating-point registers and the fpscr if we have them.
4456 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4457 (ppcobsd-tdep.o): Update dependencies.
4458
15960608
AC
44592004-05-10 Andrew Cagney <cagney@redhat.com>
4460
4461 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4462 (context_switch): Do not switch through_sigtramp_breakpoint.
4463 * gdbthread.h (save_infrun_state, load_infrun_state)
4464 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4465 and structure member.
4466 * thread.c (load_infrun_state, save_infrun_state): Update.
4467
5ab5aa0f
MK
44682004-05-10 Mark Kettenis <kettenis@gnu.org>
4469
4470 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4471
da78b0e7
DJ
44722004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4473
4474 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4475 throughout.
4476 * aclocal.m4: Regenerate.
4477
cca0d3b0
NW
44782004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4479
4480 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4481
d303a6c7
AC
44822004-05-10 Andrew Cagney <cagney@redhat.com>
4483
4484 * infrun.c (check_sigtramp2): Delete function.
4485 (handle_inferior_event): When single stepping, and taking a
4486 signal, set a breakpoint at the signal return address. Delete
4487 redundant calls to check_sigtramp2.
4488 (insert_step_resume_breakpoint): New function.
4489 (through_sigtramp_breakpoint, handle_inferior_event)
4490 (follow_exec, wait_for_inferior, fetch_inferior_event)
4491 (currently_stepping, keep_going): Delete most uses of
4492 through_sigtramp_breakpoint, not that it should be deleted.
4493 (delete_breakpoint_current_contents): Delete function.
4494
03f4cc20
RC
44952004-05-10 Randolph Chung <tausq@debian.org>
4496
4497 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4498 target.
4499 * config/pa/tm-linux.h: New file.
4500
37fc812e
DJ
45012004-05-10 Daniel Jacobowitz <drow@mvista.com>
4502
4503 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4504 of prefixes. Don't print the prefix twice in the CLI.
4505
26c0b942
JB
45062004-05-10 Jim Blandy <jimb@redhat.com>
4507
2e56e9c1
JB
4508 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4509 collect all the gprs.
4510
26c0b942
JB
4511 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4512 loop collecting gprs.
4513
dc497459
AC
45142004-05-09 Andrew Cagney <cagney@redhat.com>
4515
4516 * remote-vx.c (net_step): Delete step-range code.
4517 * remote.c (remote_resume, init_all_packet_configs)
4518 (set_remote_protocol_E_packet_cmd)
4519 (show_remote_protocol_E_packet_cmd)
4520 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4521 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4522 (show_remote_protocol_e_packet_cmd): Ditto.
4523
0543f387
MK
45242004-05-09 Mark Kettenis <kettenis@gnu.org>
4525
c481d1ca
MK
4526 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4527
f626a069
MK
4528 * hppa-tdep.h: Update copyright year.
4529 (struct trad_frame_saved_reg): Add opaque declaration.
4530
6fa57a7d
MK
4531 * amd64-tdep.c (amd64_return_value): Implement
4532 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4533
e47577ab
MK
4534 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4535 (m68k_value_to_register): New functions.
4536 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4537 value_to_register.
4538
31db7b6c
MK
4539 * defs.h (enum return_value_convention): Add
4540 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4541 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4542 * infcmd.c (legacy_return_value): New function.
4543 (print_return_value): Rwerite to implement
4544 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4545 * values.c (using_struct_return): Check for inequality to
4546 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4547 RETURN_VALUE_STRUCT_CONVENTION.
4548 * i386-tdep.c (i386_return_value): Implement
4549 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4550
0543f387
MK
4551 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4552 include "symtab.h", "opcode/vax.h" and "inferior.h".
4553 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4554 to read_memory_unsigned_integer.
4555 (vax_gdbarch_init): Reorder.
4556 (_initialize_vax_tdep): Spell out prototype.
4557 * Makefile.in (vax-tdep.o): Update dependencies.
4558
0c93b7b6
AC
45592004-05-08 Andrew Cagney <cagney@redhat.com>
4560
e6b55ae2
AC
4561 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4562 * target.c (target_detach, target_disconnect): Ditto.
4563
1ac839b8
AC
4564 * infcall.c (call_function_by_hand): When no
4565 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4566 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4567 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4568 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4569 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4570
28954179
AC
4571 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4572 * gdbarch.h, gdbarch.c: Re-generate.
4573 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4574 deprecated_fix_call_dummy.
4575 * v850-tdep.c (v850_gdbarch_init): Ditto.
4576 * infcall.c (call_function_by_hand): Do not call
4577 DEPRECATED_FIX_CALL_DUMMY.
4578
434b87dd
AC
4579 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4580 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4581 * gdbarch.h, gdbarch.c: Re-generate.
4582 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4583 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4584 deprecated_sizeof_call_dummy_words.
4585 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4587 * v850-tdep.c (v850_gdbarch_init): Ditto.
4588 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4589 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4590 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4591 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4592 * arch-utils.h (legacy_call_dummy_words)
4593 (legacy_sizeof_call_dummy_words): Delete declarations.
4594 * arch-utils.c (legacy_call_dummy_words)
4595 (legacy_sizeof_call_dummy_words): Delete variables.
4596
58d28df8
AC
4597 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4598 * gdbarch.h, gdbarch.c: Re-generate.
4599 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4600 * infcall.c (call_function_by_hand): Eliminate call to
4601 DEPRECATED_PUSH_DUMMY_FRAME.
4602 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4603 push_dummy_frame.
4604 (ns32k_push_dummy_frame): Delete function.
4605
e4a2df64
AC
4606 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4607 deprecated_call_dummy_breakpoint_offset or
4608 deprecated_call_dummy_start_offset.
4609 * dummy-frame.c, arm-tdep.c: Update comments.
4610 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4611 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4612 * gdbarch.h, gdbarch.c: Re-generate.
4613
d3712828
AC
4614 * infcall.c (legacy_push_dummy_code): Delete function.
4615 (push_dummy_code): Delete call.
4616
7a882905
AC
4617 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4618 * gdbarch.h, gdbarch.c: Re-generate.
4619 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4620 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4621 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4622 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4623
0ec5872b
AC
4624 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4625 (struct frame_info): Delete opaque declaration.
4626 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4627 * frame.c (get_frame_type): Delete call.
4628
0c93b7b6
AC
4629 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4630 pc_in_call_dummy.
4631 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4632 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4633
75536971
MK
46342004-05-08 Mark Kettenis <kettenis@gnu.org>
4635
527ca6bb
MK
4636 * alphanbsd-tdep.c: Include "gdb_string.h".
4637 * armnbsd-tdep.c: Update copyright year.
4638 Include "gdb_string.h".
4639 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4640 dependencies.
4641
d39fdc61
MK
4642 * delta68-nat.c: Remove file.
4643 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4644 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4645 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4646 (delta68-nat.o): Remove dependency.
4647
75536971
MK
4648 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4649 function.
4650 (m68k_gdbarch_init): Don't set
4651 deprecated_frameless_function_invocation.
4652
f4ca1d1f
RC
46532004-05-07 Randolph Chung <tausq@debian.org>
4654
4655 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4656 read_memory_nobpt for code reading when doing frame unwinding.
4657 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4658
2f0e8c7a
RC
46592004-05-07 Randolph Chung <tausq@debian.org>
4660
4661 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4662 instead of sp, handle sigaltstack case.
4663 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4664 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4665 signal handler and not that of the caller.
4666 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4667 hppa_linux_sigtramp_find_sigcontext.
4668
959464ff
RC
46692004-05-07 Randolph Chung <tausq@debian.org>
4670
4671 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4672 hppa-linux-nat.c.
4673 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4674 * hppa-linux-nat.c (fetch_register, store_register): Define.
4675 (fetch_inferior_registers, store_inferior_registers): Define.
4676 (supply_gregset): Add comment and clean up some unneeded code.
4677 (fill_gregset): Add comment and fix so that it saves registers in
4678 the right place in the gregset.
4679 (fill_fpregset): Fix buffer overrun problem.
4680 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4681
0da28f8a
RC
46822004-05-07 Randolph Chung <tausq@debian.org>
4683
4684 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4685 do common handling of the pcoqt register.
4686 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4687 to use helper function.
4688 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4689 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4690 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4691 generic fallback unwinder when all else fails.
4692 (hppa_gdbarch_init): Add fallback sniffer.
4693 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4694 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4695 to use helper function.
4696
b9ec757a
JB
46972004-05-08 Joel Brobecker <brobecker@gnat.com>
4698
4699 * config/djgpp/fnchange.lst: Add translation rules for
4700 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4701
756e95f1
MK
47022004-05-08 Mark Kettenis <kettenis@gnu.org>
4703
4704 * frame.c (get_prev_frame_1): Work around GCC bug.
4705 * frame.h: Add comment about GCC bug.
4706
2b4855ab
AC
47072004-05-07 Andrew Cagney <cagney@redhat.com>
4708
4709 * observer.c: Include "commands.h" and "gdbcmd.h".
4710 (observer_debug, _initialize_observer): Add the
4711 command "set/show debug observer".
4712 * observer.sh: When observer debugging, log notify calls.
4713 * Makefile.in (observer.o): Update dependencies.
4714
ba3e8e46
JM
47152004-05-07 Jason Molenda (jmolenda@apple.com)
4716
4717 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4718
16796152
JB
47192004-05-07 Jim Blandy <jimb@redhat.com>
4720
daf6dc85
JB
4721 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4722 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4723 to recognize gpr regnums, instead of assuming that
4724 tdep->ppc_fp0_regnum marks the end of the general-purpose
4725 registers.
4726
16796152
JB
4727 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4728 the given architecture has floating-point registers.
4729
c69b8bfc
AC
47302004-05-07 Andrew Cagney <cagney@redhat.com>
4731
4732 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4733 macro defined to 1.
4734 * gdbarch.h, gdbarch.c: Re-generate.
4735 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4736 deprecated_use_generic_dummy_frames.
4737
7243600a
BF
47382004-05-07 Brian Ford <ford@vss.fsi.com>
4739
4740 * NEWS: Mention Cygwin DWARF 2 support.
4741
73c1e0a1
AC
47422004-05-07 Andrew Cagney <cagney@redhat.com>
4743
4744 * objfiles.h (struct entry_info): Delete unused fields
4745 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4746 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4747 * mipsread.c (mipscoff_symfile_read): Update.
4748 * mdebugread.c (parse_partial_symbols): Update.
4749 * dwarfread.c (read_file_scope): Update.
4750 * dwarf2read.c (read_file_scope): Update.
4751 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4752 * coffread.c (complete_symtab): Update.
4753
1d3056ac
MK
47542004-05-07 Mark Kettenis <kettenis@gnu.org>
4755
4756 * infcall.c (_initialize_infcall): Fix typo.
4757
15170568
AC
47582004-05-07 Andrew Cagney <cagney@redhat.com>
4759
4760 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4761 * command.h (add_setshow_zinteger_cmd): Declare.
4762
34f75cc1
RC
47632004-05-06 Randolph Chung <tausq@debian.org>
4764
4765 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4766 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4767 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4768 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4769 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4770 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4771 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4772 definitions ...
4773 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4774 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4775 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4776 (hppa64_hpux_frame_find_saved_regs_in_sig)
4777 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4778 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4779 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4780 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4781 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4782 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4783 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4784 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4785 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4786 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4787 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4788 (hppa32_register_type, hppa_cannot_store_register)
4789 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4790 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4791 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4792 * pa64solib.c (pa64_solib_have_load_event)
4793 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4794 (pa64_solib_unloaded_library_pathname): Likewise.
4795 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4796 (som_solib_library_pathname): Likewise.
4797
0a5e7efe
JI
47982004-05-05 Jim Ingham <jingham@apple.com>
4799
4800 * breakpoint.c (create_breakpoints): Copy the ignore count and
4801 thread id over from the pended breakpoint to the actual
4802 breakpoint.
4803
10a4b113
AC
48042004-05-05 Andrew Cagney <cagney@redhat.com>
4805
4806 * gdbarch.sh (PARM_BOUNDARY): Delete.
4807 gdbarch.h, gdbarch.c: Re-generate.
4808 * valops.c (PARM_BOUNDARY): Delete macro.
4809 (value_push): Delete PARM_BOUNDARY code.
4810 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4811
366f009f
JB
48122004-05-04 Jim Blandy <jimb@redhat.com>
4813
32b99774
JB
4814 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4815 Don't assume that the gprs, fprs, and UISA sprs are
4816 contiguous, start at register number zero, and end with fpscr.
4817 Instead, use the numbers from the tdep structure.
4818
366f009f
JB
4819 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4820 should no longer be used in code specific to the RS6000 and its
4821 derivatives.
4822 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4823 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4824 tdep->ppc_fp0_regnum.
4825 (ppc_supply_fpregset, ppc_collect_fpregset)
4826 (rs6000_push_dummy_call, rs6000_extract_return_value)
4827 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4828 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4829 FP0_REGNUM.
4830 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4831 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4832 Same.
4833 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4834 bdm_ppc_store_registers): Same.
4835 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4836 (store_register, fill_fpregset): Same.
4837 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4838 (ppc_linux_supply_fpregset): Same.
4839 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4840 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4841 Same.
4842 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4843 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4844 ppc64_sysv_abi_return_value): Same.
4845 * rs6000-nat.c (regmap, fetch_inferior_registers)
4846 (store_inferior_registers, fetch_core_registers): Same.
4847
827f338d
MK
48482004-05-01 Mark Kettenis <kettenis@gnu.org>
4849
4850 * m68knbsd-nat.c: Remove file.
4851 * m68knbsd-tdep.c: Remove file.
4852 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4853 dependencies.
4854 * configure.host: Add m68k-*-netbsdelf*.
4855 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4856 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4857 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4858 (XM_FILE): Remove.
4859 * config/m68k/nbsdelf.mh: New file.
4860 * config/m68k/nbsd.mt: New file.
4861 * config/m68k/nbsdaout.mt: Remove file.
4862 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4863 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4864 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4865 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4866 (use_struct_convention): Remove prototype.
4867 (USE_STRUCT_CONVENTION): Remove define.
4868 * config/m68k/xm-nbsd.h: Remove file.
4869
66894781
MS
48702004-05-04 Michael Snyder <msnyder@redhat.com>
4871
4872 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4873 reg_struct_return method (as gcc usually does for cross targets).
4874
f0f63663
AC
48752004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4876
4877 Committed by Andrew Cagney.
4878 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4879 alignment padding when accessing ucontext struct members.
4880
edf61169
JB
48812004-05-04 Jim Blandy <jimb@redhat.com>
4882
8bf659e8
JB
4883 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4884 'ppc_gplast_regnum' member.
4885 (ppc_num_gprs): New enum constant.
4886 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4887 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4888 * rs6000-nat.c (regmap, fetch_inferior_registers,
4889 store_inferior_registers): Same.
4890 * rs6000-tdep.c (e500_pseudo_register_read)
4891 (e500_pseudo_register_write): Same.
4892 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4893
b967e06f
JB
4894 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4895 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4896 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4897 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4898 FPLAST_REGNUM.
4899 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4900 Same.
4901 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4902 * rs6000-nat.c (regmap, fetch_inferior_registers)
4903 (store_inferior_registers): Same.
4904
edf61169
JB
4905 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4906 with FPLAST_REGNUM.
4907
58a9656e
JB
49082004-05-03 Joel Brobecker <brobecker@gnat.com>
4909
4910 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4911 failure detected by recent versions of GCC.
4912 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4913 to be consistent with the usage in dwarf2_create_include_psymtab.
4914
dc305454
MS
49152004-05-03 Michael Snyder <msnyder@redhat.com>
4916
4917 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4918 (heuristic_proc_start): Whitespace cleanup.
4919
29972665
MK
49202004-05-04 Mark Kettenis <kettenis@gnu.org>
4921
6b57680d
MK
4922 * sun3-nat.c: Remove file.
4923 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4924 dependencies.
4925 (ALLDEPFILES): Remove sun3-nat.c.
4926 (sun3-nat.o): Remove dependencies.
4927
29972665
MK
4928 * i386-interix-nat.c, i386-interix-tdep.c,
4929 config/i386/nm-interix.h, config/i386/interix.mh,
4930 config/i386/interix.mt: Remove files.
4931 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4932 dependencies.
4933
f595cb19
MK
49342004-05-03 Mark Kettenis <kettenis@gnu.org>
4935
4936 * m68k-tdep.h (struct gdbarch_tdep): Add member
4937 struct_value_regnum.
4938 (m68k_svr4_init_abi): New prototype.
4939 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4940 different calling conventions.
4941 (m68k_extract_return_value): Remove code dealing with single-field
4942 structs.
4943 (m68k_store_return_value): Remove code dealing with single-field
4944 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4945 (m68k_extract_struct_value_address): Remove function.
4946 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4947 (m68k_reg_struct_return_p, m68k_return_value)
4948 (m68k_svr4_return_value): New functions.
4949 (m68k_use_struct_convention): Remove function.
4950 (m68k_push_dummy_call): Use new struct_value_regnum member of
4951 `struct gdbarch_tdep' instead of hardcoded register number to
4952 store STRUCT_ADDR.
4953 (m68k_svr4_init_abi): New function.
4954 (m68k_gdbarch_init): Don't set extract_return_value,
4955 store_return_values, deprecated_extract_struct_value_address and
4956 use_struct_convention. Set return_value instead. Initialize new
4957 struct_value_regnum member of `struct gdbarch_tdep'.
4958 * m68klinux-tdep.c: Update copyright year.
4959 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4960 (m68k_linux_extract_struct_value_address): Remove function.
4961 (m68k_linux_init_abi): Don't set extract_return_value,
4962 store_return_values, deprecated_extract_struct_value_address and
4963 use_struct_convention. Call m68k_svr4_init_abi but override the
4964 new struct_value_regnum member of `struct gdbarch_tdep'.
4965 * Makefile.in (m68k-tdep.o): Update dependencies.
4966
aaa75496
JB
49672004-05-03 J. Brobecker <brobecker@gnat.com>
4968
4969 * dwarf2read.c (line_header): Add new included_p field in
4970 field file_names.
4971 (partial_die_info): New field has_stmt_list. New field line_offset.
4972 (dwarf2_create_include_psymtab): New function.
4973 (dwarf2_build_include_psymtabs): New function.
4974 (add_file_name): Add forward declaration. Initialize new field.
4975 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4976 to be able to determine the list of files included by the
4977 given unit, and build their associated psymtabs.
4978 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4979 files as well.
4980 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4981 (read_file_scope): Update call to dwarf_decode_lines.
4982 (read_partial_die): Handle DW_AT_stmt_list attributes.
4983
c848556f
MC
49842004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4985
4986 Unfix PR gdb/1626.
4987 * configure.in: Revert special case for osf5.*.
4988 * configure: Regenerate.
4989
eb4556d7
JB
49902004-05-02 Jim Blandy <jimb@redhat.com>
4991
4992 Move the symbol-file-from-memory functions into their own file.
4993 * symfile-mem.c, symfile-mem.h: New files.
4994 * symfile.c (symbol_file_add_from_bfd): New function.
4995 (symbol_file_add): Call symbol_file_add_from_bfd.
4996 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4997 Moved to symfile-mem.c.
4998 (_initialize_symfile): Move definition of
4999 add-symbol-file-from-memory command to symfile-mem.c.
5000 * symfile.h (symbol_file_add_from_bfd): New declaration.
5001 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5002 * config/powerpc/linux.mt (TDEPFILES): Same.
5003 * Makefile.in (SFILES): Add symfile-mem.c.
5004 (symfile_mem_h): New variable.
5005 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5006 (symfile-mem.o): New rule.
5007
80bb239e
AC
50082004-05-01 Andrew Cagney <cagney@redhat.com>
5009
7789d0fa
AC
5010 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5011 frame_find_by_id instead of frame_relative_level.
5012 (do_enable_breakpoint): Ditto.
5013 * thread.c: Update copyright.
5014 (info_threads_command): Ditto, simplify.
5015
80bb239e
AC
5016 * frame.c (deprecated_generic_get_saved_register): Delete
5017 function, moved to "xstormy16-tdep.c".
5018 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5019 deprecated_generic_get_saved_register from "frame.c".
5020 (xstormy16_frame_saved_register): Call
5021 xstormy16_get_saved_register.
5022 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5023 static.
5024 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5025 * frame.h (deprecated_generic_get_saved_register): Delete.
5026
b2a871dd
MC
50272004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5028
5029 * dwarfread.c: Update documentation on the state of dwarf-1.
5030
0e100dab
AC
50312004-05-01 Andrew Cagney <cagney@redhat.com>
5032
acd8056e
AC
5033 * stack.c (select_frame_command): Delete call to
5034 frame_relative_level.
5035 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5036 Delete #if0 code.
5037 (frame_info): Do not print FRAMELESS.
5038 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5039 (catch_info): Delete #if0 code.
5040
0e100dab
AC
5041 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5042 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5043 of frame_relative_level.
5044 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5045 to SENTINEL_FRAME.
5046 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5047 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5048 frame_relative_level.
5049
55699d59
AC
5050 * frame.h (deprecated_set_frame_type): Delete declaration.
5051 * frame.c (deprecated_set_frame_type): Delete function, update
5052 comments.
5053
fcf70625
AC
5054 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5055 * gdbarch.h, gdbarch.c: Re-generate.
5056 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5057 (shnbsd_pc_in_sigtramp): Delete.
5058 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5059 pc_in_sigtramp.
5060 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5061 pc_in_sigtramp.
5062 * frame.h: Update comments.
5063 * ppc-linux-tdep.c: Update comments.
5064 * breakpoint.c (bpstat_what): Update comments.
5065
ac5eccb7
AC
5066 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5067 m68klinux-tdep.o's dependencies, were previously added to
5068 m68klinux-nat.o.
5069
f2524b93
AC
5070 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5071 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5072 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5073 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5074 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5075
17e20bce
AC
5076 * Makefile.in (m68klinux-nat.o): Update dependencies.
5077 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5078 (m68k_linux_sigtramp_frame_cache)
5079 (m68k_linux_sigtramp_frame_this_id)
5080 (m68k_linux_sigtramp_frame_prev_register)
5081 (m68k_linux_sigtramp_frame_unwind)
5082 (m68k_linux_sigtramp_frame_sniffer)
5083 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5084 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5085 names, use trad-frame.h.
5086 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5087 (struct m68k_sigtramp_info): Delete.
5088 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5089 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5090 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5091 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5092 "m68klinux-tdep.c".
5093
c8864fa2
AC
5094 * infrun.c (check_sigtramp2): Delete check for
5095 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5096
511dd2cd
MK
50972004-05-01 Mark Kettenis <kettenis@gnu.org>
5098
5099 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5100
8c6b0e06
AC
51012004-05-01 Andrew Cagney <cagney@redhat.com>
5102
9df0bb3f
AC
5103 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5104 (frv_linux_sigtramp_frame_cache)
5105 (frv_linux_sigtramp_frame_this_id)
5106 (frv_linux_sigtramp_frame_prev_register)
5107 (frv_linux_sigtramp_frame_unwind)
5108 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5109 include "linux" in function and variable names, directly call
5110 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5111 the latest trad-frame code.
5112 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5113 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5114 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5115 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5116 * frv-tdep.c (frv_sigtramp_frame_cache)
5117 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5118 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5119 frv-linux-tdep.c.
5120 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5121 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5122 (frv_set_sigcontext_reg_addr): Delete function.
5123
8c6b0e06
AC
5124 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5125 (DEPRECATED_SIGTRAMP_END): Delete.
5126 * gdbarch.h, gdbarch.c: Re-generate.
5127 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5128 * config/vax/tm-vaxbsd.h: Update copyright.
5129 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5130 (DEPRECATED_IN_SIGTRAMP): Define.
5131 * config/m68k/tm-nbsd.h: Update copyright.
5132 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5133 (DEPRECATED_IN_SIGTRAMP): Define.
5134
50ea7769
MK
51352004-05-01 Mark Kettenis <kettenis@gnu.org>
5136
03ac2a74
MK
5137 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5138 encondings. Fixes PR gdb/1628.
5139
50ea7769
MK
5140 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5141 DW_CFA_restore state without a matching DW_CFA_remember_state
5142 instead of aborting. Fixes PR backtrace/1589.
5143
9a5d7be1
JB
51442004-04-30 Joel Brobecker <brobecker@gnat.com>
5145
5146 * MAINTAINERS: Add self as AIX maintainer.
5147 Update my e-mail address in write-after-approval section.
5148
2593d1cd
AC
51492004-04-30 Andrew Cagney <cagney@redhat.com>
5150
ce12bbf9
AC
5151 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5152 (legacy_get_prev_frame): Ditto.
5153
36710c63
AC
5154 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5155 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5156 * mipsread.c (sigtramp_address): Delete extern variable.
5157 (mipscoff_new_init): Delete reference.
5158 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5159 (fixup_sigtramp): Delete function.
5160 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5161 (fixup_sigtramp): Delete declarations.
5162
2593d1cd
AC
5163 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5164 deprecated_pc_in_sigtramp.
5165 (ppcnbsd_pc_in_sigtramp): Delete function.
5166
2a25f91c
MK
51672004-05-01 Mark Kettenis <kettenis@gnu.org>
5168
5169 * config/m68k/nm-nbsd.h: Tweak comments.
5170 * config/m68k/nm-nbsdaout.h: Likewise.
5171
0b281939
AC
51722004-04-30 Andrew Cagney <cagney@redhat.com>
5173
5174 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5175 legacy_pc_in_sigtramp.
5176 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5177
8f2d3ea0
MK
51782004-05-01 Mark Kettenis <kettenis@gnu.org>
5179
5180 Add OpenBSD/m68k support.
5181 * NEWS (New native configurations): Mention OpenBSD/m68k.
5182 * m68kbsd-tdep.c: New file.
5183 * m68kbsd-nat.c: New file.
5184 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5185 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5186 * configure.host: Add m68k-*-openbsd.
5187 * configure.tgt: Add m68k-*-openbsd.
5188 * config/m68k/tm-obsd.h: New file.
5189 * config/m68k/obsd.mt: New file.
5190 * config/m68k/obsd.mh: New file.
5191 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5192 m68kbsd-tdep.c.
5193
c40f49a4
AC
51942004-04-30 Andrew Cagney <cagney@redhat.com>
5195
5196 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5197 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5198
e81554cd
MK
51992004-04-30 Mark Kettenis <kettenis@gnu.org>
5200
5201 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5202 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5203
d4dc1a91
BF
52042004-04-30 Brian Ford <ford@vss.fsi.com>
5205
5206 Revert 2004-04-16 change.
5207 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5208 (i386_coff_init_abi): Remove.
5209 * i386-tdep.h (i386_coff_init_abi): Remove.
5210 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5211
2f72f850
AC
52122004-04-30 Andrew Cagney <cagney@redhat.com>
5213
e492f9d6
AC
5214 * blockframe.c (find_pc_partial_function): Delete use of
5215 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5216 DEPRECATED_SIGTRAMP_END.
5217
7b7adad0
AC
5218 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5219 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5220 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5221 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5222 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5223
2f72f850
AC
5224 * defs.h (deprecated_inside_entry_file): Delete declaration.
5225 * blockframe.c (deprecated_inside_entry_file): Delete function.
5226 (legacy_frame_chain_valid): Delete call.
5227 * sh64-tdep.c (sh64_frame_chain): Delete call.
5228 * objfiles.h: Update comments.
5229 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5230 call.
5231 * frame.c (get_prev_frame): Delete call, update comments.
5232
283f90a7
BF
52332004-04-30 Brian Ford <ford@vss.fsi.com>
5234
5235 * MAINTAINERS (Write After Approval): Add myself.
5236
8ee56bcf
AC
52372004-04-30 Andrew Cagney <cagney@redhat.com>
5238
5239 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5240 * gdbarch.h, gdbarch.c: Re-generate.
5241 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5242 code.
5243
ee27e1b6
AC
52442004-04-30 Andrew Cagney <cagney@redhat.com>
5245
5246 * gdb-events.sh (selected_thread_changed)
5247 (selected_frame_level_changed, target_changed): Delete.
5248 * gdb-events.h, gdb-events.c: Re-generate.
5249 * valops.c (value_assign): Update.
5250 * stack.c (select_frame_command, up_silently_base)
5251 (down_silently_base): Update.
5252
d5ac5a39
AC
52532004-04-29 Andrew Cagney <cagney@redhat.com>
5254
5255 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5256 registers correctly.
5257 (print_gp_register_row, mips32_heuristic_proc_desc)
5258 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5259 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5260 references to mips_isa_regsize.
5261
ceae6e75
AC
52622004-04-29 Andrew Cagney <cagney@redhat.com>
5263
5264 * mips-tdep.c (struct gdbarch_tdep): Delete
5265 mips_fp_register_double.
5266 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5267 mips_abi_regsize.
5268 (mips_gdbarch_init): Do not set mips_fp_register_double.
5269 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5270
a587af0b
AC
52712004-04-29 Joel Brobecker <brobecker@gnat.com>
5272
5273 Committed by Andrew Cagney.
5274 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5275 function calls.
5276
13326b4e
AC
52772004-04-29 Andrew Cagney <cagney@redhat.com>
5278
5279 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5280 gdbarch, use mips_abi, update callers.
5281 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5282 mips_abi_regsize, update callers.
5283 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5284 mips_default_abi_regsize.
5285 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5286 mips_default_abi_regsize.
5287
711cc5cd
AC
52882004-04-29 Andrew Cagney <cagney@redhat.com>
5289
1b13c4f6
AC
5290 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5291 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5292 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5293 mips_default_abi_regsize.
5294 (mips_isa_regsize): Rename mips_regisze.
5295 * mipsnbsd-tdep.c: Update.
5296 * mips-linux-tdep.c: Update.
5297 * irix5-nat.c: Update.
5298 * mips-tdep.h (mips_isa_regsize): Update.
5299
711cc5cd
AC
5300 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5301 Delete all disabled code.
5302 * gdb-events.h, gdb-events.c: Re-generate.
5303
e63bbc88
MK
53042004-04-19 Jerome Guitton <guitton@gnat.com>
5305 Mark Kettenis <kettenis@gnu.org>
5306
5307 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5308 the function begins with a branch instruction.
5309
fd35795f
MK
53102004-04-29 Mark Kettenis <kettenis@gnu.org>
5311
5312 * i386-tdep.c: Fix spelling mistakes.
5313
c960c18f
AC
53142004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5315 Andrew Cagney <cagney@redhat.com>
5316
5317 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5318 <sys/proc.h>.
5319 * acconfig.h: Provide default _KMEMUSER value.
5320 * config.in, configure: Re-generate.
5321 * NEWS: Mention fix.
5322
50306a9d
RC
53232004-04-24 Randolph Chung <tausq@debian.org>
5324
5325 * configure.host (hppa*-*-linux*): New target.
5326 * configure.tgt (hppa*-*-linux*): Likewise.
5327 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5328 gdbarch_init_osabi() call earlier so that osabi-specific frame
5329 unwinders can be registered first.
5330 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5331 hppa-linux-nat.c.
5332 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5333 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5334 * config/pa/linux.mh: New file.
5335 * config/pa/linux.mt: New file.
5336 * config/pa/nm-linux.h: New file.
5337 * config/pa/xm-linux.h: New file.
5338 * hppa-linux-nat.c: New file.
5339 * hppa-linux-tdep.c: New file.
5340
2a6228ef
RC
53412004-04-28 Randolph Chung <tausq@debian.org>
5342
5343 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5344 return values.
5345 (hppa32_push_dummy_call): Fix small struct and floating point argument
5346 passing, and make sure the stack frame is properly aligned.
5347
82c10df6
AC
53482004-04-28 Andrew Cagney <cagney@redhat.com>
5349
d762c46a
AC
5350 * stack.c (print_stack_frame): Fix description.
5351
82c10df6
AC
5352 * NEWS: Mention gdb/gdbserver/configure execute permission
5353 changed. PR server/519.
5354
0faf0076
AC
53552004-04-28 Andrew Cagney <cagney@redhat.com>
5356
5357 * stack.c (print_stack_frame_stub): Delete declaration.
5358 (struct print_stack_frame_args, print_stack_frame)
5359 (print_frame_info, print_frame): Replace "source" with print what.
5360 Replace "print" with "print_level". Replace "args" with
5361 "print_args".
5362 * frame.h (show_and_print_stack_frame, print_stack_frame)
5363 (print_frame_info): Update declarations.
5364 * stack.c (select_and_print_frame, frame_command)
5365 (current_frame_command, up_command, down_command): Update calls -
5366 use get_selected_frame, pass "enum print_what" for source, do not
5367 call frame_relative_level.
5368 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5369 * remote-rdp.c (remote_rdp_open): Ditto.
5370 * remote-mips.c (common_open): Ditto.
5371 * remote-e7000.c (e7000_start_remote): Ditto.
5372 * ocd.c (ocd_start_remote): Ditto.
5373 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5374 * infrun.c (normal_stop): Ditto.
5375 * inflow.c (kill_command): Ditto.
5376 * infcmd.c (finish_command): Ditto.
5377 * corelow.c (core_open): Ditto.
5378 * tracepoint.c (finish_tfind_command): Ditto.
5379 * thread.c (info_threads_command, info_threads_command)
5380 (restore_current_thread, do_captured_thread_select): Ditto.
5381 * ada-tasks.c (task_command): Ditto.
5382
f4c5303c
OF
53832004-04-26 Orjan Friberg <orjanf@axis.com>
5384
5385 * frame.c: Include "observer.h".
5386 (frame_observer_target_changed): New function.
5387 (_initialize_frame): Attach target_changed observer.
5388 * regcache.c: Include "observer.h".
5389 (regcache_observer_target_changed): New function.
5390 (_initialize_regcache): Attach target_changed observer.
5391 * valops.c: Include "observer.h".
5392 (value_assign): Notify target_changed event when modifying register.
5393 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5394
7270d8f2
OF
53952004-04-26 Orjan Friberg <orjanf@axis.com>
5396
5397 From Paul Koning <pkoning@equallogic.com>:
5398 * breakpoint.c (free_valchain): New function.
5399 (insert_bp_location, delete_breakpoint): Use free_valchain.
5400 (remove_breakpoint): Do not remove the valchain.
5401 (bpstat_stop_status): If not stopped by watchpoint, skip
5402 watchpoints when generating stop status list.
5403 * infrun.c (handle_inferior_event): Make
5404 stepped_after_stopped_by_watchpoint a global variable.
5405 * remote.c (remote_stopped_data_address): Return watch data
5406 address rather than zero if stepped_after_stopped_by_watchpoint is
5407 set.
5408
02d62932
MC
54092004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5410
5411 Fix PR gdb/1626.
5412 * configure.in: Check for curses after termcap.
5413 On osf5.*, do not check for ncurses.
5414 * configure: Regenerate.
5415
3e9a183c
MK
54162004-04-25 Mark Kettenis <kettenis@gnu.org>
5417
c79ac407
MK
5418 * ppcobsd-nat.c: Include "ppc-tdep.h".
5419 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5420
3e9a183c
MK
5421 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5422 Fixes PR tdep/1623 and PR tdep/1624.
5423
38cc9c28
MC
54242004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5425
5426 * xmodem.h, xmodem.c: Remove files.
5427 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5428
7f07c5b6
RC
54292004-04-23 Randolph Chung <tausq@debian.org>
5430
5431 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5432 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5433 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5434 for handling stackless frames.
5435 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5436
9f7194c3
RC
54372004-04-23 Randolph Chung <tausq@debian.org>
5438
5439 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5440 starts at a pc before the frame is created.
5441
dcff6009
JB
54422004-04-23 Joel Brobecker <brobecker@gnat.com>
5443
5444 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5445
40711ff1 54462004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5447
5448 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5449 use convert_typed_floating to get the appropriate format.
5450
abc485a1
RC
54512004-04-22 Randolph Chung <tausq@debian.org>
5452
5453 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5454 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5455 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5456 (hppa_sign_extend): Add prototype.
5457 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5458 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5459 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5460 hppa targets will also use these functions.
5461 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5462 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5463 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5464 (hppa_gdbarch_init): Remove gdbarch setting of
5465 skip_trampoline_code, in_solib_call_trampoline and
5466 in_solib_return_trampoline.
5467 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5468 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5469 hppa_in_solib_call_trampoline.
5470 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5471 Moved from hppa-tdep.c.
5472 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5473 in_solib_call_trampoline and in_solib_return_trampoline.
5474
369aa520
RC
54752004-04-22 Randolph Chung <tausq@debian.org>
5476
5477 * hppa-tdep.c (hppa_debug): New variable.
5478 (find_unwind_entry, hppa_frame_cache): Add debug output.
5479 (_initialize_hppa_tdep): Add command to set debug flag.
5480
476be15e
AC
54812004-04-22 Andrew Cagney <cagney@redhat.com>
5482
5483 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5484 "trad-frame.h".
5485 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5486 signal trampoline unwinder.
5487 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5488
d195bc9f
MK
54892004-04-22 Mark Kettenis <kettenis@gnu.org>
5490
5491 Add OpenBSD/powerpc support.
5492 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5493 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5494 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5495 (ppc_collect_fpregset): New prototypes.
5496 * ppcobsd-nat.c: New file.
5497 * ppcobsd-tdep.c: New file.
5498 * ppcobsd-tdep.h: New file.
5499 * rs6000-tdep.c: Include "regset.h".
5500 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5501 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5502 New functions.
5503 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5504 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5505 (rs6000-tdep.o): Update dependencies.
5506 * configure.host: Add powerpc-*-openbsd.
5507 * configure.tgt: Add powerpc-*-openbsd.
5508 * config/powerpc/obsd.mh: New file.
5509 * config/powerpc/nm-obsd.h: New file.
5510 * config/powerpc/obsd.mt: New file.
5511
6f14cc33
AC
55122004-04-22 Andrew Cagney <cagney@redhat.com>
5513
fcf29e5f
AC
5514 * frame.h (show_frame_info): Delete declaration.
5515
6f14cc33
AC
5516 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5517 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5518 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5519 * frv-tdep.c (frv_frame_this_id): Ditto.
5520 * avr-tdep.c (avr_frame_this_id): Ditto.
5521
e5786a5c
EZ
55222004-04-22 Elena Zannoni <ezannoni@redhat.com>
5523
5524 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5525
26e75e5c
JB
55262004-04-22 Jim Blandy <jimb@redhat.com>
5527
5528 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5529 register number zero.
5530
d8d65dd3
MS
55312004-04-21 Michael Snyder <msnyder@redhat.com>
5532
5533 * mips-tdep.c (heuristic_proc_start):
5534 Warning() already prefixes "Warning: ".
5535
9a4105ab
AC
55362004-04-21 Andrew Cagney <cagney@redhat.com>
5537
5538 * annotate.h (deprecated_annotate_starting_hook)
5539 (deprecated_annotate_stopped_hook)
5540 (deprecated_annotate_exited_hook)
5541 (deprecated_annotate_signal_hook)
5542 (deprecated_annotate_signalled_hook): Deprecate.
5543 * tracepoint.h (deprecated_create_tracepoint_hook)
5544 (deprecated_delete_tracepoint_hook)
5545 (deprecated_modify_tracepoint_hook)
5546 (deprecated_trace_find_hook)
5547 (deprecated_trace_start_stop_hook): Deprecate.
5548 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5549 * remote.h (deprecated_target_resume_hook)
5550 (deprecated_target_wait_loop_hook): Deprecate.
5551 * gdbcore.h (deprecated_exec_file_display_hook)
5552 (deprecated_file_changed_hook): Deprecate.
5553 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5554 * defs.h (deprecated_modify_breakpoint_hook)
5555 (deprecated_command_loop_hook, deprecated_show_load_progress)
5556 (deprecated_print_frame_info_listing_hook)
5557 (deprecated_query_hook, deprecated_warning_hook)
5558 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5559 (deprecated_delete_breakpoint_hook)
5560 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5561 (deprecated_readline_begin_hook, deprecated_readline_hook)
5562 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5563 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5564 (deprecated_context_hook, deprecated_target_wait_hook)
5565 (deprecated_attach_hook, deprecated_detach_hook)
5566 (deprecated_call_command_hook, deprecated_set_hook)
5567 (deprecated_error_hook, deprecated_error_begin_hook)
5568 (deprecated_ui_load_progress_hook): Deprecate.
5569 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5570 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5571 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5572 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5573 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5574 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5575 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5576 * annotate.c, aix-thread.c: Update.
5577
62cf13cc
AC
55782004-04-21 Andrew Cagney <cagney@redhat.com>
5579
b2e31a62
AC
5580 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5581 * vaxnbsd-tdep.c: Include "gdb_string.h".
5582
62cf13cc
AC
5583 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5584 (add_symbol_file_from_memory_command): #if 0 function body, call
5585 error instead.
5586
00e32a35
AC
55872004-04-21 Andrew Cagney <cagney@redhat.com>
5588
5589 * gdbcore.h: Update copyright.
5590 (deprecated_add_core_fns): Rename add_core_fns.
5591 * win32-nat.c (_initialize_core_win32): Update.
5592 * sun3-nat.c (_initialize_core_sun3): Update.
5593 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5594 * rs6000-nat.c (_initialize_core_rs6000): Update.
5595 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5596 * nto-tdep.c (_initialize_nto_tdep): Update.
5597 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5598 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5599 * mips-nat.c (_initialize_core_mips): Update.
5600 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5601 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5602 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5603 * lynx-nat.c (_initialize_core_lynx): Update.
5604 * irix5-nat.c (_initialize_core_irix5): Update.
5605 * i386-interix-nat.c (_initialize_core_interix): Update.
5606 * cris-tdep.c (_initialize_cris_tdep): Update.
5607 * corelow.c (deprecated_add_core_fns): Update.
5608 * core-regset.c (_initialize_core_regset): Update.
5609 * core-aout.c (_initialize_core_aout): Update.
5610 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5611 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5612 * alpha-nat.c (_initialize_core_alpha): Update.
5613
13c7b1ca
JB
56142004-04-21 Jim Blandy <jimb@redhat.com>
5615
5616 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5617
7b5a2f43
DJ
56182004-04-19 Daniel Jacobowitz <drow@mvista.com>
5619
5620 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5621 Delete.
5622 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5623 (read_attribute_value): Update calls to dwarf_alloc_block.
5624 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5625 dwarf2_tmp_obstack.
5626 (psymtab_to_symtab_1): Likewise. Clean up using
5627 free_stack_comp_unit.
5628 (add_to_cu_func_list): Use the comp_unit_obstack.
5629
05cf31d1
JB
56302004-04-19 Joel Brobecker <brobecker@gnat.com>
5631
5632 * dwarf2read.c (dwarf2_flag_true_p): New function.
5633 (die_is_declaration): Use the function above. Add some comments.
5634
adf93a2f
MK
56352004-04-19 Mark Kettenis <kettenis@gnu.org>
5636
5637 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5638 architecture when registering sparcnbsd_core_osabi_sniffer.
5639 Adjust comment.
5640
748894bf
MK
56412004-04-18 Mark Kettenis <kettenis@gnu.org>
5642
f622ad42
MK
5643 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5644 return value.
5645
c4fc7f1b
MK
5646 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5647 * i386-tdep.c: Correct register numbering scheme comments
5648 throughout.
5649 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5650 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5651 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5652 (i386_gdb_arch_init): Likewise.
5653
b4ead1bd
MK
5654 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5655 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5656 ppcnbsd-tdep.o.
5657
748894bf
MK
5658 * m68k-tdep.h: Tweak comments.
5659 * m68k-tdep.c: Tweak comment.
5660
fdd72f95
RC
56612004-04-17 Randolph Chung <tausq@debian.org>
5662
5663 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5664 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5665 (hppa_hpux_som_init_abi): Set is_elf to 0.
5666 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5667 * hppa-tdep.c (low_text_segment_address): Remove global.
5668 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5669 section offset to calculate segment address.
5670 (internalize_unwinds): Define low_text_segment_address as local and
5671 pass to record_text_segment_lowaddr for ELF targets.
5672 (hppa_gdbarch_init): Zero fill tdep structure.
5673 (hppa_dump_tdep): Print tdep structure.
5674 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5675
0f8d9d59
RC
56762004-04-17 Randolph Chung <tausq@debian.org>
5677
5678 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5679 (hppa_gdbarch_init): Set pseudo_register_read.
5680 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5681 * regcache.c (supply_register): Remove check for
5682 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5683
7c46b9fb
RC
56842004-04-17 Randolph Chung <tausq@debian.org>
5685
5686 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5687 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5688 (hpread_adjust_stack_address): Move to hpread.c.
5689 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5690 obj_private_struct): Move from tm-hppa.h.
5691 * hpread.c (hppa-tdep.h): Include.
5692 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5693 (hpread_read_function_type, hpread_read_doc_function_type)
5694 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5695 directly.
5696 * pa64solib.c (hppa-tdep.h): Include.
5697 * somsolib.c (hppa-tdep.h): Include.
5698 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5699 inferior_status): Remove unused forward declarations.
5700 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5701 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5702 obj_private_struct): Move to hppa-tdep.h.
5703 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5704
8d153463
RC
57052004-04-17 Randolph Chung <tausq@debian.org>
5706
5707 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5708 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5709 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5710 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5711 Remove forward declaration and make static.
5712 (hppa_reg_struct_has_addr): Remove.
5713
350c2e5b
JB
57142004-04-16 Joel Brobecker <brobecker@gnat.com>
5715
5716 * observer.sh: Move comments in sed command to first column.
5717
bbde78fa
JM
57182004-04-16 Jason Molenda (jmolenda@apple.com)
5719
5720 * frame.c: Minor typeo corrections in comments.
5721
e0270fd9
JB
57222004-04-16 Joel Brobecker <brobecker@gnat.com>
5723
5724 * observer.c (observer_test_first_notification_function): Update
5725 function profile.
5726 (observer_test_second_notification_function): Likewise.
5727 (observer_test_third_notification_function): Likewise.
5728
3d049254
MK
57292004-04-16 Mark Kettenis <kettenis@gnu.org>
5730
5731 From Brian Ford <ford@vss.fsi.com>:
5732 * i386-tdep.c (i386_coff_init_abi): New function.
5733 * i386-tdep.h (i386_coff_init_abi): New prototype.
5734 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5735 register number translation functions for DWARF and DWARF 2.
5736
7867684d
JB
57372004-04-16 Joel Brobecker <brobecker@gnat.com>
5738
5739 * dwarf2read.c: Back out my previous change, it was incorrect.
5740
72bf9492
DJ
57412004-04-16 Daniel Jacobowitz <drow@mvista.com>
5742
5743 * dwarf2read.c: Include "hashtab.h".
5744 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5745 has_namespace_info.
5746 (struct partial_die_info): Add comments. Use bitfields to reduce
5747 memory footprint. Add scope, scope_set, has_specification,
5748 spec_offset, die_parent, die_child, and die_sibling.
5749 (peek_die_abbrev): Add prototype.
5750 (partial_read_comp_unit_head): New function, broken out from
5751 dwarf2_build_psymtabs_hard.
5752 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5753 Use partial_read_comp_unit_head. Initialize the CU and
5754 comp_unit_obstack. Update calls to read_partial_die and
5755 scan_partial_symbols. Use free_stack_comp_unit and
5756 load_partial_dies.
5757 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5758 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5759 Update calls to helper functions. Remove NAMESPACE argument.
5760 Update comments.
5761 (partial_die_parent_scope, partial_die_full_name): New functions.
5762 (add_partial_symbol): Remove namespace argument. Update call to
5763 pdi_needs_namespace. Use partial_die_full_name. Handle
5764 DW_TAG_namespace. Check has_namespace_info flag.
5765 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5766 tag. Handle namespaces.
5767 (add_partial_namespace, add_partial_enumeration): Simplify.
5768 (guess_structure_name): New function, derived from
5769 add_partial_structure.
5770 (add_partial_structure): Remove.
5771 (determine_class_name): Update comment.
5772 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5773 (is_type_tag_for_partial, load_partial_dies): New functions.
5774 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5775 Record specifications instead of following them immediately.
5776 (find_partial_die_in_comp_unit, find_partial_die)
5777 (fixup_partial_die, free_stack_comp_unit)
5778 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5779 (partial_die_hash, partial_die_eq): New functions.
5780 * Makefile.in (hashtab_h): Define.
5781 (dwarf2read.o): Update dependencies.
5782 (observer_inc, observer_h): Move to the correct section.
5783
fdc860a3
JB
57842004-04-15 Joel Brobecker <brobecker@gnat.com>
5785
5786 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5787 (die_is_declaration): Use the function above. Add comment.
5788
dc718098
JB
57892004-04-15 Joel Brobecker <brobecker@gnat.com>
5790
5791 * dwarf2read.c (read_structure_scope): Identify stub types
5792 using die_is_declaration() only.
5793
8718a420
RM
57942004-04-15 Roland McGrath <roland@redhat.com>
5795
5796 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5797 argument instead of NAME.
5798 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5799 in call to symbol_file_add_with_addrs_or_offsets.
5800 (build_addr_info): New function, helper for ...
5801 (symbol_file_add_from_memory): New function.
5802 (add_symbol_file_from_memory_command): New function using that.
5803 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5804 (pre_add_symbol_hook): Add const to argument type.
5805 * symfile.h (symbol_file_add_from_memory): Declare it.
5806
8b910bab
MK
58072004-04-15 Mark Kettenis <kettenis@gnu.org>
5808
9f076e7a
MK
5809 * NEWS (New native configurations): Mention OpenBSD/vax.
5810 * configure.host: Add vax-*-openbsd*.
5811 * config/vax/obsd.mh: New file.
5812 * config/vax/nm-obsd.h: New file.
5813
8b910bab
MK
5814 * vax-tdep.c: Include "regset.h".
5815 (vax_supply_gregset): New function.
5816 (vax_gregset): New variable.
5817 (vax_regset_from_core_section): New function.
5818 (vax_gdbarch_init): Set regset_from_core_section.
5819 * Makefile.in (vax-tdep.o): Update dependencies.
5820
7a464420
AC
58212004-04-15 Andrew Cagney <cagney@redhat.com>
5822
5823 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5824 (observer_normal_stop_notification_stub)
5825 (observer_attach_normal_stop, observer_detach_normal_stop):
5826 Delete, replaced by #include "observer.inc".
5827 * infrun.c (normal_stop): Pass "stop_bpstat" to
5828 observer_notify_normal_stop.
5829 * Makefile.in (observer_inc): Define.
5830 (observer.o): Update dependencies.
5831 (observer.h, observer.inc): New rules.
5832 * observer.h: Delete file.
5833 * observer.sh: New file.
5834
e36ad527
MK
58352004-04-15 Mark Kettenis <kettenis@gnu.org>
5836
5837 * vax-tdep.c (vax_frame_cache): Fix typo.
5838
67b441e1
MK
58392004-04-14 Mark Kettenis <kettenis@gnu.org>
5840
6f606e1c
MK
5841 * NEWS (New native configurations): Mention NetBSD/vax.
5842 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5843 * config/vax/nbsdelf.mh: New file.
5844 * config/vax/nbsdaout.mh: New file.
5845 * config/vax/nm-nbsd.h: New file.
5846 * config/vax/nm-nbsdaout.h: New file.
5847
9c5519a5
MK
5848 * vaxnbsd-tdep.c: New file.
5849 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5850 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5851 * config/vax/nbsd.mt: New file.
5852 * config/vax/tm-nbsd.h: New file.
5853
4844a614
MK
5854 * Makefile.in (vaxbsd-nat.o): New dependency.
5855
67b441e1
MK
5856 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5857 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5858 struct_addr arguments. Don't push return value address.
5859 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5860 arguments to vax_store_arguments. Store return value address in
5861 R1.
5862 (vax_store_struct_return, vax_extract_return_value)
5863 (vax_store_return_value): Remove functions.
5864 (vax_return_value): New function.
5865 (vax_gdbarch_init): Set return value. Don't set
5866 deprecated_store_struct_return, deprecated_extract_struct_return
5867 and deprecated_store_return_value.
5868
6672f2ae
AS
58692004-04-14 Andreas Schwab <schwab@suse.de>
5870
5871 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5872 value buffer.
5873 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5874
7346c184
MK
58752004-04-14 Mark Kettenis <kettenis@gnu.org>
5876
5877 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5878 (vax_unwind_dummy_id): New functions.
5879 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5880 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5881 variables.
5882 (vax_fix_call_dummy): Remove function.
5883 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5884 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5885 call_dummy_location, deprecated_call_dummy_words,
5886 deprecated_sizeof_call_dummy_words,
5887 deprecated_call_dummy_breakpoint_offset,
5888 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5889 and deprecated_dummy_write_sp.
5890
58e23df4
DC
58912004-04-13 David Carlton <carlton@kealia.com>
5892
5893 * MAINTAINERS: Move myself to "paper trail" section.
5894
5e6b39ff
MK
58952004-04-12 Mark Kettenis <kettenis@gnu.org>
5896
7def7fef
MK
5897 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5898 "trad-frame.h".
5899 (vax_frame_init_saved_regs): Remove function.
5900 (vax_sigtramp_saved_pc): Remove function.
5901 (vax_frame_saved_pc): Remove function.
5902 (vax_frame_args_address): Remove function.
5903 (vax_frame_num_args): Rewrite.
5904 (vax_frame_chain): Remove function.
5905 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5906 VAX_FP_REGNUM.
5907 (vax_pop_frame): Likewise.
5908 (vax_saved_pc_after_call): Remove function.
5909 (struct vax_frame_cache): New structure.
5910 (vax_frame_cache): New function.
5911 (vax_frame_this_id): New function.
5912 (vax_frame_prev_register): New function.
5913 (vax_frame_unwind): New variable.
5914 (vax_frame_sniffer): New function.
5915 (vax_frame_base_address): New function.
5916 (vax_frame_args_address): New function.
5917 (vax_frame_base): New variable.
5918 (vax_unwind_pc): New function.
5919 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5920 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5921 deprecated_frame_chain, deprecated_frame_saved_pc,
5922 deprecated_frame_args_address and
5923 deprecated_frame_init_saved_regs.
5924 * Makefile.in (vax-tdep.o): Update dependencies.
5925
53284fc1
MK
5926 * vaxbsd-nat.c: New file.
5927
5e6b39ff
MK
5928 * vax-tdep.h: Update copyright year. Adjust comments.
5929 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5930 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5931 (vax_regnum): New enum. Replacing...
5932 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5933 (VAX_PS_REGNUM): ... these removed macros.
5934 * vax-tdep.c (vax_register_name): Remove prototype.
5935 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5936 (vax_register_byte, vax_register_raw_size,
5937 vax_register_virtual_size, vax_register_virtual_type): Remove
5938 functions.
5939 (vax_register_type): New function.
5940 (vax_breakpoint_from_pc): Reorganize.
5941 (vax_gdbarch_init): Set register_type. Don't set
5942 deprecated_register_size, deprecated_register_bytes,
5943 deprecated_register_byte, deprecated_register_raw_size,
5944 deprecated_max_register_raw_size,
5945 deprecated_register_virtual_size,
5946 deprecated_max_register_virtual_size and
5947 deprecated_register_virtual_type. Add comment on stack direction.
5948
e9c71e9f
MK
59492004-04-11 Mark Kettenis <kettenis@gnu.org>
5950
5951 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5952 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 5953 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 5954
d46f1176 59552004-04-10 Randolph Chung <tausq@debian.org>
8718a420 5956
d46f1176
RC
5957 * MAINTAINERS (write after approval): Add myself.
5958
a2a84a72
RC
59592004-04-07 Randolph Chung <tausq@debian.org>
5960
5961 * hppa-tdep.c (hppa_inner_than): Remove.
5962 (is_pa_2): Remove unused static variable.
8718a420 5963 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 5964
e85c3284
PH
59652004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5966
5967 * language.h (language_defn): Add new la_post_parser field.
5968 * parser-defs.h (null_post_parser): New declaration (default for
5969 la_post_parser).
8718a420 5970
e85c3284
PH
5971 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5972 insert call to that function.
5973 (parse_exp_in_context): New function, including code formerly in
8718a420 5974 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
5975 prefixification.
5976 (parse_expression_in_context): New exported function.
5977 (null_post_parser): New definition.
5978 * expression.h (parse_expression_in_context): Add declaration.
8718a420 5979
e85c3284
PH
5980 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5981 * c-lang.c (c_language_defn): Ditto.
5982 (cplus_language_defn): Ditto.
5983 (asm_language_defn): Ditto.
5984 (minimal_language_defn): Ditto.
5985 * f-lang.c (f_language_defn): Ditto.
5986 * jv-lang.c (java_language_defn): Ditto.
5987 * language.c (unknown_language_defn): Ditto.
5988 (auto_language_defn): Ditto.
5989 (local_language_defn): Ditto.
5990 * m2-lang.c (m2_language_defn): Ditto.
5991 * scm-lang.c (scm_language_defn): Ditto.
5992 * obj-lang.c (objc_language_defn): Ditto.
8718a420 5993
d9f8c85b
MK
59942004-04-10 Mark Kettenis <kettenis@gnu.org>
5995
fa34704a
MK
5996 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5997 (amd64nbsd_mcontext_addr): New function.
5998 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5999 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6000 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6001
403e1656
MK
6002 * corelow.c (core_xfer_partial): Fix coding standards violation.
6003 Add support for TARGET_OBJECT_WCOOKIE.
6004
a57e5a95
MK
6005 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6006 deprecated_pc_in_sigtramp.
6007 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6008 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6009 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6010 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6011 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6012 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6013 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6014
377d9ebd
MK
6015 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6016 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6017 Fix typo.
6018
f0ef85a5
MK
6019 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6020 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6021 (amd64_collect_fxsave): Likewise.
6022
d9f8c85b
MK
6023 * i386-sol2-tdep.c: Include "gdb_string.h".
6024 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6025 name.
6026 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6027
75f501b5
MK
60282004-04-10 Mark Kettenis <kettenis@gnu.org>
6029
6030 * i386-sol2-tdep.c: Include "solib-svr4.h".
6031 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6032 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6033 * config/i386/tm-i386sol2.h: Include :solib.h".
6034 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6035 solib-svr4.o and solib-legacy.o.
6036 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6037 solib-svr4.o.
6038
b31bc724
MK
60392004-04-09 Mark Kettenis <kettenis@gnu.org>
6040
18bbbd9e
MK
6041 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6042 whether a register is supplied by PTRACE_GETFPREGS.
6043 (store_inferior_registers): Likewise.
6044 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6045 whether a register is supplied by PT_GETFPREGS.
6046 (store_inferior_registers): Likewise.
6047
3c30bf1b
MK
6048 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6049 * config/i386/linux64.mt (TDEPFILES): Likewise.
6050
a4194092
MK
6051 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6052
911bc6ee
MK
6053 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6054 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6055 the program counter is in the range specified by `struct
6056 gdbarch_tdep'.
6057 * amd64-linux-tdep.c: Include "symtab.h".
6058 (amd64_linux_pc_in_sigtramp): Remove function.
6059 (amd64_linux_sigtramp_p): New function.
6060 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6061 deprecated_pc_in_sigtramp.
6062 * amd64nbsd-tdep.c: Include "symtab.h".
6063 (amd64nbsd_sigtramp_p): New function.
6064 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6065 deprecated_pc_in_sigtramp.
6066 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6067 few comments.
6068 (amd64obsd_pc_in_sigtramp): Remove function.
6069 (amd64obsd_sigtramp_p): New function.
6070 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6071 deprecated_pc_in_sigtramp.
6072 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6073 (i386bsd_pc_ins_sigtramp): Remove prototype.
6074 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6075 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6076 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6077 the program counter is in the range specified by `struct
6078 gdbarch_tdep'.
6079 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6080 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6081 (i386_go32_pc_in_sigtramp): Remove function.
6082 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6083 Initialize TDEP->sigtramp_p.
6084 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6085 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6086 deprecated_pc_in_sigtramp.
6087 * i386-linux-tdep.c: Adjust comments.
6088 (i386_linux_pc_in_sigtramp): Remove function.
6089 (i386_linux_sigtramp_p): New function.
6090 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6091 deprecated_pc_in_sigtramp.
6092 * i386-nto-tdep.c: Update copyright year.
6093 (i386nto_pc_in_sigtramp): Remove function.
6094 (i386nto_sigtramp_p): New function.
6095 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6096 SP_REGNUM.
6097 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6098 deprecated_pc_in_sigtramp.
6099 * i386-sol2-tdep.c: Update copyright year.
6100 (i386_sol2_pc_in_sigtramp): Remove function.
6101 (i386_sol2_sigtramp_p): New function.
6102 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6103 deprecated_pc_in_sigtramp.
6104 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6105 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6106 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6107 deprecated_sigtramp_start and deprecated_sigtramp_end.
6108 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6109 (i386nbsd_pc_in_sigtramp): Remove function.
6110 (i386nbsd_sigtramp_p): New function.
6111 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6112 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6113 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6114 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6115 (i386obsd_pc_in_sigtramp): Remove function.
6116 (i386obsd_sigtramp_p): New function.
6117 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6118 functions.
6119 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6120 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6121 TDEP->sigtramp_p.
6122 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6123 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6124 dependencies.
6125
e083e6ec
MK
6126 * config/i386/i386aout.mt: Remove file.
6127
bd153b94
MK
6128 * configure.tgt: Remove i[34567]86-*-go32*,
6129 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6130 and i[34567]86-*-isc*. Set gdb_target to i386 for
6131 i[34567]86-*-netware* and i[34567]86-*-*.
6132 * config/i386/i386.mt: New file.
6133 * config/i386/embed.mt: Remove file.
6134 * config/i386/go32.mt: Remove file.
6135 * config/i386/i386nw.mt: Remove file.
6136 * config/i386/i386v.mt: Remove file.
6137 * config/i386/tm-go32.h: Remove file.
6138
4a1bcc8c
MK
6139 * tui/tui-hooks.c: Include "readline/readline.h" after
6140 "gdb_curses.h" instead of before.
6141 * tui/tui-io.c: Likewise.
6142
f9a79064
MK
6143 * tui/tui.c: Fix typo in comment.
6144
b31bc724
MK
6145 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6146
f83f82bc
AC
61472004-04-08 Andrew Cagney <cagney@redhat.com>
6148
6149 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6150 (deprecated_exception_support_initialized): Declare.
8718a420 6151 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6152 (initialize_hp_cxx_exception_support)
6153 (child_enable_exception_callback): Update.
6154 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6155 (deprecated_exception_support_initialized): Rename
6156 deprecated_exception_catchpoints_are_fragile and
6157 deprecated_exception_support_initialized.
6158 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6159
6160 * symtab.c (deprecated_hp_som_som_object_present): Rename
6161 hp_som_som_object_present.
6162 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6163 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6164 Update. Delete extern declaration.
6165 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6166 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6167 (parse_nested_classes_for_hpacc): Ditto.
6168 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6169 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6170 (initialize_hp_cxx_exception_support): Ditto.
6171 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6172 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6173 (cp_print_class_method): Ditto.
8718a420 6174 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6175 (c_type_print_base): Ditto.
6176 * c-exp.y (hp_som_som_object_present): Ditto.
6177
fb2be677
AC
61782004-04-08 Andrew Cagney <cagney@redhat.com>
6179
6180 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6181 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6182 (frame_unwind_find_by_frame): Re-implement the unwind code so
6183 that it can both prepend and append sniffers. Replace
6184 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6185 * tramp-frame.c (tramp_frame_append): Use
6186 frame_unwind_prepend_unwinder.
6187 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6188 frame_unwind_register_unwinder.
6189 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6190 tramp_frame_append.
6191 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6192 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6193 (mips_linux_init_abi): Update.
6194
67faf007
KB
61952004-04-08 Kevin Buettner <kevinb@redhat.com>
6196
6197 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6198 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6199 file support.
6200
8973ff21
KB
62012004-04-07 Kevin Buettner <kevinb@redhat.com>
6202
6203 * ia64-tdep.c (elf.h): Don't include.
6204 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6205
4a0e2f88
JM
62062004-04-07 Jason Molenda (jmolenda@apple.com)
6207
6208 * frame.h: Typeo corrections in comments.
6209
9872ad24
JB
62102004-04-07 Jim Blandy <jimb@redhat.com>
6211
6212 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6213 %esp and %ebp
6214
70b216c8
MK
62152004-04-07 Mark Kettenis <kettenis@gnu.org>
6216
11d5789c
MK
6217 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6218 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6219 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6220 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6221 and solib-legacy.o.
6222 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6223 solib-svr4.o.
6224 * config/sparc/tm-sol2.h: Update copyright year. Include
6225 "solib.h".
6226
70b216c8
MK
6227 * sparc-sol2-tdep.c: Update copyright year. Include
6228 "solib-svr4.h".
6229 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6230 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6231 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6232 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6233 dependencies.
6234
6339dc9e
AC
62352004-04-06 Andrew Cagney <cagney@redhat.com>
6236
6237 * infttrace.c: Include "infttrace.h".
6238 * infttrace.h: Include "target.h".
6239 * Makefile.in (infttrace_h): Update.
6240 (infttrace.o): Update.
8718a420 6241
93449403
AC
62422004-04-06 Andrew Cagney <cagney@redhat.com>
6243
6d518969
AC
6244 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6245 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6246 move extern declarations from here ...
6247 * infttrace.h: ... to here.
6248 * Makefile.in (hppah-nat.o): Update dependencies.
6249
85f4f2d8
AC
6250 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6251 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6252 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6253 (hppa_breakpoint_from_pc): Delete.
6254
93449403
AC
6255 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6256
71456ec6
AC
62572004-04-05 Andrew Cagney <cagney@redhat.com>
6258
6259 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6260 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6261 <sys/file.h>.
8718a420 6262
4c02c60c
AC
62632004-04-06 Randolph Chung <tausq@debian.org>
6264
6265 Committed by Andrew Cagney (mechanical change).
6266 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6267 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6268 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6269 child_enable_exception_callback, current_ex_event,
6270 null_symtab_and_line, child_get_current_exception_event,
6271 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6272 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6273 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6274 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6275 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6276 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6277 Move hpux-specific definitions ...
6278 * hppa-hpux-tdep.c: ... to here.
6279
3a515653
AC
62802004-04-05 Andrew Cagney <cagney@redhat.com>
6281
6282 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6283 skip_prologue_using_sal.
6284
c1730d02
AC
62852004-04-05 Andrew Cagney <cagney@redhat.com>
6286
6287 * config/i386/tm-i386.h: Delete file.
6288 * config/i386/tm-vxworks.h: Update copyright, do not include
6289 "tm-i386.h".
6290 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6291 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6292 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6293 * config/i386/ncr3000.mt (TM_FILE): Delete.
6294 * config/i386/interix.mt (TM_FILE): Delete.
6295 * config/i386/i386v.mt (TM_FILE): Delete.
6296 * config/i386/i386nw.mt (TM_FILE): Delete.
6297 * config/i386/i386gnu.mt (TM_FILE): Delete.
6298 * config/i386/i386aout.mt (TM_FILE): Delete.
6299 * config/i386/embed.mt (TM_FILE): Delete.
6300
8b67aa36
KB
63012004-04-05 Kevin Buettner <kevinb@redhat.com>
6302
6303 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6304 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6305 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6306 (accg7_regnum): New constants.
6307 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6308 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6309 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6310 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6311 for accg registers.
6312 (frv_register_sim_regno): Update spr_map[].
6313
3c7012f5
AC
63142004-04-04 Andrew Cagney <cagney@redhat.com>
6315
6316 * config/mips/xm-riscos.h: Delete.
6317 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6318 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6319 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6320 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6321 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6322 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6323 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6324 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6325 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6326 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6327 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6328 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6329 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6330 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6331 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6332 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6333 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6334 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6335 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6336 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6337 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6338 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6339 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6340 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6341 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6342 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6343
3c7012f5
AC
6344 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6345 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6346 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6347 * configure.host: Remove m680[01]0-sun-sunos3*,
6348 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6349 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6350 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6351 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6352 mips-*-riscos*.
6353 * NEWS: Mention removed systems.
6354
99d16a21
AC
63552004-04-04 Andrew Cagney <cagney@redhat.com>
6356
6357 GDB 6.1 release created from 6.1 branch.
6358
6cdf9d98
AC
63592004-04-04 Andrew Cagney <cagney@redhat.com>
6360
98d346c3
AC
6361 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6362 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6363 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6364
6cdf9d98
AC
6365 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6366 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6367 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6368
859a326d
JB
63692004-04-03 Jim Blandy <jimb@redhat.com>
6370
6371 * MAINTAINERS: Chris Faylor has changed employers; add him to
6372 "paper trail" section, and update his E-mail address.
6373
b87178c3
AC
63742004-04-03 Andrew Cagney <cagney@redhat.com>
6375
4ea2acf0
AC
6376 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6377 generic dummy frames.
6378 * dummy-frame.c: Update copyright.
6379 (dummy_frame_sniffer): Delete check for generic dummy frames.
6380
d0bd2d18 6381 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6382 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6383 (REG_PARM_STACK_SPACE): Delete.
6384 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6385 Inline reference to REG_PARM_STACK_SPACE.
6386
b87178c3
AC
6387 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6388 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6389 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6390 (FRAME_BASE_BEFORE_SIGTRAMP)
6391 (hppa32_hpux_frame_base_before_sigtramp)
6392 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6393 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6394 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6395 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6396 (FRAME_BASE_BEFORE_SIGTRAMP)
6397 (hppa64_hpux_frame_base_before_sigtramp)
6398 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6399
43e2e1a0
AC
64002004-04-03 Andrew Cagney <cagney@redhat.com>
6401
6402 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6403
ddc135a4
AC
64042004-04-02 Andrew Cagney <cagney@redhat.com>
6405
6406 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6407 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6408 * dummy-frame.h: Delete out-of-date comments.
6409 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6410 * gdbarch.h, gdbarch.c: Re-generate.
6411
d15bfd3a 64122004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6413
d15bfd3a
AC
6414 Committed by Andrew Cagney <cagney@redhat.com>.
6415 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6416 into account an instruction saving a register if we have already
6417 seen an earlier instruction saving that same register.
6418
f04ceafa
AC
64192004-04-02 Andrew Cagney <cagney@redhat.com>
6420
08be3abd
AC
6421 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6422 * gdbarch.h, gdbarch.c: Re-generate.
6423 * frame.c (legacy_get_prev_frame): Delete references to
6424 DEPRECATED_INIT_FRAME_PC_FIRST.
6425
f04ceafa
AC
6426 * infrun.c (pc_in_sigtramp): Delete function.
6427 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6428 get_frame_type.
6429
08e69816
AC
64302004-04-02 Andrew Cagney <cagney@redhat.com>
6431
6432 * infrun.c (handle_step_into_function): Delete code conditional on
6433 legacy_frame_p.
6434 (handle_inferior_event, step_over_function): Ditto.
6435
adb54772
AC
64362004-04-02 Andrew Cagney <cagney@redhat.com>
6437
6438 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6439 "previous frame inner to this frame" test.
6440
304396fb
AC
64412004-04-02 Andrew Cagney <cagney@redhat.com>
6442
6443 * frame.c (safe_frame_unwind_memory): New function.
6444 * frame.h (safe_frame_unwind_memory): Declare. Update description
6445 of /safe_/ methods.
6446 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6447 "next_frame". Use safe_frame_unwind_memory.
6448 (tramp_frame_sniffer): Update call to tramp_frame_start.
6449
6502dd73
DJ
64502004-04-01 Daniel Jacobowitz <drow@mvista.com>
6451
6452 * dwarf2read.c (dwarf2_objfile_data_key): New.
6453 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6454 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6455 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6456 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6457 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6458 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6459 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6460 Remove variables.
6461 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6462 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6463 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6464 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6465 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6466 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6467 Remove macros.
6468 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6469 data.
6470 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6471 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6472 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6473 (read_partial_die, read_full_die, read_indirect_string)
6474 (dwarf_decode_line_header, dwarf_decode_macros)
6475 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6476 Update uses of removed variables.
6477 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6478 of removed macros.
6479 (_initialize_dwarf2_read): New function.
6480 * symfile.h (dwarf2_has_info): Update prototype.
6481 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6482 * elfread.c (elf_symfile_read): Likewise.
6483
408752b0
JB
64842004-04-01 Jim Blandy <jimb@redhat.com>
6485
9f744501
JB
6486 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6487 function for register numbers on all the rs6000-derived targets.
6488 (rs6000_gdbarch_init): Don't register a separate
6489 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6490 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6491 variants.
6492
408752b0
JB
6493 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6494 numbering.
6495
2de41bce
PH
64962004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6497
6498 * valarith.c: Update copyright notice.
6499 (value_add): Handle range types.
6500 (value_sub): Ditto.
6501 (value_equal): Ditto.
6502 (value_less): Ditto.
6503 (value_neg): Ditto.
6504 (value_complement): Ditto.
8718a420 6505 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6506 eliminiating unnecessary COERCE_ENUMs.
8718a420 6507
5613d8d3
AC
65082004-03-31 Andrew Cagney <cagney@redhat.com>
6509
6510 * frame.h (frame_unwind_id): Declare.
6511 * frame.c (frame_unwind_id): New function.
6512 (get_prev_frame_1): New function.
6513 (frame_debug_got_null_frame): New function.
6514 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6515 code proper to prev_frame, update description.
6516 * infrun.c (step_over_function): Use frame_unwind_id.
6517
c4557624
JB
65182004-04-31 J. Brobecker <brobecker@gnat.com>
6519
6520 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6521 (hppa64_push_dummy_call): Likewise.
6522
3e6bb910
JB
65232004-03-30 Jim Blandy <jimb@redhat.com>
6524
6525 From Ulrich Weigand:
6526 * utils.c (query): Do not use a va_list variable multiple times.
6527
a2f23071
DJ
65282004-03-29 Daniel Jacobowitz <drow@mvista.com>
6529
6530 * Makefile.in (linux_nat_h): Update dependencies.
6531 * configure.in: Check for <gnu/libc-version.h>.
6532 * configure: Regenerate.
6533 * config.in: Regenerate.
6534 * linux-nat.h: Include "target.h". Add waitstatus field to
6535 struct lwp_info.
6536 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6537 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6538 to.
6539 (lin_lwp_handle_extended): New function. Handle clone events.
6540 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6541 thread exit events.
6542 (child_wait): Handle clone events.
6543 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6544 * linux-nat.c (linux_enable_event_reporting): Turn on
6545 PTRACE_O_TRACECLONE.
6546 (linux_handle_extended_wait): Handle clone events.
6547 * thread-db.c: Include <gnu/libc-version.h>.
6548 (struct private_thread_info): Add dying flag.
6549 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6550 higher.
6551 (attach_thread): Update comments. Handle dying threads.
6552 (detach_thread): Set the dying flag.
6553 (check_event): Always call attach_thread.
6554
8d5f9dcb
DJ
65552004-03-29 Daniel Jacobowitz <drow@mvista.com>
6556
6557 * mips-tdep.c (mips_pdr_data): New.
6558 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6559 (_initialize_mips_tdep): Initialize mips_pdr_data.
6560
66337bb1
CV
65612004-03-29 Corinna Vinschen <vinschen@redhat.com>
6562
6563 * minsyms.c (install_minimal_symbols): Move dropping leading
6564 char from linkage name from here...
6565 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6566 test for "__gnu_compiled*" symbols.
6567
e802b915
JB
65682004-03-28 Jim Blandy <jimb@redhat.com>
6569
6570 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6571 registers to temp register r0 and byte stores as prologue
6572 instructions.
6573
72b56458
AC
65742004-03-28 Andrew Cagney <cagney@redhat.com>
6575
6576 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6577 arm*-*-*.
6578
0bfbda3b
SC
65792004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6580
6581 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6582 and switch the layout to force a display of register window.
6583
5a7225ed
JB
65842004-02-26 J. Brobecker <brobecker@gnat.com>
6585
6586 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6587 of the INTEGER class.
6588
81a07a45
JB
65892004-03-26 Jim Blandy <jimb@redhat.com>
6590
6591 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6592 bytes long on PPC GNU/Linux.
6593
8c691c7a
DC
65942004-03-26 David Carlton <carlton@kealia.com>
6595
6596 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6597
103a0089
AC
65982004-03-25 Andrew Cagney <cagney@redhat.com>
6599
6600 * PROBLEMS: Add general section titles, remove references to
6601 specific releases.
6602
7a5ea0d4
DJ
66032004-03-25 Daniel Jacobowitz <drow@mvista.com>
6604
6605 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6606 INT_REGISTER_SIZE.
6607 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6608 FP_REGISTER_VIRTUAL_SIZE.
6609 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6610 of DEPRECATED_REGISTER_RAW_SIZE.
6611 (arm_register_type): Add gdbarch argument.
6612 (arm_register_raw_size, arm_register_virtual_size): Delete.
6613 (arm_register_byte, arm_extract_return_value)
6614 (arm_store_return_value, arm_get_longjmp_target): Update references
6615 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6616 (arm_gdbarch_init): Likewise. Don't set
6617 deprecated_register_raw_size, deprecated_register_virtual_size,
6618 deprecated_max_register_raw_size,
6619 deprecated_max_register_virtual_size, or
6620 deprecated_max_register_virtual_type. Do set register_type.
6621 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6622 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6623 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6624 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6625 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6626 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6627 INT_REGISTER_SIZE.
6628 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6629 (remote_rdp_store_register): Likewise.
6630
5792a79b
DJ
66312004-03-24 Daniel Jacobowitz <drow@mvista.com>
6632
6633 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6634 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6635 to after osabi initialization.
6636 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6637 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6638 functions.
6639 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6640 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6641 variables.
6642 (mips_linux_init_abi): Append signal trampoline unwinders.
6643
1196bfda
AC
66442004-03-24 Andrew Cagney <cagney@redhat.com>
6645
6646 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6647 * tramp-frame.c: Include "gdb_assert.h".
6648 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6649 correct sizeof.
6650 (tramp_frame_append): Validate the tramp frame's instructions.
6651 * Makefile.in (tramp-frame.o): Update dependencies.
6652
4be282b4
AC
66532004-03-23 Andrew Cagney <cagney@redhat.com>
6654
6655 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6656
69aec09b
AC
66572004-03-23 Andrew Cagney <cagney@redhat.com>
6658
6659 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6660 Nasser as past testsuite/lib/ (and other) maintainers.
6661
63ed89b4
DJ
66622004-03-23 Daniel Jacobowitz <drow@mvista.com>
6663
6664 * infcmd.c (attach_command): Reread symbols if we already have
6665 an exec file.
6666
f3b36427
AC
66672004-03-23 Andrew Cagney <cagney@redhat.com>
6668
6669 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6670
aa2a3f87
AC
66712004-03-23 Andrew Cagney <cagney@redhat.com>
6672
6673 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6674 * gdbarch.h, gdbarch.c: Re-generate.
6675 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6676 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6677 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6678 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6679 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6680 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6681 (DEPRECATED_SIGTRAMP_START): Update.
6682 * blockframe.c (find_pc_sect_partial_function): Update.
6683 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6684
00cac895
DJ
66852004-03-23 Daniel Jacobowitz <drow@mvista.com>
6686
6687 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6688 if necessary.
6689
f561f026
AC
66902004-03-23 Andrew Cagney <cagney@redhat.com>
6691
6692 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6693 predicate, deprecate.
6694 * gdbarch.h, gdbarch.c: Re-generate.
6695 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6696 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6697 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6698 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6699 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6700 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6701 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6702 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6703 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6704 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6705 * blockframe.c (find_pc_partial_function): Update.
6706 * breakpoint.c (bpstat_what): Update.
6707 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6708 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6709 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6710 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6711 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6712 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6713 * i386-nto-tdep.c (i386nto_init_abi): Update.
6714 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6715 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6716 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6717 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6718 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6719 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6720 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6721 * infrun.c (pc_in_sigtramp): Update.
6722 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6723 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6724 * mips-tdep.c (mips_gdbarch_init): Update.
6725 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6726 * ppc-linux-tdep.c: Update comment.
6727 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6728 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6729 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6730 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6731 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6732 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6733 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6734 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6735 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6736 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6737
8050c72f
AC
67382004-03-23 Andrew Cagney <cagney@redhat.com>
6739
d2259dd3
AC
6740 * tramp-frame.h, tramp-frame.h: New files.
6741 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6742 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6743
8050c72f
AC
6744 * Makefile.in: Update all dependencies.
6745
0db9b4b7
AC
67462004-03-23 Andrew Cagney <cagney@redhat.com>
6747
6748 * Makefile.in (trad_frame_h): Add $(frame_h).
6749 * trad-frame.h: Update copyright. Include "frame.h".
6750 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6751 (trad_frame_set_id, trad_frame_get_id): Declare.
6752 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6753 * trad-frame.c: Update copyright.
6754 (struct trad_frame_cache): Define.
6755 (trad_frame_cache_zalloc): New function.
6756 (trad_frame_set_id, trad_frame_get_id): New functions.
6757 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 6758
8e645ae7
AC
67592004-03-22 Andrew Cagney <cagney@redhat.com>
6760
6761 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6762 s390_pltstub_unwind_cache.
6763 (s390_stub_frame_unwind_cache): Rename
6764 s390_pltstub_frame_unwind_cache.
6765 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6766 (s390_stub_frame_prev_register): Rename
6767 s390_pltstub_frame_prev_register.
6768 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6769 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6770
6771 From Ulrich Weigand:
6772 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6773 pointer calls like PLT calls.
6774
34fcf120
DJ
67752004-03-22 Daniel Jacobowitz <drow@mvista.com>
6776
6777 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6778 PC rather than the partial function start address. Use the start
6779 address to sanity check the found PDR.
6780
5b917078
DJ
67812004-03-22 Daniel Jacobowitz <drow@mvista.com>
6782
6783 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6784 linux_handle_extended_wait.
6785
8adf9e78
AC
67862004-03-22 Andrew Cagney <cagney@redhat.com>
6787
c3122434
AC
6788 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6789 function.
6790
8adf9e78
AC
6791 * frame.h (generic_pop_current_frame): Delete declaration.
6792 (deprecate_pop_dummy_frame): Deprecate
6793 generic_pop_dummy_frame.
6794 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6795 (generic_pop_current_frame): Delete function.
6796 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6797 generic_pop_current_frame.
6798 * v850-tdep.c (v850_pop_frame): Update.
6799 * mcore-tdep.c (mcore_pop_frame): Update.
6800 * sh64-tdep.c (sh64_pop_frame): Update.
6801 * h8300-tdep.c (h8300_pop_frame): Update.
6802
90ba813f
AC
68032004-03-22 Andrew Cagney <cagney@redhat.com>
6804
6805 * frame.h (deprecated_pc_in_call_dummy): Rename
6806 generic_pc_in_call_dummy.
6807 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6808 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6809 generic_pc_in_call_dummy.
6810 (pc_in_dummy_frame): Make static.
6811 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6812 * gdbarch.h, gdbarch.c: Re-generate.
6813 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6814 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6815 (legacy_get_prev_frame): Ditto.
6816 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6817 comment.
8718a420 6818
ca4bb888
AC
68192004-03-21 Andrew Cagney <cagney@redhat.com>
6820
244675f9
AC
6821 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6822 declaration and out-of-date comment.
6823 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6824 Delete function.
6825 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6826 deprecated_pc_in_call_dummy.
6827
ca4bb888
AC
6828 * infrun.c (handle_inferior_event): For non legacy frames, use the
6829 frame ID and frame type to identify a signal trampoline. Update
6830 comments.
6831
1777c7b4
NW
68322004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6833
6834 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6835 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6836
82417da5
AC
68372004-03-21 Andrew Cagney <cagney@redhat.com>
6838
6839 * frame-unwind.h: Update copyright.
6840 (struct frame_data): Add opaque declaration.
6841 (frame_sniffer_ftype): Declare.
6842 (struct frame_unwind): Add "unwind_data" and "sniffer".
6843 (frame_unwind_register_unwinder): Declare.
6844 (frame_unwind_find_by_frame): Add parameter "this_cache".
6845 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6846 (legacy_get_prev_frame, legacy_get_prev_frame)
6847 (get_frame_type): Pass the prologue_cache to
6848 frame_unwind_find_by_frame.
6849 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6850 "unwinder".
6851 (frame_unwind_register_unwinder): New function.
6852 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6853
b2ba182e
PH
68542004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6855
6856 * bcache.c (print_percentage): Use floating point to avoid
6857 incorrect results when portion*100 overflows.
6858
81332287
KB
68592004-03-19 Kevin Buettner <kevinb@redhat.com>
6860
6861 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6862 (ppc_linux_init_extra_frame_info)
6863 (ppc_linux_frameless_function_invocation)
6864 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6865 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6866 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6867 (rs6000_frame_chain): Delete declarations.
6868 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6869 (ppc_linux_init_extra_frame_info)
6870 (ppc_linux_frameless_function_invocation)
6871 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6872 (ppc_linux_init_abi): Remove registration of above deleted functions.
6873 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6874 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6875 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6876 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6877 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6878 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6879 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6880 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6881 frame management for all OSABIs.
6882
61a65099
KB
68832004-03-19 Andrew Cagney <cagney@redhat.com>
6884
6885 Committed by Kevin Buettner <kevinb@redhat.com>.
6886
6887 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6888 Update copyright.
6889 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6890 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6891 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6892 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6893 unwinders. #ifdef legacy frame code.
6894 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6895 "frame-base.h".
6896 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6897 (struct rs6000_frame_cache, rs6000_frame_cache)
6898 (rs6000_frame_this_id, rs6000_frame_prev_register)
6899 (rs6000_frame_sniffer, rs6000_frame_unwind)
6900 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6901 (rs6000_frame_base): Implement a traditional frame unwinder.
6902 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6903 frame unwinder.
6904
88f7da05
KB
69052004-03-19 Kevin Buettner <kevinb@redhat.com>
6906
6907 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6908 breakpoint address for watchpoints or the catch eventpoints.
6909 Add new paramter ``bptype''. Adjust all callers.
6910
f826dce1
AC
69112004-03-19 Andrew Cagney <cagney@redhat.com>
6912
33cb8b0f
AC
6913 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6914
f826dce1
AC
6915 * PROBLEMS: Delete note that ARM does not use frame code, problem
6916 fixed.
6917
43b1ab88
AC
69182004-03-18 Andrew Cagney <cagney@redhat.com>
6919
292ab034
AC
6920 * stack.c (return_command): Delete code wrapped in #ifdef
6921 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6922
43b1ab88
AC
6923 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6924
dbfe4626
AC
69252004-03-18 Andrew Cagney <cagney@redhat.com>
6926
6927 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6928 DEPRECATED_IN_SIGTRAMP.
6929 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6930 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6931 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6932 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6933 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6934 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6935 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6936 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6937 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6938 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6939
0cad6aec
AC
69402004-03-18 Andrew Cagney <cagney@redhat.com>
6941
6942 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6943 (struct frame_base_table_entry): Define.
6944 (struct frame_base_table): Re-implement as a linked list.
6945 (frame_base_init): Re-implement.
6946 (frame_base_table): Delete function.
6947 (append_predicate): Delete function.
6948 (frame_base_append_sniffer): Update.
6949 (frame_base_set_default): Update.
6950 (frame_base_find_by_frame): Update.
6951 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6952 * Makefile.in (frame-base.o): Update dependencies.
6953
9982c2e7
AC
69542004-03-17 Andrew Cagney <cagney@redhat.com>
6955
6956 * frame.c (legacy_get_prev_frame): Pass correct frame to
6957 frame_unwind_find_by_frame.
6958
8dfe8985
DC
69592004-03-17 David Carlton <carlton@kealia.com>
6960
6961 * NEWS: Mention C++ nested types and namespaces
6962
ed47347a
MC
69632004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6964
6965 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6966 and "Regressions since gdb 5.3.". Add known regressions since
6967 gdb 6.0.
6968
90aeadfc
DC
69692004-03-16 David Carlton <carlton@kealia.com>
6970
6971 * dwarf2read.c (process_structure_scope): Process children even
6972 when we're a declaration.
6973
73912b9b
AC
69742004-03-16 Andrew Cagney <cagney@redhat.com>
6975
6976 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6977 * blockframe.c (find_pc_partial_function)
6978 (find_pc_sect_partial_function): Merge into a single
6979 find_pc_partial_function.
6980
283accbc
MK
69812004-03-16 Mark Kettenis <kettenis@gnu.org>
6982
6983 * i386bsd-nat.c: s/regno/regnum/g.
6984 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6985 FP0_REGNUM.
6986 (store_inferior_registers): Likewise.
6987
f5b1afdf
MK
69882004-03-16 Mark Kettenis <kettenis@gnu.org>
6989
6990 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6991 of i387_fill_fsave.
6992 (store_inferior_registers): Call i387_collect_fsave and
6993 i387_collect_fxsave instead of i387_fill_fsave and
6994 i387_fill_fxsave.
6995
41fe5eb3
AC
69962004-03-15 Andrew Cagney <cagney@redhat.com>
6997
6998 * Makefile.in (frame-unwind.o): Update dependencies.
6999 * frame-unwind.c: Include "gdb_obstack.h".
7000 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7001 parameter.
7002 (append_predicate): Delete function.
7003 (struct frame_unwind_table_entry): New structure.
7004 (struct frame_unwind_table): Replace "sniffer" with "head" and
7005 "tail".
7006 (frame_unwind_append_sniffer): Update.
7007 (frame_unwind_find_by_frame): Update.
7008 (_initialize_frame_unwind): Registe frame_unwind_init using
7009 gdbarch_data_register_pre_init.
7010
3f63813d
MK
70112004-03-15 Mark Kettenis <kettenis@gnu.org>
7012
7013 * i386bsd-nat.c: Update copyright year.
7014 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7015 define unconditionally.
7016
3248c325 70172004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7018
7019 * i387-tdep.h (i387_collect_fsave): New prototype.
7020 * i387-tdep.c (i387_collect_fsave): New function containing most
7021 of the code from i387_fill_fsave.
3248c325 7022 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7023
871fbe6a
MK
70242004-03-15 Mark Kettenis <kettenis@gnu.org>
7025
7026 * i386-linux-tdep.c: Update copyright year.
7027 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7028 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7029 svr4_ilp32_link_map_offsets instead of
7030 i386_linux_svr4_fetch_link_map_offsets.
7031
8176b9b8
DC
70322004-03-15 David Carlton <carlton@kealia.com>
7033
7034 Fix for PR c++/1553:
7035 * dwarf2read.c (read_structure_type): Determine type name by
7036 calling determine_class_name.
7037 (determine_class_name): New.
7038 (determine_prefix): Look at TYPE_TAG_NAME and call
7039 determine_class_name when appropriate.
7040 (determine_prefix_aux, class_name): Delete.
9d58e29d 7041 (read_namespace): Set die->type.
8176b9b8 7042
fe8bf7d7
KB
70432004-03-15 Kevin Buettner <kevinb@redhat.com>
7044
7045 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7046 unused macro definition. The definition in target.h (or perhaps
7047 elsewhere) takes precedence.
7048
ed6edd9b
AC
70492004-03-15 Andrew Cagney <cagney@redhat.com>
7050
f9be684a
AC
7051 * ppc-tdep.h: Update copyright.
7052 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7053 function signatures to match "regsets.h".
7054 * ppc-linux-tdep.c: Include "regset.h".
7055 (ELF_GREGSET_SIZE): Delete.
7056 (right_supply_register): New function.
7057 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7058 using right_supply_register.
7059 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7060 functions.
7061 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7062 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7063 (_initialize_ppc_linux_tdep): Do not register
7064 ppc_linux_regset_core_fns.
7065 (ppc_linux_regset_from_core_section): Replace
7066 fetch_core_registers.
7067 (ppc_linux_regset_core_fns): Delete.
7068 * ppc-linux-nat.c: (right_fill_reg): New function.
7069 (supply_gregset): Update call to ppc_linux_supply_gregset.
7070 (fill_gregset): Clear the register set, use right_fill_reg.
7071 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7072 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7073
ed6edd9b
AC
7074 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7075 unsigned.
7076
030f20e1
AC
70772004-03-15 Andrew Cagney <cagney@redhat.com>
7078
7079 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7080 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7081 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7082 and register_gdbarch_data.
7083 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7084 (struct gdbarch_data): Replace "init" by "pre_init" and
7085 "post_init".
7086 * gdbarch.h, gdbarch.c: Re-generate.
7087 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7088 with"obstack", use OBSTACK_ZALLOC.
7089 (dwarf2_frame_ops): Delete.
7090 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7091 (dwarf2_frame_init_reg): Use gdbarch_data.
7092 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7093 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7094 (_initialize_svr4_solib): Update.
7095 * user-regs.c (_initialize_user_regs): Update.
7096 * reggroups.c (_initialize_reggroup): Update.
7097 * regcache.c (_initialize_regcache): Update.
7098 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7099 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7100 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7101 * frame-unwind.c (_initialize_frame_unwind): Update.
7102 * frame-base.c (_initialize_frame_base): Update.
7103 * user-regs.c (user_reg_add): Update.
7104 * reggroups.c (reggroup_add): Update.
7105 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7106 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7107 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7108 * frame-base.c (frame_base_table): Update.
7109 * remote.c (_initialize_remote): Update.
7110 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7111
3111a3fc
AC
71122004-03-15 Andrew Cagney <cagney@redhat.com>
7113
7114 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7115
5ecb7103
KB
71162004-03-15 Kevin Buettner <kevinb@redhat.com>
7117
7118 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7119 * frv-linux-tdep.c: New file.
7120 * frv-tdep.c (struct gdbarch_tdep): Add new field
7121 ``sigcontext_reg_addr''.
7122 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7123 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7124 (frv_sigramp_frame_sniffer): New functions.
7125 (frv_sigtramp_frame_unwind): New static global.
7126 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7127 sniffers.
7128 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7129 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7130
1ccda5e9
KB
71312004-03-15 Kevin Buettner <kevinb@redhat.com>
7132
7133 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7134 but not via a call to error(), when unable to read memory.
7135
b375a0a5
KB
71362004-03-15 Kevin Buettner <kevinb@redhat.com>
7137
7138 * frv-tdep.c (frv_call_dummy_words): Delete.
7139 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7140
4fdf6121
AC
71412004-03-15 Andrew Cagney <cagney@redhat.com>
7142
7143 * infrun.c (handle_step_into_function, step_over_function): Only
7144 update and use STEP_FRAME_ID when the system is using legacy
7145 frames. Update comments.
7146
34021503
MK
71472004-03-14 Mark Kettenis <kettenis@gnu.org>
7148
187e21d1
MK
7149 * amd64-linux-tdep.h: Remove file.
7150 * amd64-linux-tdep.c: Don't include "inferior.h" and
7151 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7152 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7153 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7154 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7155 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7156 macros.
7157 (user_to_gdb_regmap): Remove variable.
7158 (amd64_linux_gregset_reg_offset): New variable.
7159 (amd64_core_fns): Remove variable.
7160 (fetch_core_registers): Remove function.
7161 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7162 functions.
7163 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7164 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7165 * Makefile.in (amd64_linux_tdep_h): Remove.
7166 (amd64-linux-nat.o): Update dependencies.
7167 (amd64-linux-tdep.o): Update dependencies.
7168
99679982
MK
7169 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7170 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7171 functions.
7172 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7173
34021503
MK
7174 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7175 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7176
134d01f1
DJ
71772004-03-14 Daniel Jacobowitz <drow@mvista.com>
7178
7179 * dwarf2read.c (read_structure_type): Rename from
8718a420 7180 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7181 Return immediately if die->type is set. Call read_type_die before
7182 dwarf2_add_member_fn.
7183 (process_structure_scope): New function.
7184 (read_enumeration_type, process_enumeration_scope): New functions,
7185 broken out from read_enumeration. Don't create the enumeration
7186 type if it has already been created.
7187 (read_enumeration): Removed.
7188 (process_die): Call read_structure_type, process_structure_scope,
7189 read_enumeration_type, and process_enumeration_scope. Just call
7190 new_symbol for base and subrange types. Add a comment about other
7191 type dies.
7192 (read_type_die): Call read_enumeration_type.
7193 (add_partial_structure, new_symbol): Update comments.
7194
65760afb
SC
71952004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7196
7197 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7198
10f59415
SC
71992004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7200
7201 * tui/tui-win.h (tui_get_cmd_list): Declare.
7202 * tui/tui-win.c (tui_command): New function.
7203 (tui_get_cmd_list): New function.
7204 (_initialize_tui_win): Moved initialization of tui command in
7205 tui_get_cmd_list.
7206
7207 * tui/tui-data.c (init_content_element): Setup new data members.
7208 (init_win_info): Likewise.
7209 (free_content_elements): Free it.
7210 * tui/tui-data.h (struct tui_data_element): Store the register
7211 content to print.
7212 (struct tui_data_info): Keep the current register group.
7213
7214 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7215
7216 * tui/tui-regs.h (tui_show_registers): Update prototype.
7217 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7218 (tui_resize_all): No need to calculate anything for register window.
7219 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7220 (tui_set_register_element, tui_set_general_regs_content): Remove.
7221 (tui_set_special_regs_content): Remove.
7222 (tui_set_general_and_special_regs_content): Remove.
7223 (tui_set_float_regs_content): Remove.
7224 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7225 (tui_set_regs_content): Remove.
7226 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7227 (tui_v_show_registers_command_support): Remove.
7228 (tui_show_registers): Use a reggroup to specify the registers to show.
7229 (tui_show_register_group): New function.
7230 (tui_display_registers_from): Compute the layout of register window
7231 and refresh with new API; be sure to delete old register windows.
7232 (tui_check_register_values): Update to use tui_get_register and
7233 tui_display_data.
7234 (tui_display_register): Just refresh the register window part.
7235 (tui_register_format): Format registers and save in tui_data_element.
7236 (tui_get_register): New to combine tui_reg_value_has_changed and
7237 tui_get_register_raw_value; fix to use the new gdb API.
7238 (tui_show_float_command): Renamed tui_reg_float_command.
7239 (tui_show_general_command): Renamed tui_reg_general_command.
7240 (tui_show_special_command): Renamed tui_reg_system_command.
7241 (_initialize_tui_regs): Remove unused commands.
7242
c3364ea4
MK
72432004-03-13 Mark Kettenis <kettenis@gnu.org>
7244
27d1e716
MK
7245 * NEWS (New native configurations): Mention OpenBSD/amd64.
7246
c3364ea4
MK
7247 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7248 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7249 Remove defines.
7250 * config/i386/nm-fbsd64.h: Likewise.
7251 * config/i386/nm-obsd.h: Likewise.
7252 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7253 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7254
b2d6d697
KB
72552004-03-12 Kevin Buettner <kevinb@redhat.com>
7256
7257 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7258 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7259 New constants.
7260
76e43199
KB
7261 From Richard Sandiford <rsandifo@redhat.com>:
7262 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7263
34ce532e
KB
72642004-03-12 Kevin Buettner <kevinb@redhat.com>
7265
7266 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7267 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7268 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7269 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7270 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7271 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7272 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7273 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7274 definitions from frv-tdep.c to frv-tdep.h.
7275
c4d10515
KB
72762004-03-12 Kevin Buettner <kevinb@redhat.com>
7277
7278 Add shared library support for FR-V FDPIC ABI:
7279 * Makefile.in (solib-frv.o): Add dependencies.
7280 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7281 New functions.
7282 (frv_push_dummy_call): Add support for FDPIC ABI.
7283 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7284 for FDPIC ABI.
7285 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7286 (frv_fdpic_find_canonical_descriptor): Declare.
7287 * solib-frv.c: New file.
7288 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7289 * config/frv/tm-frv.h (solib.h): Include.
7290
ed1bd989
KB
72912004-03-12 Kevin Buettner <kevinb@redhat.com>
7292
7293 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7294 (frv-tdep.o): Update dependencies.
7295 * frv-tdep.h: New file.
7296 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7297 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7298 constants.
7299 (struct gdbarch_tdep): Add new member ``frv_abi''.
7300 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7301 functions.
7302 (new_variant): Set ``frv_abi'' field.
7303 (gdb_arch_init): Detect FDPIC executables.
7304
82b38f72
MK
73052004-03-12 Mark Kettenis <kettenis@gnu.org>
7306
7307 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7308 wrapper.
7309
db1ea9ba
AC
73102004-03-11 Andrew Cagney <cagney@redhat.com>
7311
7312 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7313
f8766ec1
KB
73142004-03-11 Kevin Buettner <kevinb@redhat.com>
7315
7316 * solist.h (master_so_list): New function.
7317 * solib.c (master_so_list): Likewise.
7318 * solib-svr4.c (enable_break): Iterate over so_list entries
7319 obtained from master list instead of entries obtained directly
7320 via svr4_current_sos().
7321
523f6a27
BE
73222004-03-10 Ben Elliston <bje@gnu.org>
7323
7324 * MAINTAINERS: Update my mail address.
7325
37814c18
KI
73262004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7327
7328 * remote-m32r-sdi.c: Support hardware watchpoint.
7329
8b9740d8
DJ
73302004-03-09 Daniel Jacobowitz <drow@mvista.com>
7331
7332 * user-regs.c: Update copyright years.
7333 (struct user_regs): Rename to gdb_user_regs.
7334 (append_user_reg, builtin_user_regs, user_regs_init)
7335 (user_reg_add, user_reg_map_name_to_regnum)
7336 (usernum_to_user_reg): Update.
7337
4bb7a0a7
DJ
73382004-03-09 Daniel Jacobowitz <drow@mvista.com>
7339
7340 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7341 (skip_children): New functions.
7342 (locate_pdi_sibling): Call skip_children.
7343
44e1a9eb
DJ
73442004-03-09 Daniel Jacobowitz <drow@mvista.com>
7345
7346 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7347 * gdbtypes.c (check_typedef): Update comments.
7348
f3dd6933
DJ
73492004-03-09 Daniel Jacobowitz <drow@mvista.com>
7350
7351 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7352 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7353 pointer. Update comment about comp_unit_head.
7354 (struct abbrev_info): Shorten two int flags.
7355 (dwarf_alloc_abbrev): Take a CU argument.
7356 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7357 each time through the loop. Update cleanup argument.
7358 (psymtab_to_symtab_1): Update cleanup call.
7359 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7360 abbrev_obstack.
7361 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7362 Just call obstack_free and clear the pointer.
7363
b40c7d58
DJ
73642004-03-09 Daniel Jacobowitz <drow@mvista.com>
7365
7366 * infrun.c (handle_inferior_event): Remove short-circuit code for
7367 events in a different thread.
7368
333dabeb
DJ
73692004-03-09 Daniel Jacobowitz <drow@mvista.com>
7370
7371 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7372 print the whole transfer.
7373 (initialize_targets): Update description of "set debug target".
7374
aa17d93e
DJ
73752004-03-09 Daniel Jacobowitz <drow@mvista.com>
7376
7377 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7378
0b71f08f
NW
73792004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7380
7381 * MAINTAINERS (write after approval): Add myself.
7382
3930f270
CV
73832004-03-08 Corinna Vinschen <vinschen@redhat.com>
7384
7385 * sh-tdep.c (sh_print_registers_info): Use for loop.
7386 Don't skip multiple registers when a float register is encountered.
7387
a2b4a96c
CV
73882004-03-08 Corinna Vinschen <vinschen@redhat.com>
7389
7390 Fix PR tdep/1291.
7391 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7392 to official SH documentation.
7393
f15a4bc0
AC
73942004-03-07 Andrew Cagney <cagney@redhat.com>
7395
7396 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7397 unused function.
7398
9498281f
DJ
73992004-03-07 Daniel Jacobowitz <drow@mvista.com>
7400
7401 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7402 (arm_get_next_pc): Handle BX and BLX.
7403
449e1137
AC
74042004-03-07 Andrew Cagney <cagney@redhat.com>
7405
eded0a31
AC
7406 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7407 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7408 HPPA_SP_REGNUM.
7409 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7410 (hppa_target_read_fp): Delete.
7411 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7412 register_virtual_size, max_register_raw_size,
7413 max_register_virtual_size, register_byte, register_size,
7414 target_read_fp, fp_regnum, and register_bytes. Set register_type
7415 instead of register_virtual_type.
7416 (hppa32_register_type, hppa64_register_type): Replace
7417 hppa32_register_virtual_type and hppa64_register_virtual_type.
7418 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7419 (HPPA_FP_REGNUM): Define.
7420
f5f907e2
AC
7421 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7422
69b4bbe4
AC
7423 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7424 (pa_do_registers_info): Delete.
7425 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7426 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7427 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7428
78161e48
AC
7429 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7430 GDB_TARGET_IS_HPPA code.
7431 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7432 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7433 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7434 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7435 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7436 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7437 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7438 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7439 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7440 (hppa_frameless_function_invocation, hppa64_store_return_value)
7441 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7442 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7443 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7444 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7445 (find_proc_framesize, deposit_21, restore_pc_queue)
7446 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7447 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7448
782eae8b
AC
7449 Unconditionally enable 64-bit frame and ABI code.
7450 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7451 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7452 push_dummy_frame, fix_call_dummy, push_arguments,
7453 call_dummy_location, extract_return_value, use_struct_convention,
7454 store_return_value, store_struct_return, saved_pc_after_call,
7455 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7456 frame_chain, frame_chain_valid, frameless_function_invocation,
7457 frame_saved_pc, and pop_frame.
78161e48 7458
449e1137
AC
7459 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7460 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7461 (hppa_gdbarch_init): Do not set PC_REGNUM.
7462
12507572
MK
74632004-03-06 Mark Kettenis <kettenis@gnu.org>
7464
7465 * config/alpha/tm-fbsd.h: Remove file.
7466 * config/alpha/fbsd.mt: Tweak comment.
7467 (TM_FILE): Set to tm-alpha.h.
7468
c107cc1b
AC
74692004-03-05 Andrew Cagney <cagney@redhat.com>
7470
7471 * infrun.c (step_over_function): When non-legacy code, and no
7472 step_frame_id, use the unwinder to get the caller's frame ID.
7473
f2e7c15d
MK
74742004-03-05 Mark Kettenis <kettenis@gnu.org>
7475
8b0c3633
MK
7476 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7477 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7478 bfd_arch_unknown. Adjust comment.
7479
f2e7c15d
MK
7480 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7481 * i386obsd-tdep.c: Correct spelling in comment.
7482 * i386nbsd-tdep.c: Correct spelling in comment.
7483 * sparc-tdep.c: Correct spelling in comments.
7484
1198ecbe
DC
74852004-03-05 David Carlton <carlton@kealia.com>
7486
7487 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7488 bug.
7489
9eb42ed1
MK
74902004-03-05 Mark Kettenis <kettenis@gnu.org>
7491
7492 * sparc-tdep.c: Fix typo in comment.
7493
52b5e991
JB
74942004-03-04 J. Brobecker <brobecker@gnat.com>
7495
7496 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7497
d8151005
DJ
74982004-03-04 Daniel Jacobowitz <drow@mvista.com>
7499
7500 * dwarf2read.c: Add comment describing memory lifetimes.
7501 (struct dwarf2_pinfo): Update comment.
7502 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7503 (read_enumeration, new_symbol): Don't use obsavestring.
7504
cbeae229
MK
75052004-03-04 Mark Kettenis <kettenis@gnu.org>
7506
722d18c2
MK
7507 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7508 instead of amd64_fill_fxsave.
7509 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7510 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7511
cbeae229
MK
7512 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7513 Reorganize code a bit.
7514
b4206d25
OF
75152004-03-04 Orjan Friberg <orjanf@axis.com>
7516
7517 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7518 when the frame pointer is pushed. Don't set the frame pointer's
7519 address on the stack unless it's actually located there.
b4206d25
OF
7520 Set the SRP's address on the stack correctly when the PC is still in
7521 the prologue.
7522 (cris_return_value): New function.
7523 (cris_gdbarch_init): Clear deprecated store_return_value,
7524 extract_return_value.
7525
49b0b195
JB
75262004-03-02 Jim Blandy <jimb@redhat.com>
7527
7528 * stabsread.c (reg_value_complaint): The maximum register number
7529 is one less than the number of registers.
7530
e9ff708b
AC
75312004-03-02 Andrew Cagney <cagney@redhat.com>
7532
7533 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7534 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7535 trailing comma and redundant assignment of I386_ST0_REGNUM.
7536 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7537 32-bit segment registers.
7538
d4715e41
AC
75392004-03-01 Andrew Cagney <cagney@redhat.com>
7540
7541 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7542 use frame_relative_level and get_next_frame.
7543
3ce2bf18
AC
75442004-02-29 Andrew Cagney <cagney@redhat.com>
7545
7546 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7547 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7548 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7549 Delete macro.
7550
2da6aac3
DJ
75512004-02-29 Daniel Jacobowitz <drow@mvista.com>
7552
7553 * inflow.c (terminal_inferior): Don't give up the terminal if we
7554 previously couldn't get the inferior's terminal state.
7555
6ba34a8d
DJ
75562004-02-29 Daniel Jacobowitz <drow@mvista.com>
7557
7558 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7559 PC_REGNUM.
7560
faae5abe
AC
75612004-02-28 Andrew Cagney <cagney@redhat.com>
7562
7563 * NEWS: Refer to GDB 6.1.
7564 * README: Refer to GDB 6.1.
7565 * PROBLEMS: Refer to GDB 6.1.
7566
2227a3c5
DJ
75672004-02-28 Daniel Jacobowitz <drow@mvista.com>
7568
7569 * thread-db.c (disable_thread_signals): Remove unused function.
7570
80571bff
MK
75712004-02-28 Mark Kettenis <kettenis@gnu.org>
7572
041bd74b
MK
7573 * amd64-nat.c: Include "gdb_string.h".
7574 (amd64_collect_native_gregset): Zero-extend the 32-bit
7575 general-purpose registers and %eip.
7576
3c017e40
MK
7577 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7578 * amd64-tdep.c (amd64_collect_fxsave): New function.
7579 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7580
80571bff
MK
7581 * i387-tdep.h: Update copyright year.
7582 (i387_collect_fxsave): New prototype.
7583 * i387-tdep.c: Update copyright year.
7584 (i387_collect_fxsave): New function containing most of the code
7585 from i387_fill_fxsave.
7586 (i387_fill_fxsave): Call i387_collect_fxsave.
7587
50d71875
AC
75882004-02-28 Andrew Cagney <cagney@redhat.com>
7589
7590 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7591 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7592
4a28816e
MK
75932004-02-28 Mark Kettenis <kettenis@gnu.org>
7594
7595 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7596
dbda9972
AC
75972004-02-28 Andrew Cagney <cagney@redhat.com>
7598
7599 * utils.c: Use "", instead of <>, to include readline.
7600 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7601 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7602 * source.c, solib.c, exec.c, event-top.c: Ditto.
7603 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7604 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7605 * Makefile.in: Update all dependencies.
7606 (readline_tilde_h, readline_history_h): Define.
7607 (readline_headers): Delete.
7608
83277a99
MK
76092004-02-28 Mark Kettenis <kettenis@gnu.org>
7610
91ae4303
MK
7611 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7612 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7613 "config/i386/tm-lx64.h".
7614
83277a99
MK
7615 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7616 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7617 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7618
6e1d7d6c
AC
76192004-02-28 Andrew Cagney <cagney@redhat.com>
7620
ecc9ac84
AC
7621 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7622
6e1d7d6c
AC
7623 * breakpoint.c (_initialize_breakpoint): Use
7624 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7625 Add help to show command.
7626
9671aeef
MK
76272004-02-28 Mark Kettenis <kettenis@gnu.org>
7628
7fa2737c
MK
7629 * i386-nat.c: Reformat to be closer to coding standards.
7630 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7631 `retval'. Make variables `align' and `size' local to while-loop.
7632 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7633 (_initialize_i386_nat): New prototype.
7634
9671aeef
MK
7635 * tui/tui.c: Include <readline/readline.h> instead of
7636 "readline/readline.h". Include it after <term.h> and
7637 "gdb_curses.h".
7638
fca7aa43
AC
76392004-02-27 Andrew Cagney <cagney@redhat.com>
7640
412275d5
AC
7641 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7642 the new frame unwind code.
7643 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7644 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7645 PCOQ_HEAD_REGNUM.
7646
fca7aa43
AC
7647 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7648 "return_value" and "push_dummy_call".
7649 (hppa32_use_struct_convention): Delete unused function.
7650 (hppa32_store_return_value): Delete unused function.
7651 (hppa32_extract_return_value): Delete unused function.
7652 (hppa32_stack_align): Delete function.
7653
e6a8a7d2
EZ
76542004-02-27 Eli Zaretskii <eliz@elta.co.il>
7655
7656 * coffread.c (enter_linenos): Don't let rawptr reference memory
7657 outside linetab[]'s limits.
7658
1797a8f6
AC
76592004-02-27 Andrew Cagney <cagney@redhat.com>
7660
7661 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7662 inferior stack space - the stack needs to grow upwards.
7663 (hppa32_frame_align): New function.
7664 (hppa64_frame_align): Replace hppa_frame_align.
7665 (hppa_gdbarch_init): Update.
7666
2e4b5889
OF
76672004-02-26 Orjan Friberg <orjanf@axis.com>
7668
7669 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7670 (dwarf2-frame.h): Include.
7671 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7672 Remove static variables related to ABI setting.
7673 (struct gdbarch_tdep): Remove cris_abi member.
7674 (struct frame_extra_info): Remove.
7675 (cris_unwind_cache, stack_item): New structs.
7676 (cris_frame_unwind, cris_frame_base): New variables.
7677 (push_stack_item, pop_stack_item)
7678 (cris_frame_unwind_cache, cris_frame_this_id)
7679 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7680 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7681 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7682 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7683 (cris_reg_struct_has_addr): New functions.
7684 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7685 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7686 (cris_store_struct_return, cris_frameless_function_invocation)
7687 (cris_pop_frame, cris_skip_prologue_main)
7688 (cris_abi_original_store_return_value)
7689 (cris_abi_v2_store_return_value)
7690 (cris_abi_original_extract_return_value)
7691 (cris_abi_v2_extract_return_value)
7692 (cris_abi_original_reg_struct_has_addr)
7693 (cris_abi_v2_reg_struct_has_addr)
7694 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7695 (cris_push_return_address, cris_abi_update): Remove.
7696 (_initialize_cris_tdep): Remove ABI command.
7697 (cris_dump_tdep): Ditto.
8718a420 7698 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7699 Set store_return_value, extract_return_value, push_dummy_code,
7700 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7701 frame_unwind_append_sniffer, frame_base_set_default.
7702 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7703 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7704 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7705 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7706 init_extra_frame_info, frameless_function_invocation, frame_chain,
7707 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7708 dummy_write_sp.
8718a420 7709
6b9acc27
JJ
77102004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7711
7712 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7713 * valprint.c (print_hex_chars): Change from static to external.
7714 (print_char_chars): New function.
7715 * printcmd.c (print_scalar_formatted): For integer and enum types
7716 that are longer than LONGEST, perform processing via appropriate
7717 print_*_chars routines.
7718
a431654a
AC
77192004-02-26 Andrew Cagney <cagney@redhat.com>
7720
7721 * Makefile.in: Update dependencies.
7722 Changes from Ulrich Weigand,
7723 * s390-tdep.c: Include "dwarf2-frame.h".
7724 (s390_dwarf2_frame_init_reg): New function.
7725 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7726 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7727
fa8d40ab
JJ
77282004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7729
7730 * breakpoint.c (pending_break_support): New setting variable.
7731 (break_command_1): Account for pending_break_support setting
7732 when creating pending breakpoints.
7733 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7734 (_initialize_breakpoint): Add "set breakpoint pending" and
7735 "show breakpoint pending" commands.
7736
0dcd613f
AC
77372004-02-26 Andrew Cagney <cagney@redhat.com>
7738
7739 Fix PR i18n/1570.
7740 * charset.c (backslashable, backslashed, represented): Remove 'e'
7741 from list of escaped characters, not part of ISO-C.
7742
479272a3
JB
77432004-02-25 J. Brobecker <brobecker@gnat.com>
7744
7745 From Peter Schauer <schauer@pdf.de>:
7746 * tui/tui.c: Move system header includes after local includes.
7747 Fixes a build failure on solaris systems.
7748
7613d933
JB
77492004-02-25 J. Brobecker <brobecker@gnat.com>
7750
7751 * configure.in: Refine the previous change.
7752 * configure: Regenerate.
7753
9c1488cb
MK
77542004-02-25 Mark Kettenis <kettenis@gnu.org>
7755
7756 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7757 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7758 "amd64-tdep.h" instead of "x86-64-tdep.h".
7759 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7760 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7761 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7762 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7763 and "x86-64-tdep.c".
7764 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7765 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7766 and "x86-64-tdep.c".
7767 * amd64bsd-nat.c: Update copyright year.
7768 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7769 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7770 "x86-64-tdep.h".
7771 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7772 "x86-64-tdep.h".
7773 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7774 "x86-64-tdep.h".
7775 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7776 "x86-64-tdep.h".
7777 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7778 "x86-64-tdep.h".
7779 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7780 "x86-64-tdep.h".
8718a420 7781 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
7782 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7783 * Makefile.in (amd64_linux_tdep_h): Renamed from
7784 x86_64_linux_tdep_h.
7785 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7786 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7787 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7788 (amd64obsd-tdep.o): Update dependencies.
7789 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7790 dependencies.
7791 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7792 dependencies.
7793 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7794 amd64-linux-nat.c amd64-linux-tdep.c.
7795 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7796 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7797 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7798 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7799 amd64-tdep.o and amd64-linux-tdep.o.
7800 (TM_FILE): Set to tm-linux64.h.
7801 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7802 (NAT_FILE): Set to nm-linux64.h.
7803 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7804 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7805 amd64-tdep.o.
7806 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7807 amd64-tdep.o.
7808 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7809 amd64-tdep.o.
7810
4b8dad4a
RM
78112004-02-25 Roland McGrath <roland@redhat.com>
7812
7813 * remote.c (remote_protocol_qPart_auxv): New variable.
7814 (init_all_packet_configs): Initialize it.
7815 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7816 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7817 (show_remote_cmd): Call it.
7818 (_initialize_remote): Initialize commands.
7819 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7820 service TARGET_OBJECT_AUXV requests.
7821
66745969
JB
78222004-02-25 J. Brobecker <brobecker@gnat.com>
7823
7824 * configure.in: Make sure that the wborder function is available.
7825 Otherwise, search for it in the cur_colr library.
7826 * configure: Regenerate.
7827
79508e1e
AC
78282004-02-25 Andrew Cagney <cagney@redhat.com>
7829
7830 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7831
571ee600
MK
78322004-02-25 Mark Kettenis <kettenis@gnu.org>
7833
7834 * config/i386/tm-x86-64linux.h: Tweak comments.
7835
2b1b322f 78362004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
7837
7838 * MAINTAINERS: Add self to write-after-approval list.
7839
4d2acc65
AC
78402004-02-25 Andrew Cagney <cagney@redhat.com>
7841
4b8dad4a 7842 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
7843 * cli/cli-script.c (execute_control_command): Unconditionally
7844 install a cleanup. Default "ret" to "invalid_control". Use
7845 "break" instead of "return" to escape from the switch.
7846
4cfcaf21
JB
78472004-02-24 J. Brobecker <brobecker@gnat.com>
7848
7849 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7850 with the lines macro defined in term.h on AiX.
7851 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7852 a collision with the label_width macro defined in term.h on AiX.
7853
54a5c8d8
KB
78542004-02-23 David Mosberger <davidm@hpl.hp.com>
7855
7856 Committed by Kevin Buettner <kevinb@redhat.com>.
7857
7858 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7859 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7860 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7861 instead of ia64_write_pc().
7862 * ia64-linux-tdep.c (regcache.h): Include.
7863 (ia64_linux_write_pc): New function.
4b8dad4a 7864
8a1dac83
RM
78652004-02-23 Roland McGrath <roland@redhat.com>
7866
7867 * auxv.c (info_auxv_command): Fix typos in error messages.
7868
90f90721
MK
78692004-02-23 Mark Kettenis <kettenis@gnu.org>
7870
8a1dac83 7871 * x86-64-tdep.h: Tweak comment.
90f90721
MK
7872 (enum amd64_regnum): New.
7873 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7874 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7875 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7876 (X86_64_XMM1_REGNUM): Removed.
7877 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7878 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7879 prototypes for renamed functions.
7880 * x86-64-tdep.c: Fix typo.
7881 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7882 register numbers.
7883 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7884 Use constants from `enum amd64_regnum' for register numbers.
7885 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7886 (amd64_analyze_prologue, amd64_frame_cache,
7887 amd64_sigtramp_frame_cache): Use constants from `enum
7888 amd64_regnum' for register numbers.
7889 (amd64_supply_fpregset): Adjust for renamed functions.
7890 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7891 `enum amd64_regnum' for register numbers.
7892 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7893 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7894 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7895 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7896 (amd64_linux_fill_gregset): Adjust for renamed macros.
7897 (fetch_core_registers): Adjust for renamed functions.
7898 (amd64_linux_init_abi): Adjust for renamed functions.
7899 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7900 renamed functions.
7901 * amd64-nat.c: Adjust for renamed macros.
7902 * amd64bsd-nat.c (fetch_inferior_registers)
7903 (store_inferior_registers): Use constants from `enum amd64_regnum'
7904 for register numbers. Adjust for renamed variables.
7905 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7906 renamed variables.
7907 (_initialize_amd64fbsd_nat): Use constants from `enum
7908 amd64_regnum' for register numbers.
7909 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7910 `enum amd64_regnum' for register numbers.
7911 (amd64fbsd_init_abi): Adjust for renamed functions.
7912 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7913 `enum amd64_regnum' for register numbers.
7914 (amd64nbsd_init_abi): Adjust for renamed functions.
7915 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7916 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7917 `enum amd64_regnum' for register numbers.
7918 (amd64obsd_init_abi): Adjust for renamed functions.
7919 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7920
d5479188
JJ
79212004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7922
7923 * breakpoint.c (print_one_breakpoint): Do not output spaces
7924 after printing <PENDING> for a pending breakpoint.
7925
81cb7cc9
JJ
79262004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7927
7928 * printcmd.c (print_scalar_formatted): Initialize val_long
7929 to remove compiler warning message.
7930
cbdeadca
JJ
79312004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7932
7933 * defs.h (nquery, yquery): New prototypes.
7934 * breakpoint.c (break_command_1): Use new nquery interface.
7935 * utils.c (defaulted_query, nquery, yquery): New functions.
7936
da6bab63
AC
79372004-02-23 Andrew Cagney <cagney@redhat.com>
7938
2f690297
AC
7939 * hppa-tdep.c (hppa_frame_align): New function.
7940 (hppa32_push_dummy_call): New function.
7941 (hppa64_push_dummy_call): New function.
7942 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7943 disabled.
8a1dac83 7944
da6bab63
AC
7945 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7946 FIX_CALL_DUMMY when push_dummy_call is available.
7947 (call_function_by_hand, push_dummy_code): Ditto.
7948
abf9b42d
AC
79492004-02-22 Andrew Cagney <cagney@redhat.com>
7950
7951 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7952 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7953 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7954 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7955 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7956 call_dummy_location to ON_STACK.
7957
10fc94a4
MK
79582004-02-22 Mark Kettenis <kettenis@gnu.org>
7959
51433e4b
MK
7960 * x86-64-linux-tdep.c: Tweak comment.
7961 (amd64_linux_supply_gregset): Renamed from
7962 x86_64_linux_supply_gresget.
7963 (amd64_linux_fill_gregset): Renamed from
7964 x86_64_linux_fill_gregset.
7965 (fetch_core_registers): Adjust for renamed functions.
7966 (amd64_core_fns): Renamed from x86_64_core_fns.
7967 (amd64_linux_sigtramp_start): Renamed from
7968 x86_64_linux_sigtramp_start.
7969 (amd64_linux_pc_in_sigtramp): Renamed from
7970 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7971 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7972 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7973 (amd64_linux_sigcontext_addr): Renamed from
7974 x86_64_linux_sigcontext_addr.
7975 (amd64_linux_sc_reg_offset): Renamed from
7976 x86_64_linux_sc_reg_offset.
7977 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7978 Adjust for renamed functions and variables.
7979 (_initialize_amd64_linux_tdep): Renamed from
7980 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7981 variables.
7982 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7983 Adjust for renamed functions.
7984
430eaf2e
MK
7985 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7986 from x86_64_linux_gregset64_reg_offset.
7987 (amd64_linux_gregset32_reg_offset): Rename from
7988 x86_64_linux_gregset64_reg_offset.
7989 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7990 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7991 (amd64_linux_dr_set_control): Renamed from
7992 x86_64_linux_dr_set_control. Adjust for renamed functions.
7993 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7994 Adjust for renamed functions.
7995 (amd64_linux_dr_reset_addr): Renamed from
7996 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7997 (amd64_linux_dr_get_status): Renamed from
7998 x86_64_linux_dr_get_status. Adjust for renamed functions.
7999 (_initialize_amd64_linux_nat): Renamed from
8000 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8001 functions.
8002 * config/i386/nm-x86-64linux.h: Update copyright year.
8003 Adjust for renamed functions.
8004
10fc94a4
MK
8005 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8006 amd64fbsd_sigtramp_start.
8007 (amd64fbsd_sigtramp_end_addr): Renamed from
8008 amd64fbsd_sigtramp_end.
8009 (amd64fbsd_init_abi): Adjust for renamed variables.
8010 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8011 variables.
8012 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8013 amd64fbsd_sigtramp_start.
8014 (amd64fbsd_sigtramp_end_addr): Renamed from
8015 amd64fbsd_sigtramp_end.
8016
343af405
AC
80172004-02-22 Andrew Cagney <cagney@redhat.com>
8018
537987fc
AC
8019 * hppa-tdep.c (hppa32_return_value): New function.
8020 (hppa64_return_value): New function.
8021 (hppa_gdbarch_init): Set return_value; keep disabled.
8022
fad850b2
AC
8023 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8024 struct-return and inferior function call methods.
8025
26d08f08
AC
8026 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8027 "frame-base.h".
8028 (struct hppa_frame_cache): Define.
8029 (hppa_frame_cache, hppa_frame_this_id): New functions.
8030 (hppa_frame_prev_register): New function.
8031 (hppa_frame_unwind, hppa_frame_base): New variables.
8032 (hppa_frame_unwind_sniffer): New function.
8033 (hppa_frame_base_address, hppa_unwind_pc): New function.
8034 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8035 sniffer, and frame base sniffer; keep disabled.
8036 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8037 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8038
e7d7bd65
AC
8039 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8040 to predicates for "seriously old code".
8041
e963316f
AC
8042 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8043 runtime if(0).
8044
56132691
AC
8045 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8046 unsigned.
8047 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8048
343af405
AC
8049 * config/pa/tm-hppa.h: Update copyright.
8050 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8051 (deprecated_init_frame_pc_default): Delete declaration.
8052 (hppa_frame_init_saved_regs): Delete declaration.
8053 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8054 * hppa-tdep.c: Include "arch-utils.h".
8055 (hppa_gdbarch_init): Set deprecated init_frame_pc
8056 and deprecated frame_init_saved_regs.
8057 (hppa_frame_init_saved_regs): Make static.
8058
f5859b4d
MK
80592004-02-22 Mark Kettenis <kettenis@gnu.org>
8060
86f6f8e7 8061 Remove old 386BSD support.
cf7c5c23 8062 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8063 * configure.host: Remove i[34567]86-*-bsd*.
8064 * configure.tgt: Remove i[34567]86-*-bsd*.
8065 * i386b-nat.c: Removed.
8066 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8067 (i386b-nat.o): Remove dependencies.
8068
86f6f8e7
MK
8069 * config/i386/i386bsd.mh: Removed.
8070 * config/i386/i386bsd.mt: Removed.
8071 * config/i386/nm-i386bsd.h: Removed.
8072 * config/i386/tm-i386bsd.h: Removed.
8073 * config/i386/xm-i386bsd.h: Removed.
8074
971218cd
MK
8075 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8076
7e654c37
MK
8077 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8078 (amd64fbsd_init_abi): Set link map offsets.
8079 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8080 (amd64nbsd_init_abi): Set link map offsets.
8081 * amd64obsd-tdep.c: Include "solib-svr4.h".
8082 (amd64obsd_init_abi): Set link map offsets.
8083 * i386fbsd-tdep.c: Include "solib-svr4.h".
8084 (i386fbsd_init_abi): Set link map offsets.
8085 * i386nbsd-tdep.c: Include "solib-svr4.h".
8086 (i386nbsdelf_init_abi): Set link map offsets.
8087 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8088 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8089 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8090 solib-legacy.o and core-aout.o. Reformat.
8091 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8092 solib-svr4.o, solib-legacy.o. Reformat.
8093 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8094 * config/i386/nbsdelf.mh: Reformat.
8095 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8096 solib-svr4.o, solib-legacy.o and corelow.o.
8097 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8098 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8099 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8100 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8101 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8102 (TM_FILE): Set to tm-fbsd.h.
8103 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8104 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8105 solib-svr4.o.
8106 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8107 solib-svr4.o.
8108 (TM_FILE): Set to nm-nbsd.h.
8109 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8110 Simplify shared library support. Don't include "elf/common.h".
8111 (SVR4_SHARED_LIBS): Don't define.
8112 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8113 "solib.h".
8114 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8115 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8116 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8117 Don't include "i386/tm-i386.h". Include "solib.h".
8118 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8119 Don't include "i386/tm-i386.h".
8120 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8121 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8122 Include "i386/xm-i386.h".
8123 (HOST_LONG_DOUBLE_FORMAT): Remove.
8124
5d93ae8c
MK
8125 Fix OpenBSD/i386 sigtramp recognition.
8126 * i386-tdep.h: Update copyright year.
8127 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8128 (i386bsd_sigtramp_end): New prototypes.
8129 (i386fbsd_sigtramp_start_addr): Renamed from
8130 i386fbsd_sigtramp_start.
8131 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8132 (i386obsd_sigtramp_start_addr): Renamed from
8133 i386obsd_sigtramp_start.
8134 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8135 * i386bsd-tdep.c: Update copyright year.
8136 (i386bsd_pc_in_sigtramp): Make public.
8137 * i386fbsd-nat.c: Update copyright year.
8138 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8139 * i386fbsd-tdep.c: Update copyright year.
8140 (i386fbsd_sigtramp_start_addr): Renamed from
8141 i386fbsd_sigtramp_start.
8142 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8143 (i386fbsdaout_init_abi): Adjust for renamed variables.
8144 * i386obsd-nat.c: Update copyright year.
8145 (_initialize_i386obsd_nat): Adjust for renamed variables.
8146 * i386obsd-tdep.c: Include "target.h".
8147 (i386obsd_page_size): New variable.
8148 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8149 (i386obsd_sigtramp_end): New functions.
8150 (i386obsd_sigtramp_start_addr): Renamed from
8151 i386obsd_sigtramp_start.
8152 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8153 (i386obsd_init_abi): Adjust for renamed variables. Set
8154 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8155 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8156
84d04465
MK
8157 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8158 trampoline change in OpenBSD kernel.
8159
b053aceb
MK
8160 * amd64-nat.c: Update copyright year.
8161 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8162 architecture from REGCACHE.
8163
f5859b4d
MK
8164 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8165 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8166
e4bbbda8
MK
81672004-02-21 Mark Kettenis <kettenis@gnu.org>
8168
ba361932
MK
8169 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8170 i[34567]86-*-openbsd3.[0-3].
8171 * config/i386/obsdaout.mh: New file.
8172
d3e48264
MK
8173 * config/i386/obsd.mh (MH_FLAGS): Remove.
8174
60a6eeb6
MK
8175 Fix PR build/1549.
8176 * i386obsd-tdep.c: Update copyright years. Include
8177 "solib-svr4.h".
8178 (i386obsd_init_abi): Don't set regset_from_core_section here.
8179 (i386obsd_aout_init_abi): New function. Set
8180 regset_from_core_section here.
8181 (i386obsd_elf_init_abi): New function.
8182 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8183 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8184 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8185 (TM_FILE): Set to tm-nbsd.h.
8186
8187 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8188 solib-sunos.o.
8189
e4bbbda8
MK
8190 * solib-svr4.h: Update copyright year.
8191 (svr4_ilp32_fetch_link_map_offsets)
8192 (svr4_lp64_fetch_link_map_offsets): New prototype.
8193 * solib-svr4.c: Update copyright year.
8194 (svr4_ilp32_fetch_link_map_offsets)
8195 (svr4_lp64_fetch_link_map_offsets): New function.
8196
f6fe98ef
DJ
81972004-02-20 Daniel Jacobowitz <drow@mvista.com>
8198
8199 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8200 to the partial symbol table.
8201
589ca796
JB
82022004-02-20 J. brobecker <brobecker@gnat.com>
8203
8204 * PROBLEMS: Add description of problem documented under gdb/1560.
8205
2031c21a
MK
82062004-02-20 Mark Kettenis <kettenis@gnu.org>
8207
30b344b1
MK
8208 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8209 comments.
8210 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8211 functions.
8212 (amd64obsd_init_abi): Reorder initializations. Use
8213 amd64obsd_r_reg_offset to initialize the general-purpose register
8214 set details. Set regset_from_core_section.
8215 (_initialize_amd64obsd_tdep): Rename from
8216 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8217 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8218 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8219
2031c21a
MK
8220 * NEWS (New native configurations): Mention OpenBSD/alpha.
8221 * configure.tgt: Add alpha*-*-openbsd*.
8222 * configure.host: Add alpha*-*-openbsd*.
8223 * alphanbsd-tdep.c: Update copyright year.
8224 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8225
42471775
AC
82262004-02-20 Andrew Cagney <cagney@redhat.com>
8227
8228 Fix PR tdep/1372.
8229 * configure.tgt: Delete target "none-*-*".
8230 * configure.host: Delete host "none-*-*".
8231 * config/none/none.mh: Delete file.
8232 * config/none/none.mt: Delete file.
8233 * config/none/xm-none.h: Delete file.
8234 * config/none/tm-none.h: Delete file.
8235 * config/none/nm-none.h: Delete file.
8236
960ccd7d
FF
82372004-02-19 Fred Fish <fnf@redhat.com>
8238
8239 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8240 cache->uses_fp prior to setting it.
8241
5f883edd
FF
82422004-02-19 Fred Fish <fnf@redhat.com>
8243
8244 Fix for PR breakpoint/1558.
8245 * sh-tdep.c (IS_JSR): New macro.
8246 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8247
f98c22d5
JB
82482004-02-19 Jim Blandy <jimb@redhat.com>
8249
8250 * findvar.c (value_from_register): Doc fix.
8251
95051d27
JJ
82522004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8253
8254 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8255 type being greater than sizeof of host's LONGEST. Always use
8256 unpack_long() unless format 'f' chosen.
8257
ccefbec3
EZ
82582004-02-19 Joel Brobecker <brobecker@gnat.com>
8259
8260 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8261
ccefbec3
EZ
8262 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8263 contains a symbol wich is the best, non-exact match for the given
8264 pc. Update comments.
8265
82662004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8267
2ede629f
EZ
8268 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8269 macro, which was part of the now removed Mach 3 port.
8270 * utils.c (request_quit): Ditto.
8271
567ee972
MK
82722004-02-18 Mark Kettenis <kettenis@gnu.org>
8273
8274 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8275 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8276
50cca7bb
MK
82772004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8278
8279 Committed by Mark Kettenis <kettenis@gnu.org>.
8280
8281 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8282 Define.
8283
226361c4
AC
82842004-02-18 Andrew Cagney <cagney@redhat.com>
8285
8286 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8287 CONFIG_INSTALL and CONFIG_UNINSTALL.
8288 * configure: Re-generate.
8289 * interps.h (INTERP_TUI): Define.
8290 * Makefile.in: Update dependencies.
8291 (TUI): New macro.
8292 (tui-main.o): Specify dependencies.
8293 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8294 * tui/tui-main.c: New file.
8295
49cfa46f
MK
82962004-02-18 Mark Kettenis <kettenis@gnu.org>
8297
e2879ccb
MK
8298 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8299 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8300 dependencies.
8301 * configure.host: Add x86_64-*-openbsd*.
8302 * configure.tgt: Add x86_64-*-openbsd*.
8303 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8304
c43f4bec
MK
8305 * tui/tui.c: Don't include <malloc.h>.
8306
09ae75b6
MK
8307 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8308 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8309 amd64nbsd-tdep.c.
8310
49cfa46f 8311 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8312 static. Remove extraneous whitespace.
49cfa46f
MK
8313 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8314 static.
8315
05957fdb
JB
83162004-02-17 Jim Blandy <jimb@redhat.com>
8317
8318 * findvar.c (value_from_register): Doc fix.
8319
d0f54f9d
JB
83202004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8321
8322 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8323
8a1dac83 8324 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8325 CORE_ADDR as type for selectors. Correct types for GNU run time
8326 message lookup function to use double indirection.
8327 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8328 * objc-lang.h (lookup_child_selector): Adapt prototype.
8329
9cbd5950
JB
8330 * s390-nat.c (SUBOFF): New macro.
8331 (supply_gregset, fill_gregset): Use it to handle debugging
8332 of 32-bit exectuables running under a 64-bit kernel.
8333 * s390-tdep.c: Include "solib-svr4.h".
8334 (s390_svr4_fetch_link_map_offset): New function.
8335 (s390x_svr_fetch_link_map_offset): Likewise.
8336 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8337 * Makefile.in (s390-tdep.o): Update dependencies.
8338
a8c99f38
JB
8339 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8340 "frame-unwind.h".
8341 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8342 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8343 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8344 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8345 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8346 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8347 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8348 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8349 (struct frame_extra_info): Remove.
8350 (s390_memset_extra_info): Remove.
f73b1eff
JB
8351 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8352 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8353 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8354 (is_rse): Renamed to ...
8355 (is_rsy): ... this. Support long displacements.
8356 (is_rxe): Renamed to ...
8357 (is_rxy): ... this. Support long displacements.
8358 (compute_x_addr): Support long displacements.
8359 (struct s390_prologue_data): New data type.
8360 (s390_on_stack): Change API to use struct s390_prologue_data.
8361 (s390_store): Reimplement.
8362 (s390_load): New function.
8363 (s390_get_signal_frame_info): Remove.
8364 (s390_get_frame_info): Remove, replace by ...
8365 (s390_analyze_prolog): ... this new function.
8366 (s390_check_function_end): Remove.
8367 (s390_function_start): Remove.
8368 (s390_frameless_function_invokation): Remove.
8369 (s390_is_sigreturn): Remove.
8370 (s390_init_frame_pc_first): Remove.
8371 (s390_init_frame_extra_info): Remove.
8372 (s390_frame_init_saved_regs): Remove.
8373 (s390_frame_saved_pc_nofix): Remove.
8374 (s390_frame_saved_pc): Remove.
8375 (s390_frame_chain): Remove.
8376 (s390_fp_regnum, s390_read_fp): Remove.
8377 (s390_pop_frame_regular, s390_pop_frame): Remove.
8378 (s390_saved_pc_after_call): Remove.
8379 (s390_skip_prologue): Reimplement.
8380 (s390_in_function_epilogue_p): Support long displacements.
8381 (struct s390_unwind_cache): New data structure.
8382 (s390_frame_unwind_cache): New function.
8383 (s390_prologue_frame_unwind_cache): Likewise.
8384 (s390_backchain_frame_unwind_cache): Likewise.
8385 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8386 (s390_frame_unwind): Define.
8387 (s390_frame_sniffer): New function.
8388 (struct s390_pltstub_unwind_cache): New data structure.
8389 (s390_pltstub_frame_unwind_cache): New function.
8390 (s390_pltstub_frame_this_id): Likewise.
8391 (s390_pltstub_frame_prev_register): Likewise.
8392 (s390_pltstub_frame_unwind): Define.
8393 (s390_pltstub_frame_sniffer): New function.
8394 (struct s390_sigtramp_unwind_cache): New data structure.
8395 (s390_sigtramp_frame_unwind_cache): New function.
8396 (s390_sigtramp_frame_this_id): Likewise.
8397 (s390_sigtramp_frame_prev_register): Likewise.
8398 (s390_sigtramp_frame_unwind): Define.
8399 (s390_sigtramp_frame_sniffer): New function.
8400 (s390_frame_base_address, s390_local_base_address): New functions.
8401 (s390_frame_base): Define.
8402 (s390_unwind_pc, s390_unwind_sp): New function.
8403 (s390_push_dummy_call): Use new frame base location.
8404 (s390_unwind_dummy_id): Likewise.
8405 (s390_gdbarch_init): Remove calls to:
8406 set_gdbarch_frameless_function_invocation,
8407 set_gdbarch_deprecated_init_frame_pc,
8408 set_gdbarch_deprecated_frame_chain,
8409 set_gdbarch_deprecated_frame_init_saved_regs,
8410 set_gdbarch_deprecated_pop_frame,
8411 set_gdbarch_deprecated_init_extra_frame_info,
8412 set_gdbarch_deprecated_init_frame_pc_first,
8413 set_gdbarch_deprecated_target_read_fp,
8414 set_gdbarch_deprecated_frame_saved_pc,
8415 set_gdbarch_deprecated_saved_pc_after_call,
8416 set_gdbarch_deprecated_fp_regnum.
8417 Add calls to:
8418 set_gdbarch_in_solib_call_trampoline,
8419 frame_unwind_append_sniffer,
8420 frame_base_set_default,
8421 set_gdbarch_unwind_pc,
8422 set_gdbarch_unwind_sp.
8423 * Makefile.in (s390-tdep.o): Update dependencies.
8424
b0cf273e
JB
8425 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8426 (S390_STACK_FRAME_OVERHEAD): Remove.
8427 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8428 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8429 (s390_promote_integer_argument): Remove.
8430 (s390_cannot_extract_struct_value_address): Remove.
8431 (s390_use_struct_convention, s390_store_struct_return): Remove.
8432 (s390_extract_return_value, s390_store_return_value): Remove.
8433 (s390_return_value_convention, s390_return_value): New functions.
8434 (is_float_singleton): Handle typedefs.
8a1dac83 8435 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8436 Remove, replace by ...
8437 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8438 s390_function_arg_integer): ... these new functions.
8439 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8440 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8441 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8442 Fill in tdep->abi.
8443 Remove calls to:
8444 set_gdbarch_deprecated_store_struct_return,
8445 set_gdbarch_deprecated_extract_return_value,
8446 set_gdbarch_deprecated_store_return_value,
8447 set_gdbarch_use_struct_convention,
8448 set_gdbarch_extract_struct_value_address,
8449 set_gdbarch_deprecated_pc_in_call_dummy,
8450 set_gdbarch_deprecated_push_arguments,
8451 set_gdbarch_deprecated_save_dummy_frame_tos,
8452 set_gdbarch_deprecated_push_return_address,
8453 set_gdbarch_deprecated_sizeof_call_dummy_words,
8454 set_gdbarch_deprecated_call_dummy_words,
8455 set_gdbarch_deprecated_dummy_write_sp.
8456 Add calls to:
8457 set_gdbarch_push_dummy_call,
8458 set_gdbarch_unwind_dummy_id,
8459 set_gdbarch_return_value.
8a1dac83 8460
e1457d83
JB
8461 * config/s390/nm-linux.h: Update comments.
8462 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8463 (STOPPED_BY_WATCHPOINT): Redefine.
8464 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8465 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8466 (s390_stopped_by_watchpoint): Likewise.
8467 (watch_area_cnt): Remove.
8468 * s390-nat.c: Update comments.
8469 (watch_area): Remove typedef.
8470 Global replace watch_area by struct watch_area.
8471 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8472 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8473 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8474 (s390_fix_watch_points): Remove pid argument,
8475 use s390_inferior_tid. Recompute area spanned by watchpoints.
8476 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8477 argument. Reimplement.
8478
d0f54f9d
JB
8479 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8480 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8481 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8482 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8483 core-regset.o.
8484 * config/s390/s390x.mt: Remove.
8485 * config/s390/tm-s390.h: Remove.
8486 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8487 (TARGET_ELF64): Remove.
8488 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8489 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8490 s390*-*-* case; always set gdb_target to s390.
8491 * regformats/reg-s390.dat: Remove control registers.
8492 * regformats/reg-s390x.dat: Likewise.
8493 * s390-tdep.h: New file.
8a1dac83 8494 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8495 Include "inferior.h" and "s390-tdep.h".
8496 Remove private definition of offsetof.
8497 (s390_register_u_addr): Remove.
8498 (regmap_gregset, regmap_fpregset): Define.
8499 (supply_gregset, fill_gregset): Reimplement.
8500 (supply_fpregset, fill_fpregset): Likewise.
8501 (s390_inferior_tid): New function.
8502 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8503 (fetch_inferior_registers, store_inferior_registers): Likewise.
8504 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8505 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8506 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8507 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8508 (struct gdbarch_tdep): Define.
8509 (struct s390_register_info): Define.
8510 (s390_register_info): New variable.
8511 (s390_register_name): Reimplement.
8512 (s390_register_type): New function.
8513 (s390_register_raw_size, s390x_register_raw_size): Remove.
8514 (s390_cannot_fetch_register): Remove.
8515 (s390_register_byte): Remove.
8516 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8517 (s390_dwarf_regmap): New variable.
8518 (s390_dwarf_reg_to_regnum): New function.
8519 (s390_stab_reg_to_regnum): Remove.
8520 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8521 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8522 (s390_convert_register_p): Likewise.
8523 (s390_register_to_value, s390_value_to_register): Likewise.
8524 (s390_register_reggroup_p): Likewise.
8525 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8526 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8527 (s390_supply_regset, s390_regset_from_core_section): New functions.
8528 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8529 (S390_FPR_SIZE): Likewise.
8530 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8531 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8532 (S390_NUM_GPRS): Move here from tm-s390.h.
8533 (S390_NUM_FPRS): Likewise.
8534 (s390_in_function_epilogue_p): New function.
8535 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8536 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8537 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8538 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8539 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8540 Remove calls to:
8541 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8542 set_gdbarch_deprecated_max_register_virtual_size,
8543 set_gdbarch_deprecated_register_byte,
d0f54f9d 8544 set_gdbarch_cannot_fetch_register,
8a1dac83 8545 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8546 set_gdbarch_deprecated_register_size,
8547 set_gdbarch_deprecated_register_raw_size,
8548 set_gdbarch_deprecated_register_virtual_size,
8549 set_gdbarch_deprecated_register_virtual_type,
8550 set_gdbarch_deprecated_register_bytes.
8551 Add calls to:
8552 set_gdbarch_num_pseudo_regs,
8553 set_gdbarch_register_type,
8554 set_gdbarch_convert_register_p,
8555 set_gdbarch_register_to_value,
8556 set_gdbarch_value_to_register,
8557 set_gdbarch_register_reggroup_p,
8558 set_gdbarch_regset_from_core_section,
8559 set_gdbarch_pseudo_register_read,
8560 set_gdbarch_pseudo_register_write,
8561 set_gdbarch_in_function_epilogue_p.
8562 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8563 (s390_tdep_h): New variable.
8564
8cfe231d
JB
85652004-02-17 Jim Blandy <jimb@redhat.com>
8566
4589a601
JB
8567 * findvar.c (value_from_register): If the type has no length, just
8568 return an acceptable value --- don't report an internal error.
8569
8cfe231d
JB
8570 * stabsread.c (read_type): If we find any type numbers that are
8571 forward references, complain if the references aren't resolved by
8572 the time we're finished reading.
8573 (cleanup_undefined_types): Make error message more appropriate for
8574 a complaint.
8575
5bf0017e
EZ
85762004-02-17 Elena Zannoni <ezannoni@redhat.com>
8577
9d62932d
EZ
8578 * Makefile.in (defs_h): Remove dependency on progress_h.
8579 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8580 progress.h.
8581 * main.c (captured_main): Delete use of START_PROGRESS and
8582 END_PROGRESS.
8583
85842004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8585
5bf0017e
EZ
8586 * objfiles.c (terminate_minimal_symbol_table): Add back
8587 initialization of MSYMBOL_TYPE.
8588
9fc9f5e2
AC
85892004-02-17 David Mosberger <davidm@hpl.hp.com>
8590
8591 Committed by Andrew Cagney.
8592 * Makefile.in (ia64_tdep_h): New macro.
8593 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8594 (ia64-tdep.o): Likewise.
8595 * ia64-tdep.h: New file.
8596 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8597 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8598 (ia64_aix_sigcontext_register_address): Likewise.
8599 (ia64_linux_getunwind_table): Delete declaration.
8600 * ia64-linux-tdep.c: Likewise.
8601
76cd2bd9
CV
86022004-02-17 Corinna Vinschen <vinschen@redhat.com>
8603
8604 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8605 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8606 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8607
634aa483
AC
86082004-02-17 Andrew Cagney <cagney@redhat.com>
8609
8610 * symtab.c (skip_prologue_using_sal): New function.
8611 * symtab.h (skip_prologue_using_sal): Declare.
8612 * frv-tdep.c: Include "symtab.h".
8613 (skip_prologue_using_sal): Delete function.
8614 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8615 * rs6000-tdep.c (refine_prologue_limit): Mention
8616 skip_prologue_using_sal.
8617 * ia64-tdep.c (refine_prologue_limit): Ditto.
8618 * Makefile.in: Update dependencies.
8619
86202004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8621
39ce7b3f
AC
8622 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8623 START_INFERIOR_TRAPS_EXPECTED.
8624 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8625 START_INFERIOR_TRAPS_EXPECTED.
8626 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8627 Delete macro.
8628 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8629 macro, moved to "nm-osf.h". Update copyright.
8630 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8631 update copyright.
8632
19772a2c
AC
8633 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8634 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8635 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8636 frameless_look_for_prologue.
8637 * frame.h (legacy_frameless_look_for_prologue): Rename
8638 frameless_look_for_prologue.
8639 * gdbarch.h, gdbarch.c: Re-generate.
8640 * sh64-tdep.c (sh64_gdbarch_init): Update.
8641 * sh-tdep.c (sh_gdbarch_init): Update.
8642 * s390-tdep.c (s390_gdbarch_init): Update.
8643 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8644 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8645 * m68k-tdep.c (m68k_gdbarch_init): Update.
8646 (delta68_frame_args_address): Update.
8647 * m32r-tdep.c (m32r_gdbarch_init): Update.
8648 * hppa-tdep.c (hppa_gdbarch_init): Update.
8649 * h8300-tdep.c (h8300_gdbarch_init): Update.
8650 * frv-tdep.c (frv_gdbarch_init): Update.
8651 (frv_frameless_function_invocation): Update.
8652 * cris-tdep.c (cris_gdbarch_init): Update.
8653 (cris_frameless_function_invocation): Update.
8654 * avr-tdep.c (avr_gdbarch_init): Update.
8655 * arm-tdep.c (arm_gdbarch_init): Update.
8656 * stack.c (frame_info): Update, call predicate.
8657 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8658 * frame.c (legacy_get_prev_frame): Update, call predicate..
8659 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8660 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8661 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8662 invocation.
8663 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8664 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8665 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8666
8667 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8668 function.
8669
7dcaac91
DJ
86702004-02-16 Daniel Jacobowitz <drow@mvista.com>
8671
8672 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8673 initializations.
8674
88289b6e
AC
86752004-02-16 Andrew Cagney <cagney@redhat.com>
8676
8677 * tui/tui-windata.c: Include "gdb_string.h".
8678 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8679 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8680 * Makefile.in: Update dependencies.
8681
9f976b41
DJ
86822004-02-16 Daniel Jacobowitz <drow@mvista.com>
8683
8684 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8685 * infrun.c: Include "gdb_assert.h".
8686 (singlestep_ptid, saved_singlestep_ptid)
8687 (stepping_past_singlestep_breakpoint): New variables.
8688 (resume): Set singlestep_ptid. Check for singlestep thread
8689 hop.
8690 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8691 (handle_inferior_event): Handle singlestep thread hop.
8692
c324d747
AC
86932004-02-16 Andrew Cagney <cagney@redhat.com>
8694
f090b9b1
AC
8695 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8696 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8697 (dwarf2_frame_init_reg): Ditto.
8698
fd33e6cb
AC
8699 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8700 suggested by Joshua Neuheisel
8701
c324d747
AC
8702 * configure.in: Always check for curses, including pdcurses.
8703 Warn, instead of error, when no curses are found. Enable TUI when
8704 curses is available.
8705 * configure: Re-generate.
8706
b66ba949
CV
87072004-02-16 Corinna Vinschen <vinschen@redhat.com>
8708
8709 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8710 sh_sh4_register_convert_to_virtual.
8711 (sh_register_convert_to_raw): Rename from
8712 sh_sh4_register_convert_to_raw.
8713 (sh_pseudo_register_read): Accomodate above name change.
8714 (sh_pseudo_register_write): Ditto.
8715
b58cbbf2
CV
87162004-02-16 Corinna Vinschen <vinschen@redhat.com>
8717
8718 * sh-tdep.c (sh_generic_register_name): Remove.
8719 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8720
5929a910
AC
87212004-02-15 Andrew Cagney <cagney@redhat.com>
8722
4566dfcf
AC
8723 * configure.in (build_warnings): Add -Wunused-function.
8724 * configure: Re-generate.
8725
db11ed55
AC
8726 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8727 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8728
46ac7a5d
AC
8729 * procfs.c (procfs_init_inferior): Assume that
8730 START_INFERIOR_TRAPS_EXPECTED is defined.
8731 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8732 * config/ns32k/tm-nbsd.h: Delete file,
8733 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8734
ba801595
AC
8735 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8736 * config/vax/tm-vax.h: Delete file.
8737
5929a910
AC
8738 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8739 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8740 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8741 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8742 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8743 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8744 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8745
8f22cb90
MK
87462004-02-15 Mark Kettenis <kettenis@gnu.org>
8747
8748 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8749 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8750 (struct dwarf2_frame_ops): New.
8751 (dwarf2_frame_default_init_reg): New function, based on
8752 dwarf2_frame_init_reg.
8753 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8754 (dwarf2_frame_init_reg): Call architecture-specific function.
8755 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8756 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8757 instead of dwarf2_frame_data.
8758 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8759 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8760
8132723e
AC
87612004-02-15 Andrew Cagney <cagney@redhat.com>
8762
046a4708
AC
8763 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8764 register_gdbarch_swap.
8765 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8766 * f-lang.c (_initialize_f_language): Update, use
8767 DEPRECATED_REGISTER_GDBARCH_SWAP.
8768 * remote.c (_initialize_remote): Ditto.
8769 * regcache.c (_initialize_regcache): Ditto.
8770 * parse.c (_initialize_parse): Ditto.
8771 * infrun.c (_initialize_infrun): Ditto.
8772 * mi/mi-main.c (_initialize_mi_main): Ditto.
8773 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 8774
549c1eea
AC
8775 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8776 poking .cacheable directly.
8777 * symfile.c (symfile_bfd_open): Ditto.
8778
0c0b39de
AC
8779 * Makefile.in: Update all dependencies.
8780
8132723e
AC
8781 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8782 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8783 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8784 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8785 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 8786
b9d26eb9
AC
87872004-02-14 Andrew Cagney <cagney@redhat.com>
8788
8e1f669a
AC
8789 * arch-utils.c (legacy_convert_register_p): Check
8790 DEPRECATED_REGISTER_CONVERTIBLE_P.
8791 * findvar.c (value_of_register): Ditto.
8792
cd0bfa36
AC
8793 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8794 * gdbarch.h, gdbarch.c: Re-generate.
8795 * arch-utils.c (deprecated_register_convertible_not): Delete.
8796 * arch-utils.h (deprecated_register_convertible_not): Delete.
8797 * mi/mi-main.c (get_register): Update. Update copyright.
8798 * infcmd.c (default_print_registers_info): Update.
8799
b9d26eb9
AC
8800 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8801 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8802 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 8803 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
8804 * frame.c (deprecated_get_next_frame_hack): Delete function.
8805 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8806 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8807 Update.
8808 * infcall.c (call_function_by_hand): Update.
8809
9ab9195f
EZ
88102004-02-14 Elena Zannoni <ezannoni@redhat.com>
8811
8812 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 8813 from here...
9ab9195f
EZ
8814 * objfiles.c (init_entry_point_info, entry_point_address):..to
8815 here.
8816 * symfile.h (init_entry_point_info, entry_point_address): Remove
8817 prototypes.
8818 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 8819 prototypes.
9ab9195f
EZ
8820 * cris-tdep.c: Remove include of symfile.h. Add include of
8821 objfiles.h.
8822 * infcall.c: Ditto.
8823 * mcore-tdep.c: Ditto.
8824 * mn10300-tdep.c: Ditto.
8825 * sh64-tdep.c: Ditto.
8826 * v850-tdep.c: Ditto.
8827 * arm-tdep.c: Remove include of symfile.h.
8828 * blockframe.c: Ditto.
8829 * coffread.c: Ditto.
8830 * dbxread.c: Ditto.
8831 * dwarf2read.c: Ditto.
8832 * dwarfread.c: Ditto.
8a1dac83 8833 * frv-tdep.c: Ditto.
9ab9195f
EZ
8834 * ia64-tdep.c: Ditto.
8835 * mdebugread.c: Ditto.
8836 * mipsread.c: Ditto.
8a1dac83 8837 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
8838 * s390-tdep.c: Ditto.
8839 * sh-tdep.c: Ditto.
8a1dac83 8840 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
8841 * gdbarch.sh: Remove include of symfile.h.
8842 * gdbarch.c: Regenerate.
8843 * solib-irix.c (enable_break): Use entry_point_address().
8844 Add comment about include file.
8845 * xcoffread.c: Add comment about include file.
8a1dac83
RM
8846 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8847 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8848 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8849 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
8850 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8851
c4c5b7ba
AC
88522004-02-13 Andrew Cagney <cagney@redhat.com>
8853
8854 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8855 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8856 copyright.
8857 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8858
3e7879de
FF
88592004-02-12 Fred Fish <fnf@redhat.com>
8860
8861 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8862 set_gdbarch_store_return_value.
8863
6a7760b6
AC
88642004-02-12 Andrew Cagney <cagney@redhat.com>
8865
8866 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8867 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8868 (interrupt_query): Ditto.
8869 (ofunc): Delete unused variable.
8870 * cris-tdep.c (cris_abi): Delete unused function.
8871 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8872 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8873 (cris_get_asr_quick_shift_steps): Ditto.
8874 (cris_skip_prologue_frameless_p): Ditto.
8875 * arm-tdep.c (arm_push_return_address): Delete unused function.
8876 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8877 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8878 * s390-tdep.c (s390_function_start): Delete unused function.
8879
31687c3c
AC
88802004-02-12 Andrew Cagney <cagney@redhat.com>
8881
8882 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8883 gdbarch.h, gdbarch.c: Re-generate.
8884 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8885 to generic_prologue_frameless_p.
8886 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8887 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8888
6de918a6
DJ
88892004-02-11 Daniel Jacobowitz <drow@mvista.com>
8890
8891 * mips-linux-tdep.c: Include "frame.h".
8892 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8893 (mips_linux_skip_resolver): New functions.
8894 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8895 and set_gdbarch_in_solib_call_trampoline.
8896 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8897 to after set_gdbarch_in_solib_return_trampoline. Only set the
8898 solib hooks to mips16 functions if the OS ABI is unknown.
8899 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8900 including "config/tm-linux.h".
8901 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8902 * Makefile.in (mips-linux-tdep.o): Update.
8903
87b3ede8
DC
89042004-02-11 David Carlton <carlton@kealia.com>
8905
8906 * linespec.c (decode_compound): Only look for a class symbol when
8907 considering all but the rightmost component.
8908
5979bc46
AC
89092004-02-11 Andrew Cagney <cagney@redhat.com>
8910
8911 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8912 abi code are are separatly grouped.
8913
5867a2fb
AC
89142004-02-11 Andrew Cagney <cagney@redhat.com>
8915
8916 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8917 * gdbarch.h, gdbarch.c: Re-generate.
8918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8919 * v850-tdep.c (v850_gdbarch_init): Update.
8920 * sh64-tdep.c (sh64_gdbarch_init): Update.
8921 * sh-tdep.c (sh_gdbarch_init): Update.
8922 * s390-tdep.c (s390_gdbarch_init): Update.
8923 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8924 * mips-tdep.c (mips_gdbarch_init): Update.
8925 * mcore-tdep.c (mcore_gdbarch_init): Update.
8926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8927 * m32r-tdep.c (m32r_gdbarch_init): Update.
8928 * ia64-tdep.c (ia64_gdbarch_init): Update.
8929 * hppa-tdep.c (hppa_gdbarch_init): Update.
8930 * h8300-tdep.c (h8300_gdbarch_init): Update.
8931 * frv-tdep.c (frv_gdbarch_init): Update.
8932 * d10v-tdep.c (d10v_gdbarch_init): Update.
8933 * cris-tdep.c (cris_gdbarch_init): Update.
8934 * avr-tdep.c (avr_gdbarch_init): Update.
8935 * arm-tdep.c (arm_gdbarch_init): Update.
8936 * alpha-tdep.c (alpha_gdbarch_init): Update.
8937
026a72f8
CV
89382004-02-11 Corinna Vinschen <vinschen@redhat.com>
8939
8940 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8941 comma.
8942 (sh_sh4al_dsp_register_name): Ditto.
8943
3903d437
AC
89442004-02-10 Andrew Cagney <cagney@redhat.com>
8945
8946 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8947 (mips_init_frame_pc_first): Delete function.
8948 (mips_frame_saved_pc): Delete function.
8949 (mips_frame_chain): Delete function.
8950 (mips_init_extra_frame_info): Delete function.
8951 (mips_xfer_register): Delete unused variable "reg".
8952 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8953 (mips_n32n64_return_value): Delete unused variable "reg".
8954 (mips_n32n64_return_value): Delete unused variable "pos".
8955 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8956 (mips_o32_return_value): Delete unused variable "pos".
8957 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8958 (mips_print_fp_register): Delete unused variable "namelen"
8959 (mips_print_fp_register): Delete unused variable "flt2"
8960 (get_frame_pointer): Delete function.
8961 (cached_proc_desc): Delete static variable.
8962 (mips_pop_frame): Delete function.
8963 (mips_find_saved_regs): Delete function.
8964 (mips_get_saved_register): Delete function.
8965 (mips_saved_pc_after_call): Delete function.
8966 (SIGFRAME_BASE): Delete macro.
8967 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8968 (SIGFRAME_PC_OFF): Delete macro.
8969 (SIGFRAME_REGSAVE_OFF): Delete macro.
8970 (mips_dump_tdep): Do not print deleted macro definitions.
8971
b9fb98bd
AC
89722004-02-10 Andrew Cagney <cagney@redhat.com>
8973
8974 * Makefile.in (SFILES): Remove explictly listed tui files.
8975 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8976
78ced177 89772004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 8978
78ced177
JJ
8979 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8980 to use paddr functions to format ia64 addresses and long values.
8981 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8982 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8983 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8984 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8985 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8986
6a83354a
AC
89872004-02-10 Andrew Cagney <cagney@redhat.com>
8988
8989 * defs.h: Do not include "tui.h".
8990 * gdb_curses.h: New file.
8991 * tui/tui-hooks.h: New file.
8992 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8993 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8994 (tui_initialize_io): Delete declaration.
8995 (tui_initialize_readline: Delete redundant declaration.
8996 (struct tui_point): Delete definition.
8997 * tui/tui-data.h (struct tui_point): Define.
8998 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8999 * utils.c: Include "tui/tui.h".
9000 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9001 * printcmd.c [TUI]: Include "tui/tui.h".
9002 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9003 * tui/tui-command.c: Include "gdb_curses.h".
9004 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9005 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9006 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9007 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9008 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9009 * Makefile.in: Update all dependencies.
9010 (tui_hooks_h, gdb_curses_h): Define.
9011 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9012
997470ef
EZ
90132004-02-10 Elena Zannoni <ezannoni@redhat.com>
9014
9015 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9016 auxf2. Add comments about some other rarely used fields.
9017
4ff2cc4d
AC
90182004-02-10 Andrew Cagney <cagney@redhat.com>
9019
9020 * Makefile.in (init.c): Fix script removing duplicates. Problem
9021 reported by Peter Schauer.
9022
1ab21617
EZ
90232004-02-09 Elena Zannoni <ezannoni@redhat.com>
9024
9025 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9026 obstack_specify_allocation.
9027 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9028 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9029 (allocate_rt_common_objfile): Ditto.
9030 * symfile.c (reread_symbols): Ditto.
9031 * gdb_obstack.h: Add comment.
9032
17763fd9
EZ
90332004-02-09 Elena Zannoni <ezannoni@redhat.com>
9034
9035 * linespec.c (decode_line_1, locate_first_half)
9036 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9037 commented out code.
9038
ec5cdd75
DJ
90392004-02-09 Daniel Jacobowitz <drow@mvista.com>
9040
9041 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9042 obstack_free.
9043
43b54b88
AC
90442004-02-09 Andrew Cagney <cagney@redhat.com>
9045
9046 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9047 fails, try find_pc_section. Fix PR c++/1267.
9048 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9049 instead of find_pc_mapped_section.
9050 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9051 not default to the section containing PC. Fix PR symtab/1519.
9052
edfae063
AC
90532004-02-09 Andrew Cagney <cagney@redhat.com>
9054
9055 * Makefile.in (mips-tdep.o): Update dependencies.
9056 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9057 "trad-frame.h".
9058 (mips_unwind_pc): Return the pseudo PC register.
9059 (mips_unwind_dummy_id): New function.
9060 (mips16_fetch_instruction): New function.
9061 (mips32_fetch_instruction): New function.
9062 (struct mips_frame_cache): Define.
9063 (mips_mdebug_frame_cache): New function.
9064 (mips_mdebug_frame_this_id): New function.
9065 (mips_mdebug_frame_prev_register): New function.
9066 (mips_mdebug_frame_unwind): Define.
9067 (mips_mdebug_frame_sniffer): New function.
9068 (mips_mdebug_frame_base_address): New function.
9069 (mips_mdebug_frame_base): Define.
9070 (mips_mdebug_frame_base_sniffer): New function.
9071 (mips_gdbarch_init): Append unwind and base sniffers. Set
9072 unwind_dummy_id.
9073
defc864c
AC
90742004-02-08 Andrew Cagney <cagney@redhat.com>
9075
6764ddad
AC
9076 * frame.c: Print both the register number and name.
9077
defc864c
AC
9078 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9079 and a sed into a single sed. Make .c and .o patterns more robust.
9080 (OBS): Delete.
9081 (INIT_FILES): Replace OBS with COMMON_OBS.
9082 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9083
645d6d10
MK
90842004-02-08 Mark Kettenis <kettenis@gnu.org>
9085
9086 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9087 the PT_WCOOKIE request.
9088
23e3c3fc
AC
90892004-02-08 Andrew Cagney <cagney@redhat.com>
9090
58dfe9ff
AC
9091 * mips-tdep.c (mips_unwind_pc): New function.
9092 (mips_gdbarch_init): Set mips_unwind_pc.
9093
1152e35e
AC
9094 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9095 (get_frame_id): Allow the UNKNOWN_FRAME.
9096 (frame_register_unwind, get_frame_type): Ditto.
9097
31b75dbf
AC
9098 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9099 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9100 unwind_dummy_id indicates a legacy frame.
9101
3483b318
AC
9102 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9103 * configure: Re-generate.
9104
23e3c3fc
AC
9105 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9106 methods.
9107
33f8ca73
AC
91082004-02-08 Andrew Cagney <cagney@redhat.com>
9109
9110 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9111 makefile macro.
9112 * configure: Re-generate.
9113 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9114 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9115 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9116 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9117 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9118 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9119 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9120 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9121 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9122 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9123
6ba8e26f 91242004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9125
20d286a5
AC
9126 * Makefile.in: Update all dependencies.
9127
d836ee13
AC
9128 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9129 * configure: Re-generate.
9130 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9131 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9132 (COMMON_OBS): Add "main.o" and "annotate.o".
9133 (ANNOTATE_OBS): Delete.
9134 (OBS): Remove ANNOTATE_OBS.
9135 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9136 CONFIG_INITS.
9137 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9138 against CONFIG_OBS and "main.o".
9139 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9140 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9141
d02c80cd
AC
9142 * tui/tui-command.c: Include "gdb_string.h", delete register
9143 attribute, use ISO-C function signatures.
9144 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9145 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9146 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9147 * tui/tui.c: Ditto.
6ba8e26f
AC
9148
9149 * tui/tui-command.c: Change variable and function names to lower
9150 case.
9151 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9152 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9153 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9154 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9155 * tui/tui-winsource.c, tui/tui.c: Ditto.
9156
4a146b47
EZ
91572004-02-07 Elena Zannoni <ezannoni@redhat.com>
9158
9159 * buildsym.c (free_pending_blocks, finish_block)
9160 (record_pending_block, make_blockvector, end_symtab): Replace
9161 symbol_obstack with objfile_obstack.
8a1dac83 9162 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9163 (coff_read_enum_type): Ditto.
8a1dac83 9164 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9165 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9166 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9167 (dwarf2_symbol_mark_computed): Ditto.
9168 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9169 * elfread.c (elf_symtab_read): Ditto.
9170 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9171 (hpread_read_enum_type, hpread_read_function_type)
9172 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9173 Ditto.
8a1dac83 9174 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9175 (java_link_class_type): Ditto.
8a1dac83 9176 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9177 (new_symbol): Ditto.
9178 * minsyms.c (install_minimal_symbols): Ditto.
9179 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9180 (terminate_minimal_symbol_table): Replace symbol_obstack with
9181 objfile_obstack.
9182 (free_objfile): Remove freeing of symbol_obstack.
9183 * objfiles.h: Remove symbol_obstack field.
9184 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9185 objfile_obstack.
9186 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9187 symbol_obstack.
9188 (solib_add_common_symbols): Replace symbol_obstack with
9189 objfile_obstack.
9190 * somsolib.c (som_solib_add): Ditto.
9191 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9192 (common_block_start, common_block_end): Ditto.
9193 * symfile.c (reread_symbols): Remove freeing and init of
9194 symbol_obstack.
9195 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9196 * symfile.h: Update comment.
9197 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9198 stats printing.
9199 * symtab.c (symbol_set_names): Replace symbol_obstack with
9200 objfile_obstack.
9201 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9202 Update comments.
9203 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9204 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9205 objfile_obstack.
9206
6d012f14
AC
92072004-02-07 Andrew Cagney <cagney@redhat.com>
9208
9209 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9210 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9211 fields and variables.
9212 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9213 (m_beInvisible): Delete macro.
9214 * tui/tui-data.h: Fix case case fields and variables.
9215 (m_genWinPtrIsNull): Delete macro.
9216 (tui_win_list): Rename winList.
9217 (TUI_SRC_WIN): Rename srcWin.
9218 (TUI_DISASM_WIN): Rename disassemWin.
9219 (TUI_DATA_WIN): Rename dataWin.
9220 (TUI_CMD_WIN): Rename cmdWin.
9221 (m_genWinPtrNotNull): Delete macro.
9222 (m_winPtrIsNull): Delete macro.
9223 (m_winPtrNotNull): Delete macro.
9224 (tui_win_is_source_type): Replace m_winIsSourceType
9225 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9226 (tui_win_has_locator): Replace m_hasLocator.
9227 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9228 m_setWinHighlightOff.
9229 * tui/tui-data.c: Update references.
9230 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9231 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9232 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9233 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9234 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9235 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9236 * tui/tui-winsource.c, tui/tui.c: Ditto.
9237
7d34766b
MK
92382004-02-07 Mark Kettenis <kettenis@gnu.org>
9239
1c800673
MK
9240 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9241 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9242 StackGhost.
9243
7d34766b
MK
9244 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9245 variable `i6' to `i7'.
9246 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9247
22940a24
AC
92482004-02-07 Andrew Cagney <cagney@redhat.com>
9249
9250 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9251 (TuiPoint, TuiPointPtr): Ditto.
9252 (TuiStatus, TuiStatusPtr): Ditto.
9253 (TuiWinType, TuiWinTypePtr): Ditto.
9254 (struct tui_point): Rename _TuiPoint.
9255 (tui_get_low_disassembly_address): Rename
9256 tuiGetLowDisassemblyAddress.
9257 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9258 (tuiFree): Delete declaration.
9259 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9260 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9261 * tui/tui.c (tuiFree): Delete function.
9262 * cli/cli-cmds.c (disassemble_command): Update references.
9263 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9264 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9265 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9266 * tui/tui-winsource.c: Ditto.
9267
8b92e4d5
EZ
92682004-02-07 Elena Zannoni <ezannoni@redhat.com>
9269
9270 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9271 coffstab_build_psymtabs, elfstab_build_psymtabs)
9272 (stabsect_build_psymtabs): Replace psymbol_obstack with
9273 objfile_obstack.
9274 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9275 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9276 Ditto.
9277 * dwarfread.c (scan_compilation_units): Ditto.
9278 * elfread.c (elfstab_offset_sections): Ditto.
9279 * hppa-tdep.c (read_unwind_info): Ditto.
9280 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9281 (hpread_end_psymtab): Ditto.
9282 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9283 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9284 Ditto.
9285 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9286 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9287 (build_objfile_section_table): Ditto.
9288 (allocate_objfile): Remove init of psymbol_obstack.
9289 (free_objfile): Remove freeing of psymbol_obstack.
9290 * objfiles.h (struct objfile): Remove field
9291 psymbol_obstack. Update comments.
9292 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9293 psymbol_obstack with objfile_obstack.
9294 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9295 psymbol_obstack.
9296 * somread.c (som_symfile_offsets, init_import_symbols)
9297 (init_export_symbols): Replace psymbol_obstack with
9298 objfile_obstack.
9299 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9300 * symfile.c (default_symfile_offsets, syms_from_objfile)
9301 (reread_symbols): Remove freeing and init of psymbol_obstack.
9302 (cashier_psymtab): Update comment.
9303 * symmisc.c (print_objfile_statistics): Don't report stats for
9304 psymbol obstack.
9305 * symtab.h (struct general_symbol_info, struct partial_symtab):
9306 Update comments.
9307 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9308 (xcoff_symfile_offsets): Replace psymbol_obstack with
9309 objfile_obstack.
9310
b99607ea
EZ
93112004-02-07 Elena Zannoni <ezannoni@redhat.com>
9312
9313 * objfiles.h (struct objfile): Add objfile_obstack field.
9314 Remove type_obstack field.
9315
9316 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9317 read_structure_scope read_enumeration, new_symbol): Replace
9318 type_obstack with objfile_obstack.
9319 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9320 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9321 (lookup_fundamental_type): Ditto.
9322 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9323 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9324 (hpread_read_doc_function_type, hpread_read_struct_type)
9325 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9326 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9327 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9328 (java_link_class_type): Ditto.
9329 * mdebugread.c (parse_type): Ditto.
9330 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9331 * solib-sunos.c (solib_add_common_symbols): Ditto.
9332 * stabsread.c (define_symbol, read_type, read_member_functions,
9333 read_cpp_abbrev, read_one_struct_field): Ditto.
9334 * symfile.c (reread_symbols): Ditto.
9335 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9336
2a8854a7
AC
93372004-02-07 Andrew Cagney <cagney@redhat.com>
9338
9339 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9340 (tui_exec_info_content): Rename TuiExecInfoContent.
9341 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9342 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9343 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9344 (TuiList, TuiListPtr): Ditto.
9345 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9346 (TuiDataType, TuiDataTypePtr): Ditto.
9347 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9348 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9349 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9350 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9351 (TuiDataElement, TuiDataElementPtr): Ditto.
9352 (TuiWinElement, TuiWinElementPtr): Ditto.
9353 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9354 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9355 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9356 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9357 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9358 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9359 * tui/tui-command.c, tui/tui-data.c: Update references.
9360 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9361 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9362 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9363 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9364
05cbe71a
MK
93652004-02-07 Mark Kettenis <kettenis@gnu.org>
9366
9367 * dwarf2-frame.h: Update copyright.
9368 (enum dwarf2_frame_reg_rule): New.
9369 (struct dwarf2_frame_state_reg): New.
9370 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9371 * dwarf2-frame.c: Update copyright.
9372 (enum dwarf2_reg_rule): Remove.
9373 (struct dwarf2_frame_state): Remove defenition of `struct
9374 dwarf2_frame_state_reg'.
9375 (read_reg): Call get_frame_arch to get the architecture instead of
9376 using CURRENT_GDBARCH.
9377 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9378 DWARF2_FRAME_.
9379 (dwarf2_frame_init_reg): New function.
9380 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9381 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9382 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9383 tags with DWARF2_FRAME_.
9384 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9385 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9386 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9387
ec7d9e56
AC
93882004-02-06 Andrew Cagney <cagney@redhat.com>
9389
dd1abb8c
AC
9390 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9391 (enum tui_data_type): Rename _TuiDataType.
9392 (struct tui_layout_def): Rename _TuiLayoutDef.
9393 (struct tui_source_element): Rename _TuiSourceElement.
9394 (struct tui_data_element): Rename _TuiDataElement.
9395 (struct tui_command_element): Rename _TuiCommandElement.
9396 (struct tui_locator_element): Rename _TuiLocatorElement.
9397 (union tui_which_element): Define.
9398 (struct tui_win_element): Rename _TuiWinElement.
9399 (struct tui_data_info): Rename _TuiDataInfo.
9400 (struct tui_source_info): Rename _TuiSourceInfo.
9401 (struct tui_command_info): Rename _TuiCommandInfo.
9402 (tui_initialize_static_data): Rename initializeStaticData.
9403 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9404 (tui_alloc_win_info): Rename allocWinInfo.
9405 (tui_init_generic_part): Rename initGenericPart.
9406 (tui_init_win_info): Rename initWinInfo.
9407 (tui_alloc_content): Rename allocContent.
9408 (tui_add_content_elements): Rename addContentElements.
9409 (tui_init_content_element): Rename initContentElement.
9410 (tui_free_window): Rename freeWindow.
9411 (tui_free_win_content): Rename freeWinContent.
9412 (tui_free_data_content): Rename freeDataContent.
9413 (tui_free_all_source_wins_content): Rename
9414 freeAllSourceWinsContent.
9415 (tui_del_window): Rename tuiDelWindow.
9416 (tui_del_data_windows): Rename tuiDelDataWindows.
9417 (tui_partial_win_by_name): Rename partialWinByName.
9418 (tui_win_name): Rename winName.
9419 (tui_current_layout): Rename currentLayout.
9420 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9421 (tui_term_height): Rename termHeight.
9422 (tui_set_term_height_to): Rename setTermHeightTo.
9423 (tui_term_width): Rename termWidth.
9424 (tui_set_term_width_to): Rename setTermWidthTo.
9425 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9426 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9427 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9428 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9429 (tui_source_windows): Rename sourceWindows.
9430 (tui_clear_source_windows): Rename clearSourceWindows.
9431 (tui_clear_source_windows_detail): Rename
9432 clearSourceWindowsDetail.
9433 (tui_clear_win_detail): Rename clearWinDetail.
9434 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9435 (tui_default_tab_len): Rename tuiDefaultTabLen.
9436 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9437 (tui_win_with_focus): Rename tuiWinWithFocus.
9438 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9439 (tui_layout_def): Rename tuiLayoutDef.
9440 (tui_win_resized): Rename tuiWinResized.
9441 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9442 (tui_next_win): Rename tuiNextWin.
9443 (tui_prev_win): Rename tuiPrevWin.
9444 (tui_add_to_source_windows): Rename addToSourceWindows.
9445 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9446 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9447 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9448 * tui/tui.c, tui/tui-data.c: Ditto.
9449 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9450 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9451
a358af15
AC
9452 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9453 (struct symtab): Declare.
9454 (tui_set_source_content): Rename tuiSetSourceContent.
9455 (tui_show_symtab_source): Rename tuiShowSource.
9456 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9457 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9458 * tui/tui-source.c: Update copyright. Update references.
9459 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9460 * tui/tui-stack.c: Update references.
9461
a21fcd8f
AC
9462 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9463 (struct tui_win_info): Declare.
9464 (tui_scroll_forward): Rename tuiScrollForward.
9465 (tui_scroll_backward): Rename tuiScrollBackward.
9466 (tui_scroll_left): Rename tuiScrollLeft.
9467 (tui_scroll_right): Rename tuiScrollRight.
9468 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9469 (tui_resize_all): Rename tuiResizeAll.
9470 (tui_refresh_all_win): Rename tuiRefreshAll.
9471 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9472 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9473 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9474 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9475
edae1ccf
AC
9476 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9477 (tui_erase_data_content): Rename tuiEraseDataContent.
9478 (tui_display_all_data): Rename tuiDisplayAllData.
9479 (tui_check_data_values): Rename tuiCheckDataValues.
9480 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9481 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9482 (tui_first_data_element_no_in_line): Rename
9483 tuiFirstDataElementNoInLine.
9484 (tui_delete_data_content_windows): Rename
9485 tuiDeleteDataContentWindows.
9486 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9487 (tui_display_data_from): Rename tuiDisplayDataFrom.
9488 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9489 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9490 * tui/tui-win.c, tui/tui-regs.c: Update references.
9491 * tui/tui-layout.c, tui/tui.c: Update references.
9492
ec7d9e56
AC
9493 * tui/tui-wingeneral.h: Update copyright.
9494 (m_allBeVisible): Delete macro.
8a1dac83 9495 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9496 (struct tui_gen_win_info): Declare.
9497 (struct tui_win_info): Declare.
9498 (tui_unhighlight_win): Rename unhighlightWin.
9499 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9500 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9501 (tui_make_window): Rename makeWindow.
9502 (tui_copy_win): Rename copyWin.
9503 (tui_box_win): Rename boxWin.
9504 (tui_highlight_win): Rename highlightWin.
9505 (tui_check_and_display_highlight_if_needed): Rename
9506 checkAndDisplayHighlightIfNeeded.
9507 (tui_refresh_all): Rename refreshAll.
9508 (tui_delete_win): Rename tuiDelwin.
9509 (tui_refresh_win): Rename tuiRefreshWin.
9510 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9511 (tui_make_visible, tui_make_invisible): New functions.
9512 (tui_make_all_visible, tui_make_all_invisible): New functions.
9513 (make_all_visible): Rename makeAllVisible.
9514 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9515 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9516 * tui/tui-windata.c, tui/tui-win.c: Update references.
9517 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9518 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9519
1e52e2eb
MK
95202004-02-06 Mark Kettenis <kettenis@gnu.org>
9521
9522 * proc-api.c (write_with_trace): Initialize local variable to
9523 silence compiler warning.
9524
f80bda8e
AC
95252004-02-06 Andrew Cagney <cagney@redhat.com>
9526
9527 * tui/tui-source.h: Do not include "defs.h".
9528 (struct tui_win_info): Declare.
9529 (tui_set_source_content_nil): Declare.
9530 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9531 (union tui_line_or_address): Rename _TuiLineOrAddress.
9532 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9533 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9534 (tui_update_source_window_as_is): Rename
9535 tuiUpdateSourceWindowAsIs.
9536 (tui_update_source_windows_with_addr): Rename
9537 tuiUpdateSourceWindowsWithAddr.
9538 (tui_update_source_windows_with_line): Rename
9539 tuiUpdateSourceWindowsWithLine.
9540 (tui_clear_source_content): Rename tuiClearSourceContent.
9541 (tui_erase_source_content): Rename tuiEraseSourceContent.
9542 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9543 (tui_show_source_content): Rename tuiShowSourceContent.
9544 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9545 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9546 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9547 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9548 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9549 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9550 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9551 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9552 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9553 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9554 (struct tui_win_info): Declare.
9555 * tui/tui-stack.c: Update references.
9556 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9557 * tui/tui-win.c, tui/tui-source.c: Ditto.
9558 * tui/tui.c, tui/tui-disasm.c: Ditto.
9559
9fbfb822
MK
95602004-02-06 Mark Kettenis <kettenis@gnu.org>
9561
9562 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9563 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9564
03cebad2
MK
95652004-02-05 Mark Kettenis <kettenis@gnu.org>
9566
9567 * infrun.c (handle_inferior_event): Allow for breakpoint
9568 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9569 and SIGEMT. Update comments.
9570 * NEWS (Revised SPARC target): Mention support for non-executable
9571 stack.
9572
290281b1
MK
95732004-02-04 Mark Kettenis <kettenis@gnu.org>
9574
9575 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9576 * inftarg.c: Update copyright year.
9577 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9578 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9579 (sparc_xfer_wcookie): New function.
9580 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9581 * Makefile.in (sparc-nat.o): Update dependencies.
9582 * config/sparc/nm-nbsd.h: Include "target.h".
9583 (NATIVE_XFER_WCOOKIE): New define.
9584 (sparc_xfer_wcookie): New prototype.
9585
212161df
AC
95862004-02-04 Andrew Cagney <cagney@redhat.com>
9587
9588 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9589 SYSCALL_TRAP function.
9590 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9591
6e4c6c91
DJ
95922004-02-04 Andrew Cagney <cagney@redhat.com>
9593 Daniel Jacobowitz <drow@mvista.com>
9594
9595 * objfiles.h: Delete comments refering to inside_entry_func and
9596 DEPRECATED_FRAME_CHAIN_VALID.
9597 * defs.h (inside_entry_func): Update prototype..
9598 * blockframe.c (inside_entry_func): Rename to
9599 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9600 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9601
cae688ec
JJ
96022004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9603
9604 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9605 outside of #ifdef SOLIB_ADD region.
9606 (do_restore_lang_radix_cleanup): Ditto.
9607 (resolve_pending_breakpoint): Ditto.
9608
19217676
AC
96092004-02-03 Andrew Cagney <cagney@redhat.com>
9610
9611 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9612 (process_note_abi_tag_sections): Delete unused function.
9613 (ia64_read_fp): Delete unused function.
9614 (gdbarch_extract_struct_value_address): Delete declaration.
9615
876753be
AC
96162004-02-02 Andrew Cagney <cagney@redhat.com>
9617
9618 * vax-tdep.c (vax_frame_chain): Delete call to
9619 deprecated_inside_entry_file.
9620 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9621
d4f10bf2
MK
96222004-02-02 Mark Kettenis <kettenis@gnu.org>
9623
9624 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9625 column that's "empty" or "same value" when eliminating REG_RA
9626 rules.
9627
cae688ec
JJ
96282004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9629
9630 * NEWS: Add information about new pending breakpoint support.
9631
0101ce28
JJ
96322004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9633
9634 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9635 and pending fields for pending breakpoint support.
9636 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9637 (condition_command): Only parse condition if not a pending
9638 breakpoint.
9639 (print_one_breakpoint): Add support for pending breakpoints.
9640 (describe_other_breakpoints): Add checks to verify we are not
9641 dealing with pending breakpoints.
9642 (check_duplicates): Don't check pending breakpoints.
9643 (set_raw_breakpoint): Initialize pending flag.
9644 (do_restore_lang_radix_cleanup): New cleanup routine.
9645 (resolve_pending_breakpoint): New function.
9646 (re_enable_breakpoints_in_shlibs): Try and resolve any
9647 pending breakpoints via resolve_pending_breakpoint.
9648 (mention): Add pending breakpoint support.
9649 (parse_breakpoint_sals): Add new parameter to pass to
9650 decode_line_1 to indicate silent errors when files or functions
9651 are not found. Change all callers.
9652 (do_captured_parse_breakpoint): New function.
9653 (break_command_1): Change prototype to return an rc value and to
9654 take an optional pending breakpoint pointer. Support creating
9655 a pending breakpoint if a "not found" form of error occurs when
9656 parsing the breakpoint. Also support resolving an existing pending
9657 breakpoint and be silent if the resolution fails.
9658 (create_breakpoints): Change prototype to take pending breakpoint
9659 pointer. When resolving a pending breakpoint, use the new pointer
9660 to provide a conditional or commands added by the end-user.
9661 (delete_breakpoint): Add appropriate check for pending.
9662 (breakpoint_re_set_one): Ditto.
9663 (do_enable_breakpoint): Ditto.
9664
8d577d32
DC
96652004-02-02 David Carlton <carlton@kealia.com>
9666
9667 * valops.c (enum oload_classification): New.
9668 (find_overload_match): Break implementation into separate
9669 functions; delete #if 0'd code; look for symbols within
9670 namespaces.
9671 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9672 (find_oload_champ,oload_method_static,classify_oload_match): New.
9673 * cp-support.h: Add declaration for cp_func_name; update
9674 declaration for make_symbol_overload_list.
9675 * cp-support.c (cp_func_name): New.
9676 (overload_list_add_symbol): Fix comment, use
9677 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9678 (make_symbol_overload_list): Take a function name and a namespace
9679 instead of a symbol; change implementation.
9680 (make_symbol_overload_list_using): New.
9681 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9682
22e8e3c7
FF
96832004-02-02 Fred Fish <fnf@redhat.com>
9684
9685 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9686 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9687 * remote-sim.c (gdb_os_write_stderr): Write output to
9688 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9689 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9690 gdb_stderr stream and update copyright years.
22e8e3c7 9691
6b753f60
DJ
96922004-02-01 Daniel Jacobowitz <drow@mvista.com>
9693
9694 * Makefile.in (mips-linux-nat.o): Update dependencies.
9695 * mips-linux-nat.c: Include mips-tdep.h.
9696
96972004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9698
9699 * sol-thread.c (sol_thread_xfer_partial): New function.
9700 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9701 (init_sol_core_ops): Likewise.
9702
9703 * procfs.c (procfs_xfer_partial): New function.
9704 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9705 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9706
9707 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9708 procfs_xfer_auxv function.
9709
9710 * procfs.c (procfs_make_note_section): If we can read
9711 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9712 * linux-proc.c (linux_make_note_section): Likewise.
9713
9714 * auxv.h: New file.
9715 * auxv.c: New file.
9716 * Makefile.in (auxv_h): New variable.
9717 (COMMON_OBS): Add auxv.o here.
9718 (auxv.o): New target.
9719
9720 * corelow.c (core_xfer_partial): New function.
9721 (init_core_ops): Use it for core_ops.to_xfer_partial.
9722
9723 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9724 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9725 macro if that is defined.
9726
fa5281d0
DJ
97272004-02-01 Daniel Jacobowitz <drow@mvista.com>
9728
9729 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9730 and check the specified thread for each breakpoint.
9731 * breakpoint.h (bpstat_stop_status): Update prototype.
9732 * infrun.c (handle_inferior_event): Update calls to
9733 bpstat_stop_status.
9734
26ee262d
DJ
97352004-02-01 Daniel Jacobowitz <drow@mvista.com>
9736
9737 * Makefile.in (cli-cmds.o): Add $(readline_h).
9738
d9b52655
DJ
97392004-02-01 Daniel Jacobowitz <drow@mvista.com>
9740
9741 * cli/cli-cmds.c: Include readline.h.
9742 (complete_command): Pass the start of the last word to
9743 complete_line.
9744
9709f61c
DJ
97452004-01-31 Daniel Jacobowitz <drow@mvista.com>
9746
9747 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9748 argument, and change first argument to a CORE_ADDR.
9749 * breakpoint.h (bpstat_stop_status): Update prototype.
9750 * infrun.c (adjust_pc_after_break): Add a new comment.
9751 (handle_inferior_event): Update calls to bpstat_stop_status.
9752
4f1280bb
DJ
97532004-01-31 Daniel Jacobowitz <drow@mvista.com>
9754
9755 * breakpoint.h: Update copyright years.
9756
4fa8626c
DJ
97572004-01-31 Daniel Jacobowitz <drow@mvista.com>
9758
9759 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9760 (bpstat_stop_status): Don't decrement PC.
9761 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9762 prototype.
9763 * infrun.c (adjust_pc_after_break): New function.
9764 (handle_inferior_event): Call it, early. Remove later references
9765 to DECR_PC_AFTER_BREAK.
9766 (normal_stop): Add commentary.
9767
fad0733a
DJ
97682004-01-31 Daniel Jacobowitz <drow@mvista.com>
9769
9770 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9771 2004-01-27 double-free fix.
9772
42cdca6c
MK
97732004-01-31 Mark Kettenis <kettenis@gnu.org>
9774
9775 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9776 (sparc32_frame_prev_register): Handle StackGhost.
9777 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9778
932d5416
RM
97792004-01-29 Roland McGrath <roland@redhat.com>
9780
9781 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9782 * configure: Regenerated.
9783
9784 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9785 * Makefile.in (procfs.o): Add dep.
9786
47d3492a
AC
97872004-01-28 Andrew Cagney <cagney@redhat.com>
9788
9789 * tui/tui-stack.h: Update copyright.
9790 (struct frame_info): Add opaque declaration.
9791 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9792 (tui_show_locator_content): Rename tuiShowLocatorContent.
9793 (tui_show_frame_info): Rename tuiShowFrameInfo.
9794 * tui/tui-stack.c: Update copyright. Update references.
9795 * tui/tui-winsource.c: Update references.
9796 * tui/tui-win.c: Update references.
9797 * tui/tui-layout.c: Update references.
9798 * tui/tui-hooks.c: Update copyright, update references.
9799 * tui/tui.c: Update copyright, update references.
9800 * tui/tui-disasm.c: Update references.
9801
5d51ca54
DC
98022004-01-28 David Carlton <carlton@kealia.com>
9803
9804 * dwarf2read.c (add_partial_structure): Use demangled name if
9805 namespace equals "".
9806
086ed43d
JB
98072004-01-27 Jim Blandy <jimb@redhat.com>
9808
9809 Clean up misapplied patch:
9810 * dwarf2read.c (determine_prefix): Change one of the two forward
9811 declarations for 'determine_prefix_aux' to a declaration for this.
9812 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9813 argument to 'die_specification'.
9814
2a35147e
JB
9815 * dwarf2read.c (read_func_scope): Re-indent comment.
9816
a355c7de 98172004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 9818
a355c7de
AC
9819 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9820 b->exp to NULL after freeing so that error during re-parsing or
9821 evaluation of expressions associated with breakpoint don't
9822 eventually lead to re-freeing of storage.
9823 Committed by Andrew Cagney.
9824
63ff5125
AC
98252004-01-27 Andrew Cagney <cagney@redhat.com>
9826
9827 * source.c (ambiguous_line_spec): Delete undefined declaration.
9828 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9829 (m32r_set_server_address, m32r_set_download_path): Ditto.
9830 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9831
e142c38c
DJ
98322004-01-27 Daniel Jacobowitz <drow@mvista.com>
9833
9834 * dwarf2read.c: Update calls to changed and renamed functions, and
9835 references to moved variables.
9836
9837 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9838 language, language_defn, list_in_scope, and ftypes members.
9839 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9840 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9841 (baseaddr): Remove globals.
9842
9843 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9844 (set_cu_language, die_is_declaration, die_specification)
9845 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9846 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9847 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9848 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9849
9850 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9851 cu.list_in_scope. Don't initialize cu_header_offset.
9852 (add_partial_symbol): Add local baseaddr.
9853 (psymtab_to_symtab_1): Add local baseaddr. Use
9854 objfile->section_offsets for consistency. Don't initialize
9855 cu_header_offset; do initialize cu.header.offset and
9856 cu.list_in_scope.
9857 (read_file_scope, read_func_scope, read_lexical_block_scope)
9858 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9859
c6e06ede
MC
98602004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9861
fb328ecc 9862 * PROBLEMS: Add gdb/1516.
c6e06ede 9863
48184fd4
AC
98642003-12-29 Robert Millan <robertmh@gnu.org>
9865
9866 Patch committed by Andrw Cagney.
9867 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9868 * configure.tgt: Match knetbsd*-gnu.
9869
c1321b30
AC
98702004-01-26 Andrew Cagney <cagney@redhat.com>
9871
f3699be3
AC
9872 * breakpoint.c (catch_command_1): Delete #ifdef code.
9873 (catch_fork_command_1): Delete #ifdef wrapper.
9874 (catch_exec_command_1): Ditto.
9875 (catch_load_command_1): Ditto.
9876 (catch_unload_command_1): Ditto.
9877
c1321b30
AC
9878 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9879 (catch_breakpoint): Delete #if0ed function.
9880 (disable_catch_breakpoint): Ditto.
9881 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9882 (disable_catch, enable_catch, delete_catch): Ditto.
9883
b4501125
AC
98842004-01-26 Andrew Cagney <cagney@redhat.com>
9885
9886 * remote.c (echo_check, quit_flag): Delete variables.
9887 (cisco_kernel_mode): Delete variable.
9888 (minitelnet_return, tty_input, escape_count): Delete variables.
9889 (remote_cisco_mode): Delete variable.
9890 (remote_cisco_open, remote_cisco_close): Delete function.
9891 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9892 (init_remote_cisco_ops): Delete function.
9893 (_initialize_remote): Do not install "remote cisco" code.
9894 (read_frame): Delete cisco specific code.
9895 (remote_info_process): Delete function.
9896 (remote_wait): Delete cisco specific code.
9897 (remote_cisco_section_offsets): Delete function.
9898 (remote_cisco_objfile_relocate): Delete function.
9899 (remote_async_wait): Delete cisco specific code.
9900 (minitelnet, readtty, readsocket): Delete function.
9901
74055713
AC
99022004-01-26 Andrew Cagney <cagney@redhat.com>
9903
9904 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9905 comments mentioning extract_returned_value_address.
9906 * infcmd.c (print_return_value): Update. Add comments on
9907 extract_returned_value_address.
9908 * stack.c (return_command): Add comments on
9909 extract_returned_value_address.
9910 * values.c: Update comment.
9911 * m32r-tdep.c: Update comment.
9912 * sparc-tdep.c: Update comment.
9913 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9915 * sh64-tdep.c (sh64_gdbarch_init): Update.
9916 * sh-tdep.c (sh_gdbarch_init): Update.
9917 * s390-tdep.c (s390_gdbarch_init): Update.
9918 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9919 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9920 * m68k-tdep.c (m68k_gdbarch_init): Update.
9921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9922 * m32r-tdep.c (m32r_gdbarch_init): Update.
9923 * ia64-tdep.c (ia64_gdbarch_init): Update.
9924 * h8300-tdep.c (h8300_gdbarch_init): Update.
9925 * frv-tdep.c (frv_gdbarch_init): Update.
9926 * arm-tdep.c (arm_gdbarch_init): Update.
9927 * alpha-tdep.c (alpha_gdbarch_init): Update.
9928
a67af2b9
AC
99292004-01-26 Andrew Cagney <cagney@redhat.com>
9930
9931 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9932 SYMBOL_LOCATION_FUNCS
9933 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9934 "struct symbol_ops".
9935 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9936 type to "struct symbol_ops".
9937 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9938 (struct symbol): Replace ".aux_value.loc.funcs" and
9939 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9940 (SYMBOL_OBJFILE): Delete macro.
9941 (SYMBOL_LOCATION_FUNCS): Delete macro.
9942 (SYMBOL_LOCATION_BATON): Update.
9943 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9944 intead of SYMBOL_LOCATION_FUNCS.
9945 * ax-gdb.c (gen_var_ref): Ditto.
9946 * printcmd.c (address_info): Ditto.
9947 * findvar.c (read_var_value): Ditto.
9948 (symbol_read_needs_frame): Ditto.
9949
c034e007
AC
99502004-01-26 Andrew Cagney <cagney@redhat.com>
9951
9952 * dwarf2read.c (read_func_scope): Document frame-base hack.
9953
bb472c1e
MK
99542004-01-25 Mark Kettenis <kettenis@gnu.org>
9955
9956 * infcmd.c (print_return_value): Plug memory leak; delete
9957 ui_stream object. Rename argument `structure_return' to
9958 `struct_return'.
9959
c8e737d5
MK
99602004-01-25 Mark Kettenis <kettenis@gnu.org>
9961
f941662f
MK
9962 * infcmd.c (print_return_value): Wrap long lines.
9963 (finish_command_continuation, finish_command): Remove unused
9964 variable `funcaddr'. Fix some coding-standards problems.
9965
c558d81a 9966 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 9967 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
9968 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9969 TDEP->fpregset to zero.
9970
bf1e5861 9971 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
9972 floating-point registers for traditional NetBSD core files.
9973 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9974 TDEP->sizeof_fpregset here.
9975
4c72d57a
MK
99762004-01-25 Mark Kettenis <kettenis@gnu.org>
9977
566626fa
MK
9978 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9979 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9980 function with code split out from
9981 sparc32nbsd_sigcontext_frame_cache.
9982 (sparc32nbsd_sigcontext_frame_cache): Use
9983 sparc32nbsd_sigcontext_saved_regs.
9984 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9985 OpenBSD.
9986 * sparcobsd-tdep.c: New file.
9987 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9988 (sparcobsd-tdep.o): New dependency.
9989 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9990 * config/sparc/obsd.mt: New file.
9991
4c72d57a
MK
9992 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9993 TDEP->fpregset to be initialized to enable core file register
9994 sets.
9995
7e5e9f88
MK
99962004-01-24 Mark Kettenis <kettenis@gnu.org>
9997
f0f207fd 9998 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
9999 Add opaque declarations.
10000 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10001 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10002 function with code split out from
10003 sparc64nbsd_sigcontext_frame_cache.
10004 (sparc64nbsd_sigcontext_frame_cache): Use
10005 sparc64nbsd_sigcontext_saved_regs.
10006 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10007 OpenBSD.
10008 * sparc64obsd-tdep.c: New file.
10009 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10010 (sparc64obsd-tdep.o): New dependency.
10011 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10012 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10013 * config/sparc/obsd64.mt: New file.
10014
690668cc
MK
10015 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10016 read the instruction at PC.
10017
7e5e9f88
MK
10018 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10019 value of GDB_OSABI_DEFAULT.
10020 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10021 instead of GDB_OSABI_NETBSD_AOUT.
10022
68b6dce9
NR
100232004-01-24 Nick Roberts <nick@nick.uklinux.net>
10024
10025 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10026 copyright.
10027
080ce8c0
AC
100282004-01-23 Andrew Cagney <cagney@redhat.com>
10029
10030 * printcmd.c (display_command): Replace tui_set_display call with
10031 tui_set_layout_for_display_command.
10032 * tui/tui.h (enum tui_win_type): Define.
10033 (tui_set_layout): Delete declaration.
10034 (tui_set_layout_for_display_command): Rename set_tui_layout.
10035 * tui/tui-data.h (enum tui_layout_type): Define.
10036 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10037 "tui.h".
10038 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10039 (tui_default_win_height): Rename tuiDefaultWinHeight.
10040 (tui_default_win_viewport_height): Rename
10041 tuiDefaultWinViewportHeight.
10042 (tui_set_layout): RenametuiSetLayout.
10043 * tui/tui-layout.c: Update references.
10044 * tui/tui.c: Update references.
10045 * tui/tui-disasm.c: Update references.
10046
b368761e
DC
100472004-01-23 David Carlton <carlton@kealia.com>
10048
10049 Partial workaround for PR c++/1511:
10050 * cp-namespace.c: Include frame.h.
10051 (cp_lookup_transparent_type): New
10052 (cp_lookup_transparent_type_loop): New.
10053 * cp-support.h: Declare cp_lookup_transparent_type.
10054 * symtab.c (basic_lookup_transparent_type): Renamed from
10055 lookup_transparent_type.
10056 (lookup_transparent_type): Replace old body by a call to
10057 current_language->la_lookup_transparent_type.
10058 * symtab.h: Update copyright. Declare
10059 basic_lookup_transparent_type.
10060 * language.h: Update copyright.
10061 (struct language_defn): Add la_lookup_transparent_type.
10062 * language.c: Update copyright.
10063 (unknown_language_defn): Add basic_lookup_transparent_type.
10064 (auto_language_defn): Add basic_lookup_transparent_type.
10065 (local_language_defn): Add basic_lookup_transparent_type.
10066 * ada-lang.c: Update copyright.
10067 (ada_language_defn): Add basic_lookup_transparent_type.
10068 * c-lang.c: Update copyright.
10069 (c_language_defn): Add basic_lookup_transparent_type.
10070 (cplus_language_defn): Add basic_lookup_transparent_type.
10071 (asm_language_defn): Add basic_lookup_transparent_type.
10072 (minimal_language_defn): Add basic_lookup_transparent_type.
10073 * f-lang.c: Update copyright.
10074 (f_language_defn): Add basic_lookup_transparent_type.
10075 * jv-lang.c: Update copyright.
10076 (java_language_defn): Add basic_lookup_transparent_type.
10077 * m2-lang.c: Update copyright.
10078 (m2_language_defn): Add basic_lookup_transparent_type.
10079 * objc-lang.c: Update copyright.
10080 (objc_language_defn): Add basic_lookup_transparent_type.
10081 * p-lang.c: Update copyright.
10082 (p_language_defn): Add basic_lookup_transparent_type.
10083 * scm-lang.c: Update copyright.
10084 (scm_language_defn): Add basic_lookup_transparent_type.
10085 * Makefile.in (cp-namespace.o): Depend on frame.h.
10086
fdde2d81
DC
100872004-01-23 David Carlton <carlton@kealia.com>
10088
10089 Patch for PR c++/1520:
10090 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10091 properly if we have a specification die.
10092 (determine_prefix_aux): Rename from determine_prefix.
10093 (determine_prefix): Like the old determine_prefix, but never
10094 returns NULL.
10095
5b828b6b
TR
100962004-01-23 Theodore A. Roth <troth@openavr.org>
10097
10098 * avr-tdep.c: Update copyright.
10099 (avr_iaddr_p): Delete unused function.
10100 (avr_saddr_p): Delete unused function.
10101
a1b8c067
DC
101022004-01-23 David Carlton <carlton@kealia.com>
10103
10104 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10105 Fix for PR symtab/1534.
10106
f2cab569
MK
101072004-01-23 Mark Kettenis <kettenis@gnu.org>
10108
10109 * NEWS (New native configurations): Mention OpenBSD/sparc and
10110 OpenBSD/sparc64.
10111 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10112 * configure.host: Likewise.
10113 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10114 handler for OpenBSD.
10115 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10116
642d8300
MK
101172004-01-22 Mark Kettenis <kettenis@gnu.org>
10118
89aac506
MK
10119 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10120 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10121
36662fde
MK
10122 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10123 * cli/cli-cmds.c (shell_escape): Likewise.
10124
642d8300
MK
10125 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10126 OpenBSD .note.openbsd.ident sections.
10127
fae299cd
DC
101282004-01-22 David Carlton <carlton@kealia.com>
10129
10130 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10131 get_scope_pc_bounds.
10132 (read_file_scope): Ditto.
10133 (get_scope_pc_bounds): New function, produced by extracting code
10134 from the above two functions, consolidating it, and adding support
10135 for DW_TAG_namespace.
10136
a49d618c
MK
101372004-01-22 Mark Kettenis <kettenis@gnu.org>
10138
10139 * osabi.c (MAX_NOTESZ): New define.
10140 (check_note): New function.
10141 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10142 check_note.
10143
fe61caab
RM
101442004-01-21 Roland McGrath <roland@redhat.com>
10145
10146 * MAINTAINERS (write after approval): Add myself.
10147
ec145965
EZ
101482004-01-21 Eli Zaretskii <eliz@gnu.org>
10149
10150 * utils.c (init_page_info): Move declarations of `rows' and
10151 `cols' before the __GO32__-specific code. Move the closing brace
10152 outside the #ifdef __GO32__..#endif block.
10153 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10154
877522db
PB
101552004-01-21 Paul Brook <paul@codesourcery.com>
10156
10157 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10158 BPSTAT_WHAT_CHECK_SHLIBS.
10159
dbf5be1c
PB
101602004-01-21 Paul Brook <paul@codesourcery.com>
10161
10162 * MAINTAINERS: Add myself to write-after-approval.
10163
81f08b92
AC
101642004-01-20 Andrew Cagney <cagney@redhat.com>
10165
5a1efed7
AC
10166 * ax-gdb.c (print_axs_value): Delete unused function.
10167 * jv-lang.c (java_lookup_type): Delete unused function.
10168 * cli/cli-dump.c (dump_filetype): Delete unused function.
10169 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10170 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10171 (mips_getstring): Delete unused function.
10172 (pmon_insert_breakpoint): Delete #if0ed function.
10173 (PMON_MAX_BP): Delete #if0ed MACRO.
10174 (mips_pmon_bp_info): Delete #if0ed variable.
10175 (pmon_remove_breakpoint): Delete #if0ed function.
10176 * monitor.c (monitor_write_even_block): Delete unused function.
10177 (monitor_write_memory_block): Delete #if0ed code.
10178 * dink32-rom.c (dink32_load): Delete unused function.
10179 (_initialize_dink32_rom): Delete #if0ed code.
10180 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10181
b0a30fce
AC
10182 * tui/tui-command.c: Update references.
10183 * tui/tui-io.c: Update references.
10184 * tui/tui-command.h: Update copyright.
10185 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10186
81f08b92
AC
10187 * source.c (ambiguous_line_spec): Delete never-defined function.
10188 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10189 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10190 * cli/cli-cmds.c (validate_comname): Ditto.
10191
65f05602
AC
10192 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10193 "tui-data.h".
10194 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10195 (tui_show_disassem): Rename tuiShowDisassem.
10196 (tui_show_disassem_and_update_source): Rename
10197 tuiVerticalDisassemScroll.
10198 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10199 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10200 * tui/tui.h: Update copyright.
10201 (enum tui_status): Define.
10202 * tui/tui-data.h (enum tui_scroll_direction): Define.
10203 * tui/tui-disasm.c: Update copyright. Update references.
10204 * tui/tui-winsource.c: Update copyright. Update references.
10205 * tui/tui-win.c: Update references.
10206 * tui/tui-layout.c: Update references.
10207
6bb0384f
AC
102082004-01-20 Andrew Cagney <cagney@redhat.com>
10209
10210 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10211 sym2 to start of block.
10212
9175c9a3
MC
102132004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10214
10215 * MAINTAINERS: Delete mmalloc.
10216 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10217 * NEWS: Mention removal of --with-malloc.
10218 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10219 * config.in: Regenerate.
10220 * configure: Regenerate.
6bb0384f
AC
10221 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10222 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10223 * gdbinit.in: Remove mmalloc.
10224 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10225 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10226 * config/i386/go32.mh: Likewise.
10227 * config/i386/interix.mh: Likewise.
10228 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10229
4fcef00a
JJ
102302004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10231
10232 * linespec.c (decode_variable, symtab_from_filename): Call
10233 error_silent with error message instead of throwing an exception
10234 directly.
10235 * defs.h (error_silent, error_output_message): Add prototypes.
10236 (catch_exceptions_with_msg): Ditto.
10237 * utils.c (error_silent, error_output_message): New functions.
10238 * top.c (catch_exceptions_with_msg): New function.
10239
8e94b928
NR
102402004-01-20 Nick Roberts <nick@nick.uklinux.net>
10241
10242 * mi/mi-cmds.h (enum print_values): Add definition.
10243
10244 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10245 type and value for simple data types and just the name and type
10246 for complex ones, if required.
10247
10248 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10249 children, if required.
10250
a02d6af8
KB
102512004-01-19 Kevin Buettner <kevinb@redhat.com>
10252
10253 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10254 unused declarations.
10255
78a4a9b9
AC
102562004-01-19 Andrew Cagney <cagney@redhat.com>
10257
10258 * top.h (mapped_symbol_files): Delete declaration.
10259 * main.c (captured_main): Delete option "m" and "mapped".
10260 * objfiles.c (mapped_symbol_files): Delete variable.
10261 * symfile.c (symbol_file_command): Delete mmap code.
10262 (symbol_file_add_with_addrs_or_offsets): Ditto.
10263 (add_symbol_file_command, reread_separate_symbols): Ditto.
10264 * objfiles.h (OBJF_MAPPED): Delete.
10265 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10266 (free_objfile) [USE_MMALLOC]: Ditto.
10267 (open_existing_mapped_file): Delete function.
10268 (open_mapped_file): Delete function.
10269 (map_to_file): Delete function.
10270
2dbd5e30
KB
102712004-01-19 Kevin Buettner <kevinb@redhat.com>
10272
10273 * infrun.c (step_into_function): Account for possible breakpoint
10274 adjustment when computing ``stop_func_start''.
10275
437b434f
KB
102762004-01-19 Kevin Buettner <kevinb@redhat.com>
10277
10278 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10279 the region size against the size of a pointer, not the size of
10280 a register as given by DEPRECATED_REGISTER_SIZE.
10281
55fb0713
AC
102822004-01-19 Andrew Cagney <cagney@redhat.com>
10283
10284 * tui/tui-regs.h: Include "tui-data.h".
10285 (tuiFirstRegElementNoInLine): Delete declaration.
10286 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10287 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10288 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10289 (tui_calculate_regs_column_count): Rename
10290 tuiCalculateRegsColumnCount.
10291 (tui_check_register_values): Rename tuiCheckRegisterValues.
10292 (tui_show_registers): Rename tuiShowRegisters.
10293 (tui_display_registers_from_line): Rename
10294 tuiDisplayRegistersFromLine.
10295 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10296 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10297 (tui_first_reg_element_no_inline): Rename
10298 tuiFirstRegElementNoInLine.
10299 * tui/tui-data.h: Update copyright.
10300 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10301 * tui/tui-windata.c: Update copyright, update references.
10302 * tui/tui-regs.c: Update copyright, update references.
10303 * tui/tui-win.c: Update copyright, update references.
10304 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10305
cebe9500
AC
103062004-01-18 Andrew Cagney <cagney@redhat.com>
10307
bcdf1568
AC
10308 * tui/tui-io.c: Update copyright.
10309 (key_is_end_sequence, key_is_backspace): New functions.
10310 (key_is_command_char, key_is_start_sequence): New function.
10311 (tui_getc): Update references.
10312 * tui/tui-io.h: Update copyright.
10313 (m_tuiStartNewLine): Delete macro.
10314 (m_isBackspace, m_isDeleteChar): Delete macros.
10315 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10316 (m_isNextPage, m_isPrevPage): Delete macros.
10317 (m_isLeftArrow, m_isRightArrow): Delete macros.
10318 (m_isXdbStyleCommandChar): Delete macro.
10319 (key_is_start_sequence): Declare, replace m_isStartSequence.
10320 (key_is_end_sequence): Declare, replace m_isEndSequence.
10321 (key_is_backspace): Declare ,replace m_isBackspace.
10322 (key_is_command_char): Declare, replace m_isCommandChar.
10323 * tui/tui-command.c: Update copyright.
10324 (tuiDispatchCtrlChar): Update references.
10325
130d87e6
AC
10326 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10327 tuiSourceWin.h.
10328
d7b2e967
AC
10329 * tui/tui-command.c: Rename tui/tuiCommand.c.
10330 * tui/tui-command.h: Rename tui/tuiCommand.h.
10331 * tui/tui-data.c: Rename tui/tuiData.c.
10332 * tui/tui-data.h: Rename tui/tuiData.h.
10333 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10334 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10335 * tui/tui-io.c: Rename tui/tuiIO.c.
10336 * tui/tui-io.h: Rename tui/tuiIO.h.
10337 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10338 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10339 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10340 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10341 * tui/tui-source.c: Rename tui/tuiSource.c.
10342 * tui/tui-source.h: Rename tui/tuiSource.h.
10343 * tui/tui-stack.c: Rename tui/tuiStack.c.
10344 * tui/tui-stack.h: Rename tui/tuiStack.h.
10345 * tui/tui-win.c: Rename tui/tuiWin.c.
10346 * tui/tui-win.h: Rename tui/tuiWin.h.
10347 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10348 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10349 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10350 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10351 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10352 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10353 * tui/tui-file.c: Update includes.
10354 * tui/tui-hooks.c: Update includes.
10355 * tui/tui-interp.c: Update includes.
10356 * tui/tui.c: Update includes.
10357 * Makefile.in: Update all tui/ dependencies.
10358 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10359
b2100910
AC
10360 * Makefile.in: Update copyright. Update dependencies.
10361
cebe9500
AC
10362 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10363 problem.
10364
c6f0559b
AC
103652004-01-18 Andrew Cagney <cagney@redhat.com>
10366
43e9390b
AC
10367 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10368 instead of register_gdbarch_init.
10369
c6f0559b
AC
10370 * remote-sds.c (tohex): Delete unused function. Update copyright.
10371 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10372 * v850-tdep.c (v850_register_virtual_size): Ditto.
10373 * target.c (normal_target_post_startup_inferior): Ditto.
10374 * source.c (ambiguous_line_spec): Ditto.
10375 * remote.c (adapt_remote_get_threadinfo): Ditto.
10376 * mi/mi-out.c (out_field_fmt): Ditto.
10377 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10378 (output_control_change_notification): Ditto.
10379 * m68k-tdep.c (m68k_register_byte): Ditto.
10380 (m68k_remote_breakpoint_from_pc): Ditto.
10381 * ui-out.c (init_ui_out_state): Delete unused declaration.
10382 * stabsread.c (search_value): Ditto.
10383 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10384 * maint.c (print_section_table): Ditto.
10385 * infrun.c (set_follow_fork_mode_command): Ditto.
10386
a8504492
MK
103872004-01-18 Mark Kettenis <kettenis@gnu.org>
10388
10389 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10390 DW_CFA_def_cfa_exporession. Add support for
10391 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10392 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10393
0bd8997e
AC
103942004-01-18 Andrew Cagney <cagney@redhat.com>
10395
10396 * ocd.c: Update copyright.
10397 (bdm_read_register_command): Delete unused function.
10398 (_initialize_remote_ocd): Delete commented out reference.
10399 (get_quoted_char, reset_packet): Delete #if0ed function.
10400 (output_packet, put_quoted_char): Delete #if0ed function.
10401 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10402 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10403 (BDM_BREAKPOINT): Delete #if0ed macro.
10404 (remote_timeout): Delete #if0ed variable.
10405
31bb40e4
MK
104062004-01-18 Mark Kettenis <kettenis@gnu.org>
10407
10408 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10409 (core-sol2.o): Remove dependency.
10410 * core-sol2.c: Remove file.
10411
887432a5
AC
104122004-01-17 Andrew Cagney <cagney@redhat.com>
10413
10414 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10415 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10416 enums.
10417
29182b13
DJ
104182004-01-17 Daniel Jacobowitz <drow@mvista.com>
10419
10420 * remote.c: Update copyright years.
10421
2963ee1d
DJ
104222004-01-17 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10425
79d45cd4
AC
104262004-01-17 Andrew Cagney <cagney@redhat.com>
10427
ee300cd4
AC
10428 * mdebugread.c: Update copyright.
10429 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10430 (parse_type, parse_procedure): Ditto.
10431 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10432
fcacc9c2
AC
10433 * cris-tdep.c (cris_store_struct_return): Put back accidently
10434 deleted function.
10435
79d45cd4
AC
10436 * gdbarch.sh: Update copyright year.
10437 * gdbarch.h, gdbarch.c: Re-generate.
10438
b263358a
DJ
104392004-01-17 Daniel Jacobowitz <drow@mvista.com>
10440
10441 Suggested by George Anzinger.
10442 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10443 correct stack offset. Include unknown opcode numbers in the error
10444 message.
10445
931aecf5
AC
104462004-01-17 Andrew Cagney <cagney@redhat.com>
10447
10448 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10449 extract_struct_value_address, i386 does not set it.
10450 * sparc64-tdep.c (sparc64_init_abi): Do not set
10451 extract_struct_value_address, never called.
10452 (sparc64_extract_struct_value_address): Delete function.
10453 * m68hc11-tdep.c: Update copyright.
10454 (m68hc11_gdbarch_init): Delete redundant assignment of
10455 extract_struct_value_address.
10456 * i386-tdep.c: Update copyright.
10457 (i386_gdbarch_init): Do not set extract_struct_value_address,
10458 never called.
10459 (i386_extract_struct_value_address): Delete function.
10460 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10461 extract_struct_value_address, never called.
10462 (sparc32_extract_struct_value_address): #if 0 function. Add
10463 comments explaining its future.
10464
756fe439
DJ
104652004-01-17 Daniel Jacobowitz <drow@mvista.com>
10466
10467 * arm-tdep.c (arm_write_pc): New function.
10468 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10469
e74f0f02
DJ
104702004-01-17 Daniel Jacobowitz <drow@mvista.com>
10471
10472 * breakpoint.c (must_shift_inst_regs): Delete.
10473 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10474 and SHIFT_INST_REGS.
10475 * infcmd.c (step_1, step_1_continuation): Delete references to
10476 SHIFT_INST_REGS.
10477 * infrun.c (keep_going): Likewise.
10478 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10479 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10480
b6cb9035
AC
104812004-01-17 Andrew Cagney <cagney@redhat.com>
10482
444a1e2e
AC
10483 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10484 * gdbarch.h, gdbarch.c: Re-generate.
10485 * infcmd.c (print_return_value): Delete reference to
10486 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10487
def7e6ed
AC
10488 * cris-tdep.c (cris_gdbarch_init): Do not set
10489 deprecated_extract_struct_value_address.
10490
07be497a
AC
10491 * xstormy16-tdep.c: Update copyright.
10492 (xstormy16_extract_struct_value_address): Update to current
10493 extract struct value address interface.
10494 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10495 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10496 current extract struct value address interface.
10497 (sh64_gdbarch_init): Set extract_struct_value_address.
10498
6b4d5c91
AC
10499 * cris-tdep.c: Update copyright.
10500 (cris_extract_struct_value_address): Delete function.
10501 (struct_return_address): Delete variable.
10502 (cris_store_struct_return): Do not set struct_return_address.
10503
464e0365
AC
10504 * mcore-tdep.c: Update copyright.
10505 (mcore_extract_struct_value_address): Delete function. Update
10506 comments.
10507 (mcore_gdbarch_init): Update.
10508 * mn10300-tdep.c: Update copyright.
10509 (mn10300_extract_struct_value_address): Delete function.
10510 (mn10300_gdbarch_init): Update.
10511 * v850-tdep.c: Update copyright.
10512 (v850_extract_struct_value_address): Delete.
10513 (v850_gdbarch_init): Update.
10514 * ns32k-tdep.c: Update copyright.
10515 (ns32k_extract_struct_value_address): Delete.
10516 (ns32k_gdbarch_init): Update.
10517 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10518 (hppa_gdbarch_init): Update.
10519 * vax-tdep.c: Update copyright.
10520 (vax_extract_struct_value_address): Delete.
10521 (vax_gdbarch_init): Update.
10522
afb18d0f
AC
10523 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10524 * gdbarch.h, gdbarch.c: Re-generate.
10525 * procfs.c (procfs_fetch_registers): Delete reference to
10526 DEPRECATED_NPC_REGNUM.
10527 (procfs_store_registers): Ditto.
10528 * regcache.c (generic_target_write_pc): Simplify.
10529 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10530
a698f53e
AC
10531 * core-sol2.c (fetch_core_registers): Replace
10532 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10533
adc11376
AC
10534 * hppa-tdep.c: Update copyright year.
10535 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10536 NPC_REGNUM.
10537 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10538
b6cb9035
AC
10539 * mips-tdep.c (mips_write_pc): New function.
10540 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10541 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10542 (mips_find_saved_regs, mips_software_single_step: Ditto.
10543 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10544 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10545
6d82d43b
AC
105462004-01-17 Andrew Cagney <cagney@redhat.com>
10547
10548 * mips-tdep.c: Re-indent. Group functions by ABI.
10549
71bd6bd4
AC
105502004-01-17 Andrew Cagney <cagney@redhat.com>
10551
10552 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10553 * gdbarch.c: Re-generate.
10554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10555 DECR_PC_AFTER_BREAK to zero.
10556 * vax-tdep.c (vax_gdbarch_init): Ditto.
10557 * v850-tdep.c (v850_gdbarch_init): Ditto.
10558 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10559 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10560 * sh-tdep.c (sh_gdbarch_init): Ditto.
10561 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10562 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10563 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10564 * mips-tdep.c (mips_gdbarch_init): Ditto.
10565 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10567 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10568 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10569 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10570 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10571 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10572 * frv-tdep.c (frv_gdbarch_init): Ditto.
10573 * cris-tdep.c (cris_gdbarch_init): Ditto.
10574 * avr-tdep.c (avr_gdbarch_init): Ditto.
10575 * arm-tdep.c (arm_gdbarch_init): Ditto.
10576 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10577
a02abb62
JB
105782004-01-17 J. Brobecker <brobecker@gnat.com>
10579
10580 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10581 Delete, no longer used.
10582 (read_subrange_type): New function, mostly extracted from
10583 read_array_type().
10584 (read_array_type): Replace extracted code by call to
10585 read_subrange_type().
10586 (dwarf2_get_attr_constant_value): New function.
10587 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10588 (add_partial_symbol): Likewise.
10589 (process_die): Likewise.
10590 (new_symbol): Likewise.
10591 (read_type_die): Likewise.
10592
cf5b2f1b
AC
105932004-01-16 Andrew Cagney <cagney@redhat.com>
10594
10595 * symfile.c: Update copyright year.
10596 (compare_symbols): Delete unused function.
10597 * stabsread.c: Update copyright year.
10598 (lrs_general_complaint): Delete unused function.
10599 (ref_search_value): Ditto.
10600 (get_substring): Delete declaration.
10601 * sh64-tdep.c: Update copyright year.
10602 (sh64_get_gdb_regnum): Delete unused function.
10603 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10604 Delete unused function.
10605
d33b9831
MK
106062004-01-17 Mark Kettenis <kettenis@gnu.org>
10607
10608 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10609 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10610
7aea86e6
AC
106112004-01-16 Andrew Cagney <cagney@redhat.com>
10612
10613 Changes from Peter Schauer.
10614 * rs6000-tdep.c: Update copyright year.
10615 (rs6000_push_dummy_call): Update the stack pointer before
10616 accessing the corresponding stack region.
10617 * rs6000-nat.c: Update copyright year.
10618 (set_host_arch): Set "info.abfd" to "exec_bfd".
10619
26b0da32
MK
106202004-01-15 Mark Kettenis <kettenis@gnu.org>
10621
10622 * blockframe.c: Update copyright year.
10623 (inside_entry_func): Don't treat a zero PC specially.
10624
86fbe6cc
EZ
106252004-01-14 Elena Zannoni <ezannoni@redhat.com>
10626
10627 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10628 variable.
10629 (gcore_create_callback): Ditto. Skip any memory segment that has
10630 no permissions set.
10631
63d06c5c
DC
106322004-01-14 David Carlton <carlton@kealia.com>
10633
10634 Change symbols for C++ nested types to contain the fully qualified
10635 name, if possible. (At least in the DWARF-2 case.) Partial fix
10636 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10637 c++/895.
10638 * c-exp.y (qualified_type): Handle types nested within classes.
10639 * cp-namespace.c: Update comments.
10640 (cp_set_block_scope): Delete #if 0.
10641 (cp_lookup_nested_type): Handle types nested within classes.
10642 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10643 when appropriate.
10644 (add_partial_symbol): Add the name of the enclosing namespace to
10645 types.
10646 (pdi_needs_namespace): New.
10647 (add_partial_namespace): Tweak comment.
10648 (add_partial_structure): New.
10649 (psymtab_to_symtab_1): Initialize processing_current_prefix
10650 here...
10651 (process_die): instead of here.
10652 (read_structure_scope): Try to figure out the name of the class or
10653 namespace that the structure might be defined within.
10654 (read_enumeration): Generate fully-qualified names, if possible.
10655 (read_namespace): Don't set name to NULL.
10656 (die_specification): New.
10657 (new_symbol): Generate fully-qualified names for types.
10658 (read_type_die): Determine appropriate prefix.
10659 (determine_prefix): New.
10660 (typename_concat): New.
10661 (class_name): New.
10662 * valops.c (value_aggregate_elt): Pass NOSIDE to
10663 value_struct_elt_for_reference.
10664 (value_struct_elt_for_reference): Make static, add NOSIDE
10665 parameter, call value_maybe_namespace_elt as a last resort.
10666 (value_namespace_elt): Break out code into
10667 value_maybe_namespace_elt.
10668 (value_maybe_namespace_elt): New.
10669
87783b8b
AC
106702004-01-12 Andrew Cagney <cagney@redhat.com>
10671
10672 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10673 cooked floating-point registers.
10674 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10675 and value_to_register.
10676
6503b91e
AC
106772004-01-13 Andrew Cagney <cagney@redhat.com>
10678
10679 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10680 * gdbarch.c: Re-generate.
10681 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10682 FUNCTION_START_OFFSET.
10683 * v850-tdep.c (v850_gdbarch_init): Ditto.
10684 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10685 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10686 * sh-tdep.c (sh_gdbarch_init): Ditto.
10687 * s390-tdep.c (s390_gdbarch_init): Ditto.
10688 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10689 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10690 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10691 * mips-tdep.c (mips_gdbarch_init): Ditto.
10692 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10693 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10695 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10696 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10697 * i386-tdep.c (i386_gdbarch_init): Ditto.
10698 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10699 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10700 * frv-tdep.c (frv_gdbarch_init): Ditto.
10701 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10702 * cris-tdep.c (cris_gdbarch_init): Ditto.
10703 * avr-tdep.c (avr_gdbarch_init): Ditto.
10704 * arm-tdep.c (arm_gdbarch_init): Ditto.
10705 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10706
ea1dd7bc
DJ
107072004-01-13 Daniel Jacobowitz <drow@mvista.com>
10708
10709 * infrun.c (follow_fork_mode_ask): Remove.
10710 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10711 (follow_fork): Simplify and remove internal error for
10712 follow_fork_mode_ask.
10713 (_initialize_infrun): Update "set follow-fork-mode" help text.
10714
0f0cffd2
AC
107152004-01-13 Andrew Cagney <cagney@redhat.com>
10716
10717 * configure.in: Update copyright year.
10718 (build_warnings): Add -Wunused-label.
10719 * configure: Re-generate.
10720
de38af99
AC
107212004-01-12 Andrew Cagney <cagney@redhat.com>
10722
954a7fba
AC
10723 * exec.h (exec_ops): Make "extern".
10724
de38af99
AC
10725 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10726 the function is void.
10727 (mips_pseudo_register_write): Ditto.
10728
1a111ce3
AC
107292004-01-12 Andrew Cagney <cagney@redhat.com>
10730
10731 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10732 call. Never defined.
10733 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10734 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10735 (struct sparc_gregset, struct regcache): Ditto.
10736 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10737
48efe704
AC
107382004-01-12 Andrew Cagney <cagney@redhat.com>
10739
10740 * mi/ChangeLog: Delete file. Renamed to ...
10741 * mi/ChangeLog-1999-2003: New file.
10742 * tui/ChangeLog: Delete file. Renamed to ...
10743 * tui/ChangeLog-1998-2003: New file.
fe61caab 10744
a54124c5
MK
107452004-01-11 Mark Kettenis <kettenis@gnu.org>
10746
2ca62865
MK
10747 * sparc64nbsd-tdep.c: Include "regset.h".
10748 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10749 Remove variables.
10750 (fetch_core_registers): Remove function.
10751 (sparc64nbsd_core_fns): Remove variable.
10752 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10753 functions.
10754 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10755 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10756 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10757
ca9d58e9
MK
10758 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10759 sparc_extract_struct_value_address.
10760 (sparc32_gdbarch_init): Set extract_struct_value_address.
10761 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10762 function.
10763 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10764 return_value_on_stack.
10765
3cc87ec0
MK
10766 * NEWS: Mention that %cs and %ss have been added to the AMD64
10767 configurations
10768
5bf00f29
MK
10769 * frame.c: Update copyright year.
10770 (get_prev_frame): Improve comment.
10771
4f7ec84e
MK
10772 * sparc64fbsd-tdep.c: Include "regset.h".
10773 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10774 Remove variables.
10775 (fetch_core_registers): Remove function.
10776 (sparc64fbsd_core_fns): Remove variable.
10777 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10778 functions.
10779 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10780 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 10781 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 10782
4e7b0cd3
MK
10783 * sparcnbsd-tdep.c: Include "regset.h".
10784 (fetch_core_registers): Remove function.
10785 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10786 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10787 functions.
10788 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10789 TDEP->fpregset.
46b58ce9 10790 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 10791
a54124c5
MK
10792 * sparc-tdep.h (struct regset): Provide opaque declaration.
10793 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10794 fpregset and sizeof_fpregset members.
10795 * sparc-tdep.c (struct regset): Provide opaque declaration.
10796 (sparc_regset_from_core_section): New function.
10797 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10798 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10799 Set regset_from_core_section when appropriate.
10800
29ff87c5
MK
108012004-01-10 Mark Kettenis <kettenis@gnu.org>
10802
79b1ab3d
MK
10803 * x86-64-tdep.c (amd64_non_pod_p): New function.
10804 (amd64_classify_aggregate): Return class memory for non-POD
10805 C++ structure types.
10806
6470d250
MK
10807 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10808 argument. Use it to reserve a register if necessary.
10809 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10810 amd64_push_arguments.
10811
562c50c2
MK
10812 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10813
af233647
MK
10814 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10815 register numbers in comments.
10816 * x86-64-tdep.h: Update copyright year.
10817 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10818 Adjust for addition of %cs and %ss.
10819 * amd64fbsd-nat.c: Update copyright year.
10820 (reg_offset): Add register offsets for %cs and %ss.
10821 * amd64fbsd-tdep.c: Update copyright year.
10822 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10823 (amd64fbsd_sc_reg_offset): Likewise.
10824 * x86-64-linux-nat.c: Update copyright year.
10825 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10826 and %ss.
10827 * amd64nbsd-nat.c: Update copyright year.
10828 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10829 * amd64nbsd-tdep.c: Update copyright year.
10830 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10831 * x86-64-linux-tdep.c: Update copyright year.
10832 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10833 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10834 * regformats/reg-x86-64.dat: Add %cs and %ss.
10835
29ff87c5
MK
10836 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10837 variables to prevent long lines. Update comments to reflect
10838 reality.
10839
38d518c9
EZ
108402004-01-09 David Carlton <carlton@kealia.com>
10841
10842 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10843 * dwarf2read.c (read_namespace): Pull out name-generating code
10844 into namespace_name. Rename previous_namespace to previous_prefix
10845 and processing_current_namespace to processing_current_prefix..
10846 (namespace_name): New function.
10847 (add_partial_symbol): Substitute uses of pdi->name with
10848 actual_name.
10849 * cp-support.h: Rename processing_current_namespace to
10850 processing_current_prefix.
10851 Update copyright year.
10852 * cp-namespace.c: Rename processing_current_namespace to
10853 processing_current_prefix.
10854 Update copyright year.
fe61caab 10855
1e4728e7
AC
108562004-01-09 Andrew Cagney <cagney@redhat.com>
10857
10858 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10859
c77c642a
MK
108602004-01-09 Mark Kettenis <kettenis@gnu.org>
10861
10862 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10863 complaining.
10864 (process_one_symbol): Deal with N_PATCH stabs.
10865
b44e9041
EZ
108662004-01-09 Elena Zannoni <ezannoni@redhat.com>
10867
10868 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10869 ifdeffed code.
10870 Update copyright year.
38d518c9 10871
eccfb640
MC
108722004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10873
10874 * config/pa/tm-hppa.h: Update extern declarations for
10875 hppa32_hpux_frame_saved_pc_in_sigtramp,
10876 hppa32_hpux_frame_base_before_sigtramp, and
10877 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10878
848c5feb
MC
108792004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10880
10881 * config/pa/tm-hppah.h: Update copyright years.
10882
3cc5d663
AC
108832004-01-08 Andrew Cagney <cagney@redhat.com>
10884
10885 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10886 (mips_o32_reg_struct_has_addr): Delete function.
10887 (mips_gdbarch_init): Update.
10888 (mips_extract_struct_value_address): Delete function.
10889
bfec0b41
JJ
108902004-01-08 David Mosberger <davidm@hpl.hp.com>
10891
10892 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10893 reality.
10894
16e109ca
AC
108952004-01-07 Andrew Cagney <cagney@redhat.com>
10896
6214a8a1
AC
10897 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10898 architecture's elf flags (when available).
10899
8d5838b5
AC
10900 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10901 FPU to the start, check the MIPS FPU when looking for an old
10902 architecture.
10903 (set_mipsfpu_single_command): Update the architecture.
10904 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10905
480d3dd2
AC
10906 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10907 (mips_mask_address_p): Add "tdep" parameter.
10908 (show_mask_address, mips_addr_bits_remove): Update.
10909 (mips_dump_tdep): Update.
10910 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10911 (MIPS_STACK_ARGSIZE): Delete macro.
10912 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10913 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10914 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10915 (mips_dump_tdep): Update.
10916 (MIPS_SAVED_REGSIZE): Delete macro.
10917 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10918 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10919 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10920 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10921 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10922 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10923 (mips_pop_frame, return_value_location): Update.
10924 (mips_n32n64_return_value, mips_dump_tdep): Update.
10925
ec03c1ac
AC
10926 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10927 MIPS ABI.
10928
16e109ca
AC
10929 * mips-tdep.c: Update copyright.
10930 (mips_gdbarch_init): Merge two code blocks handling the register
10931 name and number layout.
10932
15255275
MS
109332004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10934
10935 * tracepoint.c (validate_actionline): Fix segv at EOF
10936
9f9057da
MC
109372004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10938
10939 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10940 properly for static fields.
10941
0127c0d3 109422004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 10943 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
10944
10945 * disasm.c: Update copyright to include 2004.
10946 (do_mixed_source_and_assembly): For uiout asm list
10947 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 10948 NULL and do so prior to loop. Only reset when we close off
0127c0d3 10949 the tuple/list. Move check for whether to close off the
fe61caab 10950 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
10951 on each loop iteration.
10952
5269965e
AC
109532004-01-05 Andrew Cagney <cagney@redhat.com>
10954
54f1137d
AC
10955 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10956 should be a switch case and not a label.
10957 * mips-tdep.c (mips32_next_pc): Delete unused labels
10958 "greater_equal_branch" and "less_zero_branch".
10959 * jv-valprint.c (java_print_value_fields): Delete unused label
10960 "flush_it".
10961
5269965e
AC
10962 * target.c (unpush_target): Only close a target that is in the
10963 target stack.
10964
dbc22fa1
MK
109652004-01-05 Mark Kettenis <kettenis@gnu.org>
10966
9515395e
MK
10967 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10968 address from [sp + 64] instead of %o2.
10969
dbc22fa1
MK
10970 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10971 fixes PR backtrace/1476.
10972
5439edaa
AC
109732004-01-05 Andrew Cagney <cagney@redhat.com>
10974
10975 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10976 move to start of file.
10977 * i386-tdep.h (struct regcache): Add opaque declaration.
10978 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10979 declaration.
10980 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10981 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10982 * win32-nat.c (fake_create_process): Use ISO C style definition.
10983 * stabsread.c (define_symbol): Delete #ifndef
10984 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10985 stabs_argument_has_addr call, macro never defined.
10986
19061abe
MC
109872004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10988
10989 * op50-rom.c: Delete.
10990 * w89k-rom.c: Delete.
10991 * Makefile.in: Remove references.
10992
e53bef9f
MK
109932004-01-04 Mark Kettenis <kettenis@gnu.org>
10994
10995 * x86-64-tdep.c: Update copyright year.
10996 (struct amd64_register_info): Rename from x86_64_register_info.
10997 (amd64_register_info): Rename from x86_64_register_info.
10998 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10999 (amd64_register_name): Rename from x86_64_register_name.
11000 (amd64_register_type): Rename from x86_64_register_type.
11001 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11002 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11003 (amd64_dwarf_reg_to_regnum): Rename from
11004 x86_64_dwarf_reg_to_regnum.
11005 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11006 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11007 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11008 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11009 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11010 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11011 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11012 (amd64_frame_cache): Rename from x86_64_frame_cache.
11013 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11014 (amd64_frame_prev_register): Rename from
11015 x86_64_frame_prev_register.
11016 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11017 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11018 (amd64_sigtramp_frame_cache): Rename from
11019 x86_64_sigtramp_frame_cache.
11020 (amd64_sigtramp_frame_prev_register): Rename from
11021 x86_64_sigtramp_frame_prev_register.
11022 (amd64_sigtramp_frame_unwind): Rename from
11023 x86_64_sigtramp_frame_unwind.
11024 (amd64_sigtramp_frame_sniffer): Rename from
11025 x86_64_sigtramp_frame_sniffer.
11026 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11027 (amd64_frame_base): Rename from x86_64_frame_base.
11028 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11029 (amd64_frame_align): Rename from x86_64_frame_align.
11030 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11031 (amd64_regset_from_core_section): Rename from
11032 x86_64_regset_from_core_section.
11033 (x86_64_init_abi): Update comments.
11034
fca6aa58
NR
110352004-01-04 Nick Roberts <nick@nick.uklinux.net>
11036
11037 * MAINTAINERS (write after approval): Add myself.
11038
8ada74e3
MK
110392004-01-04 Mark Kettenis <kettenis@gnu.org>
11040
11041 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11042 `float' arguments.
11043
5154b0cd
MK
110442004-01-04 Mark Kettenis <kettenis@gnu.org>
11045
11046 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11047 such that it mentions a specific version of GCC that exhibits this
11048 bug.
11049
fb316966
MK
110502004-01-03 Mark Kettenis <kettenis@gnu.org>
11051
200cc553
MK
11052 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11053 structure that has a single `float' member, store it in %f1 in
11054 addition to %f0.
11055
e226a4a0
MK
11056 * sparc-sol2-nat.c: Add missing '\'.
11057
b9d4c5ed
MK
11058 * sparc-tdep.c (sparc32_return_value): New function.
11059 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11060 Remove functions.
11061 (sparc32_gdbarch_init): Set return_value, don't set
11062 extract_return_value, store_return_value, use_struct_convention
11063 and return_value_on_stack.
11064
fb316966
MK
11065 * sparc-sol2-nat.c: Add missing ')'.
11066
1af510a8
JB
110672004-01-03 J. Brobecker <brobecker@gnat.com>
11068
11069 * infrun.c (handle_step_into_function): New function.
11070 (handle_inferior_event): Extract out some code into the new
11071 function above.
11072
5cf4d23a
JB
110732004-01-03 J. Brobecker <brobecker@gnat.com>
11074
11075 * infrun.c (handle_inferior_event): Move the declaration of
11076 real_stop_pc inside the if blocks where it is used.
11077
60af1db2
MK
110782004-01-03 Mark Kettenis <kettenis@gnu.org>
11079
11080 * sparc64-tdep.c (sparc64_16_byte_align_p)
11081 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11082 Use check_typedef to get subtypes of structures and unions.
11083 (sparc64_store_return_value): Fix calculation of the appropriate
11084 offset into VALBUF when storing a structure or union.
11085 (sparc64_return_value): New function.
11086 (sparc64_use_struct_convention): Remove function.
11087 (sparc64_init_abi): Set return_value, don't set
11088 extract_return_value, store_return_value and
11089 use_struct_convention.
11090
1a901d3f
EZ
110912004-01-03 Eli Zaretskii <eliz@elta.co.il>
11092
11093 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11094 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11095 gdb/config/alpha/xm-alphaosf.h,
11096 gdb/config/powerpc/tm-ppcle-eabi.h,
11097 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11098 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11099 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11100 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11101 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11102 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11103 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11104 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11105 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11106 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11107 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11108 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11109 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11110 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11111 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11112 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11113 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11114 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11115 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11116 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11117 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11118 Remove lines for .cvsignore files.
11119
ef52e463
JB
111202004-01-03 J. Brobecker <brobecker@gnat.com>
11121
11122 * infrun.c: Back out the previous change.
11123
cb1bf9dc
MK
111242004-01-03 Mark Kettenis <kettenis@gnu.org>
11125
f0424ef6
MK
11126 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11127 sparc-*-sunos4* to the list of REMOVED configurations.
11128
cb1bf9dc
MK
11129 * configure.tgt: Add back sparc-*-vxworks*.
11130 * remote-vxsparc.c: Remove all includes except for "defs.h",
11131 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11132 Include "sparc-tdep.h".
11133 (SPARC_R_G1): New define.
11134 (vxsparc_gregset): New variable.
11135 (ext_format_sparc): Remove extern declaration.
11136 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11137 sparc32_supply_fpregset.
11138 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11139 sparc_collect_rwindow and sparc32_collect_fpregset.
11140 * config/sparc/tm-vxworks.h: New file, based on recently removed
11141 tm-vxsparc.h.
11142 * config/sparc/vxworks.mt: New file, based on recently removed
11143 vxworks.mt.
fe61caab 11144
5e938f9f
JB
111452004-01-03 J. Brobecker <brobecker@gnat.com>
11146
11147 * infrun.c (handle_step_into_function): New function.
11148 (handle_inferior_event): Extract out some code into the new
11149 function above.
11150
386c036b
MK
111512004-01-02 Mark Kettenis <kettenis@gnu.org>
11152
11153 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11154 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11155 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11156 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11157 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11158 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11159 (sparc_nat_h): New variable.
11160 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11161 (tm-sun4os4.h): Remove dependency.
11162 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11163 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11164 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11165 sparc-tdep.o): Update dependencies.
11166 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11167 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11168 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11169 dependencies.
11170 * configure.host: Remove existing sparc-*-lynxos*,
11171 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11172 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11173 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11174 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11175 triplets.
11176 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11177 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11178 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11179 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11180 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11181 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11182 sparc64-*-solaris2* and sparc64-*-* triplets.
11183 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11184 "symtab.h" and "objfiles.h".
11185 (BIAS): Remove define.
11186 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11187 (X_DISP19): Remove macros.
11188 (sparc_fetch_instruction): Remove function.
11189 (struct gdbarch_tdep): Remove definition.
11190 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11191 (sparc_breakpoint_from_pc): Remove function.
11192 (struct sparc64_frame_cache): Remove definition.
11193 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11194 sparc64_unwind_pc): Remove functions.
11195 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11196 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11197 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11198 (sparc64_frame_cache): Change return type to `struct
11199 sparc_frame_cache *'. Simply call sparc_frame_cache.
11200 (sparc64_frame_this_id, sparc64_frame_prev_register,
11201 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11202 instead of `struct sparc64_frame_cache.
11203 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11204 sparc_analyze_control_transfer, sparc_software_single_step,
11205 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11206 _initialize_sparc64_tdep): Remove functions.
11207 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11208 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11209 macros.
11210 (sparc64_supply_gregset, sparc64_collect_gregset,
11211 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11212 (sparc64_init_abi): New function.
11213 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11214 inclusion guard. Include "sparc-tdep.h".
11215 (BIAS): Define.
11216 (r_tstate_offset, r_fprs_offset): New defines.
11217 (enum sparc_regnum): Remove defenition.
11218 (enum sparc64_regnum): Reformat.
11219 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11220 (sparc64_init_abi, sparc64_supply_gregset,
11221 sparc64_collect_gregset, sparc64_supply_fpregset,
11222 sparc64_collect_fpregset): New prototypes.
11223 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11224 Add extern declarations.
11225 (sparc64_sol2_init_abi): New prototype.
11226 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11227 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11228 prototypes.
11229 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11230 "sparnbsd-nat.h".
11231 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11232 functions.
11233 (_initialize_sparc64fbsd_nat): Remove initialization of
11234 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11235 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11236 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11237 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11238 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11239 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11240 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11241 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11242 (sparc64fbsd_r_y_offset): Remove variables.
11243 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11244 Make static and const.
11245 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11246 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11247 functions.
11248 (sparc64fbsd_gregset): New variable.
11249 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11250 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11251 and sparc64_supply_fpregset.
11252 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11253 (sparc64fbsd_sigtramp_frame_this_id)
11254 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11255 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11256 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11257 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11258 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11259 * sparcnbsd-tdep.c: Update copyright year. Include
11260 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11261 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11262 "value.h" and "sparcnbsd-tdep.h".
11263 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11264 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11265 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11266 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11267 defines.
11268 (sparcnbsd_gregset): New variable.
11269 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11270 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11271 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11272 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11273 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11274 variables.
11275 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11276 (sparc32nbsd_sigcontext_frame_this_id)
11277 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11278 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11279 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11280 (sparcnbsd_get_longjmp_target_32,
11281 sparcnbsd_get_longjmp_target_64): Remove functions.
11282 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11283 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11284 sparcnbsd_init_elf): Remove.
11285 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11286 (sparcnbsd_elf_init_abi): New functions.
11287 (_initialize_sparcnbsd_tdep): New prototype.
11288 (_initialize_sparnbsd_tdep): Update.
11289 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11290 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11291 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11292 * config/sparc/linux.mh: Update comment.
11293 (XM_FILE, HOST_IPC): Remove variables.
11294 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11295 sparc-linux-nat.o.
11296 * config/sparc/linux.mt: Update comment.
11297 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11298 * config/sparc/nbsd.mt: Reformat.
11299 * config/sparc/nbsd64.mh: Update comment.
11300 (NATDEPFILES): Add sparc-nat.o.
11301 * config/sparc/nbsd64.mt: Update comment.
11302 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11303 (TM_FILE): Set to tm-nbsd.h.
11304 * config/sparc/nbsdelf.mh: Update comment.
11305 (NATDEPFILES): Add sparc-nat.o.
11306 (XM_FILE): Delete.
11307 * config/sparc/nbsdaout.mh: Update comment.
11308 (NATDEPFILES): Add sparc-nat.o
11309 (XM_FILE): Delete.
11310 * config/sparc/nm-linux.h: Update copyright year. Don't include
11311 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11312 inclusion.
11313 (KERNEL_U_SIZE): Remove define.
11314 (kernel_u_size): Remove prototype.
11315 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11316 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11317 "regcache.h".
11318 (CHILD_PREPARE_TO_STORE): Remove define.
11319 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11320 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11321 sparcnbsd-nat.c: Rewrite files.
11322 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11323 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11324 sparcnbsd-tdep.h: Remove files.
11325 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11326 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11327 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11328 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11329 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11330 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11331 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11332 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11333 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11334 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11335 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11336 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11337 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11338 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11339 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11340 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11341 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11342 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11343 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11344
ee84457a
AC
113452004-01-02 Andrew Cagney <cagney@redhat.com>
11346
11347 From 2003-12-18 Kazuhiro Inaoka:
11348 * configure.host: Add m32r-linux target.
11349
0bc2134e
MC
113502004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11351
11352 * top.c (print_gdb_version): Update year to 2004.
11353
89a72f9c
MM
113542004-01-02 Mark Mitchell <mark@codesourcery.com>
11355
11356 * MAINTAINERS: Add myself to the write-after-approval category.
11357
86b013ed
DJ
113582004-01-02 Daniel Jacobowitz <drow@mvista.com>
11359
11360 From Bernardo Innocenti <bernie@develer.com>:
11361 * configure.tgt: Add uClinux target.
11362
e42c9534
AC
113632004-01-02 Andrew Cagney <cagney@redhat.com>
11364
11365 * utils.c (do_my_cleanups): Make static, add forward declaration.
11366 * defs.h (do_my_cleanups): Delete declaration.
11367
162467d3
EZ
113682004-01-02 Eli Zaretskii <eliz@elta.co.il>
11369
11370 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11371 bfd/ChangeLog-0203.
11372
78434e59
MK
113732004-01-02 Mark Kettenis <kettenis@gnu.org>
11374
11375 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11376 in <machine/reg.h>.
11377 * configure, config.in: Regenerate.
11378
48efe704
AC
11379For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11380tui/ChangeLog-1998-2003.
c906108c
SS
11381\f
11382Local Variables:
11383mode: change-log
11384left-margin: 8
11385fill-column: 74
11386version-control: never
11387End:
This page took 1.203592 seconds and 4 git commands to generate.