gdb/ChangeLog:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2005-12-20 Jim Blandy <jimb@redhat.com>
2
3 * rs6000-tdep.c (rs6000_gdbarch_init): Doc fix.
4
5 2005-12-20 Joel Brobecker <brobecker@adacore.com>
6
7 * rs6000-tdep.c: Use proper spelling for existent.
8
9 2005-12-20 Joel Brobecker <brobecker@adacore.com>
10
11 * rs6000-tdep.c: Fix spelling errors.
12
13 2005-12-19 Mark Kettenis <kettenis@gnu.org>
14
15 * i386-tdep.h (I386_SEL_RPL, I386_SEL_UPL, I386_SEL_KPL): New
16 defines.
17 * i386obsd-tdep.c: Include "frame-unwind.h" and "trad-frame.h".
18 (i386obsd_tf_reg_offset, i386obsd_trapframe_unwind): New
19 variables.
20 (i386obsd_trapframe_cache, i386obsd_trapframe_this_id)
21 (i386obsd_trapframe_prev_register, i386obsd_trapframe_sniffer):
22 New functions.
23 (i386obsd_init_abi): Append i386obsd_trapframe_sniffer.
24 * Makefile.in (i386obsd-tdep.o): Update dependencies.
25
26 2005-12-18 Eli Zaretskii <eliz@gnu.org>
27
28 * cli/cli-utils.h:
29 * cli/cli-utils.c:
30 * cli/cli-setshow.h:
31 * cli/cli-setshow.c:
32 * cli/cli-script.h:
33 * cli/cli-script.c:
34 * cli/cli-logging.c:
35 * cli/cli-interp.c:
36 * cli/cli-dump.h:
37 * cli/cli-dump.c:
38 * cli/cli-decode.h:
39 * cli/cli-decode.c:
40 * cli/cli-cmds.h:
41 * cli/cli-cmds.c:
42 * breakpoint.c:
43 * arm-tdep.c:
44 * ia64-tdep.c:
45 * i386-tdep.c:
46 * hpread.c:
47 * hppa-tdep.c:
48 * hppa-hpux-tdep.c:
49 * gnu-nat.c:
50 * gdbtypes.c:
51 * gdbarch.h:
52 * gdbarch.c:
53 * eval.c:
54 * dwarf2read.c:
55 * dbxread.c:
56 * copying:
57 * symfile.c:
58 * stabsread.c:
59 * sh64-tdep.c:
60 * sh-tdep.c:
61 * s390-tdep.c:
62 * rs6000-tdep.c:
63 * remote.c:
64 * remote-mips.c:
65 * mips-tdep.c:
66 * mdebugread.c:
67 * linux-nat.c:
68 * infrun.c:
69 * xcoffread.c:
70 * win32-nat.c:
71 * valops.c:
72 * utils.c:
73 * tracepoint.c:
74 * target.c:
75 * symtab.c:
76 * c-exp.y:
77 * ada-valprint.c:
78 * ada-typeprint.c:
79 * ada-lex.l:
80 * ada-lang.h:
81 * ada-lang.c:
82 * ada-exp.y:
83 * alphafbsd-tdep.c:
84 * alphabsd-tdep.h:
85 * alphabsd-tdep.c:
86 * alphabsd-nat.c:
87 * alpha-tdep.h:
88 * alpha-tdep.c:
89 * alpha-osf1-tdep.c:
90 * alpha-nat.c:
91 * alpha-mdebug-tdep.c:
92 * alpha-linux-tdep.c:
93 * alpha-linux-nat.c:
94 * aix-thread.c:
95 * abug-rom.c:
96 * arch-utils.c:
97 * annotate.h:
98 * annotate.c:
99 * amd64obsd-tdep.c:
100 * amd64obsd-nat.c:
101 * amd64nbsd-tdep.c:
102 * amd64nbsd-nat.c:
103 * amd64fbsd-tdep.c:
104 * amd64fbsd-nat.c:
105 * amd64bsd-nat.c:
106 * amd64-tdep.h:
107 * amd64-tdep.c:
108 * amd64-sol2-tdep.c:
109 * amd64-nat.h:
110 * amd64-nat.c:
111 * amd64-linux-tdep.c:
112 * amd64-linux-nat.c:
113 * alphanbsd-tdep.c:
114 * block.h:
115 * block.c:
116 * bfd-target.h:
117 * bfd-target.c:
118 * bcache.h:
119 * bcache.c:
120 * ax.h:
121 * ax-general.c:
122 * ax-gdb.h:
123 * ax-gdb.c:
124 * avr-tdep.c:
125 * auxv.h:
126 * auxv.c:
127 * armnbsd-tdep.c:
128 * armnbsd-nat.c:
129 * arm-tdep.h:
130 * arm-linux-nat.c:
131 * arch-utils.h:
132 * charset.c:
133 * call-cmds.h:
134 * c-valprint.c:
135 * c-typeprint.c:
136 * c-lang.h:
137 * c-lang.c:
138 * buildsym.h:
139 * buildsym.c:
140 * bsd-uthread.h:
141 * bsd-uthread.c:
142 * bsd-kvm.h:
143 * bsd-kvm.c:
144 * breakpoint.h:
145 * core-regset.c:
146 * core-aout.c:
147 * completer.h:
148 * completer.c:
149 * complaints.h:
150 * complaints.c:
151 * command.h:
152 * coffread.c:
153 * coff-solib.h:
154 * coff-solib.c:
155 * coff-pe-read.h:
156 * coff-pe-read.c:
157 * cli-out.h:
158 * cli-out.c:
159 * charset.h:
160 * dink32-rom.c:
161 * dictionary.h:
162 * dictionary.c:
163 * demangle.c:
164 * defs.h:
165 * dcache.h:
166 * dcache.c:
167 * d10v-tdep.c:
168 * cpu32bug-rom.c:
169 * cp-valprint.c:
170 * cp-support.h:
171 * cp-support.c:
172 * cp-namespace.c:
173 * cp-abi.h:
174 * cp-abi.c:
175 * corelow.c:
176 * corefile.c:
177 * environ.c:
178 * elfread.c:
179 * dwarfread.c:
180 * dwarf2loc.c:
181 * dwarf2expr.h:
182 * dwarf2expr.c:
183 * dwarf2-frame.h:
184 * dwarf2-frame.c:
185 * dve3900-rom.c:
186 * dummy-frame.h:
187 * dummy-frame.c:
188 * dsrec.c:
189 * doublest.h:
190 * doublest.c:
191 * disasm.h:
192 * disasm.c:
193 * fork-child.c:
194 * findvar.c:
195 * fbsd-nat.h:
196 * fbsd-nat.c:
197 * f-valprint.c:
198 * f-typeprint.c:
199 * f-lang.h:
200 * f-lang.c:
201 * expression.h:
202 * expprint.c:
203 * exec.h:
204 * exec.c:
205 * exceptions.h:
206 * exceptions.c:
207 * event-top.h:
208 * event-top.c:
209 * event-loop.h:
210 * event-loop.c:
211 * gdb.c:
212 * gdb-stabs.h:
213 * gdb-events.h:
214 * gdb-events.c:
215 * gcore.c:
216 * frv-tdep.h:
217 * frv-tdep.c:
218 * frv-linux-tdep.c:
219 * frame.h:
220 * frame.c:
221 * frame-unwind.h:
222 * frame-unwind.c:
223 * frame-base.h:
224 * frame-base.c:
225 * gdb_vfork.h:
226 * gdb_thread_db.h:
227 * gdb_string.h:
228 * gdb_stat.h:
229 * gdb_regex.h:
230 * gdb_ptrace.h:
231 * gdb_proc_service.h:
232 * gdb_obstack.h:
233 * gdb_locale.h:
234 * gdb_dirent.h:
235 * gdb_curses.h:
236 * gdb_assert.h:
237 * gdbarch.sh:
238 * gdb.h:
239 * hpux-thread.c:
240 * hppabsd-nat.c:
241 * hppa-tdep.h:
242 * hpacc-abi.c:
243 * h8300-tdep.c:
244 * gregset.h:
245 * go32-nat.c:
246 * gnu-v3-abi.c:
247 * gnu-v2-abi.h:
248 * gnu-v2-abi.c:
249 * gnu-nat.h:
250 * glibc-tdep.c:
251 * gdbtypes.h:
252 * gdbcore.h:
253 * gdbcmd.h:
254 * i386nbsd-tdep.c:
255 * i386nbsd-nat.c:
256 * i386gnu-tdep.c:
257 * i386gnu-nat.c:
258 * i386fbsd-tdep.c:
259 * i386fbsd-nat.c:
260 * i386bsd-tdep.c:
261 * i386bsd-nat.h:
262 * i386bsd-nat.c:
263 * i386-tdep.h:
264 * i386-sol2-nat.c:
265 * i386-nto-tdep.c:
266 * i386-nat.c:
267 * i386-linux-tdep.h:
268 * i386-linux-tdep.c:
269 * i386-linux-nat.c:
270 * i386-cygwin-tdep.c:
271 * inf-ttrace.c:
272 * inf-ptrace.h:
273 * inf-ptrace.c:
274 * inf-loop.h:
275 * inf-loop.c:
276 * inf-child.h:
277 * inf-child.c:
278 * ia64-tdep.h:
279 * ia64-linux-nat.c:
280 * i387-tdep.h:
281 * i387-tdep.c:
282 * i386v4-nat.c:
283 * i386v-nat.c:
284 * i386obsd-tdep.c:
285 * i386obsd-nat.c:
286 * kod.c:
287 * jv-valprint.c:
288 * jv-typeprint.c:
289 * jv-lang.h:
290 * jv-lang.c:
291 * irix5-nat.c:
292 * iq2000-tdep.c:
293 * interps.h:
294 * interps.c:
295 * inftarg.c:
296 * inflow.h:
297 * inflow.c:
298 * inferior.h:
299 * infcmd.c:
300 * infcall.h:
301 * infcall.c:
302 * inf-ttrace.h:
303 * m32r-tdep.h:
304 * m32r-tdep.c:
305 * m32r-rom.c:
306 * m32r-linux-tdep.c:
307 * m32r-linux-nat.c:
308 * m2-valprint.c:
309 * m2-typeprint.c:
310 * m2-lang.h:
311 * m2-lang.c:
312 * lynx-nat.c:
313 * linux-thread-db.c:
314 * linux-nat.h:
315 * linespec.c:
316 * libunwind-frame.h:
317 * libunwind-frame.c:
318 * language.h:
319 * language.c:
320 * macroexp.c:
321 * macrocmd.c:
322 * m88kbsd-nat.c:
323 * m88k-tdep.h:
324 * m88k-tdep.c:
325 * m68klinux-tdep.c:
326 * m68klinux-nat.c:
327 * m68kbsd-tdep.c:
328 * m68kbsd-nat.c:
329 * m68k-tdep.h:
330 * m68k-tdep.c:
331 * mips-linux-nat.c:
332 * mips-irix-tdep.c:
333 * minsyms.c:
334 * memattr.h:
335 * memattr.c:
336 * mem-break.c:
337 * mdebugread.h:
338 * main.h:
339 * main.c:
340 * macrotab.h:
341 * macrotab.c:
342 * macroscope.h:
343 * macroscope.c:
344 * macroexp.h:
345 * nbsd-tdep.c:
346 * mt-tdep.c:
347 * monitor.h:
348 * monitor.c:
349 * mn10300-tdep.h:
350 * mn10300-tdep.c:
351 * mn10300-linux-tdep.c:
352 * mipsv4-nat.c:
353 * mipsread.c:
354 * mipsnbsd-tdep.h:
355 * mipsnbsd-tdep.c:
356 * mipsnbsd-nat.c:
357 * mips64obsd-tdep.c:
358 * mips64obsd-nat.c:
359 * mips-tdep.h:
360 * mips-mdebug-tdep.c:
361 * mips-linux-tdep.c:
362 * osabi.h:
363 * osabi.c:
364 * ocd.h:
365 * ocd.c:
366 * observer.c:
367 * objfiles.h:
368 * objfiles.c:
369 * objc-lang.h:
370 * objc-lang.c:
371 * objc-exp.y:
372 * nto-tdep.h:
373 * nto-tdep.c:
374 * nto-procfs.c:
375 * nlmread.c:
376 * nbsd-tdep.h:
377 * ppcobsd-tdep.c:
378 * ppcobsd-nat.c:
379 * ppcnbsd-tdep.h:
380 * ppcnbsd-tdep.c:
381 * ppcnbsd-nat.c:
382 * ppcbug-rom.c:
383 * ppc-tdep.h:
384 * ppc-sysv-tdep.c:
385 * ppc-linux-tdep.c:
386 * ppc-linux-nat.c:
387 * ppc-bdm.c:
388 * parser-defs.h:
389 * parse.c:
390 * p-valprint.c:
391 * p-typeprint.c:
392 * p-lang.h:
393 * p-lang.c:
394 * remote-fileio.h:
395 * remote-fileio.c:
396 * remote-est.c:
397 * remote-e7000.c:
398 * regset.h:
399 * regset.c:
400 * reggroups.h:
401 * reggroups.c:
402 * regcache.h:
403 * regcache.c:
404 * proc-why.c:
405 * proc-service.c:
406 * proc-events.c:
407 * printcmd.c:
408 * ppcobsd-tdep.h:
409 * sentinel-frame.h:
410 * sentinel-frame.c:
411 * scm-valprint.c:
412 * scm-tags.h:
413 * scm-lang.h:
414 * scm-lang.c:
415 * scm-exp.c:
416 * s390-tdep.h:
417 * rom68k-rom.c:
418 * remote.h:
419 * remote-utils.c:
420 * remote-st.c:
421 * remote-sim.c:
422 * remote-sds.c:
423 * remote-rdp.c:
424 * remote-rdi.c:
425 * remote-hms.c:
426 * sim-regno.h:
427 * shnbsd-tdep.h:
428 * shnbsd-tdep.c:
429 * shnbsd-nat.c:
430 * sh-tdep.h:
431 * serial.h:
432 * serial.c:
433 * ser-unix.h:
434 * ser-unix.c:
435 * ser-tcp.c:
436 * ser-pipe.c:
437 * ser-go32.c:
438 * ser-e7kpc.c:
439 * ser-base.h:
440 * ser-base.c:
441 * solib.c:
442 * solib-svr4.h:
443 * solib-svr4.c:
444 * solib-sunos.c:
445 * solib-som.h:
446 * solib-som.c:
447 * solib-pa64.h:
448 * solib-pa64.c:
449 * solib-osf.c:
450 * solib-null.c:
451 * solib-legacy.c:
452 * solib-irix.c:
453 * solib-frv.c:
454 * solib-aix5.c:
455 * sol-thread.c:
456 * sparc64-linux-tdep.c:
457 * sparc64-linux-nat.c:
458 * sparc-tdep.h:
459 * sparc-tdep.c:
460 * sparc-sol2-tdep.c:
461 * sparc-sol2-nat.c:
462 * sparc-nat.h:
463 * sparc-nat.c:
464 * sparc-linux-tdep.c:
465 * sparc-linux-nat.c:
466 * source.h:
467 * source.c:
468 * somread.c:
469 * solist.h:
470 * solib.h:
471 * std-regs.c:
472 * stack.h:
473 * stack.c:
474 * stabsread.h:
475 * sparcobsd-tdep.c:
476 * sparcnbsd-tdep.c:
477 * sparcnbsd-nat.c:
478 * sparc64obsd-tdep.c:
479 * sparc64nbsd-tdep.c:
480 * sparc64nbsd-nat.c:
481 * sparc64fbsd-tdep.c:
482 * sparc64fbsd-nat.c:
483 * sparc64-tdep.h:
484 * sparc64-tdep.c:
485 * sparc64-sol2-tdep.c:
486 * sparc64-nat.c:
487 * ui-file.c:
488 * typeprint.h:
489 * typeprint.c:
490 * tramp-frame.h:
491 * tramp-frame.c:
492 * trad-frame.h:
493 * trad-frame.c:
494 * tracepoint.h:
495 * top.c:
496 * tobs.inc:
497 * thread.c:
498 * terminal.h:
499 * target.h:
500 * symfile.h:
501 * stop-gdb.c:
502 * vaxbsd-nat.c:
503 * vax-tdep.h:
504 * vax-tdep.c:
505 * vax-nat.c:
506 * varobj.h:
507 * varobj.c:
508 * value.h:
509 * value.c:
510 * valprint.h:
511 * valprint.c:
512 * v850-tdep.c:
513 * uw-thread.c:
514 * user-regs.c:
515 * ui-out.h:
516 * ui-out.c:
517 * ui-file.h:
518 * xcoffsolib.h:
519 * xcoffsolib.c:
520 * wrapper.c:
521 * wince.c:
522 * wince-stub.h:
523 * wince-stub.c:
524 * vaxobsd-tdep.c:
525 * vaxnbsd-tdep.c:
526 * gdb_gcore.sh:
527 * copying.c:
528 * configure.ac:
529 * aclocal.m4:
530 * acinclude.m4:
531 * reply_mig_hack.awk:
532 * observer.sh:
533 * gdb_mbuild.sh:
534 * arm-linux-tdep.c:
535 * blockframe.c:
536 * dbug-rom.c:
537 * environ.h:
538 * dwarf2loc.h:
539 * gdb-events.sh:
540 * glibc-tdep.h:
541 * gdb_wait.h:
542 * gdbthread.h:
543 * i386-sol2-tdep.c:
544 * hppabsd-tdep.c:
545 * hppa-linux-nat.c:
546 * hppa-hpux-nat.c:
547 * ia64-linux-tdep.c:
548 * infptrace.c:
549 * linespec.h:
550 * maint.c:
551 * mips-mdebug-tdep.h:
552 * remote-m32r-sdi.c:
553 * s390-nat.c:
554 * rs6000-nat.c:
555 * remote-utils.h:
556 * sh3-rom.c:
557 * sh-linux-tdep.c:
558 * top.h:
559 * symtab.h:
560 * symmisc.c:
561 * symfile-mem.c:
562 * srec.h:
563 * user-regs.h:
564 * version.h:
565 * valarith.c:
566 * xstormy16-tdep.c:
567 * wrapper.h:
568 * Makefile.in:
569 * f-exp.y:
570 * cris-tdep.c:
571 * cp-name-parser.y:
572 * procfs.c:
573 * proc-utils.h:
574 * proc-flags.c:
575 * proc-api.c:
576 * p-exp.y:
577 * m68hc11-tdep.c:
578 * m2-exp.y:
579 * kod.h:
580 * kod-cisco.c:
581 * jv-exp.y:
582 * hppa-linux-tdep.c: Add (c) after Copyright. Update the FSF
583 address.
584
585 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
586
587 Second part of ms1 to mt renaming.
588 * mt-tdep.c (mt_arch_constants, mt_gdb_regnums): Rename, adjust.
589 (mt_register_name, mt_register_type, mt_register_reggroup_p,
590 mt_return_value, mt_skip_prologue, mt_breapoint_from_pc,
591 mt_pseudo_register_read, mt_pseudo_register_write, mt_frame_align,
592 mt_registers_info, mt_push_dummy_call, mt_unwind_cache,
593 mt_frame_unwind_cache, mt_unwind_pc, mt_unwind_dummy_id,
594 mt_frame_this_id, mt_frame_prev_register, mt_frame_base_address,
595 mt_frame_unwind, mt_frame_sniffer, mt_frame_base, mt_gdbarch_init,
596 _initialize_mt_tdep): Rename & adjust.
597
598 2005-12-13 Mark Kettenis <kettenis@gnu.org>
599
600 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_unwind_sniffer): Detect
601 export stub for signal trampoline as a signal trampoline too.
602
603 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Don't
604 set pcoqh to rp.
605
606 2005-12-13 Corinna Vinschen <vinschen@redhat.com>
607
608 * h8300-tdep.c (h8300_frame_prev_register): Change valuep type to
609 gdb_byte *.
610 (h8300_push_dummy_call): Change `padded' to gdb_byte.
611 (h8300_return_value): Change buffer types to gdb_byte.
612 (h8300h_return_value): Ditto.
613 (h8300_pseudo_register_read): Ditto.
614 (h8300_pseudo_register_write): Ditto.
615
616 2005-12-13 Corinna Vinschen <vinschen@redhat.com>
617
618 * v850-tdep.c (v850_frame_prev_register): Change valuep type to
619 gdb_byte *.
620
621 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
622
623 * configure.tgt: Replace ms1 arch with mt arch.
624 * config/mt: Renamed from ms1 dir. Update file names as needed.
625 * config/mt/mt.mt (TDEPFILES): Replace ms1 file with mt file.
626
627 2005-12-09 Randolph Chung <tausq@debian.org>
628
629 PR corefiles/2026
630 * hppa-hpux-tdep.c (hppa_hpux_core_osabi_sniffer): Check for HPUX ELF
631 core files.
632 (_initialize_hppa_hpux_tdep): Install sniffer for ELF core files.
633 * config/pa/hpux.mh: Compile corelow.o.
634
635 2005-12-09 Randolph Chung <tausq@debian.org>
636
637 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): New function.
638 (hppa64_push_dummy_call): If passing a function pointer, ensure
639 it is a function descriptor address instead of the function entry
640 point.
641
642 2005-12-09 Randolph Chung <tausq@debian.org>
643
644 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): New funtion.
645 (hppa_gdbarch_init): Set dwarf_reg_to_regnum and
646 dwarf2_reg_to_regnum methods.
647
648 2005-12-08 Kevin Buettner <kevinb@redhat.com>
649
650 * NEWS (Changes in GDB 6.4): Delete references indicating that
651 the following configurations have been removed: h8300*-*-*,
652 mn10300-*-*, and v850-*-*. These configurations had been
653 removed within the 6.4 development cycle, but were later
654 restored within the same cycle.
655
656 2005-12-08 Nathan Sidwell <nathan@codesourcery.com>
657
658 Add ms2 support.
659 * ms1-tdep.c (ms1_register_type): Check for ms2.
660 (ms1_breakpoint_from_pc): ms2 has a different break instruction.
661 (ms1_pseudo_register_read, ms1_pseudo_register_write,
662 ms1_registers_info): Add ms2.
663 * NEWS (Changes since GDB 6.4): Add ms2
664
665 2005-12-08 Randolph Chung <tausq@debian.org>
666
667 * somread.c (som_symfile_offsets): Iterate through number of sections
668 in addrs instead of objfile.
669
670 2005-12-07 Daniel Jacobowitz <dan@codesourcery.com>
671
672 * valops.c (value_struct_elt): Clarify error message.
673
674 2005-12-07 Jim Blandy <jimb@redhat.com>
675
676 * target.c (target_xfer_memory_partial): Doc fix.
677
678 * ax-general.c (ax_reqs): Check stack heights for backward jumps,
679 too. Correctly check height at target. Doc fixes.
680
681 2005-12-06 Michael Snyder <msnyder@redhat.com>
682
683 * cli/cli-decode.c (add_setshow_string_cmd): Indent.
684 (add_setshow_integer_cmd): Indent.
685
686 * inf-ptrace.c: Fix typos in comments.
687
688 2005-12-06 Serge Chatroux <serge.chatroux@st.com>
689
690 * mi/mi-interp.c (mi_interpreter_resume): Route target error
691 through the MI.
692
693 2005-12-04 Mark Kettenis <kettenis@gnu.org>
694
695 * amd64obsd-tdep.c: Include "regcache.h" and "bsd-uthread.h".
696 (amd64obsd_uthread_reg_offset): New variable.
697 (AMD64OBSD_UTHREAD_RSP_OFFSET): New define.
698 (amd64obsd_supply_uthread, amd64obsd_collect_uthread): New
699 functions.
700 (amd64obsd_init_abi): Set supply_uthread and collect_uthread.
701 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
702
703 2005-12-02 Andrew Stubbs <andrew.stubbs@st.com>
704
705 * breakpoint.c (BREAK_ARGS_HELP): New mecro.
706 (_initialize_breakpoint): Enhance break, tbreak, hbreak and thbreak
707 commands' help by adding more information and using BREAK_ARGS_HELP
708 to duplicate the common parts. Remove now-redundant cross-references.
709
710 2005-12-02 Andrew Stubbs <andrew.stubbs@st.com>
711
712 * value.c (init_if_undefined_command): New function.
713 (_initialize_values): Add command init-if-undefined.
714 * NEWS (Changes since GDB 6.3): Rename to 'Changes in GDB 6.4'.
715 (Changes since GDB 6.4): New section.
716 Mention new command init-if-undefined.
717
718 2005-12-02 Andrew Stubbs <andrew.stubbs@st.com>
719
720 * symfile.c (symbol_file_clear): Test symfile_objfile is not NULL
721 before dereferencing it.
722 Gettextize the query.
723
724 2005-12-02 Joel Brobecker <brobecker@adacore.com>
725
726 GDB 6.4 released from GDB 6.4 branch.
727
728 2005-12-01 Nathan Sidwell <nathan@codesourcery.com>
729
730 * ms1-tdep.c (ms1_register_name): Const qualify array.
731 (ms1_registers_info): Use gdb_byte.
732 (ms1_push_dummy_call): Likewise.
733 (ms1_gdbarch_init): Remove illformed nested prototype.
734
735 2005-11-25 Christophe Lyon <christophe.lyon@st.com>
736
737 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
738 DWARF2_FRAME_REG_CFA_OFFSET.
739 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
740 DWARF2_FRAME_REG_CFA_OFFSET.
741
742 2005-11-28 Mark Mitchell <mark@codesourcery.com>
743
744 * remote-sim.c (gdbsim_wait): Pass target signal numbers to
745 sim_resume. Expect target signal numbers from sim_stop_reason.
746
747 2005-11-27 Christopher Faylor <cgf@timesys.com>
748
749 * win32-nat.c (env_sort): New function.
750 (win32_create_inferior): Rename env to in_env. Sort environment before
751 handing it off to CreateProcess.
752 (win32_current_sos): Quiet a compiler warning.
753
754 2005-11-25 Andrew Stubbs <andrew.stubbs@st.com>
755
756 * event-top.h (async_init_signals): Add SIGTERM handler.
757 (handle_sigterm): New function.
758 * event-top.h (handle_sigterm): New prototype.
759
760 2005-11-25 Andrew Stubbs <andrew.stubbs@st.com>
761
762 * cli-decode.c (find_command_name_length): New function.
763 (lookup_cmd_1): Replace loop reading command name with
764 find_command_name_length().
765 (lookup_cmd): Likewise.
766 (lookup_cmd_composition): Likewise.
767
768 2005-11-25 Frederic Riss <frederic.riss@st.com>
769
770 * dwarf2-frame.c (execute_cfa_program): Don't access past the
771 allocated dwarf2_frame_state.initial.regs.
772
773 2005-11-25 Frederic Riss <frederic.riss@st.com>
774
775 * MAINTAINERS (Write After Approval): Add myself to the list.
776
777 2005-11-23 Andrew Stubbs <andrew.stubbs@st.com>
778
779 * sh-tdep.c (do_fv_register_info, do_dr_register_info): Delete function.
780 (do_bank_register_info, do_bank_register_info): Likewise.
781 (sh_print_pseudo_register, sh_do_fp_register): Likewise.
782 (sh_do_register, sh_print_register, sh_print_registers_info): Likewise.
783 (sh_gdbarch_init): Remove call to set_gdbarch_print_registers_info().
784
785 2005-11-22 Joel Brobecker <brobecker@adacore.com>
786
787 * top.c (print_gdb_version): Update copyright year.
788
789 2005-11-20 Mark Kettenis <kettenis@gnu.org>
790
791 * inf-ptrace.c (inf_ptrace_xfer_partial): Use PIOD_WRITE_I instead
792 of PIOD_WRITE_D.
793
794 2005-11-19 Jim Blandy <jimb@redhat.com>
795
796 * tracepoint.c (memrange_absolute): New enum constant.
797 (struct memrange, memrange_cmp, add_memrange, collect_symbol,
798 stringify_collection_list, encode_actions): Use it instead of '-1'
799 to indicate an fixed-address memory range.
800 (Suggested by Eli Zaretskii.)
801
802 * tracepoint.c (stringify_collection_list): Indicate absolute
803 memory ranges by using "-1" as the memory range's base register
804 number, not "FFFFFFFF".
805
806 2005-11-19 Randolph Chung <tausq@debian.org>
807
808 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Remove extra add for
809 DW_OP_fbreg. Handle DW_OP_breg0 through DW_OP_breg31. Print
810 DWARF opcode for unsupported case.
811
812 2005-11-19 Randolph Chung <tausq@debian.org>
813
814 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Use
815 HPPA_HPUX_SS_* constants. Ensure "off" is large enough to hold
816 64-bit offset. Set proper signal context offset for 64-bit
817 programs. Set pc properly for signal frames.
818
819 2005-11-19 Randolph Chung <tausq@debian.org>
820
821 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_unwind_sniffer): Rely on the
822 unwind record to determine a signal frame, instead of hardcoding
823 a function name.
824
825 2005-11-19 Randolph Chung <tausq@debian.org>
826
827 * hppa-tdep.c (skip_prologue_hard_way): Add one more insn pattern
828 for "std rp,-0x10(sp)".
829 (hppa_frame_cache): Likewise.
830 (hppa_fallback_frame_cache): Likewise.
831
832 2005-11-19 Randolph Chung <tausq@debian.org>
833
834 * hppa-tdep.c (hppa_frame_cache): Reformat code and enhance
835 debugging.
836
837 2005-11-18 Jim Blandy <jimb@redhat.com>
838
839 * tracepoint.c (struct memrange, collect_symbol): Doc fix.
840
841 2005-11-18 Andrew Stubbs <andrew.stubbs@st.com>
842
843 * mi/mi-main.c (mi_load_progress): Ensure the use of the correct mi
844 uiout for the duration of the function.
845
846 2005-11-18 Nick Roberts <nickrob@snap.net.nz>
847
848 * mi/gdb-mi.el (gdb-source-file-list): Declare.
849 (gdbmi): Bind new functions.
850 (gdbmi-var-list-children-handler, gdbmi-var-list-children-regexp):
851 Handle string expressions properly. Move "type" field into regexp.
852 (gdbmi-var-update-regexp, gdbmi-var-update-handler): Handle string
853 expressions properly. Update speedbar.
854 (gdbmi-breakpoints-buffer, gdb-stack-buffer, gdb-locals-buffer)
855 (gdb-registers-buffer): Use def-gdb-auto-update-trigger instead of
856 def-gdb-auto-updated-buffer as handlers is defined explicitly.
857 (gdb-stack-list-locals-handler): Handle string expressions properly.
858 (gdb-data-list-register-values-handler)
859 (gdb-data-list-register-values-custom): Fontify buffer.
860
861 2005-11-17 Daniel Jacobowitz <dan@codesourcery.com>
862
863 * version.in: Update to 6.4.50.
864
865 2005-11-16 Andrew Stubbs <andrew.stubbs@st.com>
866
867 * NEWS (6.4): Mention $argc.
868
869 2005-11-15 Andrew Stubbs <andrew.stubbs@st.com>
870
871 * NEWS: Add --batch-silent, --return-child-result, and --eval-command
872 options to the 6.4 section.
873
874 2005-11-15 Andrew Stubbs <andrew.stubbs@st.com>
875
876 * cli/cli-script.c: Include gdb_assert.h.
877 (locate_arg): Detect $argc.
878 (insert_args): Substitute $argc.
879 * Makefile.in (cli-script.o): Add dependency on gdb_assert.h.
880
881 2005-11-14 James E Wilson <wilson@specifix.com>
882
883 PR 2024
884 * dwarf2loc.c (dwarf_expr_frame_base): Use get_frame_address_in_block
885 instead of get_frame_pc.
886 (loclist_read_variable): Likewise.
887
888 2005-11-14 Andrew Stubbs <andrew.stubbs@st.com>
889
890 * MAINTAINERS (Write After Approval): Add myself to the list.
891
892 2005-11-14 Andrew Stubbs <andrew.stubbs@st.com>
893
894 * thread.c (_initialize_thread): Correct the 'thread apply' help
895 message.
896
897 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
898
899 * elfread.c (elf_symtab_read): Remove if (1) and reindent.
900
901 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
902
903 * arm-linux-tdep.c (eabi_linux_arm_le_breakpoint)
904 (eabi_linux_arm_be_breakpoint): New variables.
905 (arm_linux_init_abi): Use them.
906
907 2005-11-11 Michael Snyder <msnyder@redhat.com>
908
909 * inftarg.c (child_wait): Delete unused local variable.
910
911 2005-11-11 Stephane Carrez <stcarrez@nerim.fr>
912
913 PR tui/1995
914 * tui/tui-command.c (tui_dispatch_ctrl_char): Handle CTRL-L even if the
915 focus is on the command window.
916
917 2005-11-11 Stephane Carrez <stcarrez@nerim.fr>
918
919 * tui/tui-win.c (tui_update_gdb_sizes): Use tui_term_width() and
920 tui_term_height() to restore the terminal size when leaving the
921 TUI mode.
922
923 2005-11-11 Stephane Carrez <stcarrez@nerim.fr>
924
925 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Use gdb_byte
926 for buffers.
927 (m68hc11_pseudo_register_read): Likewise.
928 (m68hc11_return_value): Likewise.
929 (m68hc11_frame_prev_register): Likewise.
930 (m68hc11_frame_align): Remove as its seems no longer necessary.
931 (m68hc11_gdbarch_init): Don't install frame_align handler.
932 (m68hc11_scan_prologue): Fix crash that occurred when called from
933 m68hc11_skip_prologue
934
935 2005-11-10 Mark Kettenis <kettenis@gnu.org>
936
937 * MAINTAINERS: Mark m68k-elf, sparc-elf and vax-netbsd as no
938 longer broken.
939
940 2005-11-09 Randolph Chung <tausq@debian.org>
941
942 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
943 hppa_linux_{store,fetch}_inferior_registers instead of
944 arm_linux_{store,fetch}_inferior_registers.
945
946 2005-11-08 Kei Sakamoto <sakamoto.kei@renesas.com>
947
948 * remote-m32r-sdi.c: Update copyright years.
949 (m32r_resume): Write DBT at word-aligned addresses.
950 (m32r_wait): Use SDI_WRITE_MEMORY to remove DBT.
951
952 2005-11-08 Kei Sakamoto <sakamoto.kei@renesas.com>
953
954 * m32r-linux-tdep.c (linux_sigtramp_code): Use 'gdb_byte' instead
955 of 'unsigned char'.
956 (m32r_linux_sigtramp_start): Likewise.
957 (linux_rt_sigtramp_code): Likewise.
958 (m32r_linux_rt_sigtramp_start): Likewise.
959 (m32r_linux_sigtramp_frame_prev_register): Use 'gdb_byte *' instead
960 of 'void *'.
961 * m32r-tdep.c (m32r_memory_insert_breakpoint): Use 'gdb_byte'
962 instead of 'char'.
963 (m32r_memory_remove_breakpoint): Likewise.
964 (m32r_breakpoint_from_pc): Likewise.
965 (m32r_store_return_value): Likewise.
966 (decode_prologue): Likewise.
967 (m32r_push_dummy_call): Likewise.
968 (m32r_return_value): Use 'gdb_byte *' instead of 'void *'.
969 * remote-m32r-sdi.c (m32r_xfer_memory): Use 'gdb_byte' instead of
970 'char'.
971
972 2005-11-07 Kevin Buettner <kevinb@redhat.com>
973
974 * ia64-tdep.c (floatformat_valid): Change type of `from' from
975 `const char *' to `const void *'.
976
977 2005-11-07 Kevin Buettner <kevinb@redhat.com>
978
979 * frv-linux-tdep.c (frv_linux_sigtrapm_frame_prev_register): Change
980 type of `valuep' argument to `gdb_byte *'.
981 * frv-tdep.c (frv_pseudo_register_write): Change type of `buffer'
982 argument to `gdb_byte *'.
983 (frv_extract_return_value): Change type of `valbuf' argument to
984 `gdb_byte *'.
985 (frv_store_return_value): Likewise.
986 (frv_frame_prev_register): Change type of `bufferp' argument to
987 `gdb_byte *'
988 * solib-frv.c (ext_Elf32_Half, ext_Elf32_Addr, ext_Elf32_Word)
989 (ext_ptr): Change base type from `unsigned char' to `gdb_byte'. Adjust
990 calls to extract_unsigned_integer which use struct members declared
991 with these array types to not try to take the address of those
992 members.
993 (fetch_loadmap, frv_current_sos): Change cast in target_read_memory()
994 calls from `char *' to `gdb_byte *'.
995 (lm_base): Change base type of `buf' from `char' to `gdb_byte'.
996 (enable_break2): Change type of `buf' from `char *' to `gdb_byte *'.
997 Change base type of `addr_buf' from `char' to `gdb_byte'.
998 (find_canonical_descriptor_in_load_object): Change base type of `buf'
999 from `char' to `gdb_byte'.
1000
1001 2005-11-07 Paul Gilliam <pgilliam@us.ibm.com
1002
1003 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Copy code from
1004 ppc_sysv_abi_return_value() to handle a vector return value.
1005
1006 2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
1007
1008 * main.h (return_child_result, return_child_result_value): Declare.
1009 * infrun.c: Include main.h.
1010 (print_stop_reason): Remove declaration of return_child_result_value.
1011 * top.c: Include main.h.
1012 (quit_force): Remove declarations of return_child_result_value and
1013 return_child_result.
1014 * Makefile.in (top.o, infrun.o): Add main.h to dependencies.
1015
1016 2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
1017
1018 * Makefile.in (tui-winsource.o): Add gdb_assert.h to dependencies.
1019
1020 2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
1021
1022 * main.c (captured_main): Define struct cmdarg. Change type of cmdarg.
1023 Add new options --eval-command and alias -ex.
1024 Adjust --command to use the new struct cmdarg.
1025 Execute commands given with --eval-command.
1026 (print_gdb_help): Add new options --eval-command, -ex and mention -x.
1027
1028 2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
1029
1030 * main.c (main): Use INTERP_TUI instead of "tui".
1031 Set interpreter to INTERP_INSIGHT when '-w' given.
1032 * interps.h (INTERP_INSIGHT): New define.
1033 * tui/tui-interp.c (_initialize_tui_interp): Use INTERP_TUI instead
1034 of "tui".
1035
1036 2005-11-04 Andrew Stubbs <andrew.stubbs@st.com>
1037
1038 * infrun.c (print_stop_reason): Set return_child_result_value on exit.
1039 * main.c (return_child_result): New variable.
1040 (return_child_result_value): Likewise.
1041 (captured_main): Add option --return-child-result.
1042 Replace call to target_detach and exit (in batch mode) with quit_force.
1043 (print_gdb_help): Add option --return-child-result.
1044 * top.c (quit_force): Return child result if appropriate.
1045
1046 2005-11-03 Wu Zhou <woodzltc@cn.ibm.com>
1047
1048 Checked in by Elena Zannoni <ezannoni@redhat.com>
1049
1050 * dwarf2read.c (read_structure_type): Add IBM XL C++
1051 specific code to set TYPE_VPTR_FIELDNO and TYPE_VPTR_BASETYPE
1052 of a virtual class if a field named "__vfp" is found.
1053
1054 2005-11-03 Jim Blandy <jimb@redhat.com>
1055
1056 Checked in by Elena Zannoni <ezannoni@redhat.com>
1057
1058 * dwarf2read.c (file_full_name): Cope with file numbers that are
1059 out of range for the given line header.
1060
1061 2005-11-03 Daniel Jacobowitz <dan@codesourcery.com>
1062
1063 Checked in by Elena Zannoni <ezannoni@redhat.com>
1064
1065 * elfread.c (elf_symtab_read): Add number_of_symbols and
1066 symbol_table as arguments. Do not load the symbol table
1067 here.
1068 (elf_symfile_read): Load the static and dynamic symbol tables
1069 here, before calling elf_symtab_read. Also load any synthetic
1070 symbols and process those.
1071
1072 2005-11-03 Andrew Cagney <cagney@gnu.org>
1073
1074 Checked in by Elena Zannoni <ezannoni@redhat.com>
1075
1076 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Handle DW_OP_piece
1077 reads.
1078
1079 2006-11-03 Daniel Jacobowitz <dan@codesourcery.com>
1080
1081 * linux-nat.c (linux_nat_resume): Add more debugging messages. Do
1082 not short-circuit resuming all threads if the signal will be ignored
1083 in linux_nat_wait.
1084
1085 2005-11-02 Andrew Stubbs <andrew.stubbs@st.com>
1086
1087 * monitor.c (monitor_xfer_memory): Change char to gdb_byte.
1088 (monitor_insert_breakpoint): Likewise.
1089 (monitor_remove_breakpoint): Likewise.
1090 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
1091 * sh-tdep.c (sh_return_value_nofpu): Change void to gdb_byte.
1092 (sh_return_value_fpu): Likewise.
1093 (sh_pseudo_register_read): Likewise.
1094 (sh_pseudo_register_write): Likewise.
1095 (sh_frame_prev_register): Likewise.
1096 * sh64-tdep.c (sh64_extract_return_value): Change char to gdb_byte.
1097 (sh64_return_value): Change void to gdb_byte.
1098 (sh64_pseudo_register_read): Likewise.
1099 (sh64_pseudo_register_write): Likewise.
1100 (sh64_frame_prev_register): Likewise.
1101
1102 2005-11-01 Joel Brobecker <brobecker@adacore.com>
1103
1104 * event-top.c (gdb_setup_readline): Add missing type in extern
1105 declaration.
1106
1107 2005-11-01 Paul Gilliam <pgilliam@us.ibm.com>
1108
1109 * rs6000-tdep.c (rs6000_gdbarch_init): On GNU/Linux, assume that
1110 bfd_mach_ppc64 has altivec unit, just like bfd_mach_ppc.
1111
1112 2005-11-01 Andrew Stubbs <andrew.stubbs@st.com>
1113
1114 * tui/tui-data.h (tui_line_or_address): Encapsulate the union in a
1115 struct with a tag.
1116 (tui_source_element, tui_source_info): Update.
1117 * tui/tui-disasm.c, tui/tui-source.c: Update to use the tagged union.
1118 * tui/tui-source.h, tui/tui-stack.c, tui/tui-win.c: Likewise.
1119 * tui/tui-winsource.c, tui/tui-data.c, tui/tui-layout.c: Likewise.
1120 * tui/tui-winsource.h: Likewise.
1121
1122 2005-11-01 Christopher Faylor <cgf@timesys.com>
1123
1124 * win32-nat.c (CYGWIN_SIGNAL_STRING): Delete.
1125 (_CYGWIN_SIGNAL_STRING): Define if not already defined in cygwin.h.
1126 (win32_add_thread): Use XZALLOC rather than xmalloc/memset.
1127 (register_loaded_dll): Ditto.
1128 (handle_load_dll): Call solib_add here.
1129 (handle_unload_dll): Ditto.
1130 (info_dll_command): Delete.
1131 (handle_output_debug_string): Use official _CYGWIN_SIGNAL_STRING.
1132 (win32_current_sos): Duplicate table to pass off to caller rather than
1133 deleting our version.
1134 (set_win32_aliases): New function.
1135 (_initialize_win32_nat): Remove local handling of "info shared". Set
1136 deprecated_init_ui_hook to allow late setting of "info dll" alias.
1137
1138 2005-11-01 Andrew Stubbs <andrew.stubbs@st.com>
1139
1140 * event-top.c (gdb_setup_readline): Don't set gdb_stdout when
1141 --batch-silent option was given.
1142 * main.c (batch_silent): New variable.
1143 (captured_main): Add new option --batch-silent.
1144 (print_gdb_help): Likewise.
1145
1146 2005-11-01 Mark Kettenis <kettenis@gnu.org>
1147
1148 * NEWS: Mention VAX floating point support.
1149
1150 2005-10-31 Christopher Faylor <cgf@timesys.com>
1151
1152 * win32-nat.c (get_relocated_section_addrs): Reinstate.
1153 (solib_symbols_add): New function.
1154 (lm_info): Remove end_addr field.
1155 (register_loaded_dll): Don't try to find end_addr since gdb will do
1156 this automatically now. Make so_original_name == so_name for now.
1157 Eliminate strcpy by using so_name directly. Read in symbols if new
1158 paramater "readsyms" is true.
1159 (handle_load_dll): Pass auto_solib_add to register_loaded_dll to
1160 control when symbols should be read.
1161 (win32_free_so): Don't free objfile here.
1162 (win32_create_inferior_hook): New function.
1163 (handle_unload_dll): Remove left-over cruft.
1164 (win32_special_symbol_handling): New (dummy) function.
1165 (map_single_dll_code_section): Reinstate.
1166 (dll_code_sections_add): Reinstate.
1167 (core_section_load_dll_symbols): Reinstate. Don't issue an error on
1168 duplicate attempts to read same dll. Make sure that UNIX-like name is
1169 used to register DLL.
1170 (win32_current_sos): Handle core files. Reset private list before
1171 passing start of list pointer to gdb.
1172 (init_win32_ops): Fill out (currently unused)
1173 solib_create_inferior_hook. Fill out special_symbol_handling.
1174 * config/i386/tm-cygwin.h: Remove most special solib stuff.
1175
1176 2005-10-31 Christopher Faylor <cgf@timesys.com>
1177
1178 * win32-nat.c: Remove comment intended only for debugging.
1179
1180 2005-11-01 Mark Kettenis <kettenis@gnu.org>
1181
1182 * doublest.c (floatformat_normalize_byteorder): Handle
1183 floatformat_vax.
1184 (convert_doublest_to_floatformat): Use
1185 floatformat_normalize_byteorder to swap bytes if necessary.
1186 * vax-tdep.c: Include floatformat.h.
1187 (vax_gdbarch_init): Set float_format, double_format,
1188 long_double_format and long_double_bit.
1189 * Makefile.in (vax-tdep.o): Update dependencies.
1190
1191 2005-10-31 Christopher Faylor <cgf@timesys.com>
1192
1193 Change child_ to win32_ throughout.
1194 * win32-nat.c (win32_ops): New variable.
1195 (win32_so_ops): Ditto.
1196 (psapi_get_dll_name): Make function static.
1197 (struct so_stuff): Delete.
1198 (struct lm_info): New struct.
1199 (solib_start, solib_end): Redefine as struct so_list.
1200 (safe_symbol_file_add_stub): Use so_list rather than so_stuff.
1201 (register_loaded_dll): Ditto. Special-case ntdll.dll. Fill in lm_info
1202 field of so_list with information previously stored in so_stuff.
1203 (get_image_name): Make function static.
1204 (max_dll_name_len): Make variable static.
1205 (win32_free_so): New function.
1206 (win32_current_sos): Ditto.
1207 (win32_relocate_section_addresses): Ditto.
1208 (handle_unload_dll): Use so_list rather than so_stuff. Call free_so to
1209 delete shared library.
1210 (solib_address): Delete function.
1211 (child_solib_loaded_library_pathname): Ditto.
1212 (win32_clear_solib): Rename from child_clear_solibs. Use so_list
1213 rather than so_stuff. Just clear win32-specific stuff.
1214 (get_relocated_section_addrs): Delete.
1215 (solib_symbols_add): Ditto.
1216 (info_dll_command): Make static. Use lm_info field from so_list to
1217 retrieve load address.
1218 (fake_create_process): Make function static.
1219 (win32_xfer_memory): Ditto.
1220 (win32_kill_inferior): Ditto.
1221 (win32_resume): Ditto.
1222 (cygwin_pid_to_str): Ditto.
1223 (do_initial_win32_stuff): Use win32_ops rather than
1224 deprecated_child_ops.
1225 (child_detach): Ditto.
1226 (win32_mourn_inferior): Ditto.
1227 (_initialize_win32_nat): Ditto.
1228 (init_win32_ops): Ditto. Fill out win32_so_ops and set
1229 current_target_so_ops to win32_so_ops.
1230 (core_dll_symbols_add): Delete.
1231 (map_single_dll_code_section): Ditto.
1232 (dll_code_sections_add): Ditto.
1233 (core_section_load_dll_symbols): Ditto.
1234 (child_solib_add): Ditto.
1235
1236 2005-10-31 Andrew Stubbs <andrew.stubbs@st.com>
1237
1238 * tui/tui-command.c (tui_dispatch_ctrl_char): Test output of
1239 getenv() before using it.
1240
1241 2005-10-29 Mark Kettenis <kettenis@gnu.org>
1242
1243 * hppa-tdep.h (HPPA_INSN_SIZE): New define.
1244 * hppa-hpux-tdep.c (hppa_hpux_search_pattern)
1245 (hppa64_hpux_search_dummy_call_sequence): Rewrite to avoid
1246 assumption on sizeof(unsigned).
1247
1248 * inf-ttrace.c (inf_ttrace_wait): Comment out TARGET_WAITKIND_EXEC
1249 code; return TARGET_WAITKIND_STOPPED instead.
1250
1251 2005-10-28 Mark Kettenis <kettenis@gnu.org>
1252
1253 * ppc-tdep.h (PPC_INSN_SIZE): Define.
1254
1255 * inf-ttrace.c (inf_ttrace_mourn_inferior): Remove redundant cast.
1256 (inf_ttrace_kill): Renamed from inf_ttrace_kill_inferior.
1257 (inf_ttrace_target): Resort assignments.
1258
1259 2005-10-28 Nick Roberts <nickrob@snap.net.nz>
1260
1261 * mi/gdb-mi.el: Sync with Emacs 22.0.50.
1262
1263 2005-10-25 Andreas Schwab <schwab@suse.de>
1264
1265 * regformats/reg-ia64.dat: Remove NAT registers.
1266
1267 2005-10-20 Mark Kettenis <kettenis@gnu.org>
1268
1269 * rs6000-tdep.c (info_powerpc_cmdlist): Remove variable.
1270 (rs6000_info_powerpc_command): Remove function.
1271
1272 2005-10-21 Andreas Schwab <schwab@suse.de>
1273
1274 * dwarf2read.c (isreg): Removed.
1275 (decode_locdesc): Don't set it.
1276
1277 2005-10-20 Joel Brobecker <brobecker@adacore.com>
1278
1279 * Makefile.in (YYFILES): Add ada-lex.c
1280
1281 2005-10-17 Jim Blandy <jimb@redhat.com>
1282
1283 * dwarf2expr.c (dwarf_expr_fetch): Use correct comparison to
1284 detect stack underflow.
1285
1286 2005-10-14 Paul Gilliam <pgilliam@us.ibm.com>
1287
1288 * rs6000-tdep.c (rs6000_register_reggroup_p): Add vscr to test for
1289 vector registers.
1290
1291 2005-10-13 Andreas Schwab <schwab@suse.de>
1292
1293 * Makefile.in (linux-thread-db.o): Depend on $(gdbcore_h).
1294
1295 * linux-thread-db.c (enable_thread_event): Extend pointer value as
1296 specified by target.
1297 (thread_db_get_thread_local_address): Likewise.
1298
1299 2005-10-09 Joel Brobecker <brobecker@adacore.com>
1300
1301 * i386-tdep.c (i386_reg_struct_return_p): Allow array types as well.
1302 (i386_return_value): Add handling for functions that return array
1303 types.
1304
1305 2005-10-09 Joel Brobecker <brobecker@adacore.com>
1306
1307 * ada-valprint.c (print_optional_low_bound): Handle properly
1308 cases where the array index type is a TYPE_CODE_RANGE.
1309
1310 2005-10-09 Joel Brobecker <brobecker@adacore.com>
1311
1312 * valprint.c (val_print_array_elements): Check array size before
1313 computing its low bound. If zero, then use a default bound of zero.
1314
1315 2005-10-06 Alan Modra <amodra@bigpond.net.au>
1316
1317 PR 1659
1318 * rs6000-tdep.c (rs6000_push_dummy_call): Correct size of
1319 backchain write.
1320 (rs6000_convert_from_func_ptr_addr): Correct comment.
1321
1322 2005-10-03 Joel Brobecker <brobecker@adacore.com>
1323
1324 * MAINTAINERS: Add section for release management.
1325
1326 2005-10-03 Joel Brobecker <brobecker@adacore.com>
1327
1328 * NEWS: Add entry for new "set print array-indexes" command.
1329
1330 2005-10-03 Joel Brobecker <brobecker@adacore.com>
1331
1332 * language.h (language_defn): New field la_print_array_index.
1333 (LA_PRINT_ARRAY_INDEX): New macro.
1334 (default_print_array_index): Add declaration.
1335 * language.c (default_print_array_index): new function.
1336 (unknown_language): Add value for new field.
1337 (auto_language): Likewise.
1338 (local_language): Likewise.
1339 * ada-lang.c (ada_print_array_index): New function.
1340 (ada_language_defn): Add value for new field.
1341 * c-lang.c (c_language_defn): Likewise.
1342 (cpluc_language_defn): Likewise.
1343 (asm_language_defn): Likewise.
1344 (minimal_language_defn): Likewise.
1345 * f-lang.c (f_language_defn): Likewise.
1346 * jv-lang.c (java_language_defn): Likewise.
1347 * m2-lang.c (m2_language_defn): Likewise.
1348 * objc-lang.c (objc_language_defn): Likewise.
1349 * p-lang.c (pascal_language_defn): Likewise.
1350 * scm-lang.c (scm_language_defn): Likewise.
1351 * valprint.h (print_array_indexes_p): Add declaration.
1352 (get_array_low_bound): Add declaration.
1353 (maybe_print_array_index): Add declaration.
1354 * valprint.c (print_array_indexes): New static variable.
1355 (show_print_array_indexes): New function.
1356 (print_array_indexes_p): New function.
1357 (get_array_low_bound): New function.
1358 (maybe_print_array_index): New function.
1359 (val_print_array_elements): Print the index of each element if
1360 requested by the user.
1361 (_initialize_valprint): Add new array-indexes "set/show print" command.
1362 * ada-valprint.c (print_optional_low_bound): Replace extracted code
1363 by call to ada_get_array_low_bound_and_type(). Stop printing the low
1364 bound if indexes will be printed for all elements of the array.
1365 (val_print_packed_array_elements): Print the index of each element
1366 of the array if necessary.
1367
1368 2005-10-03 Joel Brobecker <brobecker@adacore.com>
1369
1370 * hppa-tdep.c (read_unwind_info): Fix typo in comment.
1371
1372 2005-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1373
1374 * gdb_gcore.sh: Use a temporary file. Use gdb from $PATH.
1375
1376 2005-09-29 Andreas Schwab <schwab@suse.de>
1377
1378 PR threads/2015
1379 * infrun.c (adjust_pc_after_break): Don't use the state from a
1380 non-matching thread context.
1381
1382 2005-09-29 Daniel Jacobowitz <dan@codesourcery.com>
1383
1384 * rs6000-tdep.c (rs6000_frame_cache): Handle misdetected frameless
1385 functions.
1386
1387 2005-09-29 Nick Roberts <nickrob@snap.net.nz>
1388
1389 * annotate.c (breakpoints_changed, annotate_frames_invalid)
1390 (_initialize_annotate): Print breakpoints-invalid and
1391 frames-invalid for level 2 annotations only.
1392
1393 2005-09-28 Daniel Jacobowitz <dan@codesourcery.com>
1394
1395 * infrun.c (init_execution_control_state): Initialize
1396 ecs->another_trap.
1397
1398 2005-09-28 Nick Roberts <nickrob@snap.net.nz>
1399
1400 * Makefile.in (TAGS): Put DEPFILES back and add as a dependency.
1401
1402 2005-09-26 Nick Roberts <nickrob@snap.net.nz>
1403
1404 * Makefile.in (HFILES_NO_SRCDIR): Remove minimon.h, symfile-mem.h.
1405 (ALLDEPFILES) Correct typo amdfbsd-nat.c -> amd64fbsd-nat.c.
1406 Remove irix4-nat.c, m3-nat.c, mipsm3-nat.c, ns32k-tdep.c
1407 symm-tdep.c and symm-nat.c.
1408 (TAGFILES_NO_SRCDIR): Add CONFIG_SRCS.
1409 (DEPFILES): Remove CONFIG_OBS and include it explicitly where
1410 needed.
1411
1412 2005-09-26 Jan Beulich <jbeulich@novell.com>
1413
1414 * MAINTAINERS (Write After Approval): Add myself.
1415
1416 2005-09-26 Jan Beulich <jbeulich@novell.com>
1417
1418 * amd64-tdep.h (AMD64_FCTRL_REGNUM, AMD64_FSTAT_REGNUM,
1419 AMD64_MXCSR_REGNUM): New.
1420 * amd64-tdep.c (amd64_dwarf_regmap): Add eflags, selector regs,
1421 mxcsr, fp control and status words.
1422 * i386-tdep.c (): Add selector regs, mxcsr, fp control and status
1423 words.
1424
1425 2005-09-26 Paul Brook <paul@codesourcery.com>
1426
1427 * arm-tdep.c (arm_type_align): New function.
1428 (arm_push_dummy_call): Use it. Ensure proper argument alignment.
1429 (arm_extract_struct_value_address): Remove.
1430 (arm_use_struct_convention): Rename...
1431 (arm_return_in_memory): ... To this. Return nonzero for all small
1432 aggregates under the EABI.
1433 (arm_return_value): New function.
1434 (arm_gdbarch_init): Default for VFP float model for EABI binaries.
1435 Use set_gdbarch_return_value instead of obsolete functions.
1436
1437 2005-09-21 Mark Kettenis <kettenis@gnu.org>
1438
1439 * mips-tdep.c (n32n64_floatformat_always_valid): Use 'const void
1440 *' for second argument instead of 'const char *'.
1441
1442 2005-09-20 Paul Gilliam <pgilliam@us.ibm.com>
1443
1444 * gdb.arch/altivec-abi.exp: Elide the 'in' from what's expected
1445 after a 'finish' command.
1446
1447 2005-09-20 Wu Zhou <woodzltc@cn.ibm.com>
1448
1449 * c-exp.y (parse-number): Modify the float parsing logic to let it
1450 recognize a suffix.
1451
1452 2005-09-20 Wu Zhou <woodzltc@cn.ibm.com>
1453
1454 * expression.h (enum exp_opcode): Fix a format error of a comment.
1455
1456 2005-09-20 Wu Zhou <woodzltc@cn.ibm.com>
1457
1458 * expression.h (enum exp_opcode): Add a new operator for F90
1459 subrange.
1460 * f-lang.h (enum f90_range_type): New enumeration type to identify
1461 F90 subrange type.
1462 * f-exp.y (yyparse): Add support for parsing F90 subrange and
1463 change substring parsing to subrange parsing.
1464 * parse.c (operator_length_standard): Set the operator length
1465 and args number for OP_F90_RANGE.
1466 * eval.c (evaluate_subexp_standard): Add code to evaluate F90
1467 array section and substring.
1468 (value_f90_subarray): New function to evaluate F90 array section.
1469 (evaluate_subexp_standard): Delete label op_f77_substr and its code
1470 because the logic is implemented by function value_f90_subarray now.
1471
1472 2005-09-19 Paul Gilliam <pgilliam@us.ibm.com>
1473
1474 * rs6000-tdep.c (_initialize_rs6000_tdep): Get rid of the unused
1475 'info powerpc' command prefix.
1476
1477 2005-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1478
1479 * config/s390/nm-linux.h (KERNEL_U_SIZE): Remove.
1480 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Likewise.
1481 (s390_stopped_by_watchpoint, s390_insert_watchpoint,
1482 s390_remove_watchpoint, TARGET_CAN_USE_HARDWARE_WATCHPOINT,
1483 TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT,
1484 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
1485 target_remove_watchpoint): Likewise.
1486 * s390-nat.c: Remove include of <sys/user.h>.
1487 (kernel_u_size): Remove.
1488 (s390_stopped_by_watchpoint): Make static.
1489 (s390_insert_watchpoint, s390_remove_watchpoint): Likewise.
1490 (s390_can_use_hw_breakpoint): New function.
1491 (s390_region_size_ok_for_hw_watchpoint): Likewise.
1492 (_initialize_s390_nat): Add watchpoint methods to target.
1493
1494 2005-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1495 Ulrich Weigand <uweigand@de.ibm.com>
1496
1497 * Makefile.in (ALLDEPFILES): Update.
1498 (alpha-linux-nat.o, sparc-linux-nat.o): New rules.
1499 (amd64-linux-nat.o, arm-linux-nat.o, hppa-linux-nat.o)
1500 (i386-linux-nat.o, ia64-linux-nat.o, linux-nat.o, m32r-linux-nat.o)
1501 (m68klinux-nat.o, mips-linux-nat.o, ppc-linux-nat.o, s390-nat.o)
1502 (sparc64-linux-nat.o): Update dependencies.
1503 * alpha-linux-nat.c, sparc-linux-nat.c: New files.
1504 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Renamed
1505 from fetch_inferior_registers and made static.
1506 (amd64_linux_store_inferior_registers): Renamed from
1507 store_inferior_registers and made static.
1508 (amd64_linux_child_post_start_inferior): Renamed from
1509 child_post_startup_inferior and made static. Call
1510 super_post_startup_inferior.
1511 (super_post_startup_inferior): New.
1512 (_initialize_amd64_linux_nat): Set it. Call linux_target and
1513 add_target.
1514 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Renamed
1515 from fetch_inferior_registers and made static.
1516 (arm_linux_store_inferior_registers): Renamed from
1517 store_inferior_registers and made static.
1518 (_initialize_arm_linux_nat): Add a prototype. Use linux_target and
1519 add_target.
1520 * hppa-linux-nat.c (hppa_linux_fetch_inferior_registers): Renamed
1521 from fetch_inferior_registers and made static.
1522 (hppa_linux_store_inferior_registers): Renamed from
1523 store_inferior_registers and made static.
1524 (_initialize_hppa_linux_nat): New function.
1525 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Renamed
1526 from fetch_inferior_registers and made static.
1527 (i386_linux_store_inferior_registers): Renamed from
1528 store_inferior_registers and made static.
1529 (i386_linux_resume): Renamed from child_resume and made static.
1530 (i386_linux_child_post_start_inferior): Renamed from
1531 child_post_startup_inferior and made static. Call
1532 super_post_startup_inferior.
1533 (super_post_startup_inferior): New.
1534 (_initialize_i386_linux_nat): New function.
1535 * i386-nat.c: Remove LINUX_CHILD_POST_STARTUP_INFERIOR #ifndef.
1536 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): Remove.
1537 (super_xfer_partial): New.
1538 (ia64_linux_xfer_partial): New function. Use it.
1539 (_initialize_ia64_linux_nat): New function.
1540 * ia64-tdep.c (getunwind_table): Revert 2005-06-08 change; use
1541 target_read_partial and document the problem.
1542 * inf-ptrace.c (inf_ptrace_fetch_register): Use
1543 CANNOT_FETCH_REGISTER. Fix some comments.
1544 (inf_ptrace_store_register): Use CANNOT_STORE_REGISTER. Fix some
1545 comments.
1546 * linux-nat.c: Include "inf-ptrace.h" and "auxv.h".
1547 (linux_ops, super_xfer_partial): New variables.
1548 (linux_child_post_startup_inferior): Make static.
1549 (child_post_startup_inferior): Delete.
1550 (linux_nat_attach, linux_nat_detach, resume_callback)
1551 (linux_nat_resume, linux_nat_wait, linux_nat_create_inferior)
1552 (linux_nat_mourn_inferior): Use linux_ops instead of
1553 deprecated_child_ops.
1554 (child_wait): Do not depend on CHILD_WAIT.
1555 (linux_nat_xfer_memory): Remove, replace by ...
1556 (linux_nat_xfer_partial): ... this. Use linux_ops->to_xfer_partial
1557 instead of linux_proc_xfer_memory and child_xfer_memory.
1558 (linux_nat_fetch_registers, linux_nat_store_registers)
1559 (linux_nat_child_post_startup_inferior): New functions.
1560 (init_linux_nat_ops): Use the new functions.
1561 (linux_proc_xfer_memory): Remove, replace by ...
1562 (linux_proc_xfer_partial): ... this. Make static.
1563 (linux_xfer_partial, linux_register_u_offset, linux_target): New
1564 functions.
1565 (_initialize_linux_nat): Do not modify deprecated_child_ops.
1566 * linux-nat.h (linux_proc_xfer_memory): Remove prototype.
1567 (struct mem_attrib, struct target_ops): Remove forward declarations.
1568 (linux_child_post_startup_inferior): Remove prototype.
1569 (linux_target): Add prototype.
1570 * linux-thread-db.c (thread_db_xfer_memory): Remove, replace by ...
1571 (thread_db_xfer_partial): ... this.
1572 (init_thread_db_ops): Set to_xfer_partial instead of
1573 deprecated_xfer_memory.
1574 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers): Renamed
1575 from fetch_inferior_registers and made static.
1576 (m32r_linux_store_inferior_registers): Renamed from
1577 store_inferior_registers and made static.
1578 (_initialize_m32r_linux_nat): New function.
1579 * m68klinux-nat.c (m68k_linux_fetch_inferior_registers): Renamed
1580 from fetch_inferior_registers and made static.
1581 (m68k_linux_store_inferior_registers): Renamed from
1582 store_inferior_registers and made static.
1583 (old_fetch_inferior_registers, old_store_inferior_registers): Made
1584 static.
1585 (_initialize_m68k_linux_nat): Use linux_target and add_target.
1586 * mips-linux-nat.c (_initialize_mips_linux_nat): New function.
1587 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers): Renamed
1588 from fetch_inferior_registers and made static.
1589 (ppc_linux_store_inferior_registers): Renamed from
1590 store_inferior_registers and made static.
1591 (_initialize_ppc_linux_nat): New function.
1592 * s390-nat.c (s390_linux_fetch_inferior_registers): Renamed
1593 from fetch_inferior_registers and made static.
1594 (s390_linux_store_inferior_registers): Renamed from
1595 store_inferior_registers and made static.
1596 (_initialize_s390_nat): New function.
1597 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
1598 linux_target and add_target.
1599 * config/nm-linux.h: Don't include "auxv.h".
1600 (struct target_waitstatus, child_wait, CHILD_WAIT)
1601 (CHILD_PID_TO_EXEC_FILE, CHILD_INSERT_FORK_CATCHPOINT)
1602 (CHILD_INSERT_VFORK_CATCHPOINT, CHILD_INSERT_EXEC_CATCHPOINT)
1603 (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH, CHILD_FOLLOW_FORK)
1604 (DEPRECATED_KILL_INFERIOR, NATIVE_XFER_AUXV): Delete.
1605 * config/alpha/alpha-linux.mh (NATDEPFILES): Replace infptrace.o
1606 and inftarg.o with inf-ptrace.o and alpha-linux-nat.o.
1607 * config/sparc/linux.mh (NATDEPFILES): Replace infptrace.o and
1608 inftarg.o with sparc-linux-nat.o.
1609 * config/sparc/linux64.mh (NATDEPFILES): Remove infptrace.o and
1610 inftarg.o.
1611 * config/arm/linux.mh (NATDEPFILES): Replace infptrace.o and
1612 inftarg.o with inf-ptrace.o.
1613 * config/i386/linux.mh (NATDEPFILES): Likewise.
1614 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1615 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1616 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1617 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1618 * config/mips/linux.mh (NATDEPFILES): Likewise.
1619 * config/pa/linux.mh (NATDEPFILES): Likewise.
1620 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1621 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1622 * config/s390/s390.mh (NATDEPFILES): Likewise.
1623 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Don't define.
1624 (LINUX_CHILD_POST_STARTUP_INFERIOR): Don't define.
1625 * config/i386/nm-linux64.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1626 Don't define.
1627 * config/ia64/nm-linux.h: Don't include "target.h".
1628 (NATIVE_XFER_UNWIND_TABLE, ia64_linux_xfer_unwind_table): Remove.
1629 * config/djgpp/fnchange.lst: Add alpha-linux-tdep.c,
1630 alpha-linux-nat.c, sparc-linux-tdep.c, and sparc-linux-nat.c.
1631
1632 2005-09-08 Kevin Buettner <kevinb@redhat.com>
1633
1634 From Kevin Buettner, Andrew Cagney, Jackie Smith Cashion, and
1635 Alexandre Oliva:
1636 * mn10300-tdep.c (am33_2_register_name): New function.
1637 (my_frame_is_in_sp, my_frame_is_in_fp, my_frame_is_last)
1638 (set_my_stack_size): Delete.
1639 (set_movm_offsets, set_reg_offsets): Rename the former to the
1640 latter. Update for handling am33.
1641 (mn10300_analyze_prologue): Update for handling am33. Also, make
1642 minor improvements in quality of prologue analysis.
1643 (mn10300_gdbarch_init): Add am33 support.
1644 * mn10300-tdep.h (E_NUM_REGS): Delete.
1645
1646 2005-09-06 Kevin Buettner <kevinb@redhat.com>
1647
1648 * mn10300-linux-tdep.c (mn10300_linux_svr4_fetch_link_map_offsets):
1649 Delete.
1650 (am33_linux_init_osabi): Register svr4_ilp32_fetch_link_map_offsets
1651 instead.
1652
1653 2005-09-06 Kevin Buettner <kevinb@redhat.com>
1654
1655 * mn10300-linux-tdep.c (solib-svr4.h): Include.
1656 (mn10300_linux_svr4_fetch_link_map_offsets): New function.
1657 (am33_linux_init_osabi): Register it.
1658 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
1659
1660 2005-09-06 Kevin Buettner <kevinb@redhat.com>
1661
1662 * mn10300-tdep.c (mn10300_analyze_prologue): Delete code disabled
1663 via "#if 0".
1664
1665 2005-09-06 Kevin Buettner <kevinb@redhat.com>
1666
1667 * mn10300-tdep.c (mn10300_analyze_prologue): Use
1668 safe_frame_unwind_memory() in place of deprecated_read_memory_nobpt().
1669
1670 2005-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1671
1672 * inf-child.c (inf_child_follow_fork): Add OPS argument.
1673 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1674 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1675 * inftarg.c (child_follow_fork): Likewise.
1676 * linux-nat.c (child_follow_fork): Likewise. Use ops instead of
1677 &deprecated_child_ops.
1678 * target.c (update_current_target): Do not inherit to_follow_fork.
1679 (target_follow_fork): New function.
1680 (debug_to_follow_fork): Remove.
1681 (setup_target_debug): Don't set to_follow_fork.
1682 * target.h (struct target_ops): Add struct target_ops * to
1683 to_follow_fork.
1684 (child_follow_fork): Add struct target_ops * argument.
1685 (target_follow_fork): Replace macro with prototype.
1686
1687 2005-09-02 Kevin Buettner <kevinb@redhat.com>
1688
1689 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Use ARRAY_SIZE.
1690 Change internal error to warning. Add i18n markup to warning
1691 string.
1692
1693 2005-09-02 Kevin Buettner <kevinb@redhat.com>
1694
1695 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
1696 (mn10300_gdbarch_init): Register mn10300_dwarf2_reg_to_regnum().
1697
1698 2005-09-02 Kevin Buettner <kevinb@redhat.com>
1699
1700 * mn10300-tdep.c (is_my_frame_in_sp, is_my_frame_in_fp)
1701 (is_my_frame_last): Delete these unused functions.
1702
1703 2005-09-02 Kevin Buettner <kevinb@redhat.com>
1704
1705 * mn10300-tdep.c (mn10300_frame_prev_register): Change type of
1706 ``bufferp'' from ``void *'' to ``gdb_byte *''.
1707
1708 2005-09-02 Kevin Buettner <kevinb@redhat.com>
1709
1710 * mn10300-tdep.c (mn10300_use_struct_convention): Delete parameter
1711 ``gcc_p''. Adjust all callers.
1712 (mn10300_store_return_value, mn10300_extract_return_value): Add new
1713 parameter ``gdbarch''.
1714 (mn10300_return_value): New function.
1715 (mn10300_gdbarch_init): Delete old-style return value code calls.
1716 Add call to set_gdbarch_return_value().
1717
1718 2005-09-02 Kevin Buettner <kevinb@redhat.com>
1719
1720 * mn10300-tdep.c (regcache.h): Delete duplicate include.
1721 * Makefile.in (mn10300-tdep.o): Update dependencies.
1722
1723 2005-09-02 Kevin Buettner <kevinb@redhat.com>
1724
1725 * mn10300-tdep.c (osabi.h): Include.
1726 (mn10300_gdbarch_init): Invoke gdbarch_init_osabi().
1727 * Makefile.in (mn10300-tdep.o): Update dependencies.
1728
1729 2005-09-02 Michael Snyder <msnyder@redhat.com>
1730 Kevin Buettner <kevinb@redhat.com>
1731
1732 * mn10300-linux-tdep.c: New file.
1733 * Makefile.in (mn10300-linux-tdep.o): New Makefile target.
1734 * config/mn10300/linux.mt (TDEPFILES): Add mn10300-linux-tdep.o and
1735 corelow.o.
1736 * mn10300-tdep.h (E_E8_REGNUM, E_E9_REGNUM, E_E10_REGNUM)
1737 (E_FPCR_REGNUM, E_FS0_REGNUM): New constants.
1738
1739 2005-09-02 Mark Kettenis <kettenis@gnu.org>
1740
1741 * infcall.c (call_function_by_hand): Remove code handling
1742 deprecated_push_arguments. Bail out early if push_dummy_call
1743 isn't available.
1744 * gdbarch.sh (deprecated_push_arguments): Delete. Adjust a few
1745 comments accordingly.
1746 * gdbarch.h, gdbarch.c: Regenerate.
1747
1748 2005-09-01 Paul Gilliam <pgilliam@us.ibm.com>
1749
1750 * ppc-tdep.h (struct gdbarch_tdep): Better explanation of using
1751 -1 for nonexistant registers.
1752 * rs6000-tdep.c (rs6000_register_reggroup_p): Don't assume that
1753 tdep->ppc_vr0_regnum and tdep->ppc_ev0_regnum are not -1.
1754
1755 2005-09-01 Richard Earnshaw <richard.earnshaw@arm.com>
1756
1757 * arm-linux-tdep.c (arm_linux_push_arguments): Delete.
1758 (arm_linux_init_abi): Don't register it.
1759
1760 2005-08-31 Mark Kettenis <kettenis@gnu.org>
1761
1762 * symfile.c (symbol_file_command, set_initial_language)
1763 (symfile_bfd_open, get_section_index, add_symtab_fns)
1764 (find_sym_fns): Reformat code and comments. Tweak comments.
1765
1766 * m68k-tdep.c (m68k_register_name): Use ARRAY_SIZE.
1767
1768 2005-08-31 Jim Wilson <wilson@specifix.com>
1769
1770 * i386fbsd-tdep.c (i386fbsd_sc_reg_offset): Make it non-static.
1771
1772 2005-08-29 Mark Kettenis <kettenis@gnu.org>
1773
1774 * environ.c (unset_in_environ): Use strncmp instead of
1775 DEPRECATED_STREQN.
1776 * exec.c (exec_file_attach): Remove DEPRECATED_HPUX_TEXT_END.
1777 * language.c (set_case_command, language_enum): Use strcmp instead
1778 of DEPRECATED_STREQ.
1779 * source.c (select_source_symtab): Sprinkle a few consts. Use
1780 strcmp instead of DEPRECATED_STREQ.
1781
1782 * solib-svr4.c (svr4_current_sos, svr4_fetch_objfile_link_map):
1783 Use XZALLOC and xzalloc instead of xmalloc where appropriate.
1784
1785 2005-08-27 Eli Zaretskii <eliz@gnu.org>
1786
1787 * main.c (print_gdb_help): Don't advertise the (long non-existent)
1788 option --mapped.
1789
1790 2005-08-21 Mark Kettenis <kettenis@gnu.org>
1791
1792 * doublest.c (floatformat_mantissa): Use xsnprintf instead of
1793 sprintf.
1794
1795 * vaxobsd-tdep.c: New file.
1796 * config/vax/obsd.mt (TDEPFILES): Add vaxobsd-tdep.o.
1797 * Makefile.in (vaxobsd-tdep.o): New dependency.
1798
1799 * ppcobsd-tdep.c: Include "frame.h" and "frame-unwind.h". Don't
1800 include "tramp-frame.h".
1801 (ppcobsd_sigtramp_cache_init): Remove function.
1802 (ppcobsd_sigtramp): Remove variable.
1803 (ppcobsd_page_size, ppcobsd_sigreturn_offset): New variables.
1804 (ppcobsd_sigtramp_p): New function.
1805 (ppcobsd_sigtramp_frame_cache, ppcobsd_sigtramp_frame_this_id)
1806 (ppcobsd_sigtramp_frame_prev_register): New functions.
1807 (ppcobsd_sigtramp_frame_unwind): New variable.
1808 (ppcobsd_sigtramp_frame_sniffer): New function.
1809 (ppcobsd_init_abi): Adjust to register new sigtramp sniffer
1810 instead of the old one.
1811 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
1812
1813 * infcall.c (call_function_by_hand): For
1814 RETURN_VALUE_ABI_RETURNS_ADDRESS and
1815 RETURN_VALUE_ABI_PRESERVES_ADDRESS, use gdbarch_return_value to
1816 get return value.
1817
1818 * valarith.c (value_equal, value_less): Avoid compiler bug on
1819 systems where `long double' values are returned in static storage.
1820
1821 2005-08-18 Mark Kettenis <kettenis@gnu.org>
1822
1823 * stack.c: Reformat. Improve comments. Include "valprint.h".
1824 (args_info, locals_info, backtrace_command, backtrace_command_1)
1825 (backtrace_full_command, frame_info, frame_command, down_command)
1826 (down_silently_base, down_silently_command, up_command)
1827 (up_silently_base, up_silently_command, parse_frame_specification)
1828 (current_frame_command, print_frame_args_vars, catch_info)
1829 (args_plus_locals_info), print_frame_label_vars)
1830 (print_block_frame_labels, print_block_frame_locals)
1831 (func_command): Remove prototypes.
1832 (print_stack_frame, backtrace_command_stub, backtrace_command,
1833 backtrace_full_command, print_frame_args, print_frame_arg_vars,
1834 print_args_stub, func_command): Remove redundant casts.
1835 (addressprint): Remove extern declaration.
1836 (frame_command): Make static.
1837 (struct print_stack_frame_args, struct print_args_args): Rename
1838 `fi' member to `frame'.
1839 (print_stack_frame, print_frame_nameless_args, print_frame_args)
1840 (set_current_sal_from_frame, print_frame_info, print_frame)
1841 (show_stack_frame, print_block_frame_locals)
1842 (print_frame_local_vars, print_frame_label_vars)
1843 (print_frame_arg_vars, select_and_print_frame): Rename `fi'
1844 argument to `frame'.
1845 (func_command): Rename `fp' variable to `frame'.
1846 (get_language): Restructure.
1847 * Makefile.in (stack.o): Update dependencies.
1848
1849 2005-08-17 Kevin Buettner <kevinb@redhat.com>
1850
1851 * NEWS (ms1-elf): New target.
1852
1853 2005-08-17 Mark Kettenis <kettenis@gnu.org>
1854
1855 * m68k-tdep.c (m68k_return_value): Properly return contents of
1856 structures passed in memory.
1857
1858 * infcmd.c (print_return_value): Move CHECK_TYPEDEF up. Deal with
1859 RETURN_VALUE_ABI_PRESERVED_ADDRESS.
1860
1861 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Fix the code that
1862 deals with the broken GCC convention.
1863
1864 2005-08-16 Mark Kettenis <kettenis@gnu.org>
1865
1866 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Set condition
1867 register appropriately for varargs functions.
1868
1869 2005-08-15 Kevin Buettner <kevinb@redhat.com>
1870
1871 * MAINTAINERS (ms1): New target ISA entry. List myself as
1872 maintainer.
1873
1874 2005-08-15 Michael Snyder <msnyder@redhat.com>
1875 Kevin Buettner <kevinb@redhat.com>
1876
1877 * Makefile.in (ms1-tdep.o): Add dependencies.
1878 * configure.tgt: Add ms1-*-* target.
1879 * ms1-tdep.c: New file.
1880 * config/ms1/ms1.mt: New file.
1881
1882 2005-08-15 Mark Kettenis <kettenis@gnu.org>
1883
1884 * Makefile.in (m68kbsd-tdep.o): Ad missing space.
1885
1886 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
1887
1888 * s390-tdep.c (op1_lgfi, op2_lgfi, op1_agfi, op2_agfi,
1889 op1_afi, op2_afi, op1_algfi, op2_algfi, op1_alfi, op2_alfi,
1890 op1_slgfi, op2_slgfi, op1_slfi, op2_slfi): New opcode enums.
1891 (s390_analyze_prologue): Recognize new z9-109 instructions.
1892
1893 2005-08-14 Mark Kettenis <kettenis@gnu.org>
1894
1895 * solib-som.c (som_current_sos): Cast to 'gdb_byte *' where
1896 appropriate.
1897
1898 * inf-ptrace.c (inf_ptrace_him) [PT_GET_PROCESS_STATE]: Move
1899 code...
1900 (inf_ptrace_post_startup_inferior): ...here. New function.
1901 (inf_ptrace_attach) [PT_GET_PROCESS_STATE]: Move code...
1902 (inf_ptrace_post_attach): ...here.
1903 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Set
1904 to_post_startup_inferior and to_post_attch.
1905
1906 * sparc-tdep.c (sparc_breakpoint_from_pc): Constify break_insn.
1907
1908 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Check for
1909 "__sighndlr".
1910
1911 2005-08-13 Mark Kettenis <kettenis@gnu.org>
1912
1913 * i386-linux-nat.c (fetch_register, store_register)
1914 (supply_gregset, fill_gregset): Remove redundant casts.
1915
1916 2005-08-12 Kris Warkentin <kewarken@qnx.com>
1917
1918 * i386-nto-tdep.c (i386nto_init_abi): Don't set gdbarch skip
1919 trampoline code hook.
1920 * nto-procfs.c (procfs_post_attach): Call solib_create_inferior_hook
1921 instead of SOLIB_CREATE_INFERIOR_HOOK.
1922 (procfs_create_inferior): Ditto.
1923 * config/tm-nto.h: Don't define SKIP_TRAMPOLINE_CODE.
1924
1925 2005-08-11 Andreas Schwab <schwab@suse.de>
1926
1927 PR exp/1978
1928 * valarith.c (value_binop): Fix result type for the shift
1929 operators.
1930
1931 2005-08-09 Mark Kettenis <kettenis@gnu.org>
1932
1933 * sparc64obsd-tdep.c: Tweak comments.
1934 (sparc64obsd_sigreturn_offset): Add offset for new OpenBSD 3.8
1935 signal trampoline.
1936
1937 2005-08-09 Andrew Cagney <cagney@gnu.org>
1938
1939 * linux-nat.h (linux_proc_xfer_memory): Change type of "myaddr" a
1940 "gdb_byte" pointer.
1941 * linux-nat.c (linux_proc_xfer_memory): Update.
1942 (get_signo): Cast signo to a "gdb_byte" pointer.
1943 * i386-linux-nat.c (child_resume): Make "buf" a gdb_byte, delete
1944 redundant casts.
1945 (child_resume): Cast eflags to a "gdb_byte" pointer.
1946
1947 2005-08-08 Mark Kettenis <kettenis@gnu.org>
1948
1949 * tramp-frame.h (struct tramp_frame): Allow for 16 instructions
1950 instead of 8.
1951 * m68kbsd-tdep.c: Include "frame.h", "trad-frame.h" and
1952 "tramp-frame.h".
1953 (m68kobsd_sigtramp_cache_init): New function.
1954 (m68kbsd_aout_init_abi): Prepend m68kobsd_sigtramp unwinder.
1955
1956 2005-08-02 Fred Fish <fnf@specifix.com>
1957
1958 * defs.h (parse_frame_specification): Remove prototype.
1959 * stack.c (parse_frame_specification): Add prototype and
1960 make function static.
1961 (frame_info): Move common code outside if..then..else.
1962
1963 2005-08-01 Daniel Jacobowitz <dan@codesourcery.com>
1964
1965 * value.c (value_contents_writeable): Use value_contents_raw.
1966
1967 2005-08-01 Daniel Jacobowitz <dan@codesourcery.com>
1968
1969 Suggested by Shaun Jackman <sjackman@gmail.com>:
1970 * defs.h (print_transfer_performance): Update prototype.
1971 * m32r-rom.c (m32r_load, m32r_upload_command): Use gettimeofday
1972 for print_transfer_performance.
1973 * remote-m32r-sdi.c (m32r_load): Likewise.
1974 * symfile.c (generic_load): Likewise.
1975 (report_transfer_performance): Create a dummy struct timeval.
1976 (print_transfer_performance): Use a more accurate measure
1977 of performance.
1978
1979 2005-08-01 Fred Fish <fnf@specifix.com>
1980
1981 * stack.c (parse_frame_specification_1): Remove use of obsolete
1982 SETUP_ARBITRARY_FRAME macro.
1983
1984 2005-08-01 Daniel Jacobowitz <dan@codesourcery.com>
1985
1986 * dwarf2-frame.c (read_signed_leb128): Handle values that do not
1987 fit in 32 bits.
1988 * dwarf2read.c (read_signed_leb128): Likewise.
1989
1990 2005-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1991
1992 From Josef Ezra <jezra@emc.com>:
1993 * tracepoint.c (stringify_collection_list): Correct pointer
1994 arithmetic.
1995
1996 2005-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1997
1998 Suggested by Vladimir Prus <ghost@cs.msu.su>:
1999 * infrun.c (handle_inferior_event): Check for line information in
2000 undebuggable functions.
2001
2002 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2003
2004 * cli-out.c (cli_field_fmt, cli_message, out_field_fmt): Add
2005 ATTR_FORMAT or ATTRIBUTE_FPTR_PRINTF.
2006 * complaints.c (vcomplaint): Likewise.
2007 * defs.h (xvasprintf, xstrvprintf, verror, vfatal)
2008 (internal_verror, internal_vwarning, vwarning)
2009 (deprecated_query_hook, deprecated_warning_hook)
2010 (deprecated_readline_begin_hook): Likewise.
2011 * disasm.c (fprintf_disasm): Likewise.
2012 * exceptions.c (throw_it): Likewise.
2013 * exceptions.h (throw_verror, throw_vfatal): Likewise.
2014 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2015 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2016 * tui/tui-hooks.c (tui_query_hook): Likewise.
2017 * tui/tui-out.c (tui_field_fmt, tui_message, out_field_fmt):
2018 Likewise.
2019 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2020 (uo_message): Likewise.
2021 * ui-out.h (ui_out_field_fmt, ui_out_message, field_fmt_ftype)
2022 (message_ftype): Likewise.
2023 * utils.c (vfprintf_maybe_filtered, internal_vproblem)
2024 (defaulted_query, printchar): Likewise.
2025
2026 2005-07-26 Mark Kettenis <kettenis@gnu.org>
2027
2028 * i386obsd-tdep.c (i386obsd_sigreturn_offset): New variable.
2029 (i386obsd_sigtramp_p): Deal with an arbitrary number of possible
2030 offsets.
2031 (i386obsd_aout_supply_regset): Avoid bogus cast.
2032
2033 2005-07-25 Mark Kettenis <kettenis@gnu.org>
2034
2035 * inf-ptrace.c [PT_GET_PROCESS_STATE] (inf_ptrace_follow_fork):
2036 New function.
2037 (inf_ptrace_him, inf_ptrace_attach) [PT_GET_PROCESS_STATE]: Set
2038 PTRACE_FORK event flag.
2039 (inf_ptrace_wait) [PT_GET_PROCESS_STATE]: Handle PTRACE_FORK
2040 event.
2041 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Set to_follow_fork.
2042
2043 2005-07-25 Mark Kettenis <kettenis@gnu.org>
2044
2045 * gdb_ptrace.h (PT_TRACE_ME): Define to zero if not already
2046 defined.
2047 * inf-ptrace.c: Tweak comments.
2048 (inf_ptrace_me): Use PT_TRACE_ME instead of hardcoded zero.
2049 (inf_ptrace_mourn_inferior): Call waitpid.
2050 (inf_ptrace_attach): Use pid_t, Remove unnecessary cast.
2051 (inf_ptrace_detach): Use pid_t. Use ptid_get_pid instead of
2052 PIDGET.
2053 (inf_ptrace_kill): Rename from inf_ptrace_kill_inferior. Use
2054 pid_t. Use ptid_get_pid instead of PIDGET.
2055 (inf_ptrace_kill): Call waitpid instead of wait.
2056 (inf_ptrace_resume): Use pid_t. Use ptid_get_pid instead of
2057 PIDGET.
2058 (inf_ptrace_wait): Use waitpid instead wait. Use pid_t. Don't
2059 call target_has_exited or target_thread_alive. Properly ignore
2060 terminated detached child processes.
2061 (inf_ptrace_has_exited): Remove function.
2062 (inf_ptrace_xfer_partial): Use pid_t. Use ptid_get_pid instead of
2063 PIDGET. Use gdb_byte instead of `unsigned char'.
2064 (inf_ptrace_thread_alive): Use ptid_get_pid instead of PIDGET.
2065 (inf_ptrace_pid_to_str): Remove function.
2066 (inf_ptrace_target): Use inf_ptrace_kill instead of
2067 inf_ptrace_kill_inferior. Use normal_pid_to_str instead of
2068 inf_ptrace_pid_to_str. Don't set to_has_exited.
2069 (inf_ptrace_fetch_register, inf_ptrace_store_register): Reformat
2070 long lines.
2071
2072 2005-07-25 Mark Kettenis <kettenis@gnu.org>
2073
2074 * inf-ptrace.c: Reorder functions.
2075 (inf_ptrace_open, inf_ptrace_reported_exec_events_per_call)
2076 (inf_ptrace_can_run, inf_ptrace_post_attach): Removed.
2077 (inf_ptrace_target): Don't set to_open,
2078 to_reported_exec_events_per_call, to_can_run, to_post_attach,
2079 to_stratum, to_has_all_memory, to_has_memory, to_has_stack,
2080 to_has_registers, to_has_execution, to_magic. Reorder remaining
2081 initializations.
2082
2083 2005-07-25 Mark Mitchell <mark@codesourcery.com>
2084
2085 * configure.ac: On MinGW, do not require a termcap library, and
2086 use win32-termcap.c.
2087 * configure: Regenerated.
2088 * win32-termcap.c: New file.
2089
2090 2005-07-24 Mark Mitchell <mark@codesourcery.com>
2091
2092 * ser-tcp.c (close): Define as a function-like macro on MinGW.
2093
2094 2005-07-21 Eric Christopher <echristo@apple.com>
2095
2096 * MAINTAINERS (Misc): Update affiliation.
2097
2098 2005-07-21 Mark Kettenis <kettenis@gnu.org>
2099
2100 * inf-ttrace.c (inf_ttrace_wait): Properly report TTEVT_EXEC
2101 events as TARGET_WAITKIND_EXECD.
2102 (inf_ttrace_detach): Reorder local variables.
2103
2104 2005-07-20 Mark Kettenis <kettenis@gnu.org>
2105
2106 * inf-ttrace.c (inf_ttrace_vfork_ppid): New variable.
2107 (inf_ttrace_follow_fork): New function.
2108 (inf_ttrace_him, inf_ttrace_attach): Ask for TTEVT_FORK and
2109 TTEVT_VFORK events. Replace TTEO_NOSTRCHLD option with
2110 TTEO_PROC_INHERIT.
2111 (inf_ttrace_create_inferior, inf_ttrace_attach): Add checks for
2112 inf_ttrace_vfork_ppid.
2113 (inf_ttrace_kill_inferior, inf_ttrace_detach): Detach from waiting
2114 parent if appropriate.
2115 (inf_ttrace_wait): Handle TTEVT_FORK and TTEVT_VFORK.
2116 (inf_ttrace_target): Set to_follow_fork.
2117
2118 2005-07-20 Wu Zhou <woodzltc@cn.ibm.com>
2119
2120 * remote.c (remote_pid_to_str): Use xsnprintf instead of snprintf.
2121
2122 2005-07-18 Mark Kettenis <kettenis@gnu.org>
2123
2124 * target.c (normal_pid_to_str): Use xsnprintf instead of snprintf.
2125 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2126 * inf-ttrace.c (inf_ttrace_pid_to_str): Likewise.
2127
2128 * hppa-tdep.h (hppa_frame_prev_register_helper): Change types of
2129 last argument to `gdb_byte *'.
2130 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr): Rewrite.
2131 (hppa_frame_prev_register_helper): Change types of last argument
2132 to `gdb_byte *'.
2133 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_prev_register):
2134 Change types of last argument to `gdb_byte *'.
2135
2136 2005-07-18 Mark Kettenis <kettenis@gnu.org>
2137 Jason Molenda <jmolenda@apple.com>
2138
2139 * i386-tdep.c (i386_match_insn): Match complete instruction
2140 pattern.
2141
2142 2005-07-18 Mark Kettenis <kettenis@gnu.org>
2143
2144 * i386-tdep.c (i386_reg_struct_return_p): Handle structures with a
2145 single 'long double' member correctly.
2146 (i386_return_value): Tweak comment.
2147
2148 2005-07-16 Nick Roberts <nickrob@snap.net.nz>
2149
2150 * mi/gdb-mi.el: Update for changes in Emacs 22.0.50. Bring more
2151 features over from gdb-ui.el. Use "-var-update --all-values" for
2152 faster re-display of watch expressions.
2153
2154 2005-07-15 Mark Kettenis <kettenis@gnu.org>
2155 Marcel Moolenaar <marcel@xcllnt.net>
2156
2157 * sparc64fbsd-nat.c: Include "regcache.h", <sys/types.h>,
2158 <machine/pcb.h> and "bsd-kvm.h".
2159 (sparc64fbsd_kvm_supply_pcb): New function.
2160 (_initialize_sparc64fbsd_nat): Enable libkvm interface.
2161 * config/sparc/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2162 (LOADLIBES): New variable.
2163 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
2164
2165 2005-07-15 Nick Roberts <nickrob@snap.net.nz>
2166 Daniel Jacobowitz <dan@codesourcery.com>
2167
2168 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values): New
2169 declarations.
2170 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Use string
2171 constants instead of literals for MI command options.
2172 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values, mi_all_values):
2173 New variables.
2174 (mi_parse_values_option, mi_print_value_p): New functions.
2175 (mi_cmd_var_list_children): Use mi_parse_values_option and
2176 mi_print_value_p.
2177 (mi_cmd_var_update): Support a PRINT_VALUES option. Update calls
2178 to varobj_update_one.
2179 (varobj_update_one): Take a print_values argument. Call
2180 mi_print_value_p.
2181 * varobj.c (varobj_get_gdb_type): New function.
2182 * varobj.h (varobj_get_gdb_type): New prototype.
2183
2184 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
2185
2186 * ppc-linux-tdep.c (ppc_linux_init_abi): Set 64-bit link map offsets.
2187
2188 2005-07-12 Mark Kettenis <kettenis@gnu.org>
2189
2190 * dwarf2expr.h: Tweak comment.
2191 (struct dwarf_expr_context): Use `gdb_byte *' in read_mem and
2192 get_frame_base function pointers.
2193 (read_uleb128, read_sleb128): Change return type and types of
2194 first two arguments to `gdb_byte *'.
2195 (dwarf2_read_address): Change types of first two arguments to
2196 `gdb_byte *'.
2197 * dwarf2expr.c: Tweak comment.
2198 (dwarf_expr_eval): Change type of second argument to `gdb_byte *'.
2199 (read_uleb128, read_sleb128): Change return type and types of
2200 first two arguments to `gdb_byte *'.
2201 (dwarf2_read_address): Change types of first two arguments to
2202 `gdb_byte *'.
2203 (execute_stack_op): Change types of last two arguments to
2204 `gdb_byte *'. Use `gdb_byte *' for byte buffers.
2205 * dwarf2loc.h: Tweak comment.
2206 (struct dwarf2_locexpr_baton, struct dwarf2_loclist_baton): Use
2207 `gdb_byte *' for byte buffers.
2208 * dwarf2loc.c (find_location_expression): Change return type to
2209 `gdb_byte *'. Use `gdb_byte *' for byte buffers. Change length
2210 to `unsigned int'.
2211 (dwarf_expr_read_reg): Use `gdb_byte *' for byte buffer. Remove
2212 bogus cast.
2213 (dwarf_expr_read_mem): Change type of second argument to
2214 `gdb_byte *'.
2215 (dwarf_expr_frame_base): Change type of second argument to
2216 `gdb_byte **'.
2217 (dwarf2_evaluate_loc_desc): Change type of third argument to
2218 `gdb_byte *'.
2219 (needs_frame_read_mem): Change type of second argument to
2220 `gdb_byte *'.
2221 (needs_frame_frame_base): Change type of second argument
2222 `gdb_byte **'. Use gdb_byte for lit0.
2223 (dwarf2_tracepoint_var_ref): Change type of fourth argument to
2224 `gdb_byte *'. Use `gdb_byte *' for byte buffer.
2225 (loclist_read_variable, loclist_tracepoint_var_ref): Use `gdb_byte
2226 *' for byte buffer.
2227 * dwarf2-frame.c (struct dwarf2_cie, struct dwarf2_fde)
2228 (struct dwarf2_frame_state): Use gdb_byte instead of `unsigned
2229 char'.
2230 (read_reg): Use `gdb_byte *' for byte buffers. Remove redundant
2231 cast.
2232 (read_mem): Change second argument to `gdb_byte *'.
2233 (no_get_frame_base): Change second argument to `gdb_byte **'.
2234 (execute_stack_op): Change first argument to `gdb_byte *'.
2235 (execute_cfa_program): Change first two arguments to `gdb_byte *'.
2236 Use gdb_byte instead of `unsigned int'. Use temprorary variable
2237 to store result of read_uleb128.
2238 (struct comp_unit): Use `gdb_byte *' for byte buffers.
2239 (read_1_byte, read_4_bytes, read_8_bytes): Change last argument to
2240 `gdb_byte *'.
2241 (read_unsigned_leb128, read_signed_leb128): Change second argument
2242 to `gdb_byte *'. Use gdb_byte instead of `unsigned char'.
2243 (read_initial_length): Change second argument to `gdb_byte *'.
2244 Remove redundant casts.
2245 (read_encoded_value): Use gdb_byte instead of `unsigned char'.
2246 Remove bogus casts.
2247 (decode_frame_entry_1): Change return type and second argument to
2248 `gdb_byte *'. Use `gdb_byte *' for byte buffers. Use gdb_byte
2249 instead of `unsigned char'.
2250 (decode_frame_entry): Change return type and second argument to
2251 `gdb_byte *'. Use `gdb_byte *' for byte buffers.
2252 (dwarf2_build_frame_info): Use `gdb_byte *' for byte buffers.
2253
2254 2005-07-12 Mark Kettenis <kettenis@gnu.org>
2255
2256 * objc-lang.c (print_object_command): Use gdb_byte for c.
2257 * arch-utils.c (legacy_extract_return_value): Use 'gdb_byte *' for
2258 registers.
2259
2260 2005-07-11 Mark Kettenis <kettenis@gnu.org>
2261
2262 * bsd-kvm.c: Include <paths.h>.
2263 (bsd_kvm_corefile): New variable.
2264 (core_kd, bsd_kvm_paddr, bsd_kvm_supply_pcb, bsd_kvm_ops): Make
2265 static.
2266 (bsd_kvm_open): Set bsd_kvm_corefile.
2267 (bsd_kvm_files_info): New function.
2268 (bsd_kvm_add_target): Set to_files_info.
2269
2270 2005-07-07 Andreas Schwab <schwab@suse.de>
2271
2272 * observer.sh: Use different temporary file name depending on mode
2273 of operation to avoid clash during parallel build.
2274
2275 2005-07-06 Bob Rossi <bob@brasko.net>
2276
2277 * fork-child.c (fork-inferior): Use accessor function for
2278 inferior_io_terminal.
2279 * infcmd.c (inferior_io_terminal): Make static.
2280 (set_inferior_io_terminal): New function.
2281 (get_inferior_io_terminal): Ditto.
2282 (tty_command): Use accessor function.
2283 (_initialize_infcmd): Add inferior_tty setshow variable.
2284 (_initialize_infcmd): Remove tty command.
2285 (_initialize_infcmd): Add a tty command that is an alias.
2286 * inferior.h (set_inferior_io_terminal): New prototype.
2287 (get_inferior_io_terminal): Ditto.
2288 (new_tty_prefork): Add const qualifier to parameter.
2289 * inflow.c (inferior_thisrun_terminal): Add const qualifier.
2290 (new_tty_prefork): Add const qualifier to parameter.
2291 * nto-procfs (procfs_create_inferior): Use accessor function.
2292 (procfs_create_inferior): Add const qualifier to locals.
2293 * win32-nat.c (child_create_inferior): Ditto.
2294 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): New function.
2295 (mi_cmd_inferior_tty_set): Ditto.
2296 * mi/mi-cmds.c (mi_cmds): Add inferior-tty-set and inferior-tty-show
2297 * mi/mi-cmds.h (mi_cmd_inferior_tty_set): Add prototype.
2298 (mi_cmd_inferior_tty_show): Ditto.
2299
2300 2005-07-06 Wu Zhou <woodzltc@cn.ibm.com>
2301
2302 * tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid
2303 scroll command.
2304
2305 2005-07-06 Wu Zhou <woodzltc@cn.ibm.com>
2306
2307 * f-exp.y (yyparse): Add code to support exponentiation expression.
2308 (yylex): Add code to scan exponentiation operator.
2309 * eval.c (evaluate_subexp_standard): Add support for BINOP_EXP.
2310 * valarith.c (value_binop): Reset errno to 0 before calling pow
2311 to do exponentiation operation.
2312
2313 2005-07-04 Mark Kettenis <kettenis@gnu.org>
2314
2315 * i386nbsd-nat.c (i386nbsd_supply_pcb): Cast to 'gdb_byte *' in
2316 read_memory call.
2317 * bsd-uthread.c (bsd_uthread_wait): Use gdb_byte for byte buffer.
2318
2319 * bsd-kvm.c (bsd_kvm_open): Properly cast sentinel in concat call.
2320 * coffread.c (patch_type, process_coff_symbol): Likewise.
2321 * corelow.c (core_open): Likewise.
2322 * dwarf2read.c (dwarf_decode_lines, dwarf2_start_subfile):
2323 * language.c (set_lang_str, set_type_str, set_range_str)
2324 (set_case_str): Likewise.
2325 * source.c (add_path, openp): Likewise.
2326 * stabsread.c: Likewise.
2327 * top.c (init_history): Likewise.
2328 * utils.c (xfullpath): Likewise.
2329 * value.c (lookup_internalvar): Likewise.
2330 * cli/cli-cmds.c (cd_command): Likewise.
2331 * cli/cli-dump.c (add_dump_command): Likewise.
2332
2333 * i387-tdep.c (print_i387_value, print_i387_ext, i387_tag): Change
2334 type of first argument to `const gdb_byte *'.
2335 (i387_print_float_info, i387_register_to_value)
2336 (i387_value_to_register, i387_supply_fsave, i387_collect_fsave)
2337 (i387_supply_fxsave, i387_collect_fxsave): Use gdb_byte for byte
2338 buffers.
2339
2340 2005-07-04 Ben Elliston <bje@gnu.org>
2341
2342 * Makefile.in (RUNTEST): Set to runtest.
2343
2344 2005-07-03 Richard Henderson <rth@redhat.com>
2345
2346 * amd64-tdep.c (amd64_sse_type): New.
2347 (amd64_register_info): Use it for xmm registers. Constify.
2348 (amd64_register_type): Initialize amd64_sse_type as needed.
2349
2350 2005-07-03 Steve Ellcey <sje@cup.hp.com>
2351
2352 * configure.ac: Add arguments to AC_DEFINE calls.
2353 * acconfig.h: Remove file.
2354 * acinclude.m4 (AC_GNU_SOURCE): Remove definition.
2355 * configure: Regenerate.
2356 * config.in: Regenerate.
2357
2358 2005-07-01 Mark Kettenis <kettenis@gnu.org>
2359
2360 * mips-tdep.c (mips_insn16_frame_prev_register)
2361 (mips_insn32_frame_prev_register, mips_stub_frame_prev_register):
2362 Change type of last argument to `gdb_byte *'.
2363
2364 2005-07-01 Steve Ellcey <sje@cup.hp.com>
2365
2366 * MAINTAINERS (Write After Approval): Add myself.
2367
2368 2005-07-01 Mark Kettenis <kettenis@gnu.org>
2369
2370 * solib-svr4.c: Include "solib.h".
2371 * Makefile.in (solib-svr4.o): Update dependencies.
2372
2373 2005-06-28 Mark Kettenis <kettenis@gnu.org>
2374
2375 * eval.c (evaluate_struct_tuple): Use strcmp instead of
2376 DEPRECATED_STREQ.
2377
2378 2005-06-27 Michael Snyder <msnyder@redhat.com>
2379
2380 * mn10300-linux-tdep.c: New file. OSABI sniffer at end.
2381 * Makefile.in: Add rule for mn10300-linux-tdep.c.
2382 * config/mn10300/linux.mt: Add mn10300-linux-tdep.c to tdep files.
2383
2384 2005-06-27 Michael Snyder <msnyder@redhat.com>
2385
2386 * config/mn10300/linux.mt: New file.
2387 * configure.tgt: Add rule for am33 / mn10300-linux.
2388 * mn10300-tdep.c, mn10300-tdep.h: Bump copyright year.
2389
2390 2005-06-27 Wu Zhou <woodzltc@cn.ibm.com>
2391
2392 * gdbtypes.c (get_discrete_bounds): Fix a comment typo.
2393
2394 2005-06-25 Mark Kettenis <kettenis@gnu.org>
2395
2396 * sol-thread.c (sol_thread_xfer_memory): Change type of second
2397 argument to `gdb_byte *'.
2398 (sol_thread_xfer_partial): Change type of readbuf and writebuf
2399 arguments to `gdb_byte *'.
2400
2401 * mips-tdep.c (mips_xfer_register, mips_o32_return_value)
2402 (mips_integer_to_address): Use gdb_byte instead of bfd_byte.
2403
2404 2005-06-24 Mark Kettenis <kettenis@gnu.org>
2405
2406 * ppcobsd-nat.c: Include "gdbcore.h", <sys/signal.h>,
2407 <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
2408 (ppcobsd_supply_pcb): New function.
2409 (_initialize_ppcobsd_nat): Enable libkvm interface.
2410 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2411 * config/powerpc/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2412 (LOADLIBES): New variable.
2413
2414 2005-06-24 Corinna Vinschen <vinschen@redhat.com>
2415
2416 * i386-tdep.c (struct i386_frame_cache): Define sp_offset as LONGEST.
2417
2418 2005-06-23 Andreas Schwab <schwab@suse.de>
2419
2420 * gdb_ptrace.h: Fix typos when checking for PT_ATTACH. Reported
2421 by Chad Harrington <harrington.chad@gmail.com>.
2422
2423 2005-06-22 Mark Kettenis <kettenis@gnu.org>
2424
2425 * remote.c (extended_remote_restart): Pass buffer in call to
2426 xsnprintf instead of a pointer to the buffer.
2427
2428 2005-06-21 Andrew Cagney <cagney@gnu.org>
2429
2430 * MAINTAINERS: List GDB's Steering Committee as responsible for
2431 GDB's maintenance.
2432
2433 2005-06-21 Mark Kettenis <kettenis@gnu.org>
2434
2435 * inf-ttrace.c (inf_ttrace_xfer_partial): Change type of readbuf
2436 and writebuf arguments to `gdb_byte *'.
2437
2438 2005-06-21 Wu Zhou <woodzltc@cn.ibm.com>
2439
2440 * MAINTAINERS (Write After Approval): Add myself.
2441
2442 2005-06-20 Mark Kettenis <kettenis@gnu.org>
2443
2444 * hppabsd-tdep.c: Include "symtab.h", "objfiles.h", "target.h",
2445 "value.h" and "elf/common.h".
2446 (hppabsd_supply_gregset): Use `gdb_byte *' for byte buffer.
2447 (hppabsd_find_global_pointer): New function.
2448 (hppabsd_init_abi): Set TDEP->find_global_pointer to
2449 hppabsd_find_global_pointer.
2450 * Makefile.in (hppabsd-tdep.o): Update dependencies.
2451
2452 2005-06-12 Mark Kettenis <kettenis@gnu.org>
2453
2454 * hppa-tdep.c (hppa_pointer_to_address_hack): Remove function.
2455 (unwind_command): Use %lx to print pointer.
2456
2457 2005-06-19 Mark Kettenis <kettenis@gnu.org>
2458
2459 * remote-sim.c (gdbsim_xfer_inferior_memory): Remove prototype.
2460 Change type of second argument to`gdb_byte *'.
2461
2462 2005-06-19 Nick Roberts <nickrob@snap.net.nz>
2463
2464 * mi/mi-cmd-stack.c (mi_cmd_stack_info_frame): New function.
2465
2466 * mi/mi-cmds.c (mi_cmds): Replace entry for -stack-info-frame.
2467 Make it use mi_cmd_stack_info_frame
2468
2469 * mi/mi-cmds.h (mi_cmd_stack_info_frame): New declaration.
2470
2471 2005-06-18 Mark Kettenis <kettenis@gnu.org>
2472
2473 * hppa-tdep.c (hppa_fallback_frame_cache): Don't error out if we
2474 can't find the bounds of the current function. Wrap some long
2475 lines in the process.
2476
2477 * regcache.c (regcache_raw_supply, regcache_raw_collect): Change
2478 type of last argument back to `void *'.
2479 * regcache.h (regcache_raw_supply, regcache_raw_collect): Likewise.
2480
2481 2005-06-18 Nick Roberts <nickrob@snap.net.nz>
2482
2483 * mi/mi-cmds.c (mi_cmds): Remove entry for -stack-info-frame.
2484
2485 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2486 (mi_cmd_stack_info_depth): Don't test for stack.
2487 (mi_cmd_stack_select_frame): Make the argument mandatory.
2488 Don't test for stack.
2489
2490 2005-06-17 Wu Zhou <woodzltc@cn.ibm.com>
2491
2492 * remote.c (set_thread, remote_thread_alive): Replace sprintf
2493 call with xsnprintf.
2494 (remote_threads_extra_info, extended_remote_restart)
2495 (remote_check_symbols, store_register_using_P)
2496 (compare_sections_command): Ditto.
2497
2498 2005-06-16 David Ung <davidu@mips.com>
2499
2500 * MAINTAINERS (Write After Approval): Add self.
2501
2502 2005-06-15 Mark Kettenis <kettenis@gnu.org>
2503
2504 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
2505 (hppa_hpux_store_register): Add casts in extract_unsigned_integer
2506 and store_usigned_integer calls.
2507
2508 2005-06-14 Nick Roberts <nickrob@snap.net.nz>
2509
2510 * mi/mi-main.c (mi_cmd_data_list_register_values): Remove test for
2511 registers now that mi_execute_command rewinds after an error.
2512
2513 2005-06-13 Mark Kettenis <kettenis@gnu.org>
2514
2515 * configure.ac: Use AC_CHECK_TYPES to check for uintptr_t.
2516 * configure, config.in: Regenerate.
2517
2518 * ser-tcp.c: Tweak comment.
2519 [!HAVE_SOCKLEN_T]: Typedef socklen_t.
2520 * configure.ac: Add check for socklen_t.
2521 * configure, config.in: Regenerate.
2522
2523 2005-06-13 H.J. Lu <hongjiu.lu@intel.com>
2524
2525 * config/i386/linux64.mt (TDEPFILES): Add symfile-mem.o.
2526
2527 2005-06-13 Richard Sandiford <richard@codesourcery.com>
2528
2529 * MAINTAINERS: Update my email address.
2530
2531 2005-06-13 Mark Mitchell <mark@codesourcery.com>
2532
2533 * corelow.c (core_open): Use bfd_fopen, not bfd_fdopenr.
2534 * exec.c (exec_file_attach): Likewise.
2535 * solib-frv.c (enable_break2): Likewise.
2536 * solib-svr4.c (enable_break): Likewise.
2537 * solib.c (solib_map_sections): Likewise.
2538 * symfile.c (symfile_bfd_open): Likewise.
2539
2540 2005-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2541
2542 * Makefile.in (symfile.o): Add $(exec_h).
2543 * exec.h (exec_set_section_address): Add prototype.
2544 * exec.c (exec_set_section_address): New function.
2545 * symfile.c: Include "exec.h".
2546 (struct place_section_arg, place_section): New.
2547 (default_symfile_offsets): Call place_section for each
2548 section of a relocatable file.
2549
2550 2005-06-13 Joel Brobecker <brobecker@adacore.com>
2551
2552 * hppa-tdep.c (hppa_pc_requires_run_before_use): Really test all
2553 bits of top byte in address.
2554
2555 2005-06-13 Wu Zhou <woodzltc@cn.ibm.com>
2556
2557 * eval.c (evaluate_subexp_standard): Add code to check the target
2558 type of a TYPE_CODE_PTR value when we encounter a f77 undetermined
2559 arglist. If it is array, string or function, work on the target
2560 value instead.
2561
2562 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
2563 Nick Roberts <nickrob@snap.net.nz>
2564
2565 * mi/mi-main.c (register_changed_p, get_register): Use
2566 get_selected_frame.
2567 (mi_execute_command): Call mi_out_rewind after an error.
2568
2569 2005-06-12 Mark Kettenis <kettenis@gnu.org>
2570
2571 * hppa-tdep.c (hppa_frame_prev_register)
2572 (hppa_fallback_frame_prev_register)
2573 (hppa_stub_frame_prev_register): Change type of last argument to
2574 `gdb_byte *'.
2575 (hppa_fetch_pointer_argument): Tweak comment. Use
2576 get_frame_register_unsigned instead of get_frame_register.
2577 (hppa32_return_value, hppa64_return_value): Change type of readbuf
2578 and writebuf arguments to `gdb_byte *'. Remove unecessary casts
2579 and local variables.
2580 (hppa_pseudo_register_read): Change type of last argument to
2581 `gdb_byte *'.
2582
2583 * m68k-tdep.c (m68k_frame_prev_register): Change type of last
2584 argument to `gdb_byte *'.
2585
2586 * arm-tdep.c (set_disassembly_style, _initialize_arm_tdep):
2587 Consitify regnames.
2588
2589 * alpha-tdep.c (alpha_sigtramp_frame_prev_register)
2590 (alpha_heuristic_frame_prev_register): Change type of last
2591 argument to `gdb_byte *'.
2592 (alpha_register_to_value, alpha_value_to_register)
2593 (alpha_extract_return_value, alpha_store_return_value): Likewise.
2594 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2595
2596 * arm-tdep.c (arm_prologue_prev_register)
2597 (arm_sigtramp_prev_register): Change type of last argument to
2598 `gdb_byte *'.
2599
2600 * m88k-tdep.c (m88k_frame_prev_register): Change type of last
2601 argument to `gdb_byte *'.
2602
2603 * vax-tdep.c (vax_frame_prev_register): Change type of last
2604 argument to `gdb_byte *'.
2605
2606 * sparc-tdep.c (sparc32_frame_prev_register): Change type of last
2607 argument to `gdb_byte *'.
2608 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2609 Likewise.
2610 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Likewise.
2611 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2612 Likewise.
2613 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2614 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2615 Likewise.
2616 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2617 Likewise.
2618 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Likewise.
2619 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind):
2620 Likewise.
2621
2622 * amd64-tdep.c (amd64_frame_prev_register)
2623 (amd64_sigtramp_frame_prev_register): Change type of last argument
2624 to `gdb_byte *'.
2625
2626 2005-06-11 Mark Kettenis <kettenis@gnu.org>
2627
2628 * i386-tdep.c (i386_register_type): Return
2629 builtin_type_void_func_ptr for %eip and builtin_type_void_data_ptr
2630 for %ebp and %esp.
2631
2632 2005-06-10 Ben Elliston <bje@au.ibm.com>
2633
2634 * valprint.c (print_floating): Fix comment typo.
2635
2636 2005-06-09 Jeff Johnston <jjohnstn@redhat.com>
2637
2638 * ia64-tdep.c (ia64_pseudo_register_read): Use gdb_byte and
2639 protect libunwind references with HAVE_LIBUNWIND_IA64_H flag.
2640 (ia64_pseudo_register_write): Use gdb_byte to remove warning.
2641 (ia64_register_to_value, ia64_value_to_register): Ditto.
2642 (ia64_frame_prev_register): Ditto.
2643 (ia64_libunwind_frame_prev_register): Ditto.
2644 (ia64_sigtramp_frame_prev_register): Ditto.
2645 (ia64_libunwind_sigtramp_frame_prev_register): Ditto.
2646 (ia64_store_return_value): Ditto.
2647
2648 2005-06-08 Jeff Johnston <jjohnstn@redhat.com>
2649 David Mosberger <davidm@hpl.hp.com>
2650
2651 * ia64-tdep.c (KERNEL_START): New macro.
2652 (ia64_pseudo_register_read): Fix code to use libunwind to properly
2653 get the rse registers.
2654 (ia64_frame_this_id): Mark outermost frame with null frame id.
2655 (ia64_sigtramp_frame_prev_register): Fix up debug output.
2656 (ia64_access_rse_reg): New accessor function.
2657 (ia64_access_mem): Add special logic for accessing the
2658 kernel's unwind table.
2659 (getunwind_table): Fix for corefiles.
2660 (get_kernel_table): Fix to handle vDSO.
2661 (ia64_libunwind_frame_this_id): Check for null frame id and
2662 don't unwind past pc value of 0. Fix debugging output.
2663 (ia64_libunwind_sigtramp_frame_this_id): New function.
2664 (ia64_libunwind_sigtramp_frame_prev_register): Ditto.
2665 (ia64_libunwind_sigtramp_frame_sniffer): Ditto.
2666 (ia64_libunwind_sigtramp_frame_unwind): New unwinder.
2667 (ia64_unw_rse_accessors): New libunwind accessors.
2668 (ia64_libunwind_descr): Add ia64_unw_rse_accessors.
2669 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Use
2670 ia64_libunwind_sigtramp_frame_sniffer instead of
2671 ia64_sigtramp_frame_sniffer.
2672 * libunwind-frame.c (libunwind_frame_set_descr): Add
2673 special register accessors.
2674 (libunwind_frame_cache): Add special logic to check for
2675 0 pc value. Check for a signal trampoline frame.
2676 (libunwind_frame_this_id): Check if libunwind_frame_cache
2677 returns NULL.
2678 (libunwind_frame_prev_register): Check for NULL cache.
2679 (libunwind_frame_base_address): Ditto.
2680 (libunwind_sigtramp_frame_sniffer): New function.
2681 (libunwind_get_reg_special): Ditto.
2682 (libunwind_load): Add unw_is_signal_frame support.
2683 * libunwind-frame.h (struct libunwind_descr): Add special_accessors
2684 field.
2685 (libunwind_sigtramp_frame_sniffer): New prototype.
2686 (libunwind_get_reg_special): Ditto.
2687
2688 2005-06-08 Wu Zhou <woodzltc@cn.ibm.com>
2689
2690 * expression.h (enum exp_opcode): Fix a comment typo.
2691
2692 2005-06-06 Manoj Iyer <manjo@austin.ibm.com>
2693
2694 * solib-svr4.c (struct lm_info): Change type of 'lm' to gdb_byte.
2695 (elf_locate_base): Converted types of buf, bufend, pbuf, to gdb_byte.
2696 (first_link_map_member): Converted type of r_map_buf to gdb_byte.
2697 (open_symbol_file_object): Converted type of l_name_buf to gdb_byte.
2698 (svr4_fetch_objfile_link_map): Converted type of l_name_buf to
2699 gdb_byte.
2700
2701 2005-06-04 Richard Sandiford <rsandifo@nildram.co.uk>
2702
2703 * MAINTAINERS: Update my email address.
2704
2705 2005-06-03 Joel Brobecker <brobecker@adacore.com>
2706
2707 * symmisc.c (dump_symtab_1): Renamed from dump_symtab.
2708 (dump_symtab): New function.
2709
2710 2005-04-02 Joel Brobecker <brobecker@adacore.com>
2711
2712 * exceptions.h: Include ui-out.h.
2713 (ui_out): Remove declaration.
2714 * Makefile.in (exceptions_h): Add dependency on ui-out.h.
2715
2716 2005-05-30 Andrew Cagney <cagney@gnu.org>
2717
2718 * MAINTAINERS (Can Commit Without Approval): New section,
2719 previously burried under "Target Instruction Set Architectures".
2720 Note that cagney "can commit" changes to powerpc-linux.
2721
2722 * MAINTAINERS: Drop architecture and target vectors.
2723
2724 2005-05-29 Eli Zaretskii <eliz@gnu.org>
2725
2726 * config/djgpp/fnchange.lst: Add mappings for linux-ppc-low.c and
2727 linux-ppc64-low.c.
2728
2729 2005-05-28 Bob Rossi <bob@brasko.net>
2730 * Makefile.in (SUBDIR_MI_OBS, SUBDIR_MI_SRCS): Add mi-common.
2731 (gdb/mi/ headers): Add mi_common_h.
2732 (breakpoint.o, infrun.o): Add dependencies mi_common_h.
2733 * breakpoint.c (include): Add include 'mi/mi-common.h'.
2734 (print_it_typical): Use async_reason_lookup.
2735 (watchpoint_check): Ditto.
2736 * infrun.c (include): Add include 'mi/mi-common.h'.
2737 (print_stop_reason): Use async_reason_lookup.
2738 * mi/mi-common.h: New file.
2739 * mi/mi-common.c: Ditto.
2740
2741 2005-05-29 Joel Brobecker <brobecker@adacore.com>
2742
2743 * alpha-tdep.c (alpha_next_pc): Use correct register number
2744 for floating-point branch instructions.
2745
2746 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
2747 Jonathan Larmour <jifl@eCosCentric.com>
2748
2749 PR backtrace/1760
2750 * frame.c (backtrace_limit): Change type to int.
2751 (get_prev_frame): Update backtrace limit support.
2752 (_initialize_frame): Use add_setshow_integer_cmd for backtrace_limit.
2753
2754 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
2755
2756 * configure.tgt (powerpc64-*-linux*): Enable gdbserver.
2757 * regformats/reg-ppc64.dat: New file.
2758
2759 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
2760
2761 From Wu Zhou <woodzltc@cn.ibm.com>:
2762 * remote.c (struct gdb_ext_thread_info): Fix a comment typo.
2763 (remote_unpack_thread_info_response): Likewise.
2764
2765 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
2766
2767 * cli/cli-setshow.c (do_setshow_command): Partially revert previous
2768 change. Cast to "char **" for var_string.
2769
2770 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
2771
2772 * cp-name-parser.y (parse_escape): Revert previous change. Return
2773 the input character by default.
2774
2775 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
2776
2777 * dwarf2-frame.c (dwarf2_frame_prev_register): Use gdb_byte.
2778 * i386-linux-nat.c (fetch_register, store_register, supply_gregset)
2779 (fill_gregset): Likewise.
2780 * i386-tdep.c (i386_frame_prev_register)
2781 (i386_sigtramp_frame_prev_register): Likewise.
2782 * linux-nat.c (linux_nat_xfer_memory, linux_nat_make_corefile_notes):
2783 Likewise.
2784 * linux-thread-db.c (thread_db_xfer_memory): Likewise.
2785 * remote.c (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint):
2786 Likewise.
2787 * target.c (debug_to_insert_hw_breakpoint)
2788 (debug_to_remove_hw_breakpoint, update_current_target): Likewise.
2789
2790 2005-05-28 Hans-Peter Nilsson <hp@axis.com>
2791
2792 * MAINTAINERS: Change cris-elf state to non-broken.
2793 * cp-name-parser.y (parse_escape): Initialize target_char to zero.
2794
2795 2005-05-27 Orjan Friberg <orjanf@axis.com>
2796
2797 * cris-tdep.c (crisv32_scan_prologue): Add.
2798 (cris_frame_unwind_cache, cris_skip_prologue): Call
2799 crisv32_scan_prologue when debugging CRISv32.
2800
2801 2005-05-27 Orjan Friberg <orjanf@axis.com>
2802
2803 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2804 (cris_frame_prev_register, cris_sigtramp_frame_prev_register)
2805 (cris_return_value): Use gdb_byte for byte buffers.
2806 (struct cris_frame_unwind, struct cris_frame_base): Fix formatting.
2807
2808 2005-05-26 Chris Demetriou <cgd@netbsd.org>
2809
2810 * MAINTAINERS (Write After Approval): Remove myself.
2811
2812 2005-05-27 Andrew Cagney <cagney@gnu.org>
2813
2814 * jv-lang.c (get_java_utf8_name): Add cast.
2815 (evaluate_subexp_java): Use gdb_byte for buffers.
2816 * jv-valprint.c (java_value_print, java_value_print): Use gdb_byte
2817 for buffers.
2818 * scm-lang.c (scm_get_field, scm_unpack)
2819 (scm_evaluate_string): Use gdb_byte for buffers.
2820 (scm_lookup_name): Add cast.
2821 * scm-valprint.c (scm_scmval_print, scm_scmval_print): Use
2822 gdb_byte for buffers.
2823 * tui/tui.h (tui_get_command_dimension): Make parameters unsigned.
2824 * tui/tui.c (tui_get_command_dimension): Make parameters unsigned.
2825 * value.h (check_field): Change "name" to a string.
2826 * valops.c (check_field): Change "name" to a string.
2827 * scm-lang.h (scm_parse): Use gdb_byte for buffers.
2828 * source.c (get_current_source_symtab_and_line)
2829 (set_current_source_symtab_and_line): Initialize all fields of sal
2830 structures.
2831 * cli/cli-cmds.c (list_command): Use gdb_byte for buffers.
2832
2833 2005-05-26 Andrew Cagney <cagney@gnu.org>
2834
2835 * command.h (add_setshow_integer_cmd): Make VAR an integer.
2836 * cli/cli-decode.c (add_setshow_integer_cmd): Update to match.
2837 * valops.c (value_string): Add a cast.
2838 * eval.c (evaluate_subexp_standard): Use gdb_byte for byte buffers.
2839 * breakpoint.c (re_enable_breakpoints_in_shlibs): Use gdb_byte for
2840 byte buffers.
2841 * target.h (struct target_ops): For to_insert_hw_breakpoint and
2842 to_remove_hw_breakpoint use gdb_byte for byte buffer parameters.
2843 * breakpoint.h (struct bp_location): Make shadow_contents a
2844 gdb_byte buffer.
2845 * cli/cli-setshow.c (do_setshow_command): Fix cast.
2846 * cli/cli-dump.c (restore_section_callback)
2847 (restore_binary_file): Use gdb_byte for byte buffers.
2848 * proc-service.c (ps_ptwrite, ps_ptread, ps_pdwrite): Fix casts.
2849 (ps_xfer_memory): Use gdb_byte for byte buffers.
2850 * tracepoint.c (mem2hex): Use gdb_byte for byte buffers, and char
2851 for string buffers.
2852 * ser-tcp.c (net_open): Make len a socklen_t.
2853
2854 2005-05-24 Andrew Cagney <cagney@gnu.org>
2855
2856 * rs6000-tdep.c (ppc_supply_reg, ppc_collect_reg): Use gdb_byte
2857 for byte buffers.
2858 (rs6000_fetch_pointer_argument): Use get_frame_register_unsigned.
2859 (rs6000_software_single_step, sstep_breaks, skip_prologue)
2860 (rs6000_push_dummy_call, rs6000_push_dummy_call)
2861 (rs6000_push_dummy_call, rs6000_push_dummy_call)
2862 (rs6000_register_to_value, e500_pseudo_register_read)
2863 (rs6000_store_return_value, e500_pseudo_register_write)
2864 (rs6000_frame_prev_register, rs6000_extract_return_value): Ditto.
2865 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2866 (ppc_sysv_abi_push_dummy_call, do_ppc_sysv_return_value)
2867 (do_ppc_sysv_return_value, ppc_sysv_abi_return_value)
2868 (ppc_sysv_abi_broken_return_value)
2869 (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_push_dummy_call)
2870 (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_return_value)
2871 (ppc64_sysv_abi_return_value, ppc64_sysv_abi_return_value): Ditto.
2872 * ppc-linux-tdep.c (ppc_linux_in_sigtramp)
2873 (ppc_linux_at_sigtramp_return_path)
2874 (ppc_linux_skip_trampoline_code)
2875 (ppc_linux_memory_remove_breakpoint, ppc_linux_return_value):
2876 * rs6000-tdep.c (rs6000_value_to_register)
2877 (rs6000_register_to_value): Ditto.
2878 * ppc-tdep.h (ppc_sysv_abi_return_value)
2879 (ppc64_sysv_abi_return_value, ppc_sysv_abi_broken_return_value)
2880 (ppc_linux_memory_remove_breakpoint): Ditto.
2881
2882 2005-05-24 Ulrich Weigand <uweigand@de.ibm.com>
2883
2884 * s390-tdep.c (s390_frame_prev_register): Change type of last
2885 argument to 'gdb_byte *'.
2886 (s390_stub_frame_prev_register): Likewise.
2887 (s390_sigtramp_frame_prev_register): Likewise.
2888
2889 2005-05-24 Kris Warkentin <kewarken@qnx.com>
2890
2891 * config/i386/nto.mt: Remove remote-nto.o.
2892
2893 2005-05-24 Orjan Friberg <orjanf@axis.com>
2894
2895 * config/djgpp/fnchange.lst: Add mappings for
2896 gdbserver/linux-cris-low.c and gdbserver/linux-crisv32-low.c.
2897
2898 2005-05-23 Michael Snyder <msnyder@redhat.com>
2899 From Nora Pan <qpan@mvista.com>
2900 * linux-nat.c (read_mapping): Don't stumble over entries in
2901 mapping that have name but zero inode.
2902
2903 2005-05-23 Andrew Cagney <cagney@gnu.org>
2904
2905 * target.h (child_xfer_memory): Use gdb_byte for byte buffer
2906 parameters.
2907 * inftarg.c (child_xfer_partial): Update.
2908 * wince.c (child_xfer_memory): Update.
2909 * win32-nat.c (child_xfer_memory): Update.
2910 * rs6000-nat.c (child_xfer_memory): Update.
2911 * infptrace.c (child_xfer_memory): Update.
2912 * dcache.c (struct dcache_block): Use gdb_byte for the byte
2913 buffers.
2914 (dcache_read_line, dcache_xfer_memory, dcache_poke_byte)
2915 (dcache_peek_byte, dcache_write_line): Ditto.
2916
2917 * auxv.h (target_auxv_read, procfs_xfer_auxv)
2918 (target_auxv_parse): Use gdb_byte for byte buffer parameters.
2919 * auxv.c (target_auxv_read, procfs_xfer_auxv, target_auxv_parse)
2920 (target_auxv_search, fprint_target_auxv): Update.
2921
2922 2005-05-23 Orjan Friberg <orjanf@axis.com>
2923
2924 * cris-tdep.c: Tweak values for cris-mode.
2925
2926 2004-05-23 Joel Brobecker <brobecker@adacore.com>
2927
2928 * mdebugread.c (record_minimal_symbol): New procedure.
2929 (parse_partial_symbols): Use record_minimal_symbol to record
2930 the new minimal symbols instead of prim_record_minimal_symbol
2931 and prim_record_minimal_symbol_and_info.
2932
2933 2005-05-22 Mark Kettenis <kettenis@gnu.org>
2934
2935 * NEWS: Mention OpenBSD/arm as a new native configuration.
2936
2937 * armnbsd-nat.c: Include "gdb_string.h" and "inf_ptrace.h".
2938 Reorder includes. Don't require FETCH_INFERIOR_REGISTERS to be
2939 defined.
2940 (armnbsd_fetch_registers): Rename from armnbsd_fetch_registers.
2941 Make static.
2942 (armnbsd_store_registers): Rename from armnbsd_store_registers.
2943 Make static.
2944 (_initialize_arm_netbsd_nat): Construct and add target vector.
2945 * Makefile.in (armnbsd-nat.o): Update dependencies.
2946 * config/arm/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2947 intarg.o, add inf-ptrace.o.
2948 (NAT_FILE): Set to solib.h.
2949 * config/arm/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2950 inftarg.o, add inf-ptrace.o.
2951 (NAT_FILE): Remove.
2952
2953 * arm-tdep.c (arm_extract_return_value, arm_store_return_value):
2954 Change type of last argument to `gdb_byte *'.
2955
2956 * configure.host: Add arm*-*-openbsd*.
2957 * configure.tgt: Add arm*-*-openbsd*.
2958
2959 2005-05-22 Andrew Cagney <cagney@gnu.org>
2960
2961 * frame.h (frame_register_unwind, frame_unwind_register)
2962 (get_frame_register, frame_register, put_frame_register)
2963 (get_frame_memory, safe_frame_unwind_memory)
2964 (frame_register_read): Use gdb_byte for byte buffer parameters.
2965 * trad-frame.h (trad_frame_get_register)
2966 (frame_get_prev_register): Ditto.
2967 * frame-unwind.h (frame_prev_register_ftype): Ditto.
2968 * frame.c (frame_pop, frame_register, frame_unwind_register)
2969 (get_frame_register, frame_unwind_register_signed)
2970 (frame_unwind_register_unsigned, frame_unwind_unsigned_register)
2971 (frame_register_read, get_frame_memory): Update.
2972 * trad-frame.c (trad_frame_get_prev_register): Update.
2973 (trad_frame_get_register): Update.
2974 * gdbcore.h (deprecated_read_memory_nobpt, read_memory): Ditto.
2975 * breakpoint.c (deprecated_read_memory_nobpt): Update.
2976 * corefile.c (read_memory): Update.
2977 * tramp-frame.c (tramp_frame_prev_register): Update.
2978 * valops.c (value_assign): Update.
2979 * sentinel-frame.c (sentinel_frame_prev_register): Update.
2980 * std-regs.c (value_of_builtin_frame_fp_reg)
2981 (value_of_builtin_frame_pc_reg): Update.
2982 * infcmd.c (default_print_registers_info): Update
2983 * dummy-frame.c (dummy_frame_prev_register): Update.
2984 * findvar.c (value_of_register, value_from_register): Update.
2985 * tui/tui-regs.c (tui_register_format, tui_get_register): Update.
2986 * mi/mi-main.c (register_changed_p, get_register): Update.
2987
2988 2005-05-20 Eli Zaretskii <eliz@gnu.org>
2989
2990 * configure.ac: Add snprintf and vsnprintf to AC_CHECK_DECLS. Fix
2991 bad description of _MSE_INT_H that caused each word in config.in
2992 to be enclosed in [].
2993 * configure, config.in: Regenerate.
2994
2995 2005-05-20 Joel Brobecker <brobecker@adacore.com>
2996
2997 * alpha-tdep.c (fp_register_zero_p): New function.
2998 (fp_register_sign_bit): New function.
2999 (alpha_next_pc): Add support for floating-point control instructions.
3000
3001 2005-05-19 Andrew Cagney <cagney@gnu.org>
3002
3003 * defs.h (extract_signed_integer, extract_unsigned_integer)
3004 (extract_long_unsigned_integer, extract_typed_address)
3005 (store_signed_integer, store_unsigned_integer)
3006 (store_typed_address): Use gdb_byte for byte buffer parameters.
3007 (push_bytes, push_word): Delete declaration.
3008 * valops.c (push_bytes, push_word): Delete function.
3009 * findvar.c (extract_signed_integer, extract_unsigned_integer)
3010 (extract_typed_address, store_signed_integer)
3011 (store_unsigned_integer): Update.
3012
3013 * regcache.h (regcache_raw_read, regcache_raw_write)
3014 (regcache_raw_read_part, regcache_raw_write_part)
3015 (regcache_cooked_read_part, regcache_cooked_write_part)
3016 (regcache_cooked_read, regcache_cooked_write)
3017 (regcache_raw_supply, regcache_raw_collect)
3018 (regcache_cooked_read_ftype, regcache_save, regcache_restore)
3019 (deprecated_read_register_gen, deprecated_write_register_gen)
3020 (deprecated_read_register_bytes, deprecated_write_register_bytes)
3021 (deprecated_grub_regcache_for_registers): Use gdb_byte for byte
3022 buffer parameters.
3023 * ia64-tdep.c (ia64_extract_return_value): Update.
3024 * frame.c (do_frame_register_read): Update.
3025 * regcache.c (deprecated_grub_regcache_for_registers)
3026 (struct regcache, regcache_save, regcache_restore, regcache_cpy)
3027 (do_cooked_read, regcache_xmalloc, register_buffer)
3028 (deprecated_read_register_bytes, regcache_raw_read)
3029 (regcache_raw_read_signed, regcache_raw_read_unsigned)
3030 (deprecated_read_register_gen, regcache_cooked_read)
3031 (regcache_cooked_read_signed, regcache_cooked_read_unsigned)
3032 (deprecated_write_register_gen, regcache_cooked_write)
3033 (deprecated_write_register_bytes, regcache_raw_read_part)
3034 (regcache_raw_write_part, regcache_cooked_read_part)
3035 (regcache_cooked_write_part, read_register, regcache_raw_supply):
3036
3037 2005-05-17 Corinna Vinschen <vinschen@redhat.com>
3038
3039 * MAINTAINERS: Undelete v850.
3040 * Makefile.in: Re-add v850-tdep.o dependencies.
3041 * configure.tgt: Re-add v850.
3042 * v850-tdep.c: Reorder code slightly. Add register number enumerator.
3043 (struct v850_frame_cache): New structure.
3044 (v850_processor_type_table): Remove. Move functionality into
3045 v850_register_name, v850e_register_name and v850_gdbarch_init.
3046 (v850_register_name): New function.
3047 (v850e_register_name): New function.
3048 (struct prologue_info): Remove definition.
3049 (v850_register_type): New function.
3050 (v850_type_is_scalar): New function.
3051 (v850_use_struct_convention): Align to gcc behaviour.
3052 (v850_handle_prepare): Renamed from handle_prepare. Change third
3053 parameter to struct v850_frame_cache *.
3054 (v850_handle_pushm): Renamed from handle_pushm. Change third parameter
3055 to struct v850_frame_cache *.
3056 (v850_is_save_register): New function to evaluate if a register is
3057 caller-save.
3058 (v850_analyze_prologue): Replace v850_scan_prologue. Change to support
3059 new frame code.
3060 (v850_init_extra_frame_info): Remove.
3061 (v850_frame_chain): Remove.
3062 (v850_find_callers_reg): Remove.
3063 (v850_skip_prologue): Make static.
3064 (v850_pop_frame): Remove.
3065 (v850_frame_align): New function.
3066 (v850_push_dummy_call): Replace v850_push_arguments.
3067 (v850_push_return_address): Remove.
3068 (v850_extract_return_value): New function.
3069 (v850_store_return_value): New function.
3070 (v850_return_value): New function.
3071 (v850_frame_saved_pc): Remove.
3072 (v850_breakpoint_from_pc): New function.
3073 (v850_alloc_frame_cache): New function.
3074 (v850_fix_call_dummy): Remove.
3075 (v850_frame_cache): New function.
3076 (v850_target_architecture_hook): Remove.
3077 (v850_frame_prev_register): New function.
3078 (v850_frame_this_id): New function.
3079 (v850_frame_unwind): New structure.
3080 (v850_frame_sniffer): New function.
3081 (v850_unwind_sp): New function.
3082 (v850_unwind_pc): New function.
3083 (v850_unwind_dummy_id): New function.
3084 (v850_frame_base_address): New function.
3085 (v850_frame_base): New structure.
3086 (v850_gdbarch_init): New function.
3087 * config/v850/v850.mt: Undelete. Drop TM_FILE.
3088
3089 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
3090 Dennis Brueni <dennis@slickedit.com>
3091
3092 * stack.c (print_frame): In MI mode, output a fullname attribute
3093 with the stack frame.
3094
3095 2005-05-16 Mark Kettenis <kettenis@gnu.org>
3096
3097 * corelow.c (core_xfer_partial): Change type of readbuf and
3098 writebuf to `gdb_byte *'.
3099 * sparc-nat.c (sparc_xfer_wcookie, sparc_xfer_partial): Change
3100 type of readbuf and writebuf to `gdb_byte *'.
3101 * bsd-uthread.c (bsd_uthread_xfer_partial): Change type of readbuf
3102 and writebuf to `gdb_byte *'.
3103 * inf-ptrace.c (inf_ptrace_xfer_partial): Change type of readbuf
3104 and writebuf to `gdb_byte *'.
3105 * bsd-kvm.c (bsd_kvm_xfer_memory): Replace.
3106 (bsd_kvm_xfer_partial): New function.
3107 (bsd_kvm_add_target): Set to_xfer_partial instead of
3108 to_xfer_memory.
3109 * bfd-target.c (target_bfd_xfer_partial): Change type of readbuf
3110 and writebuf to `gdb_byte *'.
3111 * target.c (deprecated_debug_xfer_memory): Remove prototype.
3112 (deprecated_debug_xfer_memory): Change type of second argument to
3113 `gdb_byte *'.
3114 * remote.c (remote_xfer_memory): Remove prototype.
3115 (remote_xfer_memory): Change type of second argument to `gdb_byte
3116 *'.
3117 (remote_xfer_partial): Change type of readbuf and writebuf to
3118 `gdb_byte *'.
3119
3120 * config/sparc/fbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3121 * config/sparc/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3122 and solib-legacy.o.
3123 (NAT_FILE): Remove.
3124
3125 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3126
3127 * s390-tdep.c (s390_return_value): Remove unnecessary casts.
3128 (s390_breakpoint_from_pc): Change type of return value and
3129 'breakpoint' to const gdb_byte *.
3130
3131 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3132
3133 * s390-tdep.c (s390_pseudo_register_read, s390_pseudo_register_write):
3134 Change type of 'buf' argument to gdb_byte *.
3135 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
3136 (s390_register_to_value): Change type of 'out' to gdb_byte *, change
3137 type of 'in' to gdb_byte [].
3138 (s390_value_to_register): Change type of 'in' to gdb_byte *, change
3139 type of 'out' to gdb_byte [].
3140 (s390_return_value): Change type of 'out' and 'in' to gdb_byte *.
3141
3142 2005-05-16 Andrew Cagney <cagney@gnu.org>
3143
3144 * target.h (target_read_partial, target_write_partial)
3145 (do_xfer_memory, xfer_memory, target_read, target_write)
3146 (get_target_memory): For buffers, change "void*" to gdb_byte.
3147 (struct target_ops): Ditto for to_xfer_partial and
3148 deprecated_xfer_memory.
3149 * dcache.h (dcache_xfer_memory): Ditto.
3150 * target.c (default_xfer_partial, target_read_partial)
3151 (target_write_partial, target_read, target_write)
3152 (do_xfer_memory, update_current_target, get_target_memory): Update.
3153 (target_read_string): Change buf to a gdb_byte.
3154 * dcache.c (dcache_xfer_memory): Update.
3155 * exec.c (xfer_memory): Make buffer type to gdb_byte.
3156 * mem-break.c (default_memory_insert_breakpoint): Remove cast.
3157 * disasm.c (dis_asm_read_memory): Remove cast, use gdb_byte.
3158
3159 2005-05-16 Mark Kettenis <kettenis@gnu.org>
3160
3161 * sol-thread.c (ignore): Change last argument to `gdb_byte.'
3162
3163 * config/i386/fbsd.mt (DEPRECATED_TM_FILE): Remove.
3164 * config/i386/fbsd64.mt (DEPRECATED_TM_FILE): Remove.
3165 * config/i386/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3166 * config/i386/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
3167 * config/sparc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3168 * config/sparc/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
3169
3170 * observer.sh: Quote $DJGPP.
3171
3172 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
3173
3174 * Makefile.in (.y.c): Update ylwrap invocation.
3175
3176 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
3177
3178 * linux-nat.c (child_follow_fork, linux_handle_extended_wait)
3179 (lin_lwp_attach_lwp, linux_nat_attach, wait_lwp, child_wait)
3180 (linux_nat_wait, kill_wait_callback): Use my_waitpid.
3181 (_initialize_linux_nat, lin_thread_get_thread_signals): Use
3182 SA_RESTART.
3183
3184 2005-05-14 Mark Kettenis <kettenis@gnu.org>
3185
3186 * configure.tgt (vax-*-openbsd*): Set gdb_target to obsd.
3187 * config/vax/obsd.mt (TDEPFILES): New file.
3188
3189 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset): Use
3190 gdb_byte instead of bfd_byte.
3191
3192 * mips-tdep.c (mips_pseudo_register_read)
3193 (mips_pseudo_register_write): Change type of last argument to
3194 `gdb_byte *'.
3195 (mips_register_to_value, mips_value_to_register): Change type of
3196 last argument to `gdb_byte *'. Remove casts that are no longer
3197 needed.
3198 (mips_fetch_instruction, fetch_mips_16): Use gdb_byte for buf.
3199 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3200 (mips_o32_push_dummy_call, mips_o32_return_value): Use `const
3201 gdb_byte *' for val and gdb_byte for valbuf. Remove casts that
3202 are no longer needed.
3203 (mips_eabi_return_value, mips_n32n64_return_value)
3204 (mips_o32_return_value, mips_o64_return_value): Change type of
3205 readbuf and writebuf arguments to `gdb_byte *'.
3206 (mips_read_fp_register_single): Change type of last argument to
3207 `gdb_byte *'. Use `gdb_byte *' for raw_buffer.
3208 (mips_read_fp_register_double): Change type of last argument to
3209 `gdb_byte *'.
3210 (mips_print_fp_register): Use `gdb_byte *' for raw_buffer. Remove
3211 casts that are no longer needed.
3212 (mips_print_register, print_gp_register_row): Use gdb_byte for
3213 raw_buffer. Remove casts that are no longer needed.
3214 (mips_single_step_through_delay): Use gdb_byte for buf.
3215 (mips_breakpoint_from_pc): Change return type to `const gdb_byte
3216 *'. Use gdb_byte for mips16_big_breakpoint, big_breakpoint,
3217 pmon_big_breakpoint, idt_big_breakpoint, mips16_little_breakpoint,
3218 little_breakpoint, pmon_little_breakpoint and
3219 idt_little_breakpoint.
3220 (mips_integer_to_address): Use `gdb_byte *' for tmp.
3221
3222 * config/m68k/obsd.mt (DEPRECATED_TM_FILE): Remove.
3223 * config/i386/obsd.mt (DEPRECATED_TM_FILE): Remove.
3224 * config/i386/obsd64.mt (DEPRECATED_TM_FILE): Remove.
3225 * config/pa/obsd.mt (DEPRECATED_TM_FILE): Remove.
3226 * config/sparc/obsd.mt (DEPRECATED_TM_FILE): Remove.
3227 * config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Remove.
3228
3229 * sparc-tdep.c (sparc_fetch_instruction, sparc_fetch_wcookie): Use
3230 gdb_byte for buf.
3231 (sparc32_pseudo_register_read, sparc32_pseudo_register_write):
3232 Change type of last argument to `gdb_byte *'. Remove casts that
3233 are no longer needed.
3234 (sparc32_push_dummy_code, sparc32_store_arguments): Use gdb_byte
3235 for buf.
3236 (sparc_breakpoint_from_pc): Change return type to `const gdb_byte
3237 *'. Use gdb_byte for break_insn.
3238 (sparc32_extract_return_value, sparc32_store_return_value): Change
3239 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
3240 (sparc32_return_value): Change type of readbuf and writebuf
3241 arguments to `gdb_byte *'.
3242 (sparc_software_single_step): Use gdb_byte for npc_save and
3243 nnpc_save.
3244 (sparc_supply_rwindow, sparc_collect_rwindow): Use gdb_byte for
3245 buf.
3246 (sparc32_supply_gregset, sparc32_collect_gregset)
3247 (sparc32_supply_fpregset, sparc32_collect_fpregset): Use `gdb_byte
3248 *' for regs.
3249 * sparc64-tdep.c (sparc64_pseudo_register_read)
3250 (sparc64_pseudo_register_write): Change type of last argument to
3251 `gdb_byte *'. Remove casts that are no longer needed.
3252 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
3253 Change type of valbuf argument to `gfd_byte *'.
3254 (sparc64_store_arguments): Use `gdb_byte *' for valbuf. use
3255 gdb_byte for buf.
3256 (sparc64_extract_return_value, sparc64_store_return_value): Change
3257 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
3258 (sparc64_return_value): Change type of readbuf and writebuf
3259 arguments to `gdb_byte *'.
3260 (sparc64_supply_gregset, sparc64_collect_gregset)
3261 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use `gdb_byte
3262 *' for regs.
3263
3264 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Change return type
3265 to `const gdb_byte *'. Use gdb_byte for break_insn.
3266 (m68k_register_to_value): Change type of last argument to
3267 `gdb_byte *'. Use gdb_byte for from.
3268 (m68k_value_to_register): Change type of last argument to
3269 `gdb_byte *'. Use gdb_byte for to.
3270 (m68k_extract_return_value): Change type of last argument to
3271 `gdb_byte *'. Use gdb_byte for buf. Remove unnecessary cast.
3272 (m68k_svr4_extract_return_value): Change type of last argument to
3273 `gdb_byte *'. Use gdb_byte for buf.
3274 (m68k_store_return_value): Change type of last argument to
3275 `gdb_byte *'. Remove unnecessary cast.
3276 (m68k_svr4_store_return_value): Change type of last argument to
3277 `gdb_byte *'. Use gdb_byte for buf.
3278 (m68k_return_value, m68k_svr4_return_value): Change type of
3279 readbuf and writebuf arguments to `gdb_byte *'.
3280 (m68k_push_dummy_call, m68k_unwind_pc, m68k_frame_cache)
3281 (m68k_unwind_dummy_id): Use gdb_byte for buf.
3282 (m68k_get_longjmp_target): Use `gdb_byte *' for buf.
3283 * m68kbsd-tdep.c (m68kbsd_supply_fpregset)
3284 (m68kbsd_supply_gregset): Use `gdb_byte *' for regs.
3285
3286 * m88k-tdep.c (m88k_breakpoint_from_pc): Change return type to
3287 `const gdb_byte *'. Use gdb_byte for break_insn.
3288 (m88k_return_value): Change type of readbuf and
3289 writebuf arguments to `gdb_byte *'. Use gdb_byte for buf.
3290 (m88k_supply_gregset): Use `gdb_byte *' for regs.
3291
3292 * vax-tdep.c (vax_return_value): Change type of readbuf and
3293 writebuf arguments to `gdb_byte *'.
3294
3295 * amd64-tdep.c (amd64_return_value): Change type of readbuf and
3296 writebuf arguments to `gdb_byte *'. Remove now redundant casts.
3297 * i386-tdep.c (i386_return_value): Change type of readbuf and
3298 writebuf arguments to `gdb_byte *'.
3299 (i386_pseudo_register_read, i386_pseudo_register_write): Change
3300 type of last argument to `gdb_byte *'.
3301 (i386_register_to_value, i386_value_to_register): Change type of
3302 last argument to `gdb_byte *'. Simplify function a bit.
3303 * i387-tdep.h (i387_value_to_register, i387_register_to_value):
3304 Change type of last argument to `gdb_byte *'.
3305 * i387-tdep.c: Likewise.
3306
3307 2005-05-13 Andrew Cagney <cagney@gnu.org>
3308
3309 * gdbarch.sh (pseudo_register_read, pseudo_register_write)
3310 (value_to_register, register_to_value, pointer_to_address)
3311 (address_to_pointer, return_value, extract_return_value)
3312 (store_return_value): Instead of a void pointer, use gdb_byte.
3313 * gdbarch.h, gdbarch.c: Regenerate.
3314 * inferior.h (unsigned_address_to_pointer)
3315 (signed_pointer_to_address, address_to_signed_pointer)
3316 (unsigned_pointer_to_address): Update.
3317 * arch-utils.h (legacy_return_value):
3318 * arch-utils.c (legacy_extract_return_value)
3319 (legacy_return_value): Update.
3320 * findvar.c (unsigned_pointer_to_address)
3321 (signed_pointer_to_address, unsigned_address_to_pointer)
3322 (address_to_signed_pointer): Update.
3323
3324 2005-05-13 Orjan Friberg <orjanf@axis.com>
3325
3326 * cris-tdep.c (_initialize_cris_tdep): Improve help strings for
3327 cris-version, cris-mode, and cris-dwarf2-cfi settings.
3328
3329 2005-05-13 Orjan Friberg <orjanf@axis.com>
3330
3331 * cris-tdep.c (usr_cmd_cris_version): Change type to int.
3332 (cris_mode_normal, cris_mode_guru, cris_modes, usr_cmd_cris_mode): Add.
3333 (struct gdbarch_tdep): Change type of cris_version to int. Add
3334 cris_mode.
3335 (cris_mode, set_cris_mode): New functions.
3336 (crisv32_single_step_through_delay): Read from NRP register instead
3337 of ERP register in guru mode.
3338 (cris_breakpoint_from_pc): Rename break_insn to break8_insn.
3339 Add break15_insn, returned in guru mode.
3340 (_initialize_cris_tdep): Add call to add_setshow_enum_cmd for new
3341 cris-mode setting.
3342 (cris_dump_tdep): Add dump of cris_mode.
3343 (cris_gdbarch_init): Add cris_mode to search criteria for architecture.
3344 Register the sigtramp frame sniffer only if not in guru mode.
3345
3346 2005-05-13 Eli Zaretskii <eliz@gnu.org>
3347
3348 * Makefile.in (go32-nat.o): Add $(top_h) to prerequisites.
3349
3350 * go32-nat.c: Include top.h. Update copyright years.
3351 (init_go32_ops): Override the default value of gdbinit[] with
3352 "gdb.ini".
3353
3354 * cli/cli-cmds.c: Don't define GDBINIT_FILENAME.
3355 (init_cli_cmds): Use gdbinit[] instead of a compile-time literal
3356 string GDBINIT_FILENAME.
3357
3358 * top.c (PATH_MAX): Define if not defined.
3359 (gdbinit): Declare with a constant size PATH_MAX.
3360
3361 * config/i386/go32.mh (XM_FILE): Remove.
3362
3363 * config/i386/xm-go32.h: Remove file.
3364
3365 2005-05-12 Mark Kettenis <kettenis@gnu.org>
3366
3367 * sol-thread.c: Include "solib.h".
3368 (sol_thread_attach): Use solib_add instead of SOLIB_ADD.
3369 * Makefile.in (sol-thread.o): Update dependencies.
3370
3371 * NEWS: Mention OpenBSD/mips64 as a new native configuration.
3372
3373 2005-05-12 Eli Zaretskii <eliz@gnu.org>
3374
3375 * observer.sh (texi) [DJGPP]: If the file name includes a colon,
3376 convert it to the /dev/x/ form.
3377
3378 2005-05-12 Mark Kettenis <kettenis@gnu.org>
3379
3380 * solib.h (CLEAR_SOLIB, SOLIB_ADD)
3381 (SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
3382 (SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
3383 (DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
3384 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
3385 comments.
3386 * breakpoint.c: Include "solib.h".
3387 (insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
3388 solib_address.
3389 (remove_solib_event_breakpoints, create_solib_event_breakpoint)
3390 (disable_breakpoints_in_shlibs)
3391 (disable_breakpoints_in_unloaded_shlib)
3392 (re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
3393 defined. If PC_SOLIB isn't defined, call solib_address.
3394 (_initialize_breakpoint): Unconditionally install observer.
3395 * corelow.c: Include "solib.h".
3396 [SOLIB_ADD] (solib_add_stub): Remove prototype.
3397 (core_close) [!CLEAR_SOLIB]: Call clear_solib.
3398 (solib_add_stub) [!SOLIB_ADD] Call solib_add.
3399 (core_open): Unconditionally call solib_add_stub.
3400 * fork-child.c: Include "solib.h".
3401 (fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
3402 solib_create_inferior_hook.
3403 * infcmd.c: Include "solib.h".
3404 (attach_command) [!SOLIB_ADD]: Call shlib_rescan. Unconditionally
3405 call re_enable_breakpoints_in_shlibs.
3406 * infrun.c: Include "solib.h".
3407 (SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
3408 defined.
3409 (stop_on_solib_events, show_stop_on_solib_events): Include
3410 unconditionally.
3411 (follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
3412 solib_create_inferior_hook.
3413 (handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
3414 [!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
3415 (_initialize_infrun): Unconditionally add "stop_on_solib-events"
3416 command.
3417 * remote.c: Include "solib.h".
3418 (remote_open_1): Unconditionally call no_shared_libraries.
3419 [!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
3420 * stack.c: Include "solib.h".
3421 (print_frame) [!PC_SOLIB] Call shlib_for_pc.
3422 * xcoffsolib.c (no_shared_libraries): Remove function.
3423 * Makefile.in (SFILES): Add solib.c.
3424 (ALLDEPFILES): Remove solib.c.
3425 (COMMON_OBS): Add solib.o.
3426 (breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
3427 (remote.o, stack.o): Update dependencies.
3428
3429 2005-05-12 Daniel Jacobowitz <dan@codesourcery.com>
3430
3431 * cp-names.y: Renamed to ...
3432 * cp-name-parser.y: ... this.
3433 * Makefile.in (SFILES, YYFILES, YYOBJ): Rename cp-names.y to
3434 cp-name-parser.y.
3435 (test-cp-names.o): Renamed to test-cp-name-parser.o.
3436 (test-cp-names): Renamed to test-cp-name-parser.
3437 (clean, local-maintainer-clean): Update.
3438 (cp-names.o): Renamed to cp-name-parser.o.
3439
3440 2005-05-12 Eli Zaretskii <eliz@gnu.org>
3441
3442 * observer.sh: Use observer.tmp instead of observer.inc-tmp which
3443 on 8+3 filesystems overwrites observer.inc. Update copyright year
3444 of the resultant file.
3445
3446 * gnu-v3-abi.c (init_gnuv3_ops): Cast is_gnu_v3_mangled_dtor and
3447 is_gnu_v3_mangled_ctor to avoid compiler warnings.
3448
3449 * config/djgpp/config.sed: Adapt to latest Autoconf.
3450
3451 * config/djgpp/djconfig.sh: Add -Wpointer-arith and
3452 -Wuninitialized to the build warnings.
3453
3454 2005-05-11 Eli Zaretskii <eliz@gnu.org>
3455
3456 * config/djgpp/fnchange.lst: Add mappings for inttypes*.m4,
3457 ChangeLog-2004, reg-cris*.dat, dw2-intermix.*, semcris*-switch.c.
3458 Fix mappings for hilo-hazard-?.s.
3459
3460 * config/djgpp/README: Update GDB versions and my email address.
3461
3462 2005-05-09 Andrew Cagney <cagney@gnu.org>
3463
3464 Use gdb_byte in preference to bfd_byte.
3465 * gdbarch.sh: Update.
3466 * gdbarch.h, gdbarch.c: Re-generate.
3467 * ada-lang.c, ada-lang.h, ada-valprint.c, arch-utils.c: Update.
3468 * c-lang.c, c-lang.h, c-valprint.c, cp-valprint.c: Update.
3469 * f-lang.c, f-lang.h, f-valprint.c, gdbcore.h, jv-lang.h: Update.
3470 * jv-valprint.c, language.c, language.h, m2-lang.c: Update.
3471 * m2-lang.h, m2-valprint.c, objc-lang.c, p-lang.c: Update.
3472 * p-lang.h, p-valprint.c, regcache.c, scm-lang.c: Update.
3473 * scm-lang.h, scm-valprint.c, target.c, target.h: Update.
3474 * tramp-frame.c, valarith.c, valops.c, valprint.c: Update.
3475 * valprint.h, value.c, value.h: Update.
3476
3477 2005-05-09 Mark Kettenis <kettenis@gnu.org>
3478
3479 * vaxbsd-nat.c (vaxbsd_supply_gregset, vaxbsd_collect_gregset):
3480 Use `gdb_byte *' for regs.
3481 * vax-tdep.c (vax_supply_gregset): Use `gdb_byte *' for regs;
3482 (vax_store_arguments, vax_push_dummy_call, vax_return_value): Use
3483 gdb_byte for buf.
3484 (vax_breakpoint_from_pc): Change return type to `const gdb_byte
3485 *'. Use gdb_byte for break_insn.
3486 (vax_skip_prologue): Use gdb_byte for op.
3487
3488 * i387-tdep.c: Remove outdated comments.
3489
3490 * defs.h: Unconditionally include <sys/types.h>.
3491
3492 2005-05-08 Daniel Jacobowitz <dan@codesourcery.com>
3493
3494 * mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs
3495 section like .plt.
3496
3497 2005-05-08 Mark Kettenis <kettenis@gnu.org>
3498
3499 * i386-linux-tdep.c (linux_sigtramp_code, linux_rt_sigtramp_code):
3500 Change type to `static const gdb_byte'.
3501 (i386_linux_sigtramp_start, i386_linux_rt_sigtramp_start)
3502 (i386_linux_sigcontext_addr): Use gdb_byte for buf.
3503 * amd64-linux-tdep.c (linux_sigtramp_code): Change type to `static
3504 const gdb_byte'.
3505 (amd64_linux_sigtramp_start, amd64_linux_sigcontext_addr): Use
3506 gdb_byte for buf.
3507 * amd64fbsd-tdep.c (amd64fbsd_supply_uthread)
3508 (amd64fbsd_collect_uthread): Use gdb_byte for buf.
3509
3510 * config/ia64/nm-aix.h: Remove file.
3511
3512 * amd64-tdep.c (amd64_return_value): Use `gdb_byte *' in casts.
3513 (amd64_push_arguments): Use gdb_byte instead of bfd_byte. Use
3514 gdb_byte for buf.
3515 (amd64_push_dummy_call): Use gdb_byte for buf.
3516 (amd64_analyze_prologue): Use gdb_byte for proto, buf and op.
3517 (amd64_frame_cache, amd64_sigtramp_frame_cache)
3518 (amd64_unwind_dummy_id): Use gdb_byte for buf.
3519 (amd64_supply_fxsave, amd64_collect_fxsave): Use `gdb_byte *' for
3520 regs.
3521 * amd64obsd-tdep.c (amd64obsd_supply_regset): Use `gdb_byte *' in
3522 casts.
3523 (amd64obsd_sigtramp_p): Use gdb_byte for sigreturn and `gdb_byte
3524 *' for buf,
3525
3526 * i386-tdep.c (i386_breakpoint_from_pc): Change return type to
3527 `const gdb_byte *'. Use gdb_byte for break_insn.
3528 (i386_follow_jump): Use gdb_byte for op.
3529 (i386_analyze_struct_return): Use gdb_byte for proto1, proto2, buf
3530 and op.
3531 (i386_skip_probe): Use gdb_byte for buf and op.
3532 (struct i386_insn): Use gdb_byte for insn and mask.
3533 (i386_match_insn, i386_analyze_frame_setup)
3534 (i386_analyze_register_saves): Use gdb_byte for op.
3535 (i386_skip_prologue): Use gdb_byte for pic_pat and op;
3536 (i386_unwind_pc, i386_frame_cache, i386_sigtramp_frame_cache)
3537 (i386_unwind_dummy_id, i386_get_longjmp_target): Use gdb_byte for
3538 buf.
3539 (i386_extract_return_value, i386_store_return_value): Use
3540 `gdb_byte *' instead of `void *' for valbuf argument. Remove now
3541 redundant cast.
3542 (i386_pseudo_register_read, i386_pseudo_register_write): Use
3543 gdb_byte for mmx_buf.
3544 (i386_register_to_value, i386_value_to_register): Use `gdb_byte *'
3545 instead of `char *' for buf.
3546 (i386_supply_gregset, i386_collect_gregset): Use `gdb_byte *'
3547 instead of `char *' for regs.
3548 (i386_svr4_sigcontext_addr): Use gdb_byte for buf.
3549 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use gdb_byte for
3550 sigreturn and `gdb_byte *' for buf.
3551 (i386obsd_aout_supply_regset): Use `const gdb_byte *' in cast.
3552 (i386obsd_supply_uthread, i386obsd_collect_uthread): Use gdb_byte
3553 for buf.
3554 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use gdb_byte for buf.
3555
3556 * defs.h (gdb_byte): New typedef. Tweak comments.
3557
3558 * target.h (target_link): Remove prototype.
3559 * target.c (target_link): Remove function.
3560 * symfile.c: Remove comment about rombug.
3561
3562 2005-05-04 Mark Kettenis <kettenis@gnu.org>
3563
3564 * config/i386/cygwin.mh (XM_FILE): Remove variable.
3565 * config/i386/xm-cygwin.h: Remove file.
3566
3567 2005-05-03 Ben Elliston <bje@au.ibm.com>
3568
3569 * infrun.c (handle_inferior_event): Update the comment about users
3570 of stepped_after_stopped_by_watchpoint.
3571
3572 2005-05-02 Corinna Vinschen <vinschen@redhat.com>
3573
3574 * MAINTAINERS: Remove hint that sh64 doesn't build.
3575 * sh64-tdep.c (sh64_push_dummy_call): Cast buf in call to write_memory.
3576 (sh64_do_fp_register): make raw_buffer unsigned.
3577 (sh64_do_register): Ditto.
3578
3579 2005-05-02 Mark Kettenis <kettenis@gnu.org>
3580
3581 * bsd-uthread.c: Include "solib.h".
3582 * Makefile.in (bsd-uthread.o): Update dependencies.
3583
3584 2005-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3585
3586 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Flush
3587 cached frames when changing gdbarch.
3588 * gdbarch.c: Regenerated.
3589
3590 2005-05-01 Andrew Cagney <cagney@gnu.org>
3591
3592 * MAINTAINERS: Note that cris, m68k, mn10300, sh64, sparc and vax
3593 do not build.
3594
3595 * gdbarch.sh (deprecated_extract_return_value)
3596 (breakpoint_from_pc, deprecated_store_return_value)
3597 (memory_insert_breakpoint, memory_remove_breakpoint): Change type
3598 of buffer to a bfd_byte pointer.
3599 * gdbarch.h, gdbarch.c: Re-generate.
3600 * mem-break.c (memory_insert_breakpoint)
3601 (memory_remove_breakpoint, default_memory_insert_breakpoint)
3602 (default_memory_remove_breakpoint): Update.
3603 * target.h (memory_insert_breakpoint)
3604 (memory_remove_breakpoint, default_memory_insert_breakpoint)
3605 (default_memory_remove_breakpoint): Update declarations.
3606 (struct target_ops): Update to_insert_breakpoint and
3607 to_remove_breakpoint.
3608 * target.c (debug_to_remove_breakpoint)
3609 (debug_to_insert_breakpoint): Update.
3610 * remote-m32r-sdi.c (m32r_remove_breakpoint)
3611 (m32r_insert_breakpoint): Update.
3612 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3613 (m32r_memory_remove_breakpoint): Update.
3614 * remote-e7000.c (e7000_insert_breakpoint)
3615 (e7000_remove_breakpoint): Update.
3616 * remote-rdi.c (arm_rdi_insert_breakpoint)
3617 (arm_rdi_remove_breakpoint): Update.
3618 * remote-sim.c (gdbsim_insert_breakpoint)
3619 (gdbsim_remove_breakpoint): Update.
3620 * exec.c (ignore): Update.
3621 * rs6000-tdep.c (rs6000_extract_return_value): Update.
3622 * ia64-tdep.c (ia64_memory_insert_breakpoint)
3623 (ia64_memory_remove_breakpoint): Update.
3624 * remote-rdp.c (remote_rdp_insert_breakpoint)
3625 (remote_rdp_remove_breakpoint): Update.
3626
3627 2005-05-01 Mark Kettenis <kettenis@gnu.org>
3628
3629 * somsolib.c, somsolib.h: Remove files.
3630 * Makefile.in (somsolib_h): Remove.
3631 (somsolib.o): Remove dependency.
3632
3633 * fbsd-nat.c: Include <sys/sysctl.h>.
3634 (fbsd_pid_to_exec_file): Use KERN_PROC_PATHNAME sysctl if
3635 available. Plug memory leak. Fixes PR gdb/1922.
3636
3637 2005-04-29 Mark Kettenis <kettenis@gnu.org>
3638
3639 * solist.h (TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB)
3640 (TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK)
3641 (TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS)
3642 (TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): Remove defines.
3643 * solib.c (solib_data): New variable.
3644 (solib_init, solib_ops): New functions.
3645 (solib_open, solib_map_sections, free_so, update_solib_list)
3646 (solib_add, clear_solib, solib_create_inferior_hook)
3647 (in_solib_dynsym_resolve_code): Call architecture-dependent code
3648 using solib_ops.
3649 (_initialize_solib): Register SOLIB_DATA.
3650
3651 2005-04-29 Kevin Buettner <kevinb@redhat.com>
3652
3653 * frv-tdep.c (find_func_descr): Verify that entry point can be
3654 found in symbol table prior to looking up its function descriptor.
3655 * solib-frv.c (find_canonical_descriptor_in_load_object): Add
3656 test for non-NULL link map.
3657
3658 2005-04-29 Corinna Vinschen <vinschen@redhat.com>
3659
3660 * MAINTAINERS: Revert h8300 state to un-deleted.
3661 * Makefile.in: Re-add h8300-tdep.o dependencies.
3662 * h8300-tdep.c: Slightly rearrange type definitions and functions.
3663 (struct frame_extra_info): Remove.
3664 (struct h8300_frame_cache): Replace locals with differently defined
3665 uses_fp member.
3666 (h8300_unwind_pc): Simplify.
3667 (h8300_unwind_sp): New function.
3668 (h8300_unwind_dummy_id): Simplify.
3669 (h8300_init_frame_cache): New function.
3670 (h8300_is_argument_spill): Use reworked defines for opcode scanning.
3671 (h8300_skip_prologue): Rewrite.
3672 (h8300_alloc_frame_cache): Remove.
3673 (h8300_analyze_frame_setup): Remove.
3674 (h8300_analyze_register_saves): Remove.
3675 (h8300_analyze_prologue): Rewrite.
3676 (h8300_frame_cache): Use h8300_init_frame_cache instead of
3677 h8300_alloc_frame_cache. Use BINWORD instead of constant 4 to
3678 accomodate 16 bit mode. Fix saved_sp and register offset evaluation.
3679 (h8300_frame_this_id): Correctly calculate this_id using saved stack
3680 pointer instead of base.
3681 (h8300_frame_prev_register): Drop needless braces.
3682 (h8300_frame_base_address): New function.
3683 (h8300_frame_base): New frame_base.
3684 (h8300_push_dummy_call): Return correct CFA value.
3685 (h8300h_extract_return_value): Fix 8 byte value handling.
3686 (h8300_use_struct_convention): New function.
3687 (h8300h_use_struct_convention): New function.
3688 (h8300h_store_return_value): Fix 8 byte value handling.
3689 (h8300_return_value): New function.
3690 (h8300h_return_value): New function.
3691 (h8300_extract_struct_value_address): Remove deprecated functionality.
3692 (h8300_push_dummy_code): Remove.
3693 (h8300_gdbarch_init): Replace set_gdbarch_extract_return_value and
3694 set_gdbarch_store_return_value calls by set_gdbarch_return_value.
3695 Remove calls to set_gdbarch_deprecated_fp_regnum,
3696 set_gdbarch_deprecated_extract_struct_value_address,
3697 set_gdbarch_deprecated_use_struct_convention and
3698 set_gdbarch_push_dummy_code.
3699 Add calls to set_gdbarch_unwind_sp and frame_base_set_default.
3700 Slightly rearrange code.
3701
3702 2005-04-28 Jim Blandy <jimb@redhat.com>
3703
3704 * parse.c (namecopy): Change allocation conventions.
3705 (namecopy_size): New variable.
3706 (copy_name): Allocate namecopy using xrealloc, instead of assuming
3707 it has adequate space allocated to it.
3708 (parse_exp_1): Don't try to allocate space for namecopy here.
3709
3710 2005-04-28 Eli Zaretskii <eliz@gnu.org>
3711
3712 * cli/cli-cmds.c (edit_command): If symtab->fullname is not yet
3713 set, use symtab_to_fullname, instead of trying to do its job. Use
3714 xstrprintf instead of malloc and sprintf.
3715
3716 2005-04-28 Kevin Buettner <kevinb@redhat.com>
3717
3718 * remote.c (init_remote_state): Eliminate use of
3719 deprecated_register_bytes().
3720
3721 2005-04-28 Andrew Cagney <cagney@gnu.org>
3722
3723 * valops.c (check_field): Make buffer a bfd_byte.
3724 * value.c (unpack_long, unpack_double, unpack_pointer)
3725 (unpack_field_as_long, modify_field): Ditto.
3726 * value.h: Update declarations.
3727
3728 2005-04-28 Paul Brook <paul@codesourcery.com>
3729
3730 * exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
3731
3732 2005-04-27 Mark Kettenis <kettenis@gnu.org>
3733
3734 * solib-svr4.c (_initialize_svr4_solib)
3735 [SVR4_FETCH_LINK_MAP_OFFSETS]: Don't set non-existent variable
3736 svr4_legacy_fetch_link_map_offsets.
3737
3738 * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
3739 (sh_gdbarch_init): Remove redundant prototype.
3740 * sh-linux-tdep.c: New file.
3741 * config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets):
3742 Remove prototype.
3743 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3744 * config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove
3745 solib-legacy.o.
3746 * Makefile.in (sh-linux-tdep.o): New.
3747
3748 * solib-svr4.c: Update copyright year. Include "gdb_assert.h".
3749 (SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
3750 defined.
3751 (legacy_fetch_link_map_offsets): Remove prototype.
3752 (fetch_link_map_offsets_gdbarch_data): Remove.
3753 (LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
3754 (first_link_map_member, open_symbol_file_object, svr4_current_sos)
3755 (svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
3756 instead of SVR4_FETCH_LINK_MAP_OFFSETS.
3757 (solib_svr4_data): New variable.
3758 (struct solib_svr4_ops): New.
3759 (solib_svr4_init): New fynction.
3760 (legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
3761 Remove functions.
3762 (svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
3763 using the new `struct solib_svr4_ops'.
3764 (_initialize_svr4_solib): Replace registration of per-architecture
3765 data. Add temporary hack to set
3766 svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
3767 is set.
3768 * Makefile.in (solib-svr4.o): Update dependencies.
3769
3770 2005-04-26 Mark Kettenis <kettenis@gnu.org>
3771
3772 * configure.tgt (*-*-freebsd*): Set gdb_osabi to
3773 GDB_OSABI_FREEBSD_ELF. Partial fix for PR gdb/1922.
3774
3775 2005-04-26 Andrew Cagney <cagney@gnu.org>
3776
3777 * remote.c (remote_open_1): Move "ex"'s declaration to where it is
3778 used.
3779 (remote_get_thread_local_address): Use throw_error, include a
3780 printed string.
3781 * linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
3782 * dwarf2loc.c (dwarf_expr_tls_address): Ditto.
3783 * cli/cli-script.c (script_from_file): Mark up throw_error message.
3784 * linespec.c (symtab_from_filename, decode_variable): Ditto.
3785
3786 2005-04-26 Andrew Cagney <cagney@gnu.org>
3787
3788 Rename 'struct exception' to 'struct gdb_exception'.
3789 * wrapper.c: Update.
3790 * varobj.c: Update.
3791 * tui/tui-interp.c: Update.
3792 * remote.c: Update.
3793 * mi/mi-main.c: Update.
3794 * mi/mi-interp.c: Update.
3795 * linux-thread-db.c: Update.
3796 * interps.h: Update.
3797 * interps.c: Update.
3798 * exceptions.h: Update.
3799 * exceptions.c: Update.
3800 * dwarf2loc.c: Update.
3801 * cli/cli-interp.c: Update.
3802 * cli/cli-script.c: Update.
3803 * breakpoint.c: Update.
3804
3805 2005-04-25 Mark Mitchell <mark@codesourcery.com>
3806
3807 * event-loop.c (gdb_select): Program defensively.
3808
3809 * event-loop.c (gdb_assert.h): Include.
3810 (<windows.h>): Include under Windows.
3811 (<io.h>): Likeiwse.
3812 (gdb_select): New function.
3813 (gdb_wait_for_event): Use it.
3814 * Makefile.in (event-loop.o): Depend on $(gdb_assert_h).
3815
3816 2005-04-23 Mark Kettenis <kettenis@gnu.org>
3817
3818 * sparc64-tdep.c: Include "dwarf2-frame.h".
3819 (sparc64_dwarf2_frame_init_reg): New function.
3820 * Makefile.in (sparc64-tdep.o): Update dependencies.
3821
3822 2005-04-22 David S. Miller <davem@davemloft.net>
3823
3824 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Add call to
3825 sparc64_init_abi().
3826
3827 2005-04-22 Mark Kettenis <kettenis@gnu.org>
3828
3829 * ser-base.c: Include "ser-base.h" instead of "ser-unix.h".
3830
3831 2005-04-22 Mark Mitchell <mark@codesourcery.com>
3832
3833 * ser-base.c (<sys/time.h>): Include.
3834
3835 2005-04-22 Mark Kettenis <kettenis@gnu.org>
3836
3837 * ppcobsd-tdep.c (ppcobsd_init_abi): Set return_value.
3838
3839 * sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
3840 (LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
3841 (LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
3842 macros.
3843 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
3844 instructions.
3845 * sparc64-linux-tdep.c: Reorder includes. Tweak a few comments.
3846 (LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
3847 macros.
3848 (sparc64_linux_rt_sigframe): Hardcode instructions.
3849 * Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
3850 dependencies.
3851
3852 * sparc-linux-tdep.c: Update copyright year.
3853 (sparc32_linux_init_abi): Set skip_trampoline_code and
3854 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
3855 Don't set software_single_step and don't call
3856 sparc32_sol2_init_abi.
3857 * sparc64-linux-tdep.c: Update copyright year.
3858 (sparc64_linux_init_abi): Set skip_trampoline_code and
3859 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
3860 Don't set software_single_step and don't call
3861 sparc64_sol2_init_abi.
3862
3863 2005-04-22 Eli Zaretskii <eliz@gnu.org>
3864
3865 * remote-st.c (_initialize_remote_st2000): Remove the extraneous
3866 "<command>" string from the call to add_com.
3867
3868 * remote-sim.c (_initialize_remote_sim): Ditto.
3869
3870 * remote-utils.c (_initialize_sr_support): Ditto.
3871
3872 * remote-mips.c (_initialize_remote_mips): Ditto.
3873
3874 2005-04-21 David S. Miller <davem@davemloft.net>
3875
3876 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): New function.
3877 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): New tramp_frames.
3878 (sparc_linux_sigtramp_start, sparc32_linux_sigtramp_start,
3879 sparc32_linux_rt_sigtramp_start, sparc32_linux_sigtramp_p,
3880 sparc32_linux_sigtramp_frame_cache,
3881 sparc32_linux_sigtramp_frame_this_id,
3882 sparc32_linux_sigtramp_frame_prev_register,
3883 sparc32_linux_sigtramp_frame_unwind,
3884 sparc32_linux_sigtramp_frame_sniffer): Delete.
3885 (sparc32_linux_init_abi): Register new tramp unwinders. Kill
3886 register of old sigtramp sniffer.
3887 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): New
3888 function.
3889 (sparc64_linux_rt_sigframe): New tramp frame.
3890 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
3891 sparc64_linux_sigtramp_frame_cache,
3892 sparc64_linux_sigtramp_frame_this_id,
3893 sparc64_linux_sigtramp_frame_prev_register,
3894 sparc64_linux_sigtramp_frame_unwind,
3895 sparc64_linux_sigtramp_frame_sniffer): Delete.
3896 (sparc64_linux_init_abi): Register new tramp unwinders. Kill
3897 register of old sigtramp sniffer.
3898 Makefile.in (sparc64-linux-tdep.o): Update dependencies.
3899 (sparc-linux-tdep.o): Likewise.
3900
3901 2005-04-21 Mark Kettenis <kettenis@gnu.org>
3902
3903 * ser-base.c: Include "gdb_string.h".
3904 * Makefile.in (ser-base.o): Update dependencies.
3905
3906 2005-04-20 David S. Miller <davem@davemloft.net>
3907
3908 * sparc-linux-tdep.c (sparc32_linux_sigtramp_p): Fix
3909 signal return stub symbol names, __restore and __restore_rt are
3910 the i386 symbol names not the sparc ones.
3911 (sparc32_linux_sigtramp_frame_cache): Document bits/sigcontext.h
3912 as where the offsets were obtained from.
3913 * sparc64-linux-tdep.c (LINUX64_RT_SIGTRAMP_INSN0,
3914 LINUX64_RT_SIGTRAMP_INSN1): New defines.
3915 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
3916 sparc64_linux_sigtramp_frame_cache,
3917 sparc64_linux_sigtramp_frame_this_id,
3918 sparc64_linux_sigtramp_frame_prev_register,
3919 sparc64_linux_sigtramp_frame_sniffer): New functions.
3920 (sparc64_linux_sigtramp_frame_unwind): New frame unwinder.
3921 (sparc64_linux_init_abi): Register sigtramp frame sniffer.
3922 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
3923
3924 2005-04-20 Mark Mitchell <mark@codesourcery.com>
3925
3926 * configure.ac: On MinGW, define USE_WIN32API and link with
3927 -lws2_32.
3928 * ser-tcp.c (<winsock2.h>): Include, for Windows.
3929 (ETIMEDOUT): Define, for Windows.
3930 (ioctl): Likewise.
3931 (closesocket): Define, for POSIX.
3932 (net_open): Adjust for differences in socket functions between
3933 Windows and UNIX.
3934 (net_close): Likweise.
3935 (net_read_prim): New function.
3936 (net_write_prim): Likewise.
3937 (_initialize_ser_tcp): Initialize winsock. Fill in read_prim and
3938 write_prim.
3939 * ser-unix.h (ser_unix_readcchar): Remove.
3940 (ser_unix_read_prim): Declare.
3941 (ser_unix_write_prim): Likewise.
3942 * ser-unix.c (generic_readchar): Move to ser-base.c.
3943 (ser_unix_wait_for): Likewise.
3944 (do_unix_readchar): Likewise.
3945 (ser_unix_readchar): Likewise.
3946 (_initialize_ser_hardwire): Initialize read_prim and write_prim.
3947 (ser_unix_read_prim): New function.
3948 (ser_unix_write_prim): Likewise.
3949 * ser-base.h (generic_readchar): Declare.
3950 (ser_base_readchar): Likewise.
3951 * ser-base.c (<winsock2.h>): Include, for windows.
3952 (fd_event): Use the read primitive specified by the serial
3953 interface.
3954 (ser_base_wait_for): Moved from ser-unix.c
3955 (do_ser_base_read_char): Likewise.
3956 (generic_readchar): Likewise.
3957 (ser_base_readchar): Likewise.
3958 (ser_base_write): Use the write primitive specified by the serial
3959 interface.
3960 * ser-pipe.c (_initialize_ser_pipe): Use ser_base_readchar, not
3961 ser_unix_readchar. Initialize read_prim and write_prim.
3962 * serial.c (struct serial_ops): Add read_prim and write_prim.
3963 * configure: Regenerate.
3964
3965 2005-04-19 Ben Elliston <bje@au.ibm.com>
3966
3967 * c-lang.c (c_create_fundamental_type): Comment fix.
3968
3969 2005-04-18 Michael Snyder <msnyder@redhat.com>
3970
3971 * mn10300-tdep.c: Assimilate code from mn10300-prologue.c.
3972 * mn10300-prologue.c: Remove.
3973 * mn10300-tdep.h: Add enums from mn10300-prologue.c.
3974 Remove prototypes.
3975 * config/mn10300/mn10300.mt: Remove mn10300-prologue module.
3976
3977 2005-04-18 Michael Snyder <msnyder@redhat.com>
3978
3979 * config/mn10300/mn10300.mt: Add mn10300-prologue module.
3980 * ia64-tdep.c (ia64_get_dyn_info_list): Fix indent.
3981
3982 2005-04-18 Mark Kettenis <kettenis@gnu.org>
3983
3984 * config/nm-bsd.h: Remove file.
3985
3986 * hppabsd-nat.c: Update copyright year. Include "target.h" and
3987 "inf-ptrace.h".
3988 (hppabsd_fetch_registers): Renamed from fetch_inferior_registers;
3989 made static.
3990 (hppabsd_store_registers): Renamed from store_inferior_registers;
3991 made static.
3992 (_initialize_hppabsd_nat): New function and prototype.
3993 * config/pa/obsd.mh (NATDEPFILES): Remove infptrace.o and
3994 inftarg.o. Add inf-ptrace.o.
3995 (NAT_FILE): Remove.
3996 * Makefile.in (hppabsd-nat.o): Update dependencies.
3997
3998 2005-04-17 Mark Kettenis <kettenis@gnu.org>
3999
4000 * pa64solib.c, pa64solib.h: Remove files.
4001 * Makefile.in (pa64solib_h): Remove variable
4002 (pa64solib.o): Remove dependency.
4003
4004 2005-04-16 Mark Kettenis <kettenis@gnu.org>
4005
4006 * ppcobsd-nat.c: Update copyright year. Include "inf-ptrace.h".
4007 (ppcobsd_fetch_registers): Renamed from fetch_inferior_registers;
4008 made static.
4009 (ppcobsd_store_registers): Renamed from store_inferior_registers;
4010 made static.
4011 (_initialize_ppcobsd_nat): Construct and add target vector.
4012 * config/powerpc/obsd.mh (NATDEPFILES): Remove infptrace.o and
4013 inftarg.o. Add inf-ptrace.o.
4014 (NAT_FILE): Remove.
4015 * Makefile.in (ppcobsd-nat.o): Update dependencies.
4016
4017 * ppcobsd-tdep.c: Include "floatformat.h".
4018 (ppcobsd_init_abi): Set long_double_bit and long_double_format.
4019 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
4020
4021 * ppcobsd-tdep.c: Fix typo in comment.
4022 (_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
4023 bfd_arch_rs6000 too.
4024
4025 2005-04-15 Kevin Buettner <kevinb@redhat.com>
4026
4027 * remote.c (remote_get_thread_local_address): Throw a more
4028 meaningful exception when remote target doesn't have support
4029 for the qGetTLSAddr packet.
4030
4031 2005-04-15 Kevin Buettner <kevinb@redhat.com>
4032
4033 * remote.c (remote_protocol_qGetTLSAddr): New static global variable.
4034 (set_remote_protocol_qGetTLSAddr_packet_cmd)
4035 (show_remote_protocol_qGetTLSAddr_packet_cmd)
4036 (remote_get_thread_local_address): New functions.
4037 (init_all_packet_configs): Initialize remote_protocol_qGetTLSAddr
4038 variable.
4039 (init_remote_ops): Initialize ``to_get_thread_local_address'' in
4040 target vector.
4041 (show_remote_cmd): Call show_remote_protocol_qGetTLS_Addr_packet_cmd().
4042 (_initialize_remote): Register the following commands:
4043 "set remote get-thread-local-storage-address-packet" and
4044 "show remote get-thread-local-address-packet".
4045
4046 2005-04-15 Kevin Buettner <kevinb@redhat.com>
4047
4048 * remote.c (add_packet_config_cmd): Delete unused variables.
4049
4050 2005-04-15 Kevin Buettner <kevinb@redhat.com>
4051
4052 * remote.c (show_remote_protocol_vcont_packet_cmd )
4053 (show_remote_protocol_qSymbol_packet_cmd)
4054 (show_remote_protocol_P_packet_cmd)
4055 (show_remote_protocol_Z_software_bp_packet_cmd)
4056 (show_remote_protocol_Z_hardware_bp_packet_cmd)
4057 (show_remote_protocol_Z_write_wp_packet_cmd)
4058 (show_remote_protocol_Z_read_wp_packet_cmd)
4059 (show_remote_protocol_Z_access_wp_packet_cmd)
4060 (show_remote_protocol_binary_download_cmd)
4061 (show_remote_protocol_qPart_auxv_packet_cmd)
4062 (show_remote_protocol_p_packet_cmd ): Delete calls to
4063 deprecated_show_value_hack().
4064
4065 2005-04-15 Corinna VInschen <vinschen@redhat.com>
4066
4067 * MAINTAINERS: Change sh64-elf state to non-broken.
4068 * Makefile.in: Fix dependencies for sh64-tdep.o.
4069 * configure.tgt: Add sh64-*-elf case.
4070 * sh-tdep.c (sh_gdbarch_init): Reactivate bfd_mach_sh5 case.
4071 * sh64-tdep.c: Rework to replace all deprecated mechanisms with
4072 modern methods.
4073 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
4074 * config/sh/sh64.mt: Resurrect.
4075
4076 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
4077
4078 * regformats/reg-m32r.dat: New file.
4079
4080 2005-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4081
4082 * arm-tdep.c (fp_model_strings): Add terminating NULL.
4083 (arm_abi_strings, arm_abi_global, arm_abi_string): New
4084 variables.
4085 (arm_extract_return_value, arm_store_return_value): Don't use
4086 arm_get_fp_model.
4087 (arm_get_fp_model, arm_set_fp): Delete.
4088 (arm_update_current_architecture): New function.
4089 (set_fp_model_sfunc): Call arm_update_current_architecture.
4090 (show_fp_model): Update output messages.
4091 (arm_set_abi, arm_show_abi): New functions.
4092 (arm_elf_osabi_sniffer): Only handle ELFOSABI_ARM.
4093 (arm_gdbarch_init): Infer the object's ABI separately from its
4094 OSABI. Search for a matching architecture. Honor the global
4095 ABI and FPU settings. Set floating point format based on the
4096 architecture.
4097 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs):
4098 Delete.
4099 (_initialize_arm_tdep): Don't call gdbarch_register_osabi.
4100 Create "arm set abi" command.
4101 * arm-tdep.h (arm_get_fp_model): Delete prototype.
4102 (enum arm_abi_kind): New type.
4103 (struct gdbarch_tdep): Add arm_abi field.
4104 * arm-linux-tdep.c (arm_linux_init_abi): Only override
4105 tdep->fp_model if it is ARM_FLOAT_AUTO.
4106 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Likewise.
4107 (arm_netbsd_elf_init_abi): Likewise.
4108 * defs.h (enum gdb_osabi): Delete ARM-specific OSABIs.
4109 * osabi.c (gdb_osabi_name): Likewise.
4110
4111 2005-04-11 Daniel Jacobowitz <dan@codesourcery.com>
4112
4113 * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver.
4114
4115 2005-04-10 Mark Kettenis <kettenis@gnu.org>
4116
4117 * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
4118 floating-point registers.
4119 (ppc_collect_fpregset): Likewise. Fix collection of registers.
4120
4121 2005-04-09 Mark Kettenis <kettenis@gnu.org>
4122
4123 * ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"
4124 and "tramp-frame.h".
4125 (ppcobsd_sigtramp_cache_init): New function.
4126 (ppcobsd_sigtramp): New variable.
4127 (ppcobsd_init_abi): Prepend signal trampoline unwinder.
4128 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
4129
4130 2005-04-08 Andrew Cagney <cagney@gnu.org>
4131
4132 * MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
4133 Nasser have decided to step back from GDB/MI.
4134
4135 2005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
4136
4137 * config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
4138
4139 2005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
4140
4141 * dwarf2-frame.c (struct dwarf2_frame_cache): New field
4142 undefined_retaddr.
4143 (dwarf2_frame_cache): Initialize undefined_retaddr.
4144 (dwarf2_frame_this_id): Return an invalid frame ID if
4145 undefined_retaddr.
4146
4147 2005-04-05 Jim Blandy <jimb@redhat.com>
4148
4149 Move construction of IA-32 vector types to i386-tdep.c.
4150 * gdbtypes.c (build_builtin_type_vec64i,
4151 build_builtin_type_vec128i): Delete functions.
4152 (builtin_type_vec64i, builtin_type_vec128i): Delete variables.
4153 (build_gdbtypes): Don't initialize them.
4154 (_initialize_gdbtypes): Don't register GDBARCH swap entries for
4155 them.
4156 * gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
4157 declarations.
4158 (builtin_type_v2_float, builtin_type_v2_int32,
4159 builtin_type_v4_int16, builtin_type_v8_int8,
4160 builtin_type_v2_double, builtin_type_v4_float,
4161 builtin_type_v2_int64, builtin_type_v4_int32,
4162 builtin_type_v8_int16, builtin_type_v16_int8): Add extern
4163 declarations.
4164 * i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
4165 (i386_build_mmx_type, i386_build_sse_type): New functions.
4166 (i386_register_type): Call them, rather than referring to
4167 builtin_type_vec64i and builtin_type_vec128i.
4168
4169 2005-04-02 Daniel Jacobowitz <dan@codesourcery.com>
4170
4171 * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
4172 big-endian correction code to not offset 32-bit registers.
4173 Locate floating point registers correctly.
4174
4175 2005-04-02 Mark Kettenis <kettenis@gnu.org>
4176
4177 * main.c: Update copyright year.
4178 (captured_main): Avoid using strcpy and strcat.
4179
4180 2005-04-01 Michael Snyder <msnyder@redhat.com>
4181
4182 * dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
4183 computing this_id if there are no dummy frames on the stack.
4184
4185 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use
4186 find_partial_func instead of unwind_pc to identify frame.
4187 (mn10300_push_dummy_call): Handle struct args, struct_return.
4188
4189 * mn10300-prologue.c (set_movm_offsets): Don't test variable
4190 before setting it.
4191 * mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
4192 instead of skip_prologue_using_sal.
4193
4194 2005-03-31 Kevin Buettner <kevinb@redhat.com>
4195
4196 * solib-frv.c (struct lm_info): Add new field ``lm_addr''.
4197 (main_lm_addr): New static global.
4198 (frv_current_sos): Retain the link map address for each entry.
4199 (frv_clear_solib): Clear main_lm_addr.
4200 (frv_fetch_objfile_link_map): New function.
4201 * frv-tdep.c (frv_gdbarch_init): Register TLS load module fetcher.
4202 * frv-tdep.h (frv_fetch_objfile_link_map): Declare.
4203
4204 2005-03-31 Kevin Buettner <kevinb@redhat.com>
4205
4206 * gdbarch.sh (fetch_tls_load_module_address): New architecture method.
4207 * gdbarch.c, gdbarch.h: Regenerate.
4208 * dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
4209 address and pass this address, instead of the objfile address, to
4210 target_get_thread_local_address().
4211 * linux-thread-db.c (thread_db_get_thread_local_address): Change
4212 second parameter from type ``struct objfile *'' to CORE_ADDR. Do
4213 not call svr4_fetch_objfile_link_map() to fetch the load module
4214 address.
4215 * target.h (struct target_ops): Change second parameter of
4216 ``to_get_thread_local_address'' from ``struct objfile *'' to
4217 ``CORE_ADDR''.
4218 * alpha-linux-tdep.c (solib-svr4.h): Include.
4219 (alpha_linux_init_abi): Register TLS load module fetcher.
4220 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4221 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
4222 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4223 * ia64-linux-tdep.c (solib-svr4.h): Include.
4224 (ia64_linux_init_abi): Register TLS load module fetcher.
4225 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
4226 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
4227 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4228 * s390-tdep.c (s390_gdbarch_init): Likewise.
4229 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
4230 * sparc64-linux-tdep.c (solib-svr4.h): Include.
4231 (sparc64_linux_init_abi): Register TLS load module fetcher.
4232 * Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
4233 (sparc-linux-tdep.o): Update dependencies.
4234
4235 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4236
4237 * c-valprint.c (c_value_print): Fix up some formatting. Use
4238 check_typedef.
4239
4240 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4241
4242 * arm-linux-nat.c (store_register, store_regs): Handle
4243 ARM_PS_REGNUM.
4244
4245 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4246
4247 * arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
4248 (arm_linux_thumb_le_breakpoint): New. Update comments.
4249 (arm_linux_init_abi): Set Thumb breakpoints also.
4250
4251 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4252
4253 * Makefile.in (arm-tdep.o): Update dependencies.
4254 * arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
4255 (arm_gdbarch_init): Register dwarf2_frame_sniffer.
4256
4257 2005-03-28 Joel Brobecker <brobecker@adacore.com>
4258
4259 * irix5-nat.c (supply_fpregset): Fix bug that caused the FSR
4260 register value to be incorrectly written in the regcache.
4261 (fill_fpregset): Fix bug that caused the FSR register value
4262 to be incorrectly read from the regcache.
4263
4264 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
4265
4266 * remote-rdi.c (arm_rdi_insert_breakpoint): Don't call
4267 arm_pc_is_thumb_dummy.
4268
4269 2005-03-28 Mark Kettenis <kettenis@gnu.org>
4270
4271 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
4272 StackGhost.
4273
4274 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4275 Handle StackGhost in 64-bit code.
4276 * sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
4277
4278 2005-03-27 Christopher Faylor <cgf@timesys.com>
4279
4280 * win32-nat.c (handle_exception): Treat win32 routines which check for
4281 valid addresses as "special" and don't stop when a SEGV is detected.
4282 (get_child_debug_event): Properly flag exception as unhandled.
4283
4284 2005-03-26 Daniel Jacobowitz <dan@codesourcery.com>
4285
4286 * cp-support.c (cp_class_name_from_physname): Rewrite.
4287 (unqualified_name_from_comp): New function, broken out from
4288 method_name_from_physname. Correct handling for typed names
4289 and templates.
4290 (method_name_from_physname): Use unqualified_name_from_comp.
4291 (cp_func_name, remove_params): Move earlier in the file. Add
4292 better comments. Use the component tree to parse the name.
4293 (_initialize_cp_support): Remove stray whitespace.
4294
4295 2005-03-26 Mark Kettenis <kettenis@gnu.org>
4296
4297 * exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ.
4298
4299 * inflow.h: Update copyright year. Remove #ifdef SHORT_PGRP code.
4300 Callapse HAVE_TERMIO and HAVE_SGTTY.
4301
4302 * dwarf2-frame.c (execute_cfa_program): Implement
4303 DW_CFA_GNU_window_save.
4304
4305 2005-03-25 Mark Kettenis <kettenis@gnu.org>
4306
4307 * config/sparc/nbsd64.mh (NAT_FILE): Remove.
4308
4309 * config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o.
4310
4311 2005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
4312
4313 * arm-tdep.c (target_is_thumb, caller_is_thumb)
4314 (arm_pc_is_thumb_dummy): Remove.
4315 (arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
4316
4317 2005-03-25 Anthony Green <green@redhat.com>
4318
4319 * remote.c (remote_store_registers): Fix memset usage.
4320 * std-regs.c (value_of_builtin_frame_reg): Ditto.
4321 (value_of_builtin_frame_fp_reg): Ditto.
4322 (value_of_builtin_frame_reg): Ditto.
4323
4324 2005-03-25 Mark Mitchell <mark@codesourcery.com>
4325
4326 * ser-base.c (ser_unix_write): Rename to ...
4327 (ser_base_write): ... this.
4328 (ser_unix_nop_flush_output): Rename to ...
4329 (ser_base_flush_output): ... this.
4330 (ser_unix_flush_input): Rename to ...
4331 (ser_base_flush_input): ... this.
4332 (ser_unix_nop_send_break): Rename to ...
4333 (ser_base_send_break): ... this.
4334 (ser_unix_nop_drain_output): Rename to ...
4335 (ser_base_drain_output): ... this.
4336 (ser_unix_nop_raw): Rename to ...
4337 (ser_base_raw): ... this.
4338 (ser_unix_nop_get_tty_state): Rename to ...
4339 (ser_base_set_tty_state): ... this.
4340 (ser_unix_nop_noflush_set_tty_state): Rename to ...
4341 (ser_base_noflush_set_tty_state): ... this.
4342 (ser_unix_nop_print_tty_state): Rename to ...
4343 (ser_base_print_tty_state): ... this.
4344 (ser_unix_nop_setbaudrate): Rename to ...
4345 (ser_base_setbaudrate): ... this.
4346 (ser_unix_nop_setstopbits): Rename to ...
4347 (ser_base_setstopbits): ... this.
4348 (ser_unix_async): Rename to ...
4349 (ser_base_async): ... this.
4350 * ser-base.h (ser_unix_write): Rename to ...
4351 (ser_base_write): ... this.
4352 (ser_unix_nop_flush_output): Rename to ...
4353 (ser_base_flush_output): ... this.
4354 (ser_unix_flush_input): Rename to ...
4355 (ser_base_flush_input): ... this.
4356 (ser_unix_nop_send_break): Rename to ...
4357 (ser_base_send_break): ... this.
4358 (ser_unix_nop_drain_output): Rename to ...
4359 (ser_base_drain_output): ... this.
4360 (ser_unix_nop_raw): Rename to ...
4361 (ser_base_raw): ... this.
4362 (ser_unix_nop_get_tty_state): Rename to ...
4363 (ser_base_set_tty_state): ... this.
4364 (ser_unix_nop_noflush_set_tty_state): Rename to ...
4365 (ser_base_noflush_set_tty_state): ... this.
4366 (ser_unix_nop_print_tty_state): Rename to ...
4367 (ser_base_print_tty_state): ... this.
4368 (ser_unix_nop_setbaudrate): Rename to ...
4369 (ser_base_setbaudrate): ... this.
4370 (ser_unix_nop_setstopbits): Rename to ...
4371 (ser_base_setstopbits): ... this.
4372 (ser_unix_async): Rename to ...
4373 (ser_base_async): ... this.
4374 * ser-pipe.c (_initialize_ser_pipe): Update accordingly.
4375 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4376 * ser-unix.c (hardwire_flush_input): Likewise.
4377 (_initializer_ser_hardwire): Likewise.
4378
4379 * Makefile.in (SFILES): Add ser-base.c.
4380 (ser_base_h): New variable.
4381 (ser-base.o): New target.
4382 (ser-pipe.o): Depend on $(ser_base_h).
4383 (ser-tcp.o): Likewise.
4384 (ser-unix.o): Likewise. Do not depend on $(event_loop_h).
4385 * configure.ac (SER_HARDWIRE): Include ser-base.o where
4386 appropriate.
4387 * ser-base.c: New file.
4388 (push_event): Move from ser-unix.c.
4389 (fd_event): Likewise.
4390 (reschedule): Likewise.
4391 (ser_unix_write): Likewise.
4392 (ser_unix_nop_flush_output): Likewise.
4393 (ser_unix_flush_input): Likewise.
4394 (ser_unix_nop_send_break): Likewise.
4395 (ser_unix_nop_drain_output): Likewise.
4396 (ser_unix_nop_raw): Likewise.
4397 (ser_unix_nop_get_tty_state): Likewise.
4398 (ser_unix_nop_set_tty_state): Likewise.
4399 (ser_unix_nop_noflush_set_tty_state): Likewise.
4400 (ser_unix_nop_print_tty_state): Likewise.
4401 (ser_unix_nop_setbaudrate): Likewise.
4402 (ser_unix_nop_setstopbits): Likewise.
4403 (ser_unix_async): Likewise.
4404 * ser-base.h: New file.
4405 * ser-pipe.c (ser-base.h): Include it.
4406 * ser-tcp.c (ser-base.h): Likewise.
4407 * ser-unix.h (ser_unix_nop_flush_output): Remove.
4408 (ser_unix_flush_input): Likewise.
4409 (ser_unix_nop_send_break): Likewise.
4410 (ser_unix_nop_raw): Likewise.
4411 (ser_unix_nop_get_tty_state): Likewise.
4412 (ser_unix_nop_set_tty_state): Likewise.
4413 (ser_unix_nop_print_tty_state): Likewise.
4414 (ser_unix_nop_noflush_set_tty_state): Likewise.
4415 (ser_unix_nop_setbaudrate): Likewise.
4416 (ser_unix_nop_setstopbits): Likewise.
4417 (ser_unix_nop_drain_output): Likewise.
4418 (ser_unix_wait_for): Likewise.
4419 (ser_unix_write): Likewise.
4420 (ser_unix_async): Likewise.
4421 * ser-unix.c (event-loop.h): Do not include it.
4422 (push_event): Move to ser-base.c.
4423 (fd_event): Likewise.
4424 (reschedule): Likewise.
4425 (ser_unix_write): Likewise.
4426 (ser_unix_nop_flush_output): Likewise.
4427 (ser_unix_flush_input): Likewise.
4428 (ser_unix_nop_send_break): Likewise.
4429 (ser_unix_nop_drain_output): Likewise.
4430 (ser_unix_nop_raw): Likewise.
4431 (ser_unix_nop_get_tty_state): Likewise.
4432 (ser_unix_nop_set_tty_state): Likewise.
4433 (ser_unix_nop_noflush_set_tty_state): Likewise.
4434 (ser_unix_nop_print_tty_state): Likewise.
4435 (ser_unix_nop_setbaudrate): Likewise.
4436 (ser_unix_nop_setstopbits): Likewise.
4437 (ser_unix_async): Likewise.
4438 (ser_unix_wait_for): Make it static.
4439 * configure: Regenerated.
4440
4441 2005-03-25 Mark Kettenis <kettenis@gnu.org>
4442
4443 * dwarf2-frame.h: Update copyrigh year.
4444 (enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
4445 * dwarf2-frame.c: Update copyright year.
4446 (struct dwarf2_frame_cache): Add member `retaddr_reg'.
4447 (dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
4448 (dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
4449
4450 2005-03-23 Martin Hunt <hunt@redhat.com>
4451
4452 * configure.ac: Remove -fwritable-strings from CFLAGS.
4453 * configure: Regenerate.
4454
4455 2005-03-21 Michael Snyder <msnyder@redhat.com>
4456
4457 * mn10300-prologue.c (fix_frame_pointer): Delete.
4458 (set_movm_offsets) Don't return just because movm_args is
4459 zero -- still need to save pc and sp in saved_regs.
4460 (mn10300_analyze_prologue): Don't return prematurely without
4461 calling set_movm_offsets (for pc and sp at minimum).
4462
4463 2005-03-21 Mark Mitchell <mark@codesourcery.com>
4464
4465 * configure.ac (stat.st_blksize): Check for it.
4466 (getuid): Likewise.
4467 (getgid): Likewise.
4468 * configure: Regenerated.
4469 * config.in: Likewise.
4470 * remote-fileio.c (remote_fileio_to_fio_stat): Check
4471 HAVE_STRUCT_STAT_ST_BLKSIZE.
4472
4473 2005-03-21 Christopher Faylor <cgf@timesys.com>
4474
4475 * win32-nat.c (do_initial_child_stuff): Don't clear the thread list
4476 here.
4477 (do_initial_child_stuff): Move clearing of thread list to a place
4478 before a thread ould be created.
4479 (child_attach): Ditto.
4480
4481 2005-03-21 Michael Snyder <msnyder@redhat.com>
4482
4483 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
4484 instead of pc addr for frame_id. Otherwise "until" won't work.
4485
4486 2005-03-21 Kevin Buettner <kevinb@redhat.com>
4487
4488 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
4489 comment.
4490
4491 2005-03-20 Mark Kettenis <kettenis@gnu.org>
4492
4493 * dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
4494 * varobj.c (my_value_equal): Mark val2 as volatile.
4495
4496 * cp-names.y: Add prototype for yyparse.
4497
4498 2005-03-19 Daniel Jacobowitz <dan@codesourcery.com>
4499
4500 * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
4501 * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
4502 VALADDR.
4503
4504 2005-03-18 Kevin Buettner <kevinb@redhat.com>
4505
4506 * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies.
4507 * exceptions.h (TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_GENERIC_ERROR)
4508 (TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR):
4509 New error/exception enums.
4510 * dwarf2loc.c (exceptions.h): Include.
4511 (dwarf_expr_tls_address): Invoke target_get_thread_local_address()
4512 via TRY_CATCH mechanism. Print error messages for TLS related
4513 exceptions.
4514 * linux-thread-db.c (thread_db_get_thread_local_address): Throw
4515 exceptions instead of printing errors.
4516
4517 2005-03-18 Mark Kettenis <kettenis@gnu.org>
4518
4519 * utils.c (safe_strerror): Use xsnprintf instead of sprintf.
4520 (decimal2str, octal2str): Change to return a string allocated by
4521 get_cell. Use xsnprint instead of snprintf.
4522 (paddr_u, paddr_d): Adjust for changed calling convention of
4523 decimal2str.
4524 (phex, phex_nz, hex_string): Use xsnprintf instead of snprintf.
4525 (int_string): Likewise. Adjust for changed calling convention of
4526 decimal2str and octal2str.
4527
4528 2005-03-18 Kevin Buettner <kevinb@redhat.com>
4529
4530 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Update comments.
4531 Adjust incorrectly computed constant for realtime signal frame.
4532
4533 2005-03-18 Mark Kettenis <kettenis@gnu.org>
4534
4535 From Ralf Corsepius <ralf.corsepius@rtems.org>
4536 * configure.tgt: Add m68*-*-rtems*.
4537
4538 2005-03-17 Mark Kettenis <kettenis@gnu.org>
4539
4540 * defs.h (xsnprintf): New prototype.
4541 * utils.c (xsnprintf): New function.
4542
4543 * corelow.c (get_core_register_section): Replace usage of sprintf
4544 and strcpy with xstrprintf and xstrdup.
4545
4546 * mips-tdep.c (mips_single_step_through_delay): Put back check for
4547 breakpoint lost with the introduction of this function.
4548
4549 2005-03-17 Paul Brook <paul@codesourcery.com>
4550
4551 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic.
4552 * s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
4553
4554 2005-03-16 Mark Mitchell <mark@codesourcery.com>
4555
4556 * event-top.c (handle_sigquit): Do not define for systems without
4557 SIGQUIT.
4558 (sigquit_token): Likewise.
4559 (async_init_signals): Allow for systems that do not
4560 define SIGQUIT.
4561 * ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
4562
4563 2005-03-15 Mark Mitchell <mark@codesourcery.com>
4564
4565 * utils.c (internal_vproblem): Guard call to fork with
4566 HAVE_WORKING_FORK.
4567 * cli/cli-cmds.c (shell_escape): Guard call to vfork with
4568 HAVE_WORKING_VFORK and HAVE_WORKING_FORK.
4569
4570 * remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
4571 S_IRGRP and related macros.
4572 (remote_fileio_mode_to_target): Likewise.
4573
4574 2005-03-14 Ben Elliston <bje@au.ibm.com>
4575
4576 * Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
4577 more primitive library.
4578
4579 2005-03-13 Mark Kettenis <kettenis@gnu.org>
4580
4581 * inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
4582 sprintf.
4583 * target.c (normal_pid_to_str): Likewise.
4584 * remote.c (remote_pid_to_str): Use snprint instead of sprintf.
4585 Change capitalization of "thread". Use ptid_get_pid instead of
4586 GETPID.
4587
4588 * cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
4589 a combination of xmalloc and sprintf.
4590
4591 2005-03-13 Jim Blandy <jimb@redhat.com>
4592
4593 * configure.ac: Use '=', not '=='; the latter is a GNU extension.
4594 * configure: Regenerated.
4595
4596 2005-03-11 Michael Snyder <msnyder@redhat.com>
4597
4598 * mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
4599 stub fn with real implementatin mn10300_unwind_dummy_id.
4600 (mn10300_push_dummy_call): Implement. Bare bones version,
4601 does not handle structs or floats.
4602
4603 2005-03-11 Jim Blandy <jimb@redhat.com>
4604
4605 Avoid warnings due to the use of -Wuninitialized without -O.
4606 * configure.ac (build_warnings): Include -Wuninitialized only if
4607 CFLAGS is unset at configure time, or CFLAGS is set and includes
4608 some -O option other than -O0.
4609 * configure: Regenerated.
4610
4611 * mips-tdep.c (show_mips_abi): Change calling conventions to match
4612 those expected by add_setshow_enum_cmd. Use 'file' argument as
4613 appropriate.
4614
4615 2005-03-10 Daniel Jacobowitz <dan@codesourcery.com>
4616
4617 * Makefile.in (SFILES): Add cp-names.y.
4618 (libiberty_h, safe_ctype_h): New.
4619 (YYFILES): Add cp-names.c.
4620 (YYOBJ): Add cp-names.o.
4621 (test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
4622 (clean): Remove test-cp-names$(EXEEXT).
4623 (local-maintainer-clean): Remove cp-names.c.
4624 * cp-names.y: New file.
4625 * cp-support.c (find_last_component): Delete.
4626 (d_left, d_right): Define.
4627 (cp_canonicalize_string, mangled_name_to_comp): New functions.
4628 (cp_class_name_from_physname, method_name_from_physname): Rewrite
4629 to use mangled_name_to_comp.
4630 * cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
4631 (cp_comp_to_string): New prototypes.
4632 * config/djgpp/fnchange.lst: Add cp-names.c.
4633
4634 2005-03-10 Bob Rossi <bob@brasko.net>
4635
4636 * main.c (print_gdb_help): Remove the --[no]async help message.
4637
4638 2005-03-10 Mark Kettenis <kettenis@gnu.org>
4639
4640 * proc-api.c: Update copyright year.
4641 (_initialize_proc_api): Revert previous patch, removing spurious
4642 space instead.
4643
4644 2005-03-09 Joel Brobecker <brobecker@adacore.com>
4645
4646 * regcache.c: Fix typo in comment.
4647
4648 2005-03-09 David Lecomber <david@lecomber.net>
4649
4650 * proc-api.c (_initialize_proc_api): Fix invalid multi-line
4651 i18n text.
4652
4653 2005-03-09 Mark Kettenis <kettenis@gnu.org>
4654
4655 * sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
4656 address for 64-bit code.
4657 (sparc_unwind_dummy_id): Likewise.
4658 * sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
4659 frame base address convention.
4660 (sparc64_push_dummy_call): Likewise.
4661 * sparc64nbsd-tdep.c: Update copyright year.
4662 (sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
4663 address for 64-bit code.
4664 (sparc64nbsd_init_abi): Tweak comment.
4665 * sparc64obsd-tdep.c: Update copyright year.
4666 (sparc64obsd_frame_cache): Adjust cached frame base address for
4667 64-bit code.
4668 (sparc64obsd_init_abi): Tweak comment.
4669
4670 2005-03-09 Corinna Vinschen <vinschen@redhat.com>
4671
4672 * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
4673
4674 2005-03-09 Joel Brobecker <brobecker@adacore.com>
4675
4676 * dwarf2read.c (dwarf_decode_lines): Use the complete filename
4677 when creating include psymtabs.
4678
4679 2005-03-08 Mark Mitchell <mark@codesourcery.com>
4680
4681 * environ.h (struct environ): Rename to ...
4682 (struct gdb_environ): ... this.
4683 (make_environ): Update prototype.
4684 (free_environ): Likewise.
4685 (init_environ): Likewise.
4686 (get_in_environ): Likewise.
4687 (set_in_environ): Likewise.
4688 (unset_in_environ): Likewise.
4689 (environ_vector): Likewise.
4690 * environ.c (make_environ): Replace "struct environ" with "struct
4691 gdb_environ".
4692 (free_environ): Likewise.
4693 (init_environ): Likewise.
4694 (environ_vector): Likewise.
4695 (get_in_environ): Likewise.
4696 (set_in_environ): Likewise.
4697 (unset_in_environ): Likewise.
4698 * infcmd.c (inferior_environ): Likewise.
4699 * inferior.h (inferior_environ): Likewise.
4700
4701 2005-03-08 Joel Brobecker <brobecker@adacore.com>
4702
4703 * infcmd.c (run_command_1): New function, extracted from
4704 run_command.
4705 (run_command): Replace implementation by call to run_command_1.
4706 (start_command): Use run_command_1 to insert the temporary
4707 breakpoint and run the program. Remove code that's no longer
4708 needed, as already done at the proper time by run_command_1.
4709
4710 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4711
4712 * symfile.c (clear_symtab_users): Call
4713 clear_current_source_symtab_and_line first.
4714
4715 2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
4716
4717 * ax-gdb.c (gen_expr): Add UNOP_PLUS case.
4718 * c-exp.y (exp): Add unary plus.
4719 * eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
4720 * valarith.c (value_x_unop): Add UNOP_PLUS case.
4721 (value_pos): New.
4722 * value.h (value_pos): Declare.
4723
4724 * remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
4725 (remote_fetch_registers): Allow uppercase hex when resyncing.
4726 (remote_write_bytes): Only call get_memory_write_packet_size once.
4727 Robustify packet size calculation for very small packets. Check
4728 that at least one byte will be written.
4729
4730 * tracepoint.c (target_is_remote): Allow extended-remote.
4731 (struct collection_list): Allow 256 registers, like the comment
4732 said.
4733 (add_memrange): Fix comment.
4734 (read_actions): Turn EOF into 'end'.
4735
4736 2005-03-08 Corinna Vinschen <vinschen@redhat.com>
4737
4738 * Makefile.in: Add dependencies for iq2000-tdep.o.
4739 * configure.tgt: Add iq2000-*-* target.
4740 * iq2000-tdep.c: New file.
4741 * config/iq2000/iq2000.mt: New file.
4742
4743 2005-03-07 Joel Brobecker <brobecker@adacore.com>
4744
4745 * doc/observer.texi (executable_changed): New observer.
4746 * symtab.c: Include "observer.h".
4747 (find_main_name): New function.
4748 (main_name): If name_of_main is unset, then compute it
4749 using find_main_name.
4750 (symtab_observer_executable_changed): New function.
4751 (_initialize_symtab): Attach executable_changed observer.
4752 * exec.c: Include "observer.h".
4753 (exec_file_attach): Emit executable_changed notification.
4754 * symfile.c: Include "observer.h".
4755 (reread_symbols): Send an executable_changed if appropriate.
4756 * Makefile.in (exec.o): Add dependency on observer.h.
4757 (symfile.o): Likewise.
4758 (symtab.o): Likewise.
4759
4760 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
4761
4762 * findvar.c (read_var_value): Don't allocate V when it will not
4763 be used. Add missing break for LOC_INDIRECT.
4764
4765 2005-03-06 Mark Kettenis <kettenis@gnu.org>
4766
4767 * sparc64fbsd-tdep.c: Include "solib-svr4.h".
4768 (sparc64fbsd_init_abi): Set skip_trampoline_code and
4769 solib_svr4_fetch_link_map_offsets.
4770 * Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
4771
4772 2005-03-06 Daniel Jacobowitz <dan@codesourcery.com>
4773
4774 * linux-nat.c (child_follow_fork): Call target_terminal_ours before
4775 printing output. Use fprintf_unfiltered. Only print output when
4776 debugging.
4777
4778 2005-03-05 Mark Kettenis <kettenis@gnu.org>
4779
4780 * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
4781 argument.
4782 (sparc64_store_arguments): Constify.
4783
4784 2005-03-05 Mark Kettenis <kettenis@gnu.org>
4785
4786 * alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h".
4787 (alphabsd_fetch_inferior_registers): Rename from
4788 fetch_inferior_registers. Make static.
4789 (alphabsd_store_inferior_registers): Rename from
4790 store_inferior_registers. Make static.
4791 (_initialize_alphabsd_nat): New function.
4792 * Makefile.in (alphabsd-nat.o): Update dependencies.
4793 * config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and
4794 inftarg.o. Add inf-ptrace.o, fbsd-nat.o and gcore.o.
4795 * config/alpha/nbsd.mh (NAT_CLIBS): Remove variable.
4796 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
4797 alphabsd-nat.o.
4798 * config/alpha/nm-fbsd.h: Update copyright year. Don't include
4799 "config/nm-bsd.h" and "elf/common.h".
4800 * config/alpha/nm-nbsd.h: Update copyright year. Don't include
4801 "config/nm-nbsd.h".
4802
4803 * mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
4804 software_single_step.
4805
4806 2005-03-04 Michael Snyder <msnyder@redhat.com>
4807
4808 * mn10300-prologue.c: New file. Prologue analysis.
4809 * mn10300-tdep.c: Move REGNUM values to mn10300-tdep.h.
4810 (mn10300_frame_unwind_cache): Don't call trad_frame_set_id
4811 until after analyze_prologue, and don't call trad_frame_set_base
4812 at all (let analyze_prologue do it).
4813
4814 2005-03-04 Michael Snyder <msnyder@redhat.com>
4815
4816 * trad-frame.c (trad_frame_set_reg_value): New function.
4817 * trad-frame.h (trad_frame_set_reg_value): Export.
4818
4819 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
4820
4821 * Makefile.in (remote.o): Update dependencies.
4822 * remote.c: Include "observer.h".
4823
4824 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
4825
4826 * target.c (target_read_memory_partial): Always initialize
4827 ERR.
4828 (target_write_memory_partial): Likewise.
4829
4830 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
4831
4832 * remote.c (remote_open_1): Call observer_notify_inferior_created.
4833
4834 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
4835
4836 * arm-tdep.c (arm_make_stub_cache, arm_stub_this_id)
4837 (arm_stub_unwind, arm_stub_unwind_sniffer): New.
4838 (arm_gdbarch_init): Add arm_stub_unwind_sniffer.
4839
4840 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
4841
4842 * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
4843 Use LWP IDs.
4844
4845 2005-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4846
4847 * dwarf2loc.c (loclist_read_variable): Set optimized_out
4848 instead of reporting an error.
4849 * valprint.c (value_check_printable): New function.
4850 (common_val_print): New function. Use value_check_printable.
4851 (value_print): Use value_check_printable.
4852 * value.h (common_val_print): Add prototype.
4853
4854 * c-valprint.c (c_val_print): Use common_val_print.
4855 * cp-valprint.c (cp_print_value_fields): Likewise.
4856 (cp_print_hpacc_virtual_table_entries): Likewise.
4857 * f-valprint.c (f_val_print): Likewise.
4858 * jv-valprint.c (java_value_print, java_print_value_fields):
4859 Likewise.
4860 * scm-valprint.c (scm_value_print): Likewise.
4861 * stack.c (print_frame_args): Likewise.
4862 * varobj.c (c_value_of_variable): Likewise.
4863 * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
4864 (pascal_object_print_value_fields): Likewise. Update call to
4865 pascal_object_print_static_field.
4866 (pascal_object_print_static_field): Remove TYPE argument. Use
4867 common_val_print.
4868
4869 2005-02-25 Mark Kettenis <kettenis@gnu.org>
4870
4871 Committed by Elena Zannoni <ezannoni@redhat.com>
4872
4873 * dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
4874 info_ptr before building psymtabs for included files.
4875 (create_all_comp_units): Initailize initial length size of
4876 compilation header to zero.
4877 (read_initial_length): Complain if both 32-bit and 64-bit DWARF
4878 sections are encountered within the same compilation header.
4879 (dwarf_decode_line_header): Pass compilation header in call to
4880 read_initial_length.
4881
4882 2005-02-24 Andrew Cagney <cagney@gnu.org>
4883
4884 Add show_VARIABLE functions, update add_setshow call.
4885 * varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
4886 * valprint.c (_initialize_valprint, show_print_max)
4887 (show_stop_print_at_null, show_repeat_count_threshold)
4888 (show_prettyprint_structs, show_unionprint)
4889 (show_prettyprint_arrays, show_addressprint, show_input_radix)
4890 (show_output_radix): Ditto.
4891 * valops.c (_initialize_valops, show_overload_resolution): Ditto.
4892 * utils.c (initialize_utils, show_chars_per_line)
4893 (show_lines_per_page, show_demangle, show_pagination_enabled)
4894 (show_sevenbit_strings, show_asm_demangle): Ditto
4895 * tui/tui-win.c (_initialize_tui_win, show_tui_border_kind)
4896 (show_tui_border_mode, show_tui_active_border_mode): Ditto.
4897 * top.c (init_main, show_new_async_prompt)
4898 (show_async_command_editing_p, show_write_history_p)
4899 (show_history_size, show_history_filename, show_caution)
4900 (show_annotation_level, init_main): Ditto.
4901 * target.c (initialize_targets, show_targetdebug)
4902 (show_trust_readonly): Ditto.
4903 * symfile.c (_initialize_symfile, show_symbol_reloading)
4904 (show_ext_args, show_download_write_size)
4905 (show_debug_file_directory): Ditto.
4906 * source.c (_initialize_source, show_lines_to_list): Ditto.
4907 * solib.c (_initialize_solib, show_auto_solib_add)
4908 (show_solib_search_path): Ditto.
4909 * p-valprint.c (_initialize_pascal_valprint)
4910 (show_pascal_static_field_print): Ditto.
4911 * printcmd.c (_initialize_printcmd, show_max_symbolic_offset)
4912 (show_print_symbol_filename): Add and update.
4913 * parse.c (_initialize_parse, show_expressiondebug): Dito.
4914 * observer.c (_initialize_observer, show_observer_debug): Dito.
4915 * maint.c (_initialize_maint_cmds, show_watchdog)
4916 (show_maintenance_profile_p): Dito.
4917 * linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
4918 * infrun.c (_initialize_infrun, show_debug_infrun)
4919 (show_stop_on_solib_events, show_follow_fork_mode_string)
4920 (show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
4921 * infcall.c (_initialize_infcall, show_coerce_float_to_double_p)
4922 (show_unwind_on_signal_p): Ditto.
4923 * gdbtypes.c (build_gdbtypes, show_opaque_type_resolution)
4924 (_initialize_gdbtypes, show_overload_debug): Ditto.
4925 * gdb-events.c, gdb-events.sh (_initialize_gdb_events)
4926 (show_gdb_events_debug): Ditto.
4927 * gdbarch.c, gdbarch.sh (show_gdbarch_debug)
4928 (_initialize_gdbarch): Ditto.
4929 * frame.c (_initialize_frame, show_backtrace_past_main)
4930 (show_backtrace_past_entry, show_backtrace_limit)
4931 (show_frame_debug): Ditto.
4932 * exec.c (_initialize_exec, show_write_files): Ditto.
4933 * dwarf2read.c (_initialize_dwarf2_read)
4934 (show_dwarf2_max_cache_age): Ditto.
4935 * demangle.c (_initialize_demangler)
4936 (show_demangling_style_names): Ditto.
4937 * dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
4938 * cp-valprint.c (show_static_field_print)
4939 (_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
4940 * corefile.c (_initialize_core, show_gnutarget_string): Ditto.
4941 * cli/cli-logging.c (_initialize_cli_logging)
4942 (show_logging_overwrite, show_logging_redirect)
4943 (show_logging_filename): Ditto.
4944 * cli/cli-cmds.c (show_info_verbose, show_history_expansion_p)
4945 (init_cli_cmds, show_baud_rate, show_remote_debug)
4946 (show_remote_timeout, show_max_user_call_depth): Ditto.
4947 * charset.c (show_host_charset_name, show_target_charset_name)
4948 (initialize_charset): Ditto.
4949 * breakpoint.c (show_can_use_hw_watchpoints)
4950 (show_pending_break_support, _initialize_breakpoint): Ditto.
4951
4952 2005-02-23 Jim Blandy <jimb@redhat.com>
4953
4954 * disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.
4955
4956 2005-02-23 Andrew Cagney <cagney@gnu.org>
4957
4958 * cli/cli-dump.c (dump_bfd_file): Replace magic constant with
4959 SEC_XXX flags.
4960
4961 2005-02-22 Andrew Cagney <cagney@gnu.org>
4962
4963 * configure.ac: Only enaable insight when itcl is present.
4964 * configure: Re-generate.
4965
4966 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4967
4968 Committed by Andrew Cagney.
4969 * infptrace.c (store_register): Fix typo.
4970
4971 2005-02-21 Andrew Cagney <cagney@gnu.org>
4972
4973 * command.h (deprecated_add_set_cmd): Rename add_set_cmd.
4974 * cli/cli-decode.h (add_set_cmd): Delete declaration.
4975 * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
4976 * i386-nat.c (_initialize_i386_nat): Update call.
4977 * valprint.c (_initialize_valprint): Update comment.
4978 * gnu-nat.c (_initialize_gnu_nat): Update call.
4979
4980 2005-02-21 Alan Modra <amodra@bigpond.net.au>
4981
4982 * elfread.c (elf_symtab_read): Discard section syms.
4983
4984 2005-02-21 Andrew Cagney <cagney@gnu.org>
4985
4986 * cli/cli-decode.c (add_set_enum_cmd): Delete function.
4987 (deprecated_add_show_from_set): Delete function.
4988 * command.h (add_set_enum_cmd): Delete declaration.
4989 (deprecated_add_show_from_set): Delete declaration.
4990 * cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
4991 (deprecated_add_show_from_set): Delete declaration.
4992 * arm-tdep.c (_initialize_arm_tdep): Update comment.
4993 * kod.c (kod_set_os): Simplify.
4994 * infrun.c (set_schedlock_func): Simplify.
4995 * cli/cli-dump.c (add_dump_command): Update comment.
4996
4997 Replace string variables with a filename completer with
4998 add_setshow_optional_filename_cmd.
4999 * solib.c, symfile.c: Update.
5000 * cli/cli-setshow.c: Do not tidle expand the file.
5001
5002 Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
5003 and add_setshow_string_noescape_cmd.
5004 * cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
5005 NULL command's value.
5006 * kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
5007 * remote-sds.c, remote.c, symfile.c, top.c: Update.
5008
5009 2005-02-20 Andrew Cagney <cagney@gnu.org>
5010
5011 Use add_setshow_enum_cmd through out.
5012 * arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
5013 * infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
5014
5015 * mi/mi-main.c (captured_mi_execute_command): Use
5016 mi_cmd_interpreter_exec.
5017
5018 * cli/cli-decode.c (add_setshow_optional_filename_cmd): New
5019 function.
5020 * cli/cli-setshow.c (deprecated_show_value_hack)
5021 (do_setshow_command): Handle var_optional_filename.
5022 * command.h (enum var_types): Add var_optional_filename.
5023 (add_setshow_optional_filename_cmd): Declare.
5024 * infcmd.c (notice_args_read): Use.
5025
5026 * symfile-mem.c (symbol_file_add_from_memory): Pass
5027 target_read_memory to bfd_elf_bfd_from_remote_memory.
5028 (do_target_read_memory): Delete.
5029
5030 2005-02-16 Mark Kettenis <kettenis@gnu.org>
5031
5032 * value.h (value_contents_equal): New prototype.
5033 * value.c (value_contents_equal): New function.
5034 * varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
5035 include <math.h>.
5036 (varobj_set_value): Initialize error to zero.
5037 (varobj_update): Rename error2 to error and initialize it to zero.
5038 Slightly change the wording of some comments.
5039 (my_value_equal): Reimplement using TRY_CATCH and
5040 value_contents_equal.
5041
5042 2005-02-18 Andrew Cagney <cagney@gnu.org>
5043
5044 * cli/cli-decode.c (add_setshow_integer_cmd): New function.
5045 * command.h (add_setshow_integer_cmd): Declare.
5046 * cli/cli-cmds.c: Update.
5047
5048 Use add_setshow_uinteger_cmd through out.
5049 * printcmd.c, source.c, utils.c, valprint.c: Update.
5050
5051 Use add_setshow_zinteger_cmd through out. Re-sync gdbarch.sh
5052 and gdbarch.c.
5053 * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
5054 * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
5055 * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
5056 * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
5057 * varobj.c, cli/cli-cmds.c: Update.
5058 * gdbarch.c, gdb-events.c: Regenerate.
5059
5060 Use add_setshow_boolean_command through out. Delete #ifdef 0'ed
5061 code adding set/show boolean commands.
5062 * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
5063 * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
5064 * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
5065 * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
5066 * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
5067 * cli/cli-cmds.c: Update.
5068
5069 2005-02-17 Andrew Cagney <cagney@gnu.org>
5070
5071 * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
5072 to filename_completer.
5073 * solib.c (_initialize_solib, reload_shared_libraries): Use
5074 add_setshow_filename_cmd.
5075 * serial.c (_initialize_serial): Ditto.
5076 * remote-utils.c (_initialize_sr_support): Ditto.
5077
5078 * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
5079 * command.h (add_setshow_string_noescape_cmd): Declare.
5080 * wince.c (_initialize_wince): Use.
5081 * symfile.c (_initialize_symfile): Use.
5082 (set_ext_lang_command): Update declaration.
5083 * corefile.c (_initialize_core): Use.
5084
5085 * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
5086 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5087 (add_setshow_filename_cmd, add_setshow_string_cmd)
5088 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
5089 fprint_setshow parameter.
5090 * command.h (fprint_setshow_ftype): Delete.
5091 (add_setshow_cmd_full, add_setshow_enum_cmd)
5092 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5093 (add_setshow_filename_cmd, add_setshow_string_cmd)
5094 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
5095 fprint_setshow parameter.
5096 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
5097 * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
5098 * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
5099 * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
5100 * remote.c, target.c, cli/cli-logging.c: Update.
5101
5102 2005-02-16 Andrew Cagney <cagney@gnu.org>
5103
5104 Merge setshow print and show parameters.
5105 * command.h (show_value_ftype): Define.
5106 (deprecated_show_value_hack): Declare.
5107 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
5108 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
5109 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
5110 (add_setshow_zinteger_cmd): Change type of show_func to
5111 show_value_ftype.
5112 * cli/cli-decode.h (struct cmd_list_element): Replace
5113 fprint_setshow with show_value_func.
5114 * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
5115 parameter. Set show_value_func. Do not set cmd_sfunc.
5116 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
5117 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
5118 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
5119 (add_setshow_zinteger_cmd): Update.
5120 * complaints.c (complaints_show_value): Replace
5121 fprint_setshow_complaints.
5122 (_initialize_complaints): Update.
5123 * mips-tdep.c (show_mask_address): Update.
5124 * arm-tdep.c (show_fp_model): Update.
5125 * cli/cli-setshow.c (do_setshow_command): Call show_value_func
5126 instead of fprint_setshow. Use deprecated_show_value_hack.
5127 (deprecated_show_value_hack): New function.
5128 * remote.c (add_packet_config_cmd, show_remote_cmd):
5129 (show_remote_protocol_P_packet_cmd)
5130 (show_remote_protocol_P_packet_cmd)
5131 (show_remote_protocol_Z_access_wp_packet_cmd)
5132 (show_remote_protocol_Z_hardware_bp_packet_cmd)
5133 (show_remote_protocol_Z_packet_cmd)
5134 (show_remote_protocol_Z_read_wp_packet_cmd)
5135 (show_remote_protocol_Z_software_bp_packet_cmd)
5136 (show_remote_protocol_Z_write_wp_packet_cmd)
5137 (show_remote_protocol_binary_download_cmd)
5138 (show_remote_protocol_p_packet_cmd)
5139 (show_remote_protocol_qPart_auxv_packet_cmd)
5140 (show_remote_protocol_qSymbol_packet_cmd)
5141 (show_remote_protocol_vcont_packet_cmd): Update.
5142
5143 2005-02-16 Mark Kettenis <kettenis@gnu.org>
5144
5145 * wrapper.h: Update copyright year. Properly wrap a few
5146 prototypes.
5147 (struct gdb_wrapper_arguments): Remove forward declaration.
5148 * wrapper.c: Update copyright year. Include "ui-out.h".
5149 (struct gdb_wrapper_arguments): Remove.
5150 (struct captured_value_struct_elt_args): Remove.
5151 (wrapper_parse_exp_1, wrap_evaluate_expression)
5152 (wrap_value_fetch_lazy, wrap_value_equal, wrap_value_assign)
5153 (wrap_value_subscript, wrap_value_ind, wrap_parse_and_eval_type)
5154 (do_captured_value_struct_elf): Remove functions.
5155 (gdb_parse_exp_1, gdb_evaluate_expression, gdb_value_fetch_lazy)
5156 (gdb_value_equal, gdb_value_assign, gdb_value_subscript)
5157 (gdb_value_ind, gdb_parse_and_eval_type, gdb_value_struct_elt):
5158 Re-implement using TRY_CATCH.
5159
5160 2005-02-16 Yoshinori Sato <ysato@users.sourceforge.jp>
5161
5162 * remote-e7000.c: unuse TM_FILE defined macro.
5163 (e7000_fetch_registers)
5164 (e7000_store_registers)
5165 (e7000_wait): delete NUM_REALREGS.
5166 * remote-hms.c: move TM_FILE macro.
5167 (CCR_REGNO): move define from tm-h8300.h.
5168
5169 2005-02-15 Mark Kettenis <kettenis@gnu.org>
5170
5171 * amd64-linux-tdep.c: Update copyright year.
5172 (amd64_linux_sigtramp_start): Use sizeof operator instead of
5173 LINUX_SIGTRAMP_LEN.
5174
5175 2004-02-15 Joel Brobecker <brobecker@gnat.com>
5176
5177 From Paul Hilfinger <hilfinger@gnat.com>
5178 * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
5179 SYMBOL_NATURAL_NAME to set type names.
5180
5181 2005-02-15 Andrew Cagney <cagney@gnu.org>
5182
5183 Mark up add_com, add_info and add_prefix_cmd.
5184 * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
5185 * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
5186 * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
5187 * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
5188 * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
5189 * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
5190 * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
5191 * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
5192 * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
5193 * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
5194 * symfile.c, symtab.c, target.c, thread.c, top.c: Update.
5195 * tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
5196 * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
5197 * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
5198 * tui/tui-stack.c, tui/tui-win.c: Update.
5199
5200 2005-02-14 Andrew Cagney <cagney@gnu.org>
5201
5202 * config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
5203 * config/h8300/tm-h8300.h: Delete file.
5204
5205 Mark up add_cmd.
5206 * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
5207 * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
5208 * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
5209 * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
5210 * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
5211 * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
5212 * sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
5213 * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
5214 * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
5215 * cli/cli-logging.c, tui/tui-regs.c: Update.
5216
5217 Mark up add_setshow functions, replace "PRINT:" comment prefix
5218 with "FIXME: i18n:".
5219 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
5220 * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
5221 * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
5222 * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
5223 * target.c, cli/cli-logging.c: Update.
5224
5225 * utils.c (paddress): New function.
5226 * defs.h (paddress): Declare.
5227 * printcmd.c (deprecated_print_address_numeric): Rename
5228 print_address_numeric, call paddress.
5229 * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
5230 * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
5231 * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
5232 * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
5233 * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
5234 * ada-valprint.c: Update.
5235
5236 2005-02-13 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
5237
5238 * MAINTAINERS: Add myself to "Write After Approval".
5239
5240 2005-02-12 Yoshinori Sato <ysato@users.sourceforge.jp>
5241
5242 Restore h8300 support.
5243 * configure.tgt: Add h8300-*-*
5244 * h8300-tdep.c: New file. Rewrite new frame code.
5245 * config/h8300/h8300.mt: New file. Restored Rev 1.3
5246 * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
5247
5248 * MAINTAINERS: Add myself to "Write After Approval".
5249
5250 2005-02-11 Andrew Cagney <cagney@gnu.org>
5251
5252 Mark up some of printf_filtered and printf_unfiltered.
5253 * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
5254 * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
5255 * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
5256 * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
5257 * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
5258 * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
5259 * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
5260 * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
5261 * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
5262 * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
5263 * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
5264 * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
5265 * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
5266 * tui/tui-regs.c, tui/tui-win.c: Update.
5267
5268 Mark up error_no_arg, query, perror_with_name, complaint, and
5269 internal_error.
5270 * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
5271 * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
5272 * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
5273 * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
5274 * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
5275 * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
5276 * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
5277 * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
5278 * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
5279 * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
5280 * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
5281 * interps.c, language.c, linespec.c, linux-nat.c: Update.
5282 * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
5283 * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
5284 * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
5285 * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
5286 * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
5287 * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
5288 * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
5289 * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
5290 * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
5291 * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
5292 * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
5293 * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
5294 * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
5295 * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
5296 * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
5297 * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
5298 * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
5299 * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
5300 * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
5301 * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
5302 * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
5303 * tui/tui-file.c, tui/tui-interp.c: Update.
5304
5305 2005-02-10 Andrew Cagney <cagney@gnu.org>
5306
5307 Mark up all error and warning messages.
5308 * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
5309 * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
5310 * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
5311 * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
5312 * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
5313 * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
5314 * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
5315 * event-top.c, exec.c, expprint.c, f-lang.c: Update.
5316 * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
5317 * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
5318 * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
5319 * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
5320 * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
5321 * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
5322 * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
5323 * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
5324 * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
5325 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
5326 * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
5327 * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
5328 * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
5329 * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
5330 * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
5331 * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
5332 * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
5333 * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
5334 * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
5335 * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
5336 * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
5337 * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
5338 * remote-rdp.c, remote-sim.c, remote-st.c: Update.
5339 * remote-utils.c, remote-utils.h, remote.c: Update.
5340 * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
5341 * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
5342 * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
5343 * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
5344 * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
5345 * somread.c, somsolib.c, source.c, stabsread.c: Update.
5346 * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
5347 * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
5348 * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
5349 * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
5350 * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
5351 * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
5352 * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
5353 * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
5354 * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
5355 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
5356 * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
5357 * tui/tui-win.c: Update.
5358
5359 2005-02-10 Ian Lance Taylor <ian@airs.com>
5360
5361 * MAINTAINERS: Update my e-mail address.
5362
5363 2005-02-10 Daniel Jacobowitz <dan@debian.org>
5364
5365 From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
5366 PR exp/1821
5367 * cp-valprint.c: Include "language.h".
5368 (cp_print_value_fields): Pass the current language to
5369 fprintf_symbol_filtered.
5370 * Makefile.in (cp-valprint.o): Update dependencies.
5371
5372 2005-02-10 Andrew Cagney <cagney@gnu.org>
5373
5374 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
5375 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5376 (add_setshow_filename_cmd, add_setshow_string_cmd)
5377 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
5378 print string parameter with fprint_setshow function.
5379 * command.h (fprint_setshow_ftype): Define. Update declarations.
5380 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
5381 available, use that.
5382 * cli/cli-decode.h (struct cmd_list_element): Add field
5383 fprint_setshow.
5384 * complaints.c (fprint_setshow_complaints): New function.
5385 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
5386 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
5387 with NULL.
5388 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5389 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5390 * cris-tdep.c (_initialize_cris_tdep): Ditto.
5391 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5392 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5393 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
5394 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
5395 * frame.c (_initialize_frame): Ditto.
5396 * target.c (initialize_targets): Ditto.
5397 * maint.c (_initialize_maint_cmds): Ditto.
5398 * observer.c (_initialize_observer): Ditto.
5399 * infcall.c (_initialize_infcall): Ditto.
5400 * breakpoint.c (_initialize_breakpoint): Ditto.
5401 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5402 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5403
5404 * cli/cli-setshow.c (do_setshow_command): Move code printing the
5405 value to the end of the function. Handle MI and non-MI output
5406 differently.
5407
5408 2005-02-09 Andrew Cagney <cagney@gnu.org>
5409
5410 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
5411 show_result parameters.
5412 * mips-tdep.c (_initialize_mips_tdep): Update calls.
5413 * command.h: Update declaration.
5414 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
5415 calls.
5416
5417 * NEWS: Mention removed commands.
5418 * m68hc11-tdep.c (show_regs): Delete, unused.
5419 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
5420 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
5421 eventdebug" commands.
5422 * gdb-events.c: Regenerate.
5423 * gdbarch.sh: Delete deprecated "set archdebug" and "show
5424 archdebug" commands.
5425 * gdbarch.c: Regenerate.
5426 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
5427 remotedebug" and "show remotedebug".
5428 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
5429 disassembly-flavor", "show arm disassembly-flavor", and
5430 "othernames" commands.
5431 (arm_othernames): Delete unused function.
5432
5433 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
5434 (convert_code_addr_to_desc_addr): Convert any function code
5435 address to the corresponding function's descriptor.
5436 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
5437 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
5438 writing, convert any function code address to the corresponding
5439 descriptor.
5440
5441 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
5442 * config/powerpc/linux.mt (TDEPFILES): Ditto.
5443 * config/pa/linux.mt (TDEPFILES): Ditto.
5444 * config/mips/linux.mt (TDEPFILES): Ditto.
5445 * config/m68k/linux.mt (TDEPFILES): Ditto.
5446 * config/m32r/linux.mt (TDEPFILES): Ditto.
5447 * config/ia64/linux.mt (TDEPFILES): Ditto.
5448 * config/arm/linux.mt (TDEPFILES): Ditto.
5449
5450 2005-02-09 Corinna Vinschen <vinschen@redhat.com>
5451
5452 * symmisc.c: Include gdb_stat.h.
5453 (maintenance_print_msymbols): Use inode numbers to compare files.
5454
5455 2005-02-08 Andrew Cagney <cagney@gnu.org>
5456
5457 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
5458 (METHOD_PTR_TO_VOFFSET): Move from here ...
5459 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
5460 (METHOD_PTR_TO_VOFFSET): ... to here.
5461 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
5462 * Makefile.in: Update dependencies.
5463
5464 * exceptions.c: Do not include <setjmp.h>.
5465 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
5466 (catch_exception, catch_exceptions_with_msg, catch_errors)
5467 (catch_command_errors): Use TRY_CATCH.
5468 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
5469 (exceptions_state_mc_init): Rename catcher_init.
5470 (exceptions_state_mc): Rename catcher_state_machine.
5471 (exceptions_state_mc_action_iter)
5472 (exceptions_state_mc_action_iter_1): New functions.
5473 * exceptions.h: Include <setjmp.h>.
5474 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
5475 (EXCEPTIONS_SIGLONGJMP): Define.
5476 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
5477 (exceptions_state_mc_action_iter_1): Declare.
5478 (TRY_CATCH): Define.
5479
5480 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
5481 no longer needed.
5482
5483 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
5484 PT_FPSCR breakage.
5485
5486 * value.c (struct value): Move to here ...
5487 * value.h (struct value): ... from here. Copy comments to
5488 corresponding function declarations, re-order.
5489
5490 2005-02-07 Andrew Cagney <cagney@gnu.org>
5491
5492 * value.c (set_value_bitpos, set_value_bitsize): Define.
5493 * value.h (set_value_bitpos, set_value_bitsize): Declare.
5494 * ada-lang.c, valarith.c: Update.
5495
5496 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
5497 value_contents_writeable, include note that there are problems.
5498 * breakpoint.c, infcall.c: Use VALUE_LVAL.
5499
5500 * value.h (set_value_offset): Declare.
5501 * value.c (set_value_offset): Declare.
5502 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
5503 * findvar.c: Update.
5504
5505 * value.h (value_next): Declare.
5506 * value.c (value_next): Define.
5507 * breakpoint.c: Update.
5508
5509 * value.h (deprecated_set_value_modifiable)
5510 (deprecated_value_modifiable): Declare.
5511 * value.c (deprecated_set_value_modifiable): Define.
5512 (deprecated_value_modifiable): Define.
5513 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
5514
5515 * value.h (deprecated_set_value_type): Declare.
5516 * value.c (deprecated_set_value_type): Define.
5517 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
5518 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
5519 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
5520 * ax-gdb.c, tracepoint.c: Update.
5521
5522 * value.h (deprecated_value_lval_hack)
5523 (deprecated_value_address_hack)
5524 (deprecated_value_internalvar_hack)
5525 (deprecated_value_regnum_hack): Declare.
5526 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
5527 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
5528 * value.c (deprecated_value_lval_hack)
5529 (deprecated_value_address_hack)
5530 (deprecated_value_internalvar_hack)
5531 (deprecated_value_regnum_hack): Define.
5532
5533 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
5534 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
5535 * value.c (set_value_pointed_to_offset): Define
5536 (value_pointed_to_offset): Define.
5537 * valops.c: Update.
5538
5539 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
5540 (value_embedded_offset, set_value_embedded_offset): Declare.
5541 * value.c (value_embedded_offset): Define.
5542 (set_value_embedded_offset): Define.
5543 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
5544 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
5545 * cp-abi.h: Update.
5546
5547 * value.h (VALUE_LAZY): Delete
5548 (set_value_lazy): Declare.
5549 * value.c (set_value_lazy): Define.
5550 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
5551 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
5552
5553 2005-02-06 Andrew Cagney <cagney@gnu.org>
5554
5555 * value.h (VALUE_OPTIMIZED_OUT): Delete.
5556 (value_optimized_out, set_value_optimized_out): Declare.
5557 * value.c (set_value_optimized_out, value_optimized_out): Define.
5558 * valprint.c, findvar.c, dwarf2loc.c: Update.
5559
5560 * value.c (value_contents, value_contents_writeable): New
5561 functions.
5562 * value.h (VALUE_CONTENTS): Delete macro.
5563 (value_contents, value_contents_writeable): Declare.
5564 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
5565 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
5566 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
5567 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
5568 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
5569 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
5570 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
5571 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
5572 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
5573 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
5574 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
5575 * ada-valprint.c, ada-lang.c: Update.
5576
5577 2005-02-03 Andrew Cagney <cagney@gnu.org>
5578
5579 * utils.c (xzalloc): New function.
5580 * defs.h (XZALLOC): Use xzalloc.
5581 (xzalloc): Declare.
5582 * value.c (allocate_value): Allocate a zeroed buffer.
5583 * mdebugread.c (xzalloc): Delete.
5584
5585 2005-02-02 Andrew Cagney <cagney@gnu.org>
5586
5587 * value.h (value_lazy): Declare.
5588 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
5589 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
5590
5591 * value.h (VALUE_CONTENTS_ALL): Delete.
5592 (value_contents_all): Declare.
5593 * value.c (value_contents_all): New function.
5594 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
5595 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
5596
5597 * value.c (value_enclosing_type): New function.
5598 * value.h (VALUE_ENCLOSING_TYPE): Delete.
5599 (value_enclosing_type): Declare.
5600 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
5601 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
5602
5603 * value.c (value_contents_all_raw)
5604 (value_contents_raw): New functions.
5605 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
5606 (value_contents_raw, value_contents_all_raw): Declare functions.
5607 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
5608 * std-regs.c, valarith.c, valops.c, eval.c: Update.
5609 * tracepoint.c, findvar.c: Update.
5610
5611 2005-02-01 Orjan Friberg <orjanf@axis.com>
5612
5613 * regformats/reg-cris.dat: New file with register definitions for CRIS.
5614 * regformats/reg-crisv32.dat: Ditto for CRISv32.
5615
5616 2005-01-31 Andrew Cagney <cagney@gnu.org>
5617
5618 * configure: Regenerate to track ../gettext.m4.
5619
5620 2005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
5621
5622 * MAINTAINERS: Add myself to "Write After Approval".
5623
5624 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
5625 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
5626 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
5627
5628 2005-01-29 Mark Kettenis <kettenis@gnu.org>
5629
5630 * configure.ac: Remove extra check for ranlib.
5631 * configure: Regenerated.
5632
5633 2005-01-28 Andrew Cagney <cagney@gnu.org>
5634
5635 * language.h (struct language_defn): Make la_val_print's buffer
5636 parameter a const bfd_byte.
5637 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
5638 * ada-lang.c (ada_aligned_value_addr)
5639 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
5640 * valprint.c (val_print_array_elements): Update.
5641 * valprint.h (val_print_array_elements): Update.
5642 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
5643 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
5644 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
5645 (ada_val_print_1, ada_print_floating, printable_val_type)
5646 (print_record, val_print_packed_array_elements)
5647 (print_field_values, print_variant_part): Update.
5648 * c-lang.h (c_val_print, cp_print_value_fields): Update.
5649 * c-valprint.c (c_val_print): Update.
5650 * f-lang.h (f_val_print): Update.
5651 * f-valprint.c (f_val_print, f77_print_array_1)
5652 (f77_print_array): Update.
5653 * jv-lang.h (java_val_print): Update.
5654 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
5655 * language.c (unk_lang_val_print): Update.
5656 * m2-lang.h (m2_val_print): Update.
5657 * m2-valprint.c (m2_val_print): Update.
5658 * p-lang.h (pascal_val_print): Update.
5659 (pascal_object_print_value_fields): Update.
5660 * p-valprint.c (pascal_val_print)
5661 (pascal_object_print_value_fields, pascal_object_print_value)
5662 (pascal_object_print_value): Update.
5663 * scm-lang.h (scm_val_print): Update.
5664 * scm-valprint.c (scm_val_print): Update.
5665 * value.h (val_print): Update.
5666
5667 * p-lang.h (pascal_object_print_class_member)
5668 (pascal_object_print_class_method): Make buffer a const bfd_byte.
5669 * p-valprint.c (pascal_object_print_class_method)
5670 (pascal_object_print_class_method): Ditto.
5671
5672 * language.h (struct language_defn): Make la_printstr's buffer
5673 parameter a const bfd_byte.
5674 * p-lang.h (pascal_printstr): Update function to match.
5675 * ada-valprint.c (ada_printstr): Update function to match.
5676 * scm-lang.c (scm_printstr): Update function to match.
5677 * p-lang.c (pascal_printstr): Update function to match.
5678 * ada-lang.h (ada_printstr): Update function to match.
5679 * m2-lang.c (m2_printstr): Update function to match.
5680 * objc-lang.c (objc_printstr): Update function to match.
5681 * c-lang.h (c_printstr): Update function to match.
5682 * f-lang.c (f_printstr): Update function to match.
5683 * c-lang.c (c_printstr): Update function to match.
5684 * language.c (unk_lang_printstr): Update function to match.
5685
5686 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
5687 * valprint.h (val_print_type_code_int): Ditto.
5688
5689 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
5690
5691 * cp-valprint.c (cp_print_class_method)
5692 (cp_print_class_member): Make buffer a const bfd_byte.
5693 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
5694
5695 * ada-lang.c (value_from_contents_and_address)
5696 (to_record_with_fixed_variant_part)
5697 (value_tag_from_contents_and_address, ada_to_fixed_type)
5698 (to_fixed_variant_branch_type, to_fixed_record_type)
5699 (ada_template_to_fixed_record_type, cond_offset_host)
5700 (ada_template_to_fixed_record_type_1): Make buffer a const
5701 bfd_byte.
5702 * ada-lang.h (ada_template_to_fixed_record_type_1)
5703 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
5704
5705 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
5706
5707 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
5708 * printcmd.c (print_scalar_formatted): Update.
5709
5710 * value.h (value_bit_index, print_floating)
5711 (find_rt_vbase_offset): Make buffer a const bfd_byte.
5712 * valprint.c (print_floating): Update.
5713 * valarith.c (value_bit_index): Update.
5714 * valops.c (find_rt_vbase_offset): Update.
5715
5716 * valprint.h (print_octal_chars, print_char_chars)
5717 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
5718 buffer a const bfd_byte.
5719 * valprint.c (print_binary_chars, print_octal_chars)
5720 (print_decimal_chars, print_hex_chars, print_char_chars): Make
5721 "valaddr"buffer a const bfd_byte, ditto for local variables
5722 referencing that buffer.
5723
5724 * m2-valprint.c: Include "c-lang.h".
5725 (c_val_print): Delete extern declaration.
5726 * scm-valprint.c: Include "c-lang.h".
5727 (c_val_print): Delete extern declaration.
5728 Makefile.in: Update dependencies.
5729
5730 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
5731 bfd_byte.
5732 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
5733 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
5734 bfd_byte.
5735 * cp-abi.c (baseclass_offset): Update.
5736 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
5737
5738 * gnu-v2-abi.h: New file.
5739 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
5740 (gnuv2_baseclass_offset): Delete declaration.
5741 * hpacc-abi.c: Include "gnu-v2-abi.h".
5742 (gnuv2_baseclass_offset): Delete extern declaration.
5743 * Makefile.in: Update dependencies.
5744
5745 * doublest.c (floatformat_is_negative, floatformat_is_nan)
5746 (floatformat_mantissa, get_field): Make the buffer a const
5747 bfd_byte, simplify.
5748
5749 2005-01-27 Andrew Cagney <cagney@gnu.org>
5750
5751 * value.h (struct value): Change type of contents to bfd_byte.
5752 (VALUE_CONTENTS_RAW): Simplify.
5753
5754 * gdbarch.sh (integer_to_address): Change buf parameter to a const
5755 bfd_byte, make pure-multi-arch.
5756 * gdbarch.h, gdbarch.c: Regenerate.
5757 * mips-tdep.c (mips_integer_to_address): Update.
5758 * value.c (value_as_address): Update.
5759
5760 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
5761 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
5762 parameters const, change buf to a const bfd_byte.
5763 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
5764 parameters const.
5765
5766 * corefile.c (write_memory): Update, make a copy of the read-only
5767 buffer.
5768 * target.c (target_read_memory): Update.
5769 (target_write_memory): Update, make a copy of the read-only
5770 buffer.
5771 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
5772 const.
5773 * target.h (target_read_memory, target_write_memory): Change
5774 buffer type to bfd_byte; for write_memory, make it const.
5775 * symfile-mem.c (do_target_read_memory): New function.
5776 (symbol_file_add_from_memory): Pass do_target_read_memory to
5777 bfd_elf_bfd_from_remote_memory.
5778
5779 * value.h: Indent using gdb_indent.sh.
5780
5781 * configure: Regenerate to track ../gettext.m4 change.
5782
5783 2005-01-26 Andrew Cagney <cagney@gnu.org>
5784
5785 * rs6000-tdep.c: Include "reggroups.h".
5786 (rs6000_gdbarch_init): Set register_reggroup_p.
5787 (rs6000_register_reggroup_p): New function.
5788
5789 2005-01-26 Orjan Friberg <orjanf@axis.com>
5790
5791 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
5792 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
5793 CRISv32.
5794 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
5795 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
5796 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
5797 (crisv32_register_type, cris_special_register_name)
5798 (crisv32_register_name): New functions.
5799 (cris_spec_reg_applicable): Recognize more versions.
5800 (cris_register_name): Update with call to cris_special_register_name.
5801 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
5802 warning when unable to find step target.
5803 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
5804 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
5805 CRISv32.
5806 (fetch_core_registers): Update for CRISv32.
5807 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
5808 register_name, cannot_store_register, cannot_fetch_register,
5809 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
5810
5811 2005-01-26 Nick Roberts <nickrob@snap.net.nz>
5812
5813 * interps.c (interpreter_exec_cmd): Use condition,
5814 e.reason < 0, to raise an error.
5815
5816 2005-01-25 Andrew Cagney <cagney@gnu.org>
5817
5818 * ppc-linux-tdep.c: Include "tramp-frame.h"
5819 (struct ppc_linux_sigtramp_cache)
5820 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
5821 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
5822 (ppc_linux_sigtramp_cache): Delete.
5823 (ppc32_linux_sigaction_cache_init)
5824 (ppc64_linux_sigaction_cache_init)
5825 (ppc32_linux_sighandler_cache_init)
5826 (ppc64_linux_sighandler_cache_init)
5827 (ppc32_linux_sigaction_tramp_frame)
5828 (ppc64_linux_sigaction_tramp_frame)
5829 (ppc32_linux_sighandler_tramp_frame)
5830 (ppc64_linux_sighandler_tramp_frame)
5831 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
5832 64-bit, sigaction and siginfo tramp-frame unwinders.
5833
5834 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
5835 long_double_bit to 8.
5836
5837 2005-01-24 Andrew Cagney <cagney@gnu.org>
5838
5839 * infrun.c (handle_inferior_event): Handle back-to-back and nested
5840 signals where the step_resume_breakpoint may have already been
5841 inserted.
5842
5843 2005-01-24 Andrew Cagney <cagney@gnu.org>
5844
5845 * configure: Regenerate, ../gettext.m4 was updated.
5846
5847 2005-01-23 Mark Kettenis <kettenis@gnu.org>
5848
5849 * NEWS: Mention new BSD user-level threads support.
5850
5851 * i386obsd-tdep.c: Update copyright year. Include
5852 "bsd-uthread.h".
5853 (i386obsd_uthread_reg_offset): New variable.
5854 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
5855 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
5856 functions.
5857 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
5858 * Makefile.in (i386obsd-tdep.o): Update dependencies.
5859 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
5860
5861 2005-01-23 Christopher Faylor <cgf@timesys.com>
5862
5863 * win32-nat.c: Update copyright year.
5864 (child_init_thread_list): Set thread linked list point to NULL so that
5865 it won't be reused after clearing.
5866
5867 2005-01-21 Mark Kettenis <kettenis@gnu.org>
5868
5869 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
5870 undefs.
5871 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
5872 thread' has a td_pcb member and whether `struct reg' has r_fs and
5873 r_gs members.
5874 * configure, config.in: Regenerate.
5875
5876 2005-01-21 Mark Kettenis <kettenis@gnu.org>
5877
5878 * configure.ac: Remove ia64-*-aix* junk.
5879 * configure: Regenerate.
5880
5881 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
5882 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
5883 is necessary.
5884 * configure, config.in: Regenerate.
5885 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
5886 BFD_NEED_DECLARATION. Never provide a prototype for
5887 caninicalize_file_name.
5888 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
5889 BFD_NEED_DECLARATION.
5890
5891 * configure.ac (targ_archs): Use standard autoconf check for
5892 "struct stat.st_blocks" instead of rolling our own.
5893 * configure: Regenerated.
5894 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
5895 * config.in: Regenerated.
5896
5897 2005-01-21 Mark Kettenis <kettenis@gnu.org>
5898
5899 * configure.ac: Modernize checks for `long long' and `long double'
5900 support.
5901 * configure: Regenerated.
5902 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
5903 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
5904 * config.in: Regenerated.
5905
5906 2005-01-20 Mark Kettenis <kettenis@gnu.org>
5907
5908 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
5909 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
5910 * configure.ac: Remove checks for HP-UX save_state structure.
5911 * configure: Regenerated.
5912
5913 2005-01-19 Andrew Cagney <cagney@gnu.org>
5914
5915 * utils.c (quit): Simplify, call fatal.
5916 * exceptions.c: Include "serial.h"
5917 (print_flush): Mimic flush code found in utils.c:quit.
5918 * Makefile.in: Update dependencies.
5919
5920 2005-01-19 Jim Blandy <jimb@redhat.com>
5921
5922 * configure.tgt: Set build_rdi_share to "yes" on those targets
5923 that use that debugging protocol.
5924 Set build_nlm to yes to build NLM stub for Netware targets.
5925 * configure.ac: If build_rdi_share is "yes", then configure the
5926 rdi-share subdirectory.
5927 If build_nlm is "yes", the configure the "nlm" subdirectory.
5928 * configure: Regenerated.
5929
5930 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
5931 autoconf 2.59 and automake 1.9.3.
5932
5933 2005-01-19 Andrew Cagney <cagney@gnu.org>
5934
5935 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
5936 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
5937 * utils.c (internal_verror, quit): Update.
5938 * remote-sds.c (interrupt_query): Update.
5939 * remote-mips.c (mips_error, mips_kill): Update.
5940 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
5941 * remote.c (interrupt_query): Update.
5942 * ocd.c (interrupt_query): Update.
5943 * nto-procfs.c (interrupt_query): Update.
5944 * monitor.c (monitor_interrupt_query): Update.
5945 * breakpoint.c (break_command_1): Update.
5946
5947 * infrun.c: (resume, proceed, wait_for_inferior)
5948 (handle_inferior_event, stop_stepping)
5949 (prepare_to_wait): Write debug output to gdb_stdlog.
5950
5951 2005-01-19 Mark Kettenis <kettenis@gnu.org>
5952
5953 * inf-ptrace.c (inf_ptrace_prepare_to_store)
5954 (inf_ptrace_post_startup_inferior)
5955 (inf_ptrace_acknowledge_created_inferior)
5956 (inf_ptrace_insert_fork_catchpoint)
5957 (inf_ptrace_remove_fork_catchpoint)
5958 (inf_ptrace_insert_vfork_catchpoint):
5959 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
5960 (inf_ptrace_insert_exec_catchpoint)
5961 (inf_ptrace_remove_exec_catchpoint): Remove functions.
5962 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
5963 (inf_ptrace_target): Don't set to_prepare_to_store,
5964 to_post_startup_inferior, to_acknowledge_created_inferior,
5965 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
5966 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5967 to_follow_fork, to_insert_exec_catchpoint,
5968 to_remove_exec_catchpoint.
5969
5970 2005-01-18 Andrew Cagney <cagney@gnu.org>
5971
5972 * target.h (struct target_ops): Change return type of
5973 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
5974 to_insert_exec_catchpoint to void.
5975 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
5976 (child_insert_exec_catchpoint): Change return type to void.
5977 * target.c (update_current_target): Update.
5978 (debug_to_insert_fork_catchpoint)
5979 (debug_to_insert_vfork_catchpoint)
5980 (debug_to_insert_exec_catchpoint): Update.
5981 * inf-child.c (inf_child_insert_fork_catchpoint)
5982 (inf_child_insert_vfork_catchpoint)
5983 (inf_child_insert_exec_catchpoint): Update.
5984 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
5985 * linux-nat.c (child_insert_fork_catchpoint)
5986 (child_insert_vfork_catchpoint)
5987 (child_insert_exec_catchpoint): Update.
5988 * inftarg.c (child_insert_fork_catchpoint)
5989 (child_insert_vfork_catchpoint,)
5990 (child_insert_exec_catchpoint): Update.
5991
5992 * remote.c (remote_open_1): Use throw_exception.
5993
5994 2005-01-17 Michael Snyder <msnyder@redhat.com>
5995
5996 * mips-linux-tdep.c: Whitespace tweaks.
5997
5998 2005-01-17 Corinna Vinschen <vinschen@redhat.com>
5999
6000 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
6001
6002 2005-01-17 Andrew Cagney <cagney@gnu.org>
6003
6004 * top.h (source_error, source_pre_error): Delete declaration.
6005 * cli/cli-script.c (source_error_allocated, source_error): Delete.
6006 (script_from_file, source_cleanup_lines): Do not manipulate
6007 source_error_allocated, error_pre_print and source_error.
6008 (struct source_cleanup_lines_args): Delete fields old_pre_error,
6009 and old_error_pre_print.
6010 * top.c (source_error_allocated, source_error)
6011 (source_pre_error): Delete.
6012 (command_line_input): Do not set error_pre_print.
6013 * event-top.c (command_line_handler): Do not set error_pre_print.
6014
6015 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
6016
6017 * MAINTAINERS: Update my email address.
6018
6019 2005-01-16 Mark Kettenis <kettenis@gnu.org>
6020
6021 * configure.ac: Provide prerequisite headers when checking
6022 <term.h>.
6023 * configure: Regenerate.
6024
6025 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
6026 and "bsd-uthread.h".
6027 (amd64fbsd_jmp_buf_reg_offset): New variable.
6028 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
6029 functions.
6030 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
6031 * i386fbsd-tdep.c: Fix typo.
6032 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
6033 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
6034
6035 2005-01-16 Andrew Cagney <cagney@gnu.org>
6036
6037 * cli/cli-script.c: Include "exceptions.h".
6038 (struct wrapped_read_command_file_args): Define.
6039 (wrapped_read_command_file): New function.
6040 (script_from_file): Replace direct call to read_command_file by
6041 one wrapped by an exception handler.
6042 * exceptions.c (throw_it): Free the old message after creating the
6043 new.
6044 * Makefile.in: Update dependencies.
6045
6046 2005-01-16 Mark Kettenis <kettenis@gnu.org>
6047
6048 * sparc64fbsd-tdep.c: Update copyright year.
6049 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
6050 functions.
6051 (sparc64fbsd_init_abi): Create register sets with collect
6052 functions.
6053
6054 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
6055 (_initialize_sparc64fbsd_nat): Add some extra features to the
6056 generic SPARC target.
6057 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
6058 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
6059 (NAT_FILE): Set to solib.h.
6060 * config/sparc/nm-fbsd.h: Remove file.
6061
6062 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
6063
6064 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
6065
6066 2005-01-16 Andrew Cagney <cagney@gnu.org>
6067
6068 * exceptions.c (struct catcher): Delete saved_error_pre_print and
6069 saved_quit_pre_print.
6070 (catcher_init): Delete parameter errstring, do not override the
6071 pre_print strings.
6072 (catcher_pop): Do not restore the pre_print strings.
6073 (catch_exception, catch_exceptions_with_msg, catch_errors)
6074 (catch_command_errors): Update catch_init calls.
6075
6076 2005-01-16 Mark Kettenis <kettenis@gnu.org>
6077
6078 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
6079 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
6080
6081 2005-01-15 Andrew Cagney <cagney@gnu.org>
6082
6083 * acinclude.m4: Include ../bfd/bfd.m4 instead of
6084 ../bfd/acinclude.m4. Include ../gettext.m4.
6085 * aclocal.m4, configure: Re-generate.
6086
6087 * exceptions.c (do_captured_command)
6088 (struct captured_command_args): Delete.
6089 (catch_command_errors): Simplify by inlining call to catch_errors.
6090
6091 * exceptions.c (struct catcher): Delete field print_message.
6092 (catcher_init): Delete print_message parameter.
6093 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
6094 (throw_it): Delete prefix parameter.
6095 (throw_verror, throw_vfatal, throw_error): Update.
6096
6097 2005-01-14 Andrew Cagney <cagney@gnu.org>
6098
6099 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
6100 (throw_reason): Leave the exception's message field blank.
6101 (throw_it): New function, create the exception and throw it.
6102 (throw_verror, throw_vfatal, throw_error): Call throw_it.
6103 (print_any_exception): New function.
6104 (catch_errors, catch_exceptions_with_msg): Call
6105 print_any_exception.
6106 (throw_exception): Move code calling annotate_error and
6107 annotate_quit from here ...
6108 (print_exception): ... to here.
6109
6110 * exceptions.c (exception_fprintf, exception_print): Move printing
6111 of \n from here ...
6112 (print_exception): ... to here.
6113 (print_flush): New function.
6114 (exception_print, exception_fprintf): Replace duplicated flush and
6115 wrap code with call to print_flush.
6116 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
6117 and print_exception.
6118 (do_write): Delete.
6119
6120 * remote-sds.c (interrupt_query): Call throw_reason instead of
6121 throw_exception.
6122 * remote-mips.c (mips_error, mips_kill): Ditto
6123 * ocd.c (interrupt_query): Ditto.
6124 * nto-procfs.c (interrupt_query): Ditto.
6125 * monitor.c (monitor_interrupt_query): Ditto.
6126
6127 2005-01-14 Jeff Johnston <jjohnstn@redhat.com>
6128
6129 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
6130
6131 2005-01-14 Andrew Cagney <cagney@gnu.org>
6132
6133 * exceptions.h (catch_exceptions): Delete errstring parameter.
6134 (catch_exceptions_with_msg): Ditto.
6135 * exceptions.c (catch_exceptions_with_msg): Update.
6136 (catch_exceptions): Update.
6137 * symfile-mem.c (add_vsyscall_page): Update.
6138 * frame.c (get_current_frame): Update.
6139 * wrapper.c (gdb_value_struct_elt): Update.
6140 * exceptions.c (catch_exceptions): Update.
6141 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
6142 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
6143 * remote-fileio.c (remote_fileio_request): Update.
6144
6145 * exceptions.h (exception_fprintf): Declare.
6146 (exception_print): Drop pre_print parameter.
6147 * mi/mi-main.c (mi_execute_command): Update exception_print call.
6148 * cli/cli-interp.c (safe_execute_command): Update exception_print
6149 call.
6150 * remote.c (remote_open_1): Instead of passing an error prefix to
6151 catch_exceptions, use catch_exceptions and exception_fprintf.
6152 (remote_start_remote): Change return type to void.
6153 * breakpoint.c (insert_bp_location): Instead of passing an error
6154 prefix to catch_exceptions, use catch_exceptions and
6155 exception_fprintf.
6156 (insert_catchpoint): Change return type to void.
6157 (break_command_1): Update exception_print call.
6158 * exceptions.c (exception_fprintf): New function.
6159 (print_exception): New function.
6160 (exception_print): Use print_exception.
6161
6162 * utils.c (error_output_message): Delete function.
6163 * defs.h (error_output_message): Delete declaration.
6164
6165 * linespec.c (symtab_from_filename, decode_variable): Use
6166 throw_error instead of error_silent.
6167 * breakpoint.c (do_captured_parse_breakpoint): Change return type
6168 to void.
6169 (break_command_1): Use catch_exception and check the error return
6170 status.
6171 * exceptions.c (throw_error): New function.
6172 (throw_vsilent): Delete function.
6173 * exceptions.h (throw_error): Declare.
6174 (throw_vsilent): Delete declaration.
6175 * utils.c (error_silent): Delete function.
6176 * defs.h (error_silent): Delete declaration.
6177
6178 * mi/mi-main.c (mi_execute_command): Print the exception.
6179 * cli/cli-interp.c (safe_execute_command): Print the exception.
6180 * exceptions.h (exception_print): Declare.
6181 * exceptions.c (struct catcher): Add field print_message.
6182 (catcher_init): Add parameter print_message, store in the catcher
6183 struct.
6184 (print_and_throw): Only print the message when print_message.
6185 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
6186 catcher_init.
6187 (catch_exception): Pass print_message=0 to catcher_init.
6188
6189 * varobj.c (varobj_create): Add missing \n.
6190
6191 2005-01-13 Michael Snyder <msnyder@redhat.com>
6192
6193 * cli/cli-decode.h: Whitespace tweaks.
6194 * wince.c: Whitespace tweaks.
6195 * uw-thread.c: Whitespace tweaks.
6196 * utils.c: Whitespace tweaks.
6197 * tracepoint.[ch]: Whitespace tweaks.
6198 * solist.h: Whitespace tweaks.
6199
6200 2005-01-13 Andrew Cagney <cagney@gnu.org>
6201
6202 * exceptions.h (struct exception): Make message const.
6203 * mi/mi-main.c (mi_execute_command): Pass result.message directly
6204 to fputstr_unfiltered.
6205
6206 2005-01-13 Michael Snyder <msnyder@redhat.com>
6207
6208 * stack.c: Whitespace tweaks.
6209 * somsolib.[ch]: Whitespace tweaks.
6210 * solib-aix.c: Whitespace tweaks.
6211 * solib.c: Whitespace tweaks.
6212 * solib-frv.c: Whitespace tweaks.
6213 * solib.h: Whitespace tweaks.
6214 * solib-irix.c: Whitespace tweaks.
6215 * solib-som.c: Whitespace tweaks.
6216 * solib-sunos.c: Whitespace tweaks.
6217 * solib-svr4.[ch]: Whitespace tweaks.
6218 * ser-tcp.c: Whitespace tweaks.
6219 * ser-unix.c: Whitespace tweaks.
6220 * serial.h: Whitespace tweaks.
6221 * scm-valprint.c: Whitespace tweaks.
6222 * rs6000-tdep.c: Whitespace tweaks.
6223 * rs6000-nat.c: Whitespace tweaks.
6224 * remote.c: Whitespace tweaks.
6225
6226 2005-01-13 Andrew Cagney <cagney@gnu.org>
6227
6228 * defs.h (error_last_message, error_init): Delete declaration.
6229 * utils.c (fatal, vfatal): Call throw_vfatal.
6230 (error, verror): Call throw_verror;
6231 (do_write, error_stream_1): Delete function.
6232 (error_stream): Simplify, call error.
6233 (error_last_message, error_init, gdb_lasterr): Delete.
6234 (error_silent): Simplify, call throw_vsilent.
6235 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
6236 * main.c (captured_main): Delete call to error_init.
6237 * exceptions.c (throw_verror, throw_verror)
6238 (throw_vsilent): New functions.
6239 (do_write, print_and_throw): New functions.
6240 (last_message): New global.
6241 (throw_reason): Replace error_last_message with last_message.
6242 (catch_exceptions_with_msg): Dup the message.
6243 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
6244 Declare.
6245
6246 2005-01-13 Michael Snyder <msnyder@redhat.com>
6247
6248 * remote-st.c: Whitespace tweaks.
6249 * remote-sim.c: Whitespace tweaks.
6250 * remote-mips.c: Whitespace tweaks.
6251 * pa64solib.[ch]: Whitespace tweaks.
6252 * mdebugread.c: Whitespace tweaks.
6253 * main.c: Whitespace tweaks.
6254 * interps.c: Whitespace tweaks.
6255 * infrun.c: Whitespace tweaks.
6256 * infcmd.c: Whitespace tweaks.
6257 * hpux-thread.c: Whitespace tweaks.
6258 * hppa-hpux-tdep.c: Whitespace tweaks.
6259 * gdbcore.h: Whitespace tweaks.
6260 * gdbcmd.h: Whitespace tweaks.
6261 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
6262 * corefile.c: Whitespace tweaks.
6263 * completer.c: Whitespace tweaks.
6264 * coff-solib.c: Whitespace tweaks.
6265 * coff-solib.h: Whitespace tweaks.
6266 * cli-out.c: Whitespace tweaks.
6267 * breakpoint.c: Whitespace tweaks.
6268 * cli/cli-interp.c: Tweak comments, per coding standard.
6269
6270 2005-01-13 Andrew Cagney <cagney@gnu.org>
6271
6272 * breakpoint.c (gdb_breakpoint_query): Update, use
6273 catch_exceptions_with_msg.
6274 (do_captured_breakpoint): Add uiout parameter.
6275 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
6276 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
6277 gdb_thread_select. Return MI_CMD_ERROR instead of
6278 MI_CMD_CAUGHT_ERROR.
6279 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
6280 (enum captured_mi_execute_command_actions): Delete
6281 EXECUTE_COMMAND_DISPLAY_ERROR.
6282 (captured_mi_execute_command): Delete code handling
6283 MI_CMD_CAUGHT_ERROR.
6284 (mi_execute_command): Don't check for
6285 EXECUTE_COMMAND_DISPLAY_ERROR.
6286 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
6287 gdb_breakpoint_query.
6288 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
6289 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
6290 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
6291 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
6292 parameter.
6293 * thread.c (thread_command): Update call.
6294 (gdb_thread_select, gdb_list_thread_ids): Update, call
6295 catch_exceptions_with_msg.
6296
6297 * mi/mi-main.c (mi_execute_command): Use catch_exception,
6298 eliminate call to error_last_message.
6299 (captured_mi_execute_command): Change return type to void.
6300
6301 2005-01-12 Andrew Cagney <cagney@gnu.org>
6302
6303 * exceptions.c (exception_none): New variable.
6304 * Makefile.in: Update dependencies.
6305 * interps.c: Include "exceptions.h".
6306 (interpreter_exec_cmd, interp_exec): Update to return "struct
6307 exception"
6308 * exceptions.h (no_exception): Declare.
6309 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
6310 * mi/mi-interp.c: Include "exceptions.h".
6311 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
6312 'struct exception".
6313 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
6314 (do_captured_execute_command): Update to use catch_exception.
6315 * interps.h: Include "exceptions.h".
6316 (interp_exec_ftype, interp_exec): Return "struct exception".
6317
6318 * exceptions.h (throw_reason): Rename throw_exception.
6319 (enum errors, struct exception): Define.
6320 (catch_exception_ftype): Define.
6321 (catch_exception, throw_exception): Declare.
6322 * exceptions.c (throw_exception): Rewrite.
6323 (throw_reason): New function.
6324 (struct catcher, catcher_state_machine): Replace "reason" with
6325 "exception", delete "gdberrmsg".
6326 (catch_exception): New function.
6327 (catcher_init): Replace "gdberrmsg" parameter with "exception".
6328 (catch_errors, catch_exceptions_with_msg): Re-implement passing
6329 exception to catcher_init.
6330 * utils.c (error_silent, error_stream_1): Use throw_reason.
6331 (internal_verror, quit): Ditto.
6332 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
6333 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
6334 * remote.c (remote_open_1, interrupt_query): Ditto.
6335
6336 2005-01-12 Mark Kettenis <kettenis@gnu.org>
6337
6338 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
6339 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
6340 (i386fbsd_jmp_buf_reg_offset): New variable.
6341 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
6342 functions.
6343 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
6344 * Makefile.in (i386fbsd-tdep.o): Update dependency.
6345 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
6346
6347 * bsd-uthread.h: New file.
6348 * bsd-uthread.c: New file.
6349 * Makefile.in (bsd_uthread_h): New variable.
6350 (ALLDEPFILES): Add bsd-uthread.c.
6351 (bsd-uthread.o): New dependency.
6352
6353 * solib.h Update copyright year.
6354 (struct so_list): Forward declaration.
6355 (solib_read_symbols): New prototype.
6356 * solib.c (solib_read_symbols): New function.
6357 (solib_add): Call solib_read_symbols to read in symbols.
6358 (update_solib_list): Call observer_notify_solib_loaded.
6359
6360 * i386bsd-nat.c: Update copyright year. Don't include
6361 <sys/param.h> and <sys/user.h>.
6362 (register_u_addr, kernel_u_size): Remove functions.
6363 * config/i386/obsd.mh (NAT_FILE): Remove.
6364 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
6365 * config/i386/nm-obsd.h: Remove file.
6366
6367 2005-01-12 Andrew Cagney <cagney@gnu.org>
6368
6369 * exceptions.c: Include "gdb_string.h".
6370 (enum catcher_state, struct catcher): Define.
6371 (current_catcher): New global, replaces catch_return;
6372 (catch_return): Delete.
6373 (throw_exception): Use current_catcher->buf;
6374 (catcher_init, catcher_pop, catcher_state_machine): New functions.
6375 (catcher): Delete.
6376 (struct catch_errors_args): Delete.
6377 (do_catch_errors): Delete.
6378 (catch_exceptions): Replace body with call to
6379 catch_exceptions_with_msg.
6380 (catcher): Delete.
6381 (catch_exceptions_with_msg, catch_errors): Re-implement using
6382 catcher_state_machine.
6383
6384 * exceptions.h (enum return_reason, RETURN_MASK)
6385 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
6386 (return_mask, throw_exception, catch_exceptions_ftype)
6387 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
6388 (catch_command_errors_ftype, catch_command_errors): Move to
6389 exceptions.h.
6390 * exceptions.c, exceptions.h: New files.
6391 * top.c: Do not include <setjmp.h>.
6392 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
6393 (throw_exception, catcher, catch_exceptions)
6394 (catch_exceptions_with_msg, struct catch_errors_args)
6395 (do_catch_errors, catch_errors, struct captured_command_args)
6396 (do_captured_command, catch_command_errors): Move to exceptions.c.
6397 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
6398 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
6399 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
6400 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
6401 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
6402 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
6403 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
6404 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
6405 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
6406 * ada-valprint.c, ada-lang.c: Ditto.
6407 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
6408 exceptions.o. Update all dependencies.
6409
6410 2005-01-11 Mark Kettenis <kettenis@gnu.org>
6411
6412 * config/i386/nm-fbsd.h: Update copyright year.
6413 Don't include "config/nm-bsd.h".
6414 (KERNEL_U_SIZE): Remove macro.
6415 (kernel_u_size): Remove prototype.
6416
6417 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
6418 * config/vax/nm-nbsdaout.h: Remove file.
6419
6420 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
6421
6422 * MAINTAINERS: Remove self from sh/sh64 maintainership.
6423
6424 2005-01-10 Andrew Cagney <cagney@gnu.org>
6425
6426 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
6427 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
6428 maintainer.
6429
6430 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
6431 changes to CRIS.
6432
6433 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
6434 COMMIT means can approve).
6435
6436 2005-01-10 Mark Kettenis <kettenis@gnu.org>
6437
6438 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
6439 (vax_register_u_offset): Make statuc.
6440 (_initialize_vax_nat): Construct and add target vector.
6441 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
6442 inftarg.o. Add inf-ptrace.o.
6443 * Makefile.in (vax-nat.o): Update dependencies.
6444
6445 * inf-ptrace.h: Update copyright year. Sync comment with
6446 inf-ptrace.c.
6447 (inf_ptrace_trad_target): New prototype.
6448 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
6449 "gdb_assert.h"
6450 (inf_ptrace_target): Add comment.
6451 (inf_ptrace+register_u_offset): New variable.
6452 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6453 (inf_ptrace_store_register, inf_ptrace_store_registers)
6454 (inf_ptrace_trad_target): New functions.
6455 * Makefile.in (inf-ptrace.o): Update dependencies.
6456
6457 2005-01-09 Mark Kettenis <kettenis@gnu.org>
6458
6459 * configure.ac: Provide prerequisite headers when checking
6460 <link.h>, <sys/proc.h> and <sys/user.h>.
6461 * configure: Regenerate.
6462
6463 2005-01-08 Mark Kettenis <kettenis@gnu.org>
6464
6465 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
6466 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
6467
6468 2005-01-07 Mark Kettenis <kettenis@gnu.org>
6469
6470 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
6471 Don't include "tm-ia64.h".
6472 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
6473 * config/ia64/tm-ia64.h: Remove. Move contents ...
6474 * ia64-tdep.h: ... here. Update copyright year.
6475
6476 2005-01-07 Andrew Cagney <cagney@gnu.org>
6477
6478 * configure.ac: Rename configure.in, require autoconf 2.59.
6479 * configure: Re-generate.
6480
6481 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
6482 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
6483 to configdirs.
6484
6485 * configure.in: Replace configdirs with multiple references to
6486 AC_CONFIG_SUBDIRS.
6487 * configure: Re-generate.
6488
6489 2005-01-05 Andreas Schwab <schwab@suse.de>
6490
6491 * ia64-tdep.c: Include "osabi.h".
6492 (native_find_global_pointer): Delete.
6493 (ia64_find_global_pointer): Renamed from
6494 generic_elf_find_global_pointer.
6495 (FIND_GLOBAL_POINTER): Delete. Change all users to call
6496 ia64_find_global_pointer instead.
6497 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
6498 to ia64_linux_sigcontext_register_address and
6499 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
6500 (_initialize_ia64_tdep): Call gdbarch_register instead of
6501 deprecated register_gdbarch_init.
6502 (struct gdbarch_tdep): Remove find_global_pointer field and move
6503 to ...
6504 * ia64-tdep.h (struct gdbarch_tdep): ... here.
6505 (ia64_linux_sigcontext_register_address): Remove declaration.
6506 (ia64_linux_getunwind_table): Likewise.
6507 (ia64_linux_write_pc): Likewise.
6508 * ia64-linux-tdep.c: Include "osabi.h".
6509 (ia64_linux_sigcontext_register_address): Make static.
6510 (ia64_linux_write_pc): Likewise.
6511 (ia64_linux_init_abi): New.
6512 (_initialize_ia64_linux_tdep): New.
6513 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
6514 $(osabi_h).
6515
6516 2005-01-05 Kevin Buettner <kevinb@redhat.com>
6517
6518 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
6519 functions in ia64-aix-tdep.c.
6520 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
6521 function defined in ia64-aix-tdep.c.
6522 * ia64-aix-tdep.c: Remove file.
6523 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
6524 this list.
6525 * Makefile.in (ia64-aix-tdep.o): Delete.
6526
6527 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
6528
6529 Committed by Andrew Cagney.
6530 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
6531 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
6532 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
6533 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
6534 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
6535 * aix-thread.c (_initialize_aix_thread): Get rid of the
6536 deprecated_add_show_from_set call.
6537 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
6538 * arm-tdep.c (_initialize_arm_tdep): Ditto.
6539 * command.h (add_setshow_enum_cmd): Add arguments for returning
6540 new list elements.
6541 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
6542 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
6543 add_setshow_enum_cmd.
6544
6545 2005-01-04 Mark Kettenis <kettenis@gnu.org>
6546
6547 * configure.host (ia64-*-aix*): Remove.
6548 * configure.tgt (ia64-*-aix*): Remove.
6549 * config/ia64/aix.mh: Remove file.
6550 * config/ia64/aix.mt: Remove file.
6551 * config/ia64/tm-aix.h: Remove file.
6552 * ia64-aix-nat.c: Remove file.
6553 * Makefile.in (ia64-aix-nat.o): Remove dependency.
6554
6555 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
6556 Add back inf-ptrace.o.
6557
6558 2005-01-04 Andrew Cagney <cagney@gnu.org>
6559
6560 * version.in: Change format from 6.3.50_2005-01-04-cvs to
6561 6.3.50.20050104-cvs.
6562
6563 2005-01-04 Andreas Schwab <schwab@suse.de>
6564
6565 * breakpoint.c (break_command_1): Always free err_msg before
6566 returning when an exception was caught.
6567
6568 2005-01-01 Joel Brobecker <brobecker@gnat.com>
6569
6570 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
6571 in register number for addil instruction.
6572
6573 For older changes see ChangeLog-2004.
6574 \f
6575 Local Variables:
6576 mode: change-log
6577 left-margin: 8
6578 fill-column: 74
6579 version-control: never
6580 End:
This page took 0.259257 seconds and 4 git commands to generate.