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