Typo fix.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f3e25dcb
MK
12005-05-16 Mark Kettenis <kettenis@gnu.org>
2
65a19707
MK
3 * sol-thread.c (ignore): Change last argument to `gdb_byte.'
4
9aa6bcd8
MK
5 * config/i386/fbsd.mt (DEPRECATED_TM_FILE): Remove.
6 * config/i386/fbsd64.mt (DEPRECATED_TM_FILE): Remove.
7 * config/i386/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8 * config/i386/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
9 * config/sparc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
10 * config/sparc/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
11
f3e25dcb
MK
12 * observer.sh: Quote $DJGPP.
13
42ecbf5e
DJ
142005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
15
16 * Makefile.in (.y.c): Update ylwrap invocation.
17
58aecb61
DJ
182005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
19
20 * linux-nat.c (child_follow_fork, linux_handle_extended_wait)
21 (lin_lwp_attach_lwp, linux_nat_attach, wait_lwp, child_wait)
22 (linux_nat_wait, kill_wait_callback): Use my_waitpid.
23 (_initialize_linux_nat, lin_thread_get_thread_signals): Use
24 SA_RESTART.
25
42835c2b
MK
262005-05-14 Mark Kettenis <kettenis@gnu.org>
27
a5bf92c5
MK
28 * configure.tgt (vax-*-openbsd*): Set gdb_target to obsd.
29 * config/vax/obsd.mt (TDEPFILES): New file.
30
156cdbee
MK
31 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset): Use
32 gdb_byte instead of bfd_byte.
33
47a35522
MK
34 * mips-tdep.c (mips_pseudo_register_read)
35 (mips_pseudo_register_write): Change type of last argument to
36 `gdb_byte *'.
37 (mips_register_to_value, mips_value_to_register): Change type of
38 last argument to `gdb_byte *'. Remove casts that are no longer
39 needed.
40 (mips_fetch_instruction, fetch_mips_16): Use gdb_byte for buf.
41 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
42 (mips_o32_push_dummy_call, mips_o32_return_value): Use `const
43 gdb_byte *' for val and gdb_byte for valbuf. Remove casts that
44 are no longer needed.
45 (mips_eabi_return_value, mips_n32n64_return_value)
46 (mips_o32_return_value, mips_o64_return_value): Change type of
47 readbuf and writebuf arguments to `gdb_byte *'.
48 (mips_read_fp_register_single): Change type of last argument to
49 `gdb_byte *'. Use `gdb_byte *' for raw_buffer.
50 (mips_read_fp_register_double): Change type of last argument to
51 `gdb_byte *'.
52 (mips_print_fp_register): Use `gdb_byte *' for raw_buffer. Remove
53 casts that are no longer needed.
54 (mips_print_register, print_gp_register_row): Use gdb_byte for
55 raw_buffer. Remove casts that are no longer needed.
56 (mips_single_step_through_delay): Use gdb_byte for buf.
57 (mips_breakpoint_from_pc): Change return type to `const gdb_byte
58 *'. Use gdb_byte for mips16_big_breakpoint, big_breakpoint,
59 pmon_big_breakpoint, idt_big_breakpoint, mips16_little_breakpoint,
60 little_breakpoint, pmon_little_breakpoint and
61 idt_little_breakpoint.
62 (mips_integer_to_address): Use `gdb_byte *' for tmp.
63
c872b717
MK
64 * config/m68k/obsd.mt (DEPRECATED_TM_FILE): Remove.
65 * config/i386/obsd.mt (DEPRECATED_TM_FILE): Remove.
66 * config/i386/obsd64.mt (DEPRECATED_TM_FILE): Remove.
67 * config/pa/obsd.mt (DEPRECATED_TM_FILE): Remove.
68 * config/sparc/obsd.mt (DEPRECATED_TM_FILE): Remove.
69 * config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Remove.
70
e1613aba
MK
71 * sparc-tdep.c (sparc_fetch_instruction, sparc_fetch_wcookie): Use
72 gdb_byte for buf.
73 (sparc32_pseudo_register_read, sparc32_pseudo_register_write):
74 Change type of last argument to `gdb_byte *'. Remove casts that
75 are no longer needed.
76 (sparc32_push_dummy_code, sparc32_store_arguments): Use gdb_byte
77 for buf.
78 (sparc_breakpoint_from_pc): Change return type to `const gdb_byte
79 *'. Use gdb_byte for break_insn.
80 (sparc32_extract_return_value, sparc32_store_return_value): Change
81 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
82 (sparc32_return_value): Change type of readbuf and writebuf
83 arguments to `gdb_byte *'.
84 (sparc_software_single_step): Use gdb_byte for npc_save and
85 nnpc_save.
86 (sparc_supply_rwindow, sparc_collect_rwindow): Use gdb_byte for
87 buf.
88 (sparc32_supply_gregset, sparc32_collect_gregset)
89 (sparc32_supply_fpregset, sparc32_collect_fpregset): Use `gdb_byte
90 *' for regs.
91 * sparc64-tdep.c (sparc64_pseudo_register_read)
92 (sparc64_pseudo_register_write): Change type of last argument to
93 `gdb_byte *'. Remove casts that are no longer needed.
94 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
95 Change type of valbuf argument to `gfd_byte *'.
96 (sparc64_store_arguments): Use `gdb_byte *' for valbuf. use
97 gdb_byte for buf.
98 (sparc64_extract_return_value, sparc64_store_return_value): Change
99 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
100 (sparc64_return_value): Change type of readbuf and writebuf
101 arguments to `gdb_byte *'.
102 (sparc64_supply_gregset, sparc64_collect_gregset)
103 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use `gdb_byte
104 *' for regs.
105
f5cf7aa1
MK
106 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Change return type
107 to `const gdb_byte *'. Use gdb_byte for break_insn.
108 (m68k_register_to_value): Change type of last argument to
109 `gdb_byte *'. Use gdb_byte for from.
110 (m68k_value_to_register): Change type of last argument to
111 `gdb_byte *'. Use gdb_byte for to.
112 (m68k_extract_return_value): Change type of last argument to
113 `gdb_byte *'. Use gdb_byte for buf. Remove unnecessary cast.
114 (m68k_svr4_extract_return_value): Change type of last argument to
115 `gdb_byte *'. Use gdb_byte for buf.
116 (m68k_store_return_value): Change type of last argument to
117 `gdb_byte *'. Remove unnecessary cast.
118 (m68k_svr4_store_return_value): Change type of last argument to
119 `gdb_byte *'. Use gdb_byte for buf.
120 (m68k_return_value, m68k_svr4_return_value): Change type of
121 readbuf and writebuf arguments to `gdb_byte *'.
122 (m68k_push_dummy_call, m68k_unwind_pc, m68k_frame_cache)
123 (m68k_unwind_dummy_id): Use gdb_byte for buf.
124 (m68k_get_longjmp_target): Use `gdb_byte *' for buf.
125 * m68kbsd-tdep.c (m68kbsd_supply_fpregset)
126 (m68kbsd_supply_gregset): Use `gdb_byte *' for regs.
127
8dccaca3
MK
128 * m88k-tdep.c (m88k_breakpoint_from_pc): Change return type to
129 `const gdb_byte *'. Use gdb_byte for break_insn.
130 (m88k_return_value): Change type of readbuf and
131 writebuf arguments to `gdb_byte *'. Use gdb_byte for buf.
132 (m88k_supply_gregset): Use `gdb_byte *' for regs.
133
459f20b9
MK
134 * vax-tdep.c (vax_return_value): Change type of readbuf and
135 writebuf arguments to `gdb_byte *'.
136
42835c2b
MK
137 * amd64-tdep.c (amd64_return_value): Change type of readbuf and
138 writebuf arguments to `gdb_byte *'. Remove now redundant casts.
139 * i386-tdep.c (i386_return_value): Change type of readbuf and
140 writebuf arguments to `gdb_byte *'.
141 (i386_pseudo_register_read, i386_pseudo_register_write): Change
142 type of last argument to `gdb_byte *'.
143 (i386_register_to_value, i386_value_to_register): Change type of
144 last argument to `gdb_byte *'. Simplify function a bit.
145 * i387-tdep.h (i387_value_to_register, i387_register_to_value):
146 Change type of last argument to `gdb_byte *'.
147 * i387-tdep.c: Likewise.
148
b60c417a
AC
1492005-05-13 Andrew Cagney <cagney@gnu.org>
150
151 * gdbarch.sh (pseudo_register_read, pseudo_register_write)
152 (value_to_register, register_to_value, pointer_to_address)
153 (address_to_pointer, return_value, extract_return_value)
154 (store_return_value): Instead of a void pointer, use gdb_byte.
155 * gdbarch.h, gdbarch.c: Regenerate.
156 * inferior.h (unsigned_address_to_pointer)
157 (signed_pointer_to_address, address_to_signed_pointer)
158 (unsigned_pointer_to_address): Update.
159 * arch-utils.h (legacy_return_value):
160 * arch-utils.c (legacy_extract_return_value)
161 (legacy_return_value): Update.
162 * findvar.c (unsigned_pointer_to_address)
163 (signed_pointer_to_address, unsigned_address_to_pointer)
164 (address_to_signed_pointer): Update.
165
bdd56253
OF
1662005-05-13 Orjan Friberg <orjanf@axis.com>
167
168 * cris-tdep.c (_initialize_cris_tdep): Improve help strings for
169 cris-version, cris-mode, and cris-dwarf2-cfi settings.
170
0e6bdb31
OF
1712005-05-13 Orjan Friberg <orjanf@axis.com>
172
173 * cris-tdep.c (usr_cmd_cris_version): Change type to int.
174 (cris_mode_normal, cris_mode_guru, cris_modes, usr_cmd_cris_mode): Add.
175 (struct gdbarch_tdep): Change type of cris_version to int. Add
176 cris_mode.
177 (cris_mode, set_cris_mode): New functions.
178 (crisv32_single_step_through_delay): Read from NRP register instead
179 of ERP register in guru mode.
180 (cris_breakpoint_from_pc): Rename break_insn to break8_insn.
181 Add break15_insn, returned in guru mode.
182 (_initialize_cris_tdep): Add call to add_setshow_enum_cmd for new
183 cris-mode setting.
184 (cris_dump_tdep): Add dump of cris_mode.
185 (cris_gdbarch_init): Add cris_mode to search criteria for architecture.
186 Register the sigtramp frame sniffer only if not in guru mode.
187
1e872def
EZ
1882005-05-13 Eli Zaretskii <eliz@gnu.org>
189
190 * Makefile.in (go32-nat.o): Add $(top_h) to prerequisites.
191
192 * go32-nat.c: Include top.h. Update copyright years.
193 (init_go32_ops): Override the default value of gdbinit[] with
194 "gdb.ini".
195
196 * cli/cli-cmds.c: Don't define GDBINIT_FILENAME.
197 (init_cli_cmds): Use gdbinit[] instead of a compile-time literal
198 string GDBINIT_FILENAME.
199
200 * top.c (PATH_MAX): Define if not defined.
201 (gdbinit): Declare with a constant size PATH_MAX.
202
203 * config/i386/go32.mh (XM_FILE): Remove.
204
205 * config/i386/xm-go32.h: Remove file.
206
e0ecbda1
MK
2072005-05-12 Mark Kettenis <kettenis@gnu.org>
208
d45b6f32
MK
209 * sol-thread.c: Include "solib.h".
210 (sol_thread_attach): Use solib_add instead of SOLIB_ADD.
211 * Makefile.in (sol-thread.o): Update dependencies.
212
e0ecbda1
MK
213 * NEWS: Mention OpenBSD/mips64 as a new native configuration.
214
5711a8b0
EZ
2152005-05-12 Eli Zaretskii <eliz@gnu.org>
216
217 * observer.sh (texi) [DJGPP]: If the file name includes a colon,
218 convert it to the /dev/x/ form.
219
a77053c2
MK
2202005-05-12 Mark Kettenis <kettenis@gnu.org>
221
222 * solib.h (CLEAR_SOLIB, SOLIB_ADD)
223 (SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
224 (SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
225 (DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
226 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
227 comments.
228 * breakpoint.c: Include "solib.h".
229 (insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
230 solib_address.
231 (remove_solib_event_breakpoints, create_solib_event_breakpoint)
232 (disable_breakpoints_in_shlibs)
233 (disable_breakpoints_in_unloaded_shlib)
234 (re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
235 defined. If PC_SOLIB isn't defined, call solib_address.
236 (_initialize_breakpoint): Unconditionally install observer.
237 * corelow.c: Include "solib.h".
238 [SOLIB_ADD] (solib_add_stub): Remove prototype.
239 (core_close) [!CLEAR_SOLIB]: Call clear_solib.
240 (solib_add_stub) [!SOLIB_ADD] Call solib_add.
241 (core_open): Unconditionally call solib_add_stub.
242 * fork-child.c: Include "solib.h".
243 (fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
244 solib_create_inferior_hook.
245 * infcmd.c: Include "solib.h".
246 (attach_command) [!SOLIB_ADD]: Call shlib_rescan. Unconditionally
247 call re_enable_breakpoints_in_shlibs.
248 * infrun.c: Include "solib.h".
249 (SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
250 defined.
251 (stop_on_solib_events, show_stop_on_solib_events): Include
252 unconditionally.
253 (follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
254 solib_create_inferior_hook.
255 (handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
256 [!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
257 (_initialize_infrun): Unconditionally add "stop_on_solib-events"
258 command.
259 * remote.c: Include "solib.h".
260 (remote_open_1): Unconditionally call no_shared_libraries.
261 [!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
262 * stack.c: Include "solib.h".
263 (print_frame) [!PC_SOLIB] Call shlib_for_pc.
264 * xcoffsolib.c (no_shared_libraries): Remove function.
265 * Makefile.in (SFILES): Add solib.c.
266 (ALLDEPFILES): Remove solib.c.
267 (COMMON_OBS): Add solib.o.
268 (breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
269 (remote.o, stack.o): Update dependencies.
270
847f5ce8
DJ
2712005-05-12 Daniel Jacobowitz <dan@codesourcery.com>
272
273 * cp-names.y: Renamed to ...
274 * cp-name-parser.y: ... this.
275 * Makefile.in (SFILES, YYFILES, YYOBJ): Rename cp-names.y to
276 cp-name-parser.y.
277 (test-cp-names.o): Renamed to test-cp-name-parser.o.
278 (test-cp-names): Renamed to test-cp-name-parser.
279 (clean, local-maintainer-clean): Update.
280 (cp-names.o): Renamed to cp-name-parser.o.
281
b41cde44
EZ
2822005-05-12 Eli Zaretskii <eliz@gnu.org>
283
15c3c5c6
EZ
284 * observer.sh: Use observer.tmp instead of observer.inc-tmp which
285 on 8+3 filesystems overwrites observer.inc. Update copyright year
286 of the resultant file.
287
358777b0
EZ
288 * gnu-v3-abi.c (init_gnuv3_ops): Cast is_gnu_v3_mangled_dtor and
289 is_gnu_v3_mangled_ctor to avoid compiler warnings.
290
b41cde44
EZ
291 * config/djgpp/config.sed: Adapt to latest Autoconf.
292
293 * config/djgpp/djconfig.sh: Add -Wpointer-arith and
294 -Wuninitialized to the build warnings.
295
0d4fc997
EZ
2962005-05-11 Eli Zaretskii <eliz@gnu.org>
297
6791e1b1
EZ
298 * config/djgpp/fnchange.lst: Add mappings for inttypes*.m4,
299 ChangeLog-2004, reg-cris*.dat, dw2-intermix.*, semcris*-switch.c.
300 Fix mappings for hilo-hazard-?.s.
301
0d4fc997
EZ
302 * config/djgpp/README: Update GDB versions and my email address.
303
fc1a4b47
AC
3042005-05-09 Andrew Cagney <cagney@gnu.org>
305
306 Use gdb_byte in preference to bfd_byte.
307 * gdbarch.sh: Update.
308 * gdbarch.h, gdbarch.c: Re-generate.
309 * ada-lang.c, ada-lang.h, ada-valprint.c, arch-utils.c: Update.
310 * c-lang.c, c-lang.h, c-valprint.c, cp-valprint.c: Update.
311 * f-lang.c, f-lang.h, f-valprint.c, gdbcore.h, jv-lang.h: Update.
312 * jv-valprint.c, language.c, language.h, m2-lang.c: Update.
313 * m2-lang.h, m2-valprint.c, objc-lang.c, p-lang.c: Update.
314 * p-lang.h, p-valprint.c, regcache.c, scm-lang.c: Update.
315 * scm-lang.h, scm-valprint.c, target.c, target.h: Update.
316 * tramp-frame.c, valarith.c, valops.c, valprint.c: Update.
317 * valprint.h, value.c, value.h: Update.
318
8b04f8b6
MK
3192005-05-09 Mark Kettenis <kettenis@gnu.org>
320
8cc49c48
MK
321 * vaxbsd-nat.c (vaxbsd_supply_gregset, vaxbsd_collect_gregset):
322 Use `gdb_byte *' for regs.
323 * vax-tdep.c (vax_supply_gregset): Use `gdb_byte *' for regs;
324 (vax_store_arguments, vax_push_dummy_call, vax_return_value): Use
325 gdb_byte for buf.
326 (vax_breakpoint_from_pc): Change return type to `const gdb_byte
327 *'. Use gdb_byte for break_insn.
328 (vax_skip_prologue): Use gdb_byte for op.
329
8142f7cb
MK
330 * i387-tdep.c: Remove outdated comments.
331
8b04f8b6
MK
332 * defs.h: Unconditionally include <sys/types.h>.
333
979b38e0
DJ
3342005-05-08 Daniel Jacobowitz <dan@codesourcery.com>
335
336 * mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs
337 section like .plt.
338
9cedd1a6 3392005-05-08 Mark Kettenis <kettenis@gnu.org>
d8de1ef7 340
4252dc94
MK
341 * i386-linux-tdep.c (linux_sigtramp_code, linux_rt_sigtramp_code):
342 Change type to `static const gdb_byte'.
343 (i386_linux_sigtramp_start, i386_linux_rt_sigtramp_start)
344 (i386_linux_sigcontext_addr): Use gdb_byte for buf.
345 * amd64-linux-tdep.c (linux_sigtramp_code): Change type to `static
346 const gdb_byte'.
347 (amd64_linux_sigtramp_start, amd64_linux_sigcontext_addr): Use
348 gdb_byte for buf.
349 * amd64fbsd-tdep.c (amd64fbsd_supply_uthread)
350 (amd64fbsd_collect_uthread): Use gdb_byte for buf.
351
d46bfb5c
MK
352 * config/ia64/nm-aix.h: Remove file.
353
d8de1ef7
MK
354 * amd64-tdep.c (amd64_return_value): Use `gdb_byte *' in casts.
355 (amd64_push_arguments): Use gdb_byte instead of bfd_byte. Use
356 gdb_byte for buf.
357 (amd64_push_dummy_call): Use gdb_byte for buf.
358 (amd64_analyze_prologue): Use gdb_byte for proto, buf and op.
359 (amd64_frame_cache, amd64_sigtramp_frame_cache)
360 (amd64_unwind_dummy_id): Use gdb_byte for buf.
361 (amd64_supply_fxsave, amd64_collect_fxsave): Use `gdb_byte *' for
362 regs.
363 * amd64obsd-tdep.c (amd64obsd_supply_regset): Use `gdb_byte *' in
364 casts.
365 (amd64obsd_sigtramp_p): Use gdb_byte for sigreturn and `gdb_byte
366 *' for buf,
9cedd1a6 367
63c0089f
MK
368 * i386-tdep.c (i386_breakpoint_from_pc): Change return type to
369 `const gdb_byte *'. Use gdb_byte for break_insn.
370 (i386_follow_jump): Use gdb_byte for op.
371 (i386_analyze_struct_return): Use gdb_byte for proto1, proto2, buf
372 and op.
373 (i386_skip_probe): Use gdb_byte for buf and op.
374 (struct i386_insn): Use gdb_byte for insn and mask.
375 (i386_match_insn, i386_analyze_frame_setup)
376 (i386_analyze_register_saves): Use gdb_byte for op.
377 (i386_skip_prologue): Use gdb_byte for pic_pat and op;
378 (i386_unwind_pc, i386_frame_cache, i386_sigtramp_frame_cache)
379 (i386_unwind_dummy_id, i386_get_longjmp_target): Use gdb_byte for
380 buf.
381 (i386_extract_return_value, i386_store_return_value): Use
e447028c 382 `gdb_byte *' instead of `void *' for valbuf argument. Remove now
63c0089f
MK
383 redundant cast.
384 (i386_pseudo_register_read, i386_pseudo_register_write): Use
385 gdb_byte for mmx_buf.
386 (i386_register_to_value, i386_value_to_register): Use `gdb_byte *'
387 instead of `char *' for buf.
388 (i386_supply_gregset, i386_collect_gregset): Use `gdb_byte *'
389 instead of `char *' for regs.
390 (i386_svr4_sigcontext_addr): Use gdb_byte for buf.
391 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use gdb_byte for
392 sigreturn and `gdb_byte *' for buf.
393 (i386obsd_aout_supply_regset): Use `const gdb_byte *' in cast.
394 (i386obsd_supply_uthread, i386obsd_collect_uthread): Use gdb_byte
395 for buf.
396 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use gdb_byte for buf.
397
b57b6c2e
MK
398 * defs.h (gdb_byte): New typedef. Tweak comments.
399
9cedd1a6
MK
400 * target.h (target_link): Remove prototype.
401 * target.c (target_link): Remove function.
402 * symfile.c: Remove comment about rombug.
403
f8736ddf
MK
4042005-05-04 Mark Kettenis <kettenis@gnu.org>
405
406 * config/i386/cygwin.mh (XM_FILE): Remove variable.
407 * config/i386/xm-cygwin.h: Remove file.
408
8bbde302
BE
4092005-05-03 Ben Elliston <bje@au.ibm.com>
410
411 * infrun.c (handle_inferior_event): Update the comment about users
412 of stepped_after_stopped_by_watchpoint.
413
079c8cd0
CV
4142005-05-02 Corinna Vinschen <vinschen@redhat.com>
415
416 * MAINTAINERS: Remove hint that sh64 doesn't build.
417 * sh64-tdep.c (sh64_push_dummy_call): Cast buf in call to write_memory.
418 (sh64_do_fp_register): make raw_buffer unsigned.
419 (sh64_do_register): Ditto.
420
5ebc08b0
MK
4212005-05-02 Mark Kettenis <kettenis@gnu.org>
422
423 * bsd-uthread.c: Include "solib.h".
424 * Makefile.in (bsd-uthread.o): Update dependencies.
425
5dbe23a3
DJ
4262005-05-01 Daniel Jacobowitz <dan@codesourcery.com>
427
428 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Flush
429 cached frames when changing gdbarch.
430 * gdbarch.c: Regenerated.
431
5a168c78
AC
4322005-05-01 Andrew Cagney <cagney@gnu.org>
433
87d088f5
AC
434 * MAINTAINERS: Note that cris, m68k, mn10300, sh64, sparc and vax
435 do not build.
436
5a168c78
AC
437 * gdbarch.sh (deprecated_extract_return_value)
438 (breakpoint_from_pc, deprecated_store_return_value)
439 (memory_insert_breakpoint, memory_remove_breakpoint): Change type
440 of buffer to a bfd_byte pointer.
441 * gdbarch.h, gdbarch.c: Re-generate.
442 * mem-break.c (memory_insert_breakpoint)
443 (memory_remove_breakpoint, default_memory_insert_breakpoint)
444 (default_memory_remove_breakpoint): Update.
445 * target.h (memory_insert_breakpoint)
446 (memory_remove_breakpoint, default_memory_insert_breakpoint)
447 (default_memory_remove_breakpoint): Update declarations.
448 (struct target_ops): Update to_insert_breakpoint and
449 to_remove_breakpoint.
450 * target.c (debug_to_remove_breakpoint)
451 (debug_to_insert_breakpoint): Update.
452 * remote-m32r-sdi.c (m32r_remove_breakpoint)
453 (m32r_insert_breakpoint): Update.
454 * m32r-tdep.c (m32r_memory_insert_breakpoint)
455 (m32r_memory_remove_breakpoint): Update.
456 * remote-e7000.c (e7000_insert_breakpoint)
457 (e7000_remove_breakpoint): Update.
458 * remote-rdi.c (arm_rdi_insert_breakpoint)
459 (arm_rdi_remove_breakpoint): Update.
460 * remote-sim.c (gdbsim_insert_breakpoint)
461 (gdbsim_remove_breakpoint): Update.
462 * exec.c (ignore): Update.
463 * rs6000-tdep.c (rs6000_extract_return_value): Update.
464 * ia64-tdep.c (ia64_memory_insert_breakpoint)
465 (ia64_memory_remove_breakpoint): Update.
466 * remote-rdp.c (remote_rdp_insert_breakpoint)
467 (remote_rdp_remove_breakpoint): Update.
468
68b9939a
MK
4692005-05-01 Mark Kettenis <kettenis@gnu.org>
470
e908eab4
MK
471 * somsolib.c, somsolib.h: Remove files.
472 * Makefile.in (somsolib_h): Remove.
473 (somsolib.o): Remove dependency.
474
68b9939a
MK
475 * fbsd-nat.c: Include <sys/sysctl.h>.
476 (fbsd_pid_to_exec_file): Use KERN_PROC_PATHNAME sysctl if
477 available. Plug memory leak. Fixes PR gdb/1922.
478
66aba65d
MK
4792005-04-29 Mark Kettenis <kettenis@gnu.org>
480
481 * solist.h (TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB)
482 (TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK)
483 (TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS)
484 (TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): Remove defines.
485 * solib.c (solib_data): New variable.
486 (solib_init, solib_ops): New functions.
487 (solib_open, solib_map_sections, free_so, update_solib_list)
488 (solib_add, clear_solib, solib_create_inferior_hook)
489 (in_solib_dynsym_resolve_code): Call architecture-dependent code
490 using solib_ops.
491 (_initialize_solib): Register SOLIB_DATA.
492
35e08e03
KB
4932005-04-29 Kevin Buettner <kevinb@redhat.com>
494
495 * frv-tdep.c (find_func_descr): Verify that entry point can be
496 found in symbol table prior to looking up its function descriptor.
497 * solib-frv.c (find_canonical_descriptor_in_load_object): Add
498 test for non-NULL link map.
499
862ba188
CV
5002005-04-29 Corinna Vinschen <vinschen@redhat.com>
501
502 * MAINTAINERS: Revert h8300 state to un-deleted.
503 * Makefile.in: Re-add h8300-tdep.o dependencies.
504 * h8300-tdep.c: Slightly rearrange type definitions and functions.
505 (struct frame_extra_info): Remove.
506 (struct h8300_frame_cache): Replace locals with differently defined
507 uses_fp member.
508 (h8300_unwind_pc): Simplify.
509 (h8300_unwind_sp): New function.
510 (h8300_unwind_dummy_id): Simplify.
511 (h8300_init_frame_cache): New function.
512 (h8300_is_argument_spill): Use reworked defines for opcode scanning.
513 (h8300_skip_prologue): Rewrite.
514 (h8300_alloc_frame_cache): Remove.
515 (h8300_analyze_frame_setup): Remove.
516 (h8300_analyze_register_saves): Remove.
517 (h8300_analyze_prologue): Rewrite.
518 (h8300_frame_cache): Use h8300_init_frame_cache instead of
519 h8300_alloc_frame_cache. Use BINWORD instead of constant 4 to
520 accomodate 16 bit mode. Fix saved_sp and register offset evaluation.
521 (h8300_frame_this_id): Correctly calculate this_id using saved stack
522 pointer instead of base.
523 (h8300_frame_prev_register): Drop needless braces.
524 (h8300_frame_base_address): New function.
525 (h8300_frame_base): New frame_base.
526 (h8300_push_dummy_call): Return correct CFA value.
527 (h8300h_extract_return_value): Fix 8 byte value handling.
528 (h8300_use_struct_convention): New function.
529 (h8300h_use_struct_convention): New function.
530 (h8300h_store_return_value): Fix 8 byte value handling.
531 (h8300_return_value): New function.
532 (h8300h_return_value): New function.
533 (h8300_extract_struct_value_address): Remove deprecated functionality.
534 (h8300_push_dummy_code): Remove.
535 (h8300_gdbarch_init): Replace set_gdbarch_extract_return_value and
536 set_gdbarch_store_return_value calls by set_gdbarch_return_value.
537 Remove calls to set_gdbarch_deprecated_fp_regnum,
538 set_gdbarch_deprecated_extract_struct_value_address,
539 set_gdbarch_deprecated_use_struct_convention and
540 set_gdbarch_push_dummy_code.
541 Add calls to set_gdbarch_unwind_sp and frame_base_set_default.
542 Slightly rearrange code.
543
3a913e29
JB
5442005-04-28 Jim Blandy <jimb@redhat.com>
545
546 * parse.c (namecopy): Change allocation conventions.
547 (namecopy_size): New variable.
548 (copy_name): Allocate namecopy using xrealloc, instead of assuming
549 it has adequate space allocated to it.
550 (parse_exp_1): Don't try to allocate space for namecopy here.
551
a955ca71
EZ
5522005-04-28 Eli Zaretskii <eliz@gnu.org>
553
554 * cli/cli-cmds.c (edit_command): If symtab->fullname is not yet
555 set, use symtab_to_fullname, instead of trying to do its job. Use
556 xstrprintf instead of malloc and sprintf.
557
46845f5e
KB
5582005-04-28 Kevin Buettner <kevinb@redhat.com>
559
560 * remote.c (init_remote_state): Eliminate use of
561 deprecated_register_bytes().
562
8929e59d
AC
5632005-04-28 Andrew Cagney <cagney@gnu.org>
564
565 * valops.c (check_field): Make buffer a bfd_byte.
566 * value.c (unpack_long, unpack_double, unpack_pointer)
567 (unpack_field_as_long, modify_field): Ditto.
568 * value.h: Update declarations.
569
cade9e54
PB
5702005-04-28 Paul Brook <paul@codesourcery.com>
571
572 * exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
573
4b188b9f
MK
5742005-04-27 Mark Kettenis <kettenis@gnu.org>
575
ab576d85
MK
576 * solib-svr4.c (_initialize_svr4_solib)
577 [SVR4_FETCH_LINK_MAP_OFFSETS]: Don't set non-existent variable
578 svr4_legacy_fetch_link_map_offsets.
579
ccf00f21
MK
580 * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
581 (sh_gdbarch_init): Remove redundant prototype.
582 * sh-linux-tdep.c: New file.
583 * config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets):
584 Remove prototype.
585 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
586 * config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove
587 solib-legacy.o.
588 * Makefile.in (sh-linux-tdep.o): New.
589
4b188b9f
MK
590 * solib-svr4.c: Update copyright year. Include "gdb_assert.h".
591 (SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
592 defined.
593 (legacy_fetch_link_map_offsets): Remove prototype.
594 (fetch_link_map_offsets_gdbarch_data): Remove.
595 (LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
596 (first_link_map_member, open_symbol_file_object, svr4_current_sos)
597 (svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
598 instead of SVR4_FETCH_LINK_MAP_OFFSETS.
599 (solib_svr4_data): New variable.
600 (struct solib_svr4_ops): New.
601 (solib_svr4_init): New fynction.
602 (legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
603 Remove functions.
604 (svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
605 using the new `struct solib_svr4_ops'.
606 (_initialize_svr4_solib): Replace registration of per-architecture
607 data. Add temporary hack to set
608 svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
609 is set.
610 * Makefile.in (solib-svr4.o): Update dependencies.
611
4fabe3d5
MK
6122005-04-26 Mark Kettenis <kettenis@gnu.org>
613
614 * configure.tgt (*-*-freebsd*): Set gdb_osabi to
615 GDB_OSABI_FREEBSD_ELF. Partial fix for PR gdb/1922.
616
109c3e39
AC
6172005-04-26 Andrew Cagney <cagney@gnu.org>
618
619 * remote.c (remote_open_1): Move "ex"'s declaration to where it is
620 used.
621 (remote_get_thread_local_address): Use throw_error, include a
622 printed string.
623 * linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
624 * dwarf2loc.c (dwarf_expr_tls_address): Ditto.
625 * cli/cli-script.c (script_from_file): Mark up throw_error message.
626 * linespec.c (symtab_from_filename, decode_variable): Ditto.
627
71fff37b
AC
6282005-04-26 Andrew Cagney <cagney@gnu.org>
629
630 Rename 'struct exception' to 'struct gdb_exception'.
631 * wrapper.c: Update.
632 * varobj.c: Update.
633 * tui/tui-interp.c: Update.
634 * remote.c: Update.
635 * mi/mi-main.c: Update.
636 * mi/mi-interp.c: Update.
637 * linux-thread-db.c: Update.
638 * interps.h: Update.
639 * interps.c: Update.
640 * exceptions.h: Update.
641 * exceptions.c: Update.
642 * dwarf2loc.c: Update.
643 * cli/cli-interp.c: Update.
644 * cli/cli-script.c: Update.
645 * breakpoint.c: Update.
646
011825f0
MM
6472005-04-25 Mark Mitchell <mark@codesourcery.com>
648
3aa6b2ca
MM
649 * event-loop.c (gdb_select): Program defensively.
650
011825f0
MM
651 * event-loop.c (gdb_assert.h): Include.
652 (<windows.h>): Include under Windows.
653 (<io.h>): Likeiwse.
654 (gdb_select): New function.
655 (gdb_wait_for_event): Use it.
656 * Makefile.in (event-loop.o): Depend on $(gdb_assert_h).
657
02a71ae8
MK
6582005-04-23 Mark Kettenis <kettenis@gnu.org>
659
660 * sparc64-tdep.c: Include "dwarf2-frame.h".
661 (sparc64_dwarf2_frame_init_reg): New function.
662 * Makefile.in (sparc64-tdep.o): Update dependencies.
663
20338726
DM
6642005-04-22 David S. Miller <davem@davemloft.net>
665
666 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Add call to
667 sparc64_init_abi().
668
a07ff70c
MK
6692005-04-22 Mark Kettenis <kettenis@gnu.org>
670
671 * ser-base.c: Include "ser-base.h" instead of "ser-unix.h".
672
248697b2
MM
6732005-04-22 Mark Mitchell <mark@codesourcery.com>
674
675 * ser-base.c (<sys/time.h>): Include.
676
a33e488c
MK
6772005-04-22 Mark Kettenis <kettenis@gnu.org>
678
a86c5ab2
MK
679 * ppcobsd-tdep.c (ppcobsd_init_abi): Set return_value.
680
70f1dc74
MK
681 * sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
682 (LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
683 (LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
684 macros.
685 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
686 instructions.
687 * sparc64-linux-tdep.c: Reorder includes. Tweak a few comments.
688 (LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
689 macros.
690 (sparc64_linux_rt_sigframe): Hardcode instructions.
691 * Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
692 dependencies.
693
a33e488c
MK
694 * sparc-linux-tdep.c: Update copyright year.
695 (sparc32_linux_init_abi): Set skip_trampoline_code and
696 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
697 Don't set software_single_step and don't call
698 sparc32_sol2_init_abi.
699 * sparc64-linux-tdep.c: Update copyright year.
700 (sparc64_linux_init_abi): Set skip_trampoline_code and
701 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
702 Don't set software_single_step and don't call
703 sparc64_sol2_init_abi.
704
24ec834b
EZ
7052005-04-22 Eli Zaretskii <eliz@gnu.org>
706
707 * remote-st.c (_initialize_remote_st2000): Remove the extraneous
708 "<command>" string from the call to add_com.
709
710 * remote-sim.c (_initialize_remote_sim): Ditto.
711
712 * remote-utils.c (_initialize_sr_support): Ditto.
713
714 * remote-mips.c (_initialize_remote_mips): Ditto.
715
81f726ab
DM
7162005-04-21 David S. Miller <davem@davemloft.net>
717
718 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): New function.
719 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): New tramp_frames.
720 (sparc_linux_sigtramp_start, sparc32_linux_sigtramp_start,
721 sparc32_linux_rt_sigtramp_start, sparc32_linux_sigtramp_p,
722 sparc32_linux_sigtramp_frame_cache,
723 sparc32_linux_sigtramp_frame_this_id,
724 sparc32_linux_sigtramp_frame_prev_register,
725 sparc32_linux_sigtramp_frame_unwind,
726 sparc32_linux_sigtramp_frame_sniffer): Delete.
727 (sparc32_linux_init_abi): Register new tramp unwinders. Kill
728 register of old sigtramp sniffer.
729 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): New
730 function.
731 (sparc64_linux_rt_sigframe): New tramp frame.
732 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
733 sparc64_linux_sigtramp_frame_cache,
734 sparc64_linux_sigtramp_frame_this_id,
735 sparc64_linux_sigtramp_frame_prev_register,
736 sparc64_linux_sigtramp_frame_unwind,
737 sparc64_linux_sigtramp_frame_sniffer): Delete.
738 (sparc64_linux_init_abi): Register new tramp unwinders. Kill
739 register of old sigtramp sniffer.
740 Makefile.in (sparc64-linux-tdep.o): Update dependencies.
741 (sparc-linux-tdep.o): Likewise.
742
401e7faf
MK
7432005-04-21 Mark Kettenis <kettenis@gnu.org>
744
745 * ser-base.c: Include "gdb_string.h".
746 * Makefile.in (ser-base.o): Update dependencies.
747
78a0fd57
DM
7482005-04-20 David S. Miller <davem@davemloft.net>
749
750 * sparc-linux-tdep.c (sparc32_linux_sigtramp_p): Fix
751 signal return stub symbol names, __restore and __restore_rt are
752 the i386 symbol names not the sparc ones.
753 (sparc32_linux_sigtramp_frame_cache): Document bits/sigcontext.h
754 as where the offsets were obtained from.
755 * sparc64-linux-tdep.c (LINUX64_RT_SIGTRAMP_INSN0,
756 LINUX64_RT_SIGTRAMP_INSN1): New defines.
757 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
758 sparc64_linux_sigtramp_frame_cache,
759 sparc64_linux_sigtramp_frame_this_id,
760 sparc64_linux_sigtramp_frame_prev_register,
761 sparc64_linux_sigtramp_frame_sniffer): New functions.
762 (sparc64_linux_sigtramp_frame_unwind): New frame unwinder.
763 (sparc64_linux_init_abi): Register sigtramp frame sniffer.
764 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
765
b4505029
MM
7662005-04-20 Mark Mitchell <mark@codesourcery.com>
767
768 * configure.ac: On MinGW, define USE_WIN32API and link with
769 -lws2_32.
770 * ser-tcp.c (<winsock2.h>): Include, for Windows.
771 (ETIMEDOUT): Define, for Windows.
772 (ioctl): Likewise.
773 (closesocket): Define, for POSIX.
774 (net_open): Adjust for differences in socket functions between
775 Windows and UNIX.
776 (net_close): Likweise.
777 (net_read_prim): New function.
778 (net_write_prim): Likewise.
779 (_initialize_ser_tcp): Initialize winsock. Fill in read_prim and
780 write_prim.
781 * ser-unix.h (ser_unix_readcchar): Remove.
782 (ser_unix_read_prim): Declare.
783 (ser_unix_write_prim): Likewise.
784 * ser-unix.c (generic_readchar): Move to ser-base.c.
785 (ser_unix_wait_for): Likewise.
786 (do_unix_readchar): Likewise.
787 (ser_unix_readchar): Likewise.
788 (_initialize_ser_hardwire): Initialize read_prim and write_prim.
789 (ser_unix_read_prim): New function.
790 (ser_unix_write_prim): Likewise.
791 * ser-base.h (generic_readchar): Declare.
792 (ser_base_readchar): Likewise.
793 * ser-base.c (<winsock2.h>): Include, for windows.
794 (fd_event): Use the read primitive specified by the serial
795 interface.
796 (ser_base_wait_for): Moved from ser-unix.c
797 (do_ser_base_read_char): Likewise.
798 (generic_readchar): Likewise.
799 (ser_base_readchar): Likewise.
800 (ser_base_write): Use the write primitive specified by the serial
801 interface.
802 * ser-pipe.c (_initialize_ser_pipe): Use ser_base_readchar, not
803 ser_unix_readchar. Initialize read_prim and write_prim.
804 * serial.c (struct serial_ops): Add read_prim and write_prim.
805 * configure: Regenerate.
806
8470e927
BE
8072005-04-19 Ben Elliston <bje@au.ibm.com>
808
809 * c-lang.c (c_create_fundamental_type): Comment fix.
810
9cacebf5
MS
8112005-04-18 Michael Snyder <msnyder@redhat.com>
812
813 * mn10300-tdep.c: Assimilate code from mn10300-prologue.c.
814 * mn10300-prologue.c: Remove.
815 * mn10300-tdep.h: Add enums from mn10300-prologue.c.
816 Remove prototypes.
817 * config/mn10300/mn10300.mt: Remove mn10300-prologue module.
818
7166c4a9
MS
8192005-04-18 Michael Snyder <msnyder@redhat.com>
820
0cc748c0 821 * config/mn10300/mn10300.mt: Add mn10300-prologue module.
7166c4a9
MS
822 * ia64-tdep.c (ia64_get_dyn_info_list): Fix indent.
823
57cd0b54
MK
8242005-04-18 Mark Kettenis <kettenis@gnu.org>
825
235c4ffd
MK
826 * config/nm-bsd.h: Remove file.
827
57cd0b54
MK
828 * hppabsd-nat.c: Update copyright year. Include "target.h" and
829 "inf-ptrace.h".
830 (hppabsd_fetch_registers): Renamed from fetch_inferior_registers;
831 made static.
832 (hppabsd_store_registers): Renamed from store_inferior_registers;
833 made static.
834 (_initialize_hppabsd_nat): New function and prototype.
835 * config/pa/obsd.mh (NATDEPFILES): Remove infptrace.o and
836 inftarg.o. Add inf-ptrace.o.
837 (NAT_FILE): Remove.
838 * Makefile.in (hppabsd-nat.o): Update dependencies.
839
f17882ad
MK
8402005-04-17 Mark Kettenis <kettenis@gnu.org>
841
842 * pa64solib.c, pa64solib.h: Remove files.
843 * Makefile.in (pa64solib_h): Remove variable
844 (pa64solib.o): Remove dependency.
845
5d6210f0
MK
8462005-04-16 Mark Kettenis <kettenis@gnu.org>
847
65d034bc
MK
848 * ppcobsd-nat.c: Update copyright year. Include "inf-ptrace.h".
849 (ppcobsd_fetch_registers): Renamed from fetch_inferior_registers;
850 made static.
851 (ppcobsd_store_registers): Renamed from store_inferior_registers;
852 made static.
853 (_initialize_ppcobsd_nat): Construct and add target vector.
854 * config/powerpc/obsd.mh (NATDEPFILES): Remove infptrace.o and
855 inftarg.o. Add inf-ptrace.o.
856 (NAT_FILE): Remove.
857 * Makefile.in (ppcobsd-nat.o): Update dependencies.
858
5a49dfd0
MK
859 * ppcobsd-tdep.c: Include "floatformat.h".
860 (ppcobsd_init_abi): Set long_double_bit and long_double_format.
861 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
862
5d6210f0
MK
863 * ppcobsd-tdep.c: Fix typo in comment.
864 (_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
865 bfd_arch_rs6000 too.
866
571dd617
KB
8672005-04-15 Kevin Buettner <kevinb@redhat.com>
868
869 * remote.c (remote_get_thread_local_address): Throw a more
870 meaningful exception when remote target doesn't have support
871 for the qGetTLSAddr packet.
872
38691318
KB
8732005-04-15 Kevin Buettner <kevinb@redhat.com>
874
875 * remote.c (remote_protocol_qGetTLSAddr): New static global variable.
876 (set_remote_protocol_qGetTLSAddr_packet_cmd)
877 (show_remote_protocol_qGetTLSAddr_packet_cmd)
878 (remote_get_thread_local_address): New functions.
879 (init_all_packet_configs): Initialize remote_protocol_qGetTLSAddr
880 variable.
881 (init_remote_ops): Initialize ``to_get_thread_local_address'' in
882 target vector.
883 (show_remote_cmd): Call show_remote_protocol_qGetTLS_Addr_packet_cmd().
884 (_initialize_remote): Register the following commands:
885 "set remote get-thread-local-storage-address-packet" and
886 "show remote get-thread-local-address-packet".
887
3ed07be4
KB
8882005-04-15 Kevin Buettner <kevinb@redhat.com>
889
890 * remote.c (add_packet_config_cmd): Delete unused variables.
891
c9365369
KB
8922005-04-15 Kevin Buettner <kevinb@redhat.com>
893
894 * remote.c (show_remote_protocol_vcont_packet_cmd )
895 (show_remote_protocol_qSymbol_packet_cmd)
896 (show_remote_protocol_P_packet_cmd)
897 (show_remote_protocol_Z_software_bp_packet_cmd)
898 (show_remote_protocol_Z_hardware_bp_packet_cmd)
899 (show_remote_protocol_Z_write_wp_packet_cmd)
900 (show_remote_protocol_Z_read_wp_packet_cmd)
901 (show_remote_protocol_Z_access_wp_packet_cmd)
902 (show_remote_protocol_binary_download_cmd)
903 (show_remote_protocol_qPart_auxv_packet_cmd)
904 (show_remote_protocol_p_packet_cmd ): Delete calls to
905 deprecated_show_value_hack().
906
c30dc700
CV
9072005-04-15 Corinna VInschen <vinschen@redhat.com>
908
909 * MAINTAINERS: Change sh64-elf state to non-broken.
910 * Makefile.in: Fix dependencies for sh64-tdep.o.
911 * configure.tgt: Add sh64-*-elf case.
912 * sh-tdep.c (sh_gdbarch_init): Reactivate bfd_mach_sh5 case.
913 * sh64-tdep.c: Rework to replace all deprecated mechanisms with
914 modern methods.
915 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
916 * config/sh/sh64.mt: Resurrect.
917
86fc41d1
KI
9182005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
919
920 * regformats/reg-m32r.dat: New file.
921
28e97307
DJ
9222005-04-14 Daniel Jacobowitz <dan@codesourcery.com>
923
924 * arm-tdep.c (fp_model_strings): Add terminating NULL.
925 (arm_abi_strings, arm_abi_global, arm_abi_string): New
926 variables.
927 (arm_extract_return_value, arm_store_return_value): Don't use
928 arm_get_fp_model.
929 (arm_get_fp_model, arm_set_fp): Delete.
930 (arm_update_current_architecture): New function.
931 (set_fp_model_sfunc): Call arm_update_current_architecture.
932 (show_fp_model): Update output messages.
933 (arm_set_abi, arm_show_abi): New functions.
934 (arm_elf_osabi_sniffer): Only handle ELFOSABI_ARM.
935 (arm_gdbarch_init): Infer the object's ABI separately from its
936 OSABI. Search for a matching architecture. Honor the global
937 ABI and FPU settings. Set floating point format based on the
938 architecture.
939 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs):
940 Delete.
941 (_initialize_arm_tdep): Don't call gdbarch_register_osabi.
942 Create "arm set abi" command.
943 * arm-tdep.h (arm_get_fp_model): Delete prototype.
944 (enum arm_abi_kind): New type.
945 (struct gdbarch_tdep): Add arm_abi field.
946 * arm-linux-tdep.c (arm_linux_init_abi): Only override
947 tdep->fp_model if it is ARM_FLOAT_AUTO.
948 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Likewise.
949 (arm_netbsd_elf_init_abi): Likewise.
950 * defs.h (enum gdb_osabi): Delete ARM-specific OSABIs.
951 * osabi.c (gdb_osabi_name): Likewise.
952
9494c6a5
DJ
9532005-04-11 Daniel Jacobowitz <dan@codesourcery.com>
954
955 * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver.
956
bdbcb8b4
MK
9572005-04-10 Mark Kettenis <kettenis@gnu.org>
958
959 * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
960 floating-point registers.
961 (ppc_collect_fpregset): Likewise. Fix collection of registers.
962
18b2ae85
MK
9632005-04-09 Mark Kettenis <kettenis@gnu.org>
964
965 * ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"
966 and "tramp-frame.h".
967 (ppcobsd_sigtramp_cache_init): New function.
968 (ppcobsd_sigtramp): New variable.
969 (ppcobsd_init_abi): Prepend signal trampoline unwinder.
970 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
971
06e819e3
AC
9722005-04-08 Andrew Cagney <cagney@gnu.org>
973
974 * MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
975 Nasser have decided to step back from GDB/MI.
976
6f8eac0e
DJ
9772005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
978
979 * config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
980
0228dfb9
DJ
9812005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
982
983 * dwarf2-frame.c (struct dwarf2_frame_cache): New field
984 undefined_retaddr.
985 (dwarf2_frame_cache): Initialize undefined_retaddr.
986 (dwarf2_frame_this_id): Return an invalid frame ID if
987 undefined_retaddr.
988
21b4b2f2
JB
9892005-04-05 Jim Blandy <jimb@redhat.com>
990
991 Move construction of IA-32 vector types to i386-tdep.c.
992 * gdbtypes.c (build_builtin_type_vec64i,
993 build_builtin_type_vec128i): Delete functions.
994 (builtin_type_vec64i, builtin_type_vec128i): Delete variables.
995 (build_gdbtypes): Don't initialize them.
996 (_initialize_gdbtypes): Don't register GDBARCH swap entries for
997 them.
998 * gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
999 declarations.
1000 (builtin_type_v2_float, builtin_type_v2_int32,
1001 builtin_type_v4_int16, builtin_type_v8_int8,
1002 builtin_type_v2_double, builtin_type_v4_float,
1003 builtin_type_v2_int64, builtin_type_v4_int32,
1004 builtin_type_v8_int16, builtin_type_v16_int8): Add extern
1005 declarations.
1006 * i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
1007 (i386_build_mmx_type, i386_build_sse_type): New functions.
1008 (i386_register_type): Call them, rather than referring to
1009 builtin_type_vec64i and builtin_type_vec128i.
1010
37c4d197
DJ
10112005-04-02 Daniel Jacobowitz <dan@codesourcery.com>
1012
1013 * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
1014 big-endian correction code to not offset 32-bit registers.
1015 Locate floating point registers correctly.
1016
7509373f
MK
10172005-04-02 Mark Kettenis <kettenis@gnu.org>
1018
1019 * main.c: Update copyright year.
02dfa7de 1020 (captured_main): Avoid using strcpy and strcat.
7509373f 1021
9b3c083c
MS
10222005-04-01 Michael Snyder <msnyder@redhat.com>
1023
0c98cc2b
MS
1024 * dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
1025 computing this_id if there are no dummy frames on the stack.
1026
1fb1ca27
MS
1027 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use
1028 find_partial_func instead of unwind_pc to identify frame.
1029 (mn10300_push_dummy_call): Handle struct args, struct_return.
1030
9b3c083c
MS
1031 * mn10300-prologue.c (set_movm_offsets): Don't test variable
1032 before setting it.
1033 * mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
1034 instead of skip_prologue_using_sal.
1035
186993b4
KB
10362005-03-31 Kevin Buettner <kevinb@redhat.com>
1037
1038 * solib-frv.c (struct lm_info): Add new field ``lm_addr''.
1039 (main_lm_addr): New static global.
1040 (frv_current_sos): Retain the link map address for each entry.
1041 (frv_clear_solib): Clear main_lm_addr.
1042 (frv_fetch_objfile_link_map): New function.
1043 * frv-tdep.c (frv_gdbarch_init): Register TLS load module fetcher.
1044 * frv-tdep.h (frv_fetch_objfile_link_map): Declare.
1045
b2756930
KB
10462005-03-31 Kevin Buettner <kevinb@redhat.com>
1047
1048 * gdbarch.sh (fetch_tls_load_module_address): New architecture method.
1049 * gdbarch.c, gdbarch.h: Regenerate.
1050 * dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
1051 address and pass this address, instead of the objfile address, to
1052 target_get_thread_local_address().
1053 * linux-thread-db.c (thread_db_get_thread_local_address): Change
1054 second parameter from type ``struct objfile *'' to CORE_ADDR. Do
1055 not call svr4_fetch_objfile_link_map() to fetch the load module
1056 address.
1057 * target.h (struct target_ops): Change second parameter of
1058 ``to_get_thread_local_address'' from ``struct objfile *'' to
1059 ``CORE_ADDR''.
1060 * alpha-linux-tdep.c (solib-svr4.h): Include.
1061 (alpha_linux_init_abi): Register TLS load module fetcher.
1062 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1063 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
1064 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1065 * ia64-linux-tdep.c (solib-svr4.h): Include.
1066 (ia64_linux_init_abi): Register TLS load module fetcher.
1067 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
1068 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
1069 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1070 * s390-tdep.c (s390_gdbarch_init): Likewise.
1071 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1072 * sparc64-linux-tdep.c (solib-svr4.h): Include.
1073 (sparc64_linux_init_abi): Register TLS load module fetcher.
1074 * Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
1075 (sparc-linux-tdep.o): Update dependencies.
1076
88750304
DJ
10772005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1078
1079 * c-valprint.c (c_value_print): Fix up some formatting. Use
1080 check_typedef.
1081
adb8a87c
DJ
10822005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1083
1084 * arm-linux-nat.c (store_register, store_regs): Handle
1085 ARM_PS_REGNUM.
1086
498b1f87
DJ
10872005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1088
1089 * arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
1090 (arm_linux_thumb_le_breakpoint): New. Update comments.
1091 (arm_linux_init_abi): Set Thumb breakpoints also.
1092
842e1f1e
DJ
10932005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1094
1095 * Makefile.in (arm-tdep.o): Update dependencies.
1096 * arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
1097 (arm_gdbarch_init): Register dwarf2_frame_sniffer.
1098
6d1eba4c
JB
10992005-03-28 Joel Brobecker <brobecker@adacore.com>
1100
1101 * irix5-nat.c (supply_fpregset): Fix bug that caused the FSR
1102 register value to be incorrectly written in the regcache.
1103 (fill_fpregset): Fix bug that caused the FSR register value
1104 to be incorrectly read from the regcache.
1105
fce5e386
DJ
11062005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1107
1108 * remote-rdi.c (arm_rdi_insert_breakpoint): Don't call
1109 arm_pc_is_thumb_dummy.
1110
f700a364
MK
11112005-03-28 Mark Kettenis <kettenis@gnu.org>
1112
8391b9b1
MK
1113 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
1114 StackGhost.
1115
f700a364
MK
1116 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1117 Handle StackGhost in 64-bit code.
1118 * sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
1119
8da8e0b3
CF
11202005-03-27 Christopher Faylor <cgf@timesys.com>
1121
1122 * win32-nat.c (handle_exception): Treat win32 routines which check for
1123 valid addresses as "special" and don't stop when a SEGV is detected.
1124 (get_child_debug_event): Properly flag exception as unhandled.
1125
5e5100cb
DJ
11262005-03-26 Daniel Jacobowitz <dan@codesourcery.com>
1127
1128 * cp-support.c (cp_class_name_from_physname): Rewrite.
1129 (unqualified_name_from_comp): New function, broken out from
1130 method_name_from_physname. Correct handling for typed names
1131 and templates.
1132 (method_name_from_physname): Use unqualified_name_from_comp.
1133 (cp_func_name, remove_params): Move earlier in the file. Add
1134 better comments. Use the component tree to parse the name.
1135 (_initialize_cp_support): Remove stray whitespace.
1136
a77f4086
MK
11372005-03-26 Mark Kettenis <kettenis@gnu.org>
1138
dc6a2ca4
MK
1139 * exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ.
1140
59bb1042
MK
1141 * inflow.h: Update copyright year. Remove #ifdef SHORT_PGRP code.
1142 Callapse HAVE_TERMIO and HAVE_SGTTY.
1143
a77f4086
MK
1144 * dwarf2-frame.c (execute_cfa_program): Implement
1145 DW_CFA_GNU_window_save.
1146
4d6c7108
MK
11472005-03-25 Mark Kettenis <kettenis@gnu.org>
1148
bac6b012
MK
1149 * config/sparc/nbsd64.mh (NAT_FILE): Remove.
1150
4d6c7108
MK
1151 * config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o.
1152
4bf7064c
DJ
11532005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
1154
1155 * arm-tdep.c (target_is_thumb, caller_is_thumb)
1156 (arm_pc_is_thumb_dummy): Remove.
1157 (arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
1158
170cd118
AG
11592005-03-25 Anthony Green <green@redhat.com>
1160
1161 * remote.c (remote_store_registers): Fix memset usage.
1162 * std-regs.c (value_of_builtin_frame_reg): Ditto.
1163 (value_of_builtin_frame_fp_reg): Ditto.
1164 (value_of_builtin_frame_reg): Ditto.
1165
3eb25fda
MM
11662005-03-25 Mark Mitchell <mark@codesourcery.com>
1167
dd5da072
MM
1168 * ser-base.c (ser_unix_write): Rename to ...
1169 (ser_base_write): ... this.
1170 (ser_unix_nop_flush_output): Rename to ...
1171 (ser_base_flush_output): ... this.
1172 (ser_unix_flush_input): Rename to ...
1173 (ser_base_flush_input): ... this.
1174 (ser_unix_nop_send_break): Rename to ...
1175 (ser_base_send_break): ... this.
1176 (ser_unix_nop_drain_output): Rename to ...
1177 (ser_base_drain_output): ... this.
1178 (ser_unix_nop_raw): Rename to ...
1179 (ser_base_raw): ... this.
1180 (ser_unix_nop_get_tty_state): Rename to ...
1181 (ser_base_set_tty_state): ... this.
1182 (ser_unix_nop_noflush_set_tty_state): Rename to ...
1183 (ser_base_noflush_set_tty_state): ... this.
1184 (ser_unix_nop_print_tty_state): Rename to ...
1185 (ser_base_print_tty_state): ... this.
1186 (ser_unix_nop_setbaudrate): Rename to ...
1187 (ser_base_setbaudrate): ... this.
1188 (ser_unix_nop_setstopbits): Rename to ...
1189 (ser_base_setstopbits): ... this.
1190 (ser_unix_async): Rename to ...
1191 (ser_base_async): ... this.
1192 * ser-base.h (ser_unix_write): Rename to ...
1193 (ser_base_write): ... this.
1194 (ser_unix_nop_flush_output): Rename to ...
1195 (ser_base_flush_output): ... this.
1196 (ser_unix_flush_input): Rename to ...
1197 (ser_base_flush_input): ... this.
1198 (ser_unix_nop_send_break): Rename to ...
1199 (ser_base_send_break): ... this.
1200 (ser_unix_nop_drain_output): Rename to ...
1201 (ser_base_drain_output): ... this.
1202 (ser_unix_nop_raw): Rename to ...
1203 (ser_base_raw): ... this.
1204 (ser_unix_nop_get_tty_state): Rename to ...
1205 (ser_base_set_tty_state): ... this.
1206 (ser_unix_nop_noflush_set_tty_state): Rename to ...
1207 (ser_base_noflush_set_tty_state): ... this.
1208 (ser_unix_nop_print_tty_state): Rename to ...
1209 (ser_base_print_tty_state): ... this.
1210 (ser_unix_nop_setbaudrate): Rename to ...
1211 (ser_base_setbaudrate): ... this.
1212 (ser_unix_nop_setstopbits): Rename to ...
1213 (ser_base_setstopbits): ... this.
1214 (ser_unix_async): Rename to ...
1215 (ser_base_async): ... this.
1216 * ser-pipe.c (_initialize_ser_pipe): Update accordingly.
1217 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1218 * ser-unix.c (hardwire_flush_input): Likewise.
1219 (_initializer_ser_hardwire): Likewise.
1220
3eb25fda
MM
1221 * Makefile.in (SFILES): Add ser-base.c.
1222 (ser_base_h): New variable.
1223 (ser-base.o): New target.
1224 (ser-pipe.o): Depend on $(ser_base_h).
1225 (ser-tcp.o): Likewise.
1226 (ser-unix.o): Likewise. Do not depend on $(event_loop_h).
1227 * configure.ac (SER_HARDWIRE): Include ser-base.o where
1228 appropriate.
1229 * ser-base.c: New file.
1230 (push_event): Move from ser-unix.c.
1231 (fd_event): Likewise.
1232 (reschedule): Likewise.
1233 (ser_unix_write): Likewise.
1234 (ser_unix_nop_flush_output): Likewise.
1235 (ser_unix_flush_input): Likewise.
1236 (ser_unix_nop_send_break): Likewise.
1237 (ser_unix_nop_drain_output): Likewise.
1238 (ser_unix_nop_raw): Likewise.
1239 (ser_unix_nop_get_tty_state): Likewise.
1240 (ser_unix_nop_set_tty_state): Likewise.
1241 (ser_unix_nop_noflush_set_tty_state): Likewise.
1242 (ser_unix_nop_print_tty_state): Likewise.
1243 (ser_unix_nop_setbaudrate): Likewise.
1244 (ser_unix_nop_setstopbits): Likewise.
1245 (ser_unix_async): Likewise.
1246 * ser-base.h: New file.
1247 * ser-pipe.c (ser-base.h): Include it.
1248 * ser-tcp.c (ser-base.h): Likewise.
1249 * ser-unix.h (ser_unix_nop_flush_output): Remove.
1250 (ser_unix_flush_input): Likewise.
1251 (ser_unix_nop_send_break): Likewise.
1252 (ser_unix_nop_raw): Likewise.
1253 (ser_unix_nop_get_tty_state): Likewise.
1254 (ser_unix_nop_set_tty_state): Likewise.
1255 (ser_unix_nop_print_tty_state): Likewise.
1256 (ser_unix_nop_noflush_set_tty_state): Likewise.
1257 (ser_unix_nop_setbaudrate): Likewise.
1258 (ser_unix_nop_setstopbits): Likewise.
1259 (ser_unix_nop_drain_output): Likewise.
1260 (ser_unix_wait_for): Likewise.
1261 (ser_unix_write): Likewise.
1262 (ser_unix_async): Likewise.
1263 * ser-unix.c (event-loop.h): Do not include it.
1264 (push_event): Move to ser-base.c.
1265 (fd_event): Likewise.
1266 (reschedule): Likewise.
1267 (ser_unix_write): Likewise.
1268 (ser_unix_nop_flush_output): Likewise.
1269 (ser_unix_flush_input): Likewise.
1270 (ser_unix_nop_send_break): Likewise.
1271 (ser_unix_nop_drain_output): Likewise.
1272 (ser_unix_nop_raw): Likewise.
1273 (ser_unix_nop_get_tty_state): Likewise.
1274 (ser_unix_nop_set_tty_state): Likewise.
1275 (ser_unix_nop_noflush_set_tty_state): Likewise.
1276 (ser_unix_nop_print_tty_state): Likewise.
1277 (ser_unix_nop_setbaudrate): Likewise.
1278 (ser_unix_nop_setstopbits): Likewise.
1279 (ser_unix_async): Likewise.
1280 (ser_unix_wait_for): Make it static.
1281 * configure: Regenerated.
1282
8d5a9abc
MK
12832005-03-25 Mark Kettenis <kettenis@gnu.org>
1284
1285 * dwarf2-frame.h: Update copyrigh year.
1286 (enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
1287 * dwarf2-frame.c: Update copyright year.
1288 (struct dwarf2_frame_cache): Add member `retaddr_reg'.
1289 (dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
1290 (dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
1291
b3041f52
MH
12922005-03-23 Martin Hunt <hunt@redhat.com>
1293
1294 * configure.ac: Remove -fwritable-strings from CFLAGS.
1295 * configure: Regenerate.
1296
6a069e57
MS
12972005-03-21 Michael Snyder <msnyder@redhat.com>
1298
1299 * mn10300-prologue.c (fix_frame_pointer): Delete.
1300 (set_movm_offsets) Don't return just because movm_args is
1301 zero -- still need to save pc and sp in saved_regs.
1302 (mn10300_analyze_prologue): Don't return prematurely without
1303 calling set_movm_offsets (for pc and sp at minimum).
1304
d3ea6809
MM
13052005-03-21 Mark Mitchell <mark@codesourcery.com>
1306
1307 * configure.ac (stat.st_blksize): Check for it.
1308 (getuid): Likewise.
1309 (getgid): Likewise.
1310 * configure: Regenerated.
1311 * config.in: Likewise.
1312 * remote-fileio.c (remote_fileio_to_fio_stat): Check
1313 HAVE_STRUCT_STAT_ST_BLKSIZE.
1314
d460b7f5
CF
13152005-03-21 Christopher Faylor <cgf@timesys.com>
1316
1317 * win32-nat.c (do_initial_child_stuff): Don't clear the thread list
1318 here.
1319 (do_initial_child_stuff): Move clearing of thread list to a place
1320 before a thread ould be created.
1321 (child_attach): Ditto.
1322
342ee437
MS
13232005-03-21 Michael Snyder <msnyder@redhat.com>
1324
1325 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
1326 instead of pc addr for frame_id. Otherwise "until" won't work.
1327
4f0d78e0
KB
13282005-03-21 Kevin Buettner <kevinb@redhat.com>
1329
1330 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
1331 comment.
1332
80d9c592
MK
13332005-03-20 Mark Kettenis <kettenis@gnu.org>
1334
4dd04433
MK
1335 * dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
1336 * varobj.c (my_value_equal): Mark val2 as volatile.
1337
ee426e0f 1338 * cp-names.y: Add prototype for yyparse.
80d9c592 1339
96ce45ca
DJ
13402005-03-19 Daniel Jacobowitz <dan@codesourcery.com>
1341
1342 * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
1343 * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
1344 VALADDR.
1345
93ad78a7
KB
13462005-03-18 Kevin Buettner <kevinb@redhat.com>
1347
1348 * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies.
1349 * exceptions.h (TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_GENERIC_ERROR)
1350 (TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR):
1351 New error/exception enums.
1352 * dwarf2loc.c (exceptions.h): Include.
1353 (dwarf_expr_tls_address): Invoke target_get_thread_local_address()
1354 via TRY_CATCH mechanism. Print error messages for TLS related
1355 exceptions.
1356 * linux-thread-db.c (thread_db_get_thread_local_address): Throw
1357 exceptions instead of printing errors.
1358
8cf46f62
MK
13592005-03-18 Mark Kettenis <kettenis@gnu.org>
1360
1361 * utils.c (safe_strerror): Use xsnprintf instead of sprintf.
1362 (decimal2str, octal2str): Change to return a string allocated by
1363 get_cell. Use xsnprint instead of snprintf.
1364 (paddr_u, paddr_d): Adjust for changed calling convention of
1365 decimal2str.
1366 (phex, phex_nz, hex_string): Use xsnprintf instead of snprintf.
1367 (int_string): Likewise. Adjust for changed calling convention of
1368 decimal2str and octal2str.
1369
f79d2c3c
KB
13702005-03-18 Kevin Buettner <kevinb@redhat.com>
1371
1372 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Update comments.
1373 Adjust incorrectly computed constant for realtime signal frame.
1374
8cf46f62 13752005-03-18 Mark Kettenis <kettenis@gnu.org>
eb308878
MK
1376
1377 From Ralf Corsepius <ralf.corsepius@rtems.org>
1378 * configure.tgt: Add m68*-*-rtems*.
1379
06648491
MK
13802005-03-17 Mark Kettenis <kettenis@gnu.org>
1381
bde2058d
MK
1382 * defs.h (xsnprintf): New prototype.
1383 * utils.c (xsnprintf): New function.
1384
3ecda457
MK
1385 * corelow.c (get_core_register_section): Replace usage of sprintf
1386 and strcpy with xstrprintf and xstrdup.
1387
06648491
MK
1388 * mips-tdep.c (mips_single_step_through_delay): Put back check for
1389 breakpoint lost with the introduction of this function.
1390
16aff9a6
PB
13912005-03-17 Paul Brook <paul@codesourcery.com>
1392
1393 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic.
1394 * s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
1395
6d318c73
MM
13962005-03-16 Mark Mitchell <mark@codesourcery.com>
1397
ec442778
MM
1398 * event-top.c (handle_sigquit): Do not define for systems without
1399 SIGQUIT.
1400 (sigquit_token): Likewise.
1401 (async_init_signals): Allow for systems that do not
6d318c73
MM
1402 define SIGQUIT.
1403 * ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
1404
9b265ec2
MM
14052005-03-15 Mark Mitchell <mark@codesourcery.com>
1406
1407 * utils.c (internal_vproblem): Guard call to fork with
1408 HAVE_WORKING_FORK.
1409 * cli/cli-cmds.c (shell_escape): Guard call to vfork with
1410 HAVE_WORKING_VFORK and HAVE_WORKING_FORK.
1411
1412 * remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
1413 S_IRGRP and related macros.
1414 (remote_fileio_mode_to_target): Likewise.
1415
3ae642fd
BE
14162005-03-14 Ben Elliston <bje@au.ibm.com>
1417
1418 * Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
1419 more primitive library.
1420
80d9c592 14212005-03-13 Mark Kettenis <kettenis@gnu.org>
fd0a2a6f
MK
1422
1423 * inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
1424 sprintf.
1425 * target.c (normal_pid_to_str): Likewise.
1426 * remote.c (remote_pid_to_str): Use snprint instead of sprintf.
1427 Change capitalization of "thread". Use ptid_get_pid instead of
1428 GETPID.
049742da
MK
1429
1430 * cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
1431 a combination of xmalloc and sprintf.
1432
ca231fcc
JB
14332005-03-13 Jim Blandy <jimb@redhat.com>
1434
1435 * configure.ac: Use '=', not '=='; the latter is a GNU extension.
1436 * configure: Regenerated.
1437
b80b83f3
MS
14382005-03-11 Michael Snyder <msnyder@redhat.com>
1439
1440 * mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
1441 stub fn with real implementatin mn10300_unwind_dummy_id.
1442 (mn10300_push_dummy_call): Implement. Bare bones version,
1443 does not handle structs or floats.
1444
1f8ca57c
JB
14452005-03-11 Jim Blandy <jimb@redhat.com>
1446
a3b362c4
JB
1447 Avoid warnings due to the use of -Wuninitialized without -O.
1448 * configure.ac (build_warnings): Include -Wuninitialized only if
1449 CFLAGS is unset at configure time, or CFLAGS is set and includes
1450 some -O option other than -O0.
1451 * configure: Regenerated.
1452
1f8ca57c
JB
1453 * mips-tdep.c (show_mips_abi): Change calling conventions to match
1454 those expected by add_setshow_enum_cmd. Use 'file' argument as
1455 appropriate.
1456
fb4c6eba
DJ
14572005-03-10 Daniel Jacobowitz <dan@codesourcery.com>
1458
1459 * Makefile.in (SFILES): Add cp-names.y.
1460 (libiberty_h, safe_ctype_h): New.
1461 (YYFILES): Add cp-names.c.
1462 (YYOBJ): Add cp-names.o.
1463 (test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
1464 (clean): Remove test-cp-names$(EXEEXT).
1465 (local-maintainer-clean): Remove cp-names.c.
1466 * cp-names.y: New file.
1467 * cp-support.c (find_last_component): Delete.
1468 (d_left, d_right): Define.
1469 (cp_canonicalize_string, mangled_name_to_comp): New functions.
1470 (cp_class_name_from_physname, method_name_from_physname): Rewrite
1471 to use mangled_name_to_comp.
1472 * cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
1473 (cp_comp_to_string): New prototypes.
1474 * config/djgpp/fnchange.lst: Add cp-names.c.
1475
5b93de64
BR
14762005-03-10 Bob Rossi <bob@brasko.net>
1477
fb4c6eba 1478 * main.c (print_gdb_help): Remove the --[no]async help message.
5b93de64 1479
54433e38
MK
14802005-03-10 Mark Kettenis <kettenis@gnu.org>
1481
1482 * proc-api.c: Update copyright year.
1483 (_initialize_proc_api): Revert previous patch, removing spurious
1484 space instead.
1485
d2f0b918
JB
14862005-03-09 Joel Brobecker <brobecker@adacore.com>
1487
1488 * regcache.c: Fix typo in comment.
1489
e9274dd8
DL
14902005-03-09 David Lecomber <david@lecomber.net>
1491
1492 * proc-api.c (_initialize_proc_api): Fix invalid multi-line
1493 i18n text.
1494
5b2d44a0
MK
14952005-03-09 Mark Kettenis <kettenis@gnu.org>
1496
1497 * sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
1498 address for 64-bit code.
1499 (sparc_unwind_dummy_id): Likewise.
1500 * sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
1501 frame base address convention.
1502 (sparc64_push_dummy_call): Likewise.
1503 * sparc64nbsd-tdep.c: Update copyright year.
1504 (sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
1505 address for 64-bit code.
1506 (sparc64nbsd_init_abi): Tweak comment.
1507 * sparc64obsd-tdep.c: Update copyright year.
1508 (sparc64obsd_frame_cache): Adjust cached frame base address for
1509 64-bit code.
1510 (sparc64obsd_init_abi): Tweak comment.
1511
8d19ca47 15122005-03-09 Corinna Vinschen <vinschen@redhat.com>
5b5464ad 1513
8d19ca47
CV
1514 * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
1515
15162005-03-09 Joel Brobecker <brobecker@adacore.com>
1517
1518 * dwarf2read.c (dwarf_decode_lines): Use the complete filename
1519 when creating include psymtabs.
5b5464ad 1520
1bf1958d
MM
15212005-03-08 Mark Mitchell <mark@codesourcery.com>
1522
1523 * environ.h (struct environ): Rename to ...
1524 (struct gdb_environ): ... this.
1525 (make_environ): Update prototype.
1526 (free_environ): Likewise.
1527 (init_environ): Likewise.
1528 (get_in_environ): Likewise.
1529 (set_in_environ): Likewise.
1530 (unset_in_environ): Likewise.
1531 (environ_vector): Likewise.
1532 * environ.c (make_environ): Replace "struct environ" with "struct
1533 gdb_environ".
1534 (free_environ): Likewise.
1535 (init_environ): Likewise.
1536 (environ_vector): Likewise.
1537 (get_in_environ): Likewise.
1538 (set_in_environ): Likewise.
1539 (unset_in_environ): Likewise.
1540 * infcmd.c (inferior_environ): Likewise.
1541 * inferior.h (inferior_environ): Likewise.
1542
f67a969f
JB
15432005-03-08 Joel Brobecker <brobecker@adacore.com>
1544
1545 * infcmd.c (run_command_1): New function, extracted from
1546 run_command.
1547 (run_command): Replace implementation by call to run_command_1.
1548 (start_command): Use run_command_1 to insert the temporary
1549 breakpoint and run the program. Remove code that's no longer
1550 needed, as already done at the proper time by run_command_1.
1551
c0501be5
DJ
15522005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
1553
1554 * symfile.c (clear_symtab_users): Call
1555 clear_current_source_symtab_and_line first.
1556
549678da
NS
15572005-03-08 Nathan Sidwell <nathan@codesourcery.com>
1558
36e9969c
NS
1559 * ax-gdb.c (gen_expr): Add UNOP_PLUS case.
1560 * c-exp.y (exp): Add unary plus.
1561 * eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
1562 * valarith.c (value_x_unop): Add UNOP_PLUS case.
1563 (value_pos): New.
1564 * value.h (value_pos): Declare.
1565
3de11b2e
NS
1566 * remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
1567 (remote_fetch_registers): Allow uppercase hex when resyncing.
1568 (remote_write_bytes): Only call get_memory_write_packet_size once.
1569 Robustify packet size calculation for very small packets. Check
1570 that at least one byte will be written.
1571
549678da
NS
1572 * tracepoint.c (target_is_remote): Allow extended-remote.
1573 (struct collection_list): Allow 256 registers, like the comment
1574 said.
1575 (add_memrange): Fix comment.
1576 (read_actions): Turn EOF into 'end'.
1577
20be272b
CV
15782005-03-08 Corinna Vinschen <vinschen@redhat.com>
1579
1580 * Makefile.in: Add dependencies for iq2000-tdep.o.
1581 * configure.tgt: Add iq2000-*-* target.
1582 * iq2000-tdep.c: New file.
1583 * config/iq2000/iq2000.mt: New file.
1584
ea53e89f
JB
15852005-03-07 Joel Brobecker <brobecker@adacore.com>
1586
1587 * doc/observer.texi (executable_changed): New observer.
1588 * symtab.c: Include "observer.h".
1589 (find_main_name): New function.
1590 (main_name): If name_of_main is unset, then compute it
1591 using find_main_name.
1592 (symtab_observer_executable_changed): New function.
1593 (_initialize_symtab): Attach executable_changed observer.
1594 * exec.c: Include "observer.h".
1595 (exec_file_attach): Emit executable_changed notification.
1596 * symfile.c: Include "observer.h".
1597 (reread_symbols): Send an executable_changed if appropriate.
1598 * Makefile.in (exec.o): Add dependency on observer.h.
1599 (symfile.o): Likewise.
1600 (symtab.o): Likewise.
1601
bb044262
DJ
16022005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
1603
1604 * findvar.c (read_var_value): Don't allocate V when it will not
1605 be used. Add missing break for LOC_INDIRECT.
1606
9e07977b
MK
16072005-03-06 Mark Kettenis <kettenis@gnu.org>
1608
1609 * sparc64fbsd-tdep.c: Include "solib-svr4.h".
1610 (sparc64fbsd_init_abi): Set skip_trampoline_code and
1611 solib_svr4_fetch_link_map_offsets.
1612 * Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
1613
88d7a738 16142005-03-06 Daniel Jacobowitz <dan@codesourcery.com>
f75c00e4
DJ
1615
1616 * linux-nat.c (child_follow_fork): Call target_terminal_ours before
1617 printing output. Use fprintf_unfiltered. Only print output when
1618 debugging.
1619
e5a8e242 16202005-03-05 Mark Kettenis <kettenis@gnu.org>
e219d7ce
MK
1621
1622 * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
1623 argument.
1624 (sparc64_store_arguments): Constify.
1625
dda5f19a
MK
16262005-03-05 Mark Kettenis <kettenis@gnu.org>
1627
0d6e4ad7
MK
1628 * alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h".
1629 (alphabsd_fetch_inferior_registers): Rename from
1630 fetch_inferior_registers. Make static.
1631 (alphabsd_store_inferior_registers): Rename from
1632 store_inferior_registers. Make static.
1633 (_initialize_alphabsd_nat): New function.
1634 * Makefile.in (alphabsd-nat.o): Update dependencies.
1635 * config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and
1636 inftarg.o. Add inf-ptrace.o, fbsd-nat.o and gcore.o.
1637 * config/alpha/nbsd.mh (NAT_CLIBS): Remove variable.
1638 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1639 alphabsd-nat.o.
1640 * config/alpha/nm-fbsd.h: Update copyright year. Don't include
1641 "config/nm-bsd.h" and "elf/common.h".
1642 * config/alpha/nm-nbsd.h: Update copyright year. Don't include
1643 "config/nm-nbsd.h".
1644
dda5f19a
MK
1645 * mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
1646 software_single_step.
1647
aac71672
MS
16482005-03-04 Michael Snyder <msnyder@redhat.com>
1649
1650 * mn10300-prologue.c: New file. Prologue analysis.
1651 * mn10300-tdep.c: Move REGNUM values to mn10300-tdep.h.
1652 (mn10300_frame_unwind_cache): Don't call trad_frame_set_id
1653 until after analyze_prologue, and don't call trad_frame_set_base
1654 at all (let analyze_prologue do it).
1655
61e784e7
MS
16562005-03-04 Michael Snyder <msnyder@redhat.com>
1657
1658 * trad-frame.c (trad_frame_set_reg_value): New function.
1659 * trad-frame.h (trad_frame_set_reg_value): Export.
1660
6867ae3e
DJ
16612005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1662
1663 * Makefile.in (remote.o): Update dependencies.
1664 * remote.c: Include "observer.h".
1665
f90221d3
DJ
16662005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1667
1668 * target.c (target_read_memory_partial): Always initialize
1669 ERR.
1670 (target_write_memory_partial): Likewise.
1671
e20b4638
DJ
16722005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1673
1674 * remote.c (remote_open_1): Call observer_notify_inferior_created.
1675
909cf6ea
DJ
16762005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1677
1678 * arm-tdep.c (arm_make_stub_cache, arm_stub_this_id)
1679 (arm_stub_unwind, arm_stub_unwind_sniffer): New.
1680 (arm_gdbarch_init): Add arm_stub_unwind_sniffer.
1681
d3587048
DJ
16822005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
1683
1684 * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
1685 Use LWP IDs.
1686
806048c6
DJ
16872005-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1688
1689 * dwarf2loc.c (loclist_read_variable): Set optimized_out
1690 instead of reporting an error.
1691 * valprint.c (value_check_printable): New function.
1692 (common_val_print): New function. Use value_check_printable.
1693 (value_print): Use value_check_printable.
1694 * value.h (common_val_print): Add prototype.
1695
1696 * c-valprint.c (c_val_print): Use common_val_print.
1697 * cp-valprint.c (cp_print_value_fields): Likewise.
1698 (cp_print_hpacc_virtual_table_entries): Likewise.
1699 * f-valprint.c (f_val_print): Likewise.
1700 * jv-valprint.c (java_value_print, java_print_value_fields):
1701 Likewise.
1702 * scm-valprint.c (scm_value_print): Likewise.
1703 * stack.c (print_frame_args): Likewise.
1704 * varobj.c (c_value_of_variable): Likewise.
1705 * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
1706 (pascal_object_print_value_fields): Likewise. Update call to
1707 pascal_object_print_static_field.
1708 (pascal_object_print_static_field): Remove TYPE argument. Use
1709 common_val_print.
1710
dd373385
EZ
17112005-02-25 Mark Kettenis <kettenis@gnu.org>
1712
1713 Committed by Elena Zannoni <ezannoni@redhat.com>
1714
1715 * dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
1716 info_ptr before building psymtabs for included files.
1717 (create_all_comp_units): Initailize initial length size of
1718 compilation header to zero.
1719 (read_initial_length): Complain if both 32-bit and 64-bit DWARF
1720 sections are encountered within the same compilation header.
1721 (dwarf_decode_line_header): Pass compilation header in call to
1722 read_initial_length.
1723
920d2a44
AC
17242005-02-24 Andrew Cagney <cagney@gnu.org>
1725
1726 Add show_VARIABLE functions, update add_setshow call.
1727 * varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
1728 * valprint.c (_initialize_valprint, show_print_max)
1729 (show_stop_print_at_null, show_repeat_count_threshold)
1730 (show_prettyprint_structs, show_unionprint)
1731 (show_prettyprint_arrays, show_addressprint, show_input_radix)
1732 (show_output_radix): Ditto.
1733 * valops.c (_initialize_valops, show_overload_resolution): Ditto.
1734 * utils.c (initialize_utils, show_chars_per_line)
1735 (show_lines_per_page, show_demangle, show_pagination_enabled)
1736 (show_sevenbit_strings, show_asm_demangle): Ditto
1737 * tui/tui-win.c (_initialize_tui_win, show_tui_border_kind)
1738 (show_tui_border_mode, show_tui_active_border_mode): Ditto.
1739 * top.c (init_main, show_new_async_prompt)
1740 (show_async_command_editing_p, show_write_history_p)
1741 (show_history_size, show_history_filename, show_caution)
1742 (show_annotation_level, init_main): Ditto.
1743 * target.c (initialize_targets, show_targetdebug)
1744 (show_trust_readonly): Ditto.
1745 * symfile.c (_initialize_symfile, show_symbol_reloading)
1746 (show_ext_args, show_download_write_size)
1747 (show_debug_file_directory): Ditto.
1748 * source.c (_initialize_source, show_lines_to_list): Ditto.
1749 * solib.c (_initialize_solib, show_auto_solib_add)
1750 (show_solib_search_path): Ditto.
1751 * p-valprint.c (_initialize_pascal_valprint)
1752 (show_pascal_static_field_print): Ditto.
1753 * printcmd.c (_initialize_printcmd, show_max_symbolic_offset)
1754 (show_print_symbol_filename): Add and update.
1755 * parse.c (_initialize_parse, show_expressiondebug): Dito.
1756 * observer.c (_initialize_observer, show_observer_debug): Dito.
1757 * maint.c (_initialize_maint_cmds, show_watchdog)
1758 (show_maintenance_profile_p): Dito.
1759 * linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
1760 * infrun.c (_initialize_infrun, show_debug_infrun)
1761 (show_stop_on_solib_events, show_follow_fork_mode_string)
1762 (show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
1763 * infcall.c (_initialize_infcall, show_coerce_float_to_double_p)
1764 (show_unwind_on_signal_p): Ditto.
1765 * gdbtypes.c (build_gdbtypes, show_opaque_type_resolution)
1766 (_initialize_gdbtypes, show_overload_debug): Ditto.
1767 * gdb-events.c, gdb-events.sh (_initialize_gdb_events)
1768 (show_gdb_events_debug): Ditto.
1769 * gdbarch.c, gdbarch.sh (show_gdbarch_debug)
1770 (_initialize_gdbarch): Ditto.
1771 * frame.c (_initialize_frame, show_backtrace_past_main)
1772 (show_backtrace_past_entry, show_backtrace_limit)
1773 (show_frame_debug): Ditto.
1774 * exec.c (_initialize_exec, show_write_files): Ditto.
1775 * dwarf2read.c (_initialize_dwarf2_read)
1776 (show_dwarf2_max_cache_age): Ditto.
1777 * demangle.c (_initialize_demangler)
1778 (show_demangling_style_names): Ditto.
1779 * dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
1780 * cp-valprint.c (show_static_field_print)
1781 (_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
1782 * corefile.c (_initialize_core, show_gnutarget_string): Ditto.
1783 * cli/cli-logging.c (_initialize_cli_logging)
1784 (show_logging_overwrite, show_logging_redirect)
1785 (show_logging_filename): Ditto.
1786 * cli/cli-cmds.c (show_info_verbose, show_history_expansion_p)
1787 (init_cli_cmds, show_baud_rate, show_remote_debug)
1788 (show_remote_timeout, show_max_user_call_depth): Ditto.
1789 * charset.c (show_host_charset_name, show_target_charset_name)
1790 (initialize_charset): Ditto.
1791 * breakpoint.c (show_can_use_hw_watchpoints)
1792 (show_pending_break_support, _initialize_breakpoint): Ditto.
1793
2877b4cc
JB
17942005-02-23 Jim Blandy <jimb@redhat.com>
1795
1796 * disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.
1797
e9c55a7b
AC
17982005-02-23 Andrew Cagney <cagney@gnu.org>
1799
1800 * cli/cli-dump.c (dump_bfd_file): Replace magic constant with
1801 SEC_XXX flags.
1802
04ac69aa
AC
18032005-02-22 Andrew Cagney <cagney@gnu.org>
1804
1805 * configure.ac: Only enaable insight when itcl is present.
1806 * configure: Re-generate.
1807
3470a02f
AC
18082005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1809
1810 Committed by Andrew Cagney.
1811 * infptrace.c (store_register): Fix typo.
1812
b66df561
AC
18132005-02-21 Andrew Cagney <cagney@gnu.org>
1814
1815 * command.h (deprecated_add_set_cmd): Rename add_set_cmd.
1816 * cli/cli-decode.h (add_set_cmd): Delete declaration.
1817 * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
1818 * i386-nat.c (_initialize_i386_nat): Update call.
1819 * valprint.c (_initialize_valprint): Update comment.
1820 * gnu-nat.c (_initialize_gnu_nat): Update call.
1821
85e3476f
AM
18222005-02-21 Alan Modra <amodra@bigpond.net.au>
1823
1824 * elfread.c (elf_symtab_read): Discard section syms.
1825
4d28ad1e
AC
18262005-02-21 Andrew Cagney <cagney@gnu.org>
1827
eefe576e
AC
1828 * cli/cli-decode.c (add_set_enum_cmd): Delete function.
1829 (deprecated_add_show_from_set): Delete function.
1830 * command.h (add_set_enum_cmd): Delete declaration.
1831 (deprecated_add_show_from_set): Delete declaration.
1832 * cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
1833 (deprecated_add_show_from_set): Delete declaration.
1834 * arm-tdep.c (_initialize_arm_tdep): Update comment.
1835 * kod.c (kod_set_os): Simplify.
1836 * infrun.c (set_schedlock_func): Simplify.
1837 * cli/cli-dump.c (add_dump_command): Update comment.
1838
525226b5
AC
1839 Replace string variables with a filename completer with
1840 add_setshow_optional_filename_cmd.
1841 * solib.c, symfile.c: Update.
1842 * cli/cli-setshow.c: Do not tidle expand the file.
1843
4d28ad1e
AC
1844 Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
1845 and add_setshow_string_noescape_cmd.
1846 * cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
1847 NULL command's value.
1848 * kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
1849 * remote-sds.c, remote.c, symfile.c, top.c: Update.
1850
942fd9fe
AC
18512005-02-20 Andrew Cagney <cagney@gnu.org>
1852
7ab04401
AC
1853 Use add_setshow_enum_cmd through out.
1854 * arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
1855 * infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
1856
78f5381d
AC
1857 * mi/mi-main.c (captured_mi_execute_command): Use
1858 mi_cmd_interpreter_exec.
1859
b4b4ac0b
AC
1860 * cli/cli-decode.c (add_setshow_optional_filename_cmd): New
1861 function.
1862 * cli/cli-setshow.c (deprecated_show_value_hack)
1863 (do_setshow_command): Handle var_optional_filename.
1864 * command.h (enum var_types): Add var_optional_filename.
1865 (add_setshow_optional_filename_cmd): Declare.
1866 * infcmd.c (notice_args_read): Use.
1867
942fd9fe
AC
1868 * symfile-mem.c (symbol_file_add_from_memory): Pass
1869 target_read_memory to bfd_elf_bfd_from_remote_memory.
1870 (do_target_read_memory): Delete.
1871
a6c442d8
MK
18722005-02-16 Mark Kettenis <kettenis@gnu.org>
1873
1874 * value.h (value_contents_equal): New prototype.
1875 * value.c (value_contents_equal): New function.
1876 * varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
1877 include <math.h>.
1878 (varobj_set_value): Initialize error to zero.
1879 (varobj_update): Rename error2 to error and initialize it to zero.
1880 Slightly change the wording of some comments.
1881 (my_value_equal): Reimplement using TRY_CATCH and
1882 value_contents_equal.
1883
5bf193a2
AC
18842005-02-18 Andrew Cagney <cagney@gnu.org>
1885
c0d88b1b
AC
1886 * cli/cli-decode.c (add_setshow_integer_cmd): New function.
1887 * command.h (add_setshow_integer_cmd): Declare.
1888 * cli/cli-cmds.c: Update.
1889
35096d9d
AC
1890 Use add_setshow_uinteger_cmd through out.
1891 * printcmd.c, source.c, utils.c, valprint.c: Update.
1892
85c07804
AC
1893 Use add_setshow_zinteger_cmd through out. Re-sync gdbarch.sh
1894 and gdbarch.c.
1895 * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
1896 * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
1897 * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
1898 * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
1899 * varobj.c, cli/cli-cmds.c: Update.
1900 * gdbarch.c, gdb-events.c: Regenerate.
1901
5bf193a2
AC
1902 Use add_setshow_boolean_command through out. Delete #ifdef 0'ed
1903 code adding set/show boolean commands.
1904 * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
1905 * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
1906 * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
1907 * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
1908 * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
1909 * cli/cli-cmds.c: Update.
1910
2c5b56ce
AC
19112005-02-17 Andrew Cagney <cagney@gnu.org>
1912
f397e303
AC
1913 * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
1914 to filename_completer.
1915 * solib.c (_initialize_solib, reload_shared_libraries): Use
1916 add_setshow_filename_cmd.
1917 * serial.c (_initialize_serial): Ditto.
1918 * remote-utils.c (_initialize_sr_support): Ditto.
1919
26c41df3
AC
1920 * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
1921 * command.h (add_setshow_string_noescape_cmd): Declare.
1922 * wince.c (_initialize_wince): Use.
1923 * symfile.c (_initialize_symfile): Use.
1924 (set_ext_lang_command): Update declaration.
1925 * corefile.c (_initialize_core): Use.
1926
2c5b56ce
AC
1927 * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
1928 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1929 (add_setshow_filename_cmd, add_setshow_string_cmd)
1930 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
1931 fprint_setshow parameter.
1932 * command.h (fprint_setshow_ftype): Delete.
1933 (add_setshow_cmd_full, add_setshow_enum_cmd)
1934 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1935 (add_setshow_filename_cmd, add_setshow_string_cmd)
1936 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
1937 fprint_setshow parameter.
1938 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
1939 * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
1940 * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
1941 * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
1942 * remote.c, target.c, cli/cli-logging.c: Update.
1943
08546159
AC
19442005-02-16 Andrew Cagney <cagney@gnu.org>
1945
1946 Merge setshow print and show parameters.
1947 * command.h (show_value_ftype): Define.
1948 (deprecated_show_value_hack): Declare.
1949 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1950 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1951 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
1952 (add_setshow_zinteger_cmd): Change type of show_func to
1953 show_value_ftype.
1954 * cli/cli-decode.h (struct cmd_list_element): Replace
1955 fprint_setshow with show_value_func.
1956 * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
1957 parameter. Set show_value_func. Do not set cmd_sfunc.
1958 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1959 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1960 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
1961 (add_setshow_zinteger_cmd): Update.
1962 * complaints.c (complaints_show_value): Replace
1963 fprint_setshow_complaints.
1964 (_initialize_complaints): Update.
1965 * mips-tdep.c (show_mask_address): Update.
1966 * arm-tdep.c (show_fp_model): Update.
1967 * cli/cli-setshow.c (do_setshow_command): Call show_value_func
1968 instead of fprint_setshow. Use deprecated_show_value_hack.
1969 (deprecated_show_value_hack): New function.
1970 * remote.c (add_packet_config_cmd, show_remote_cmd):
1971 (show_remote_protocol_P_packet_cmd)
1972 (show_remote_protocol_P_packet_cmd)
1973 (show_remote_protocol_Z_access_wp_packet_cmd)
1974 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1975 (show_remote_protocol_Z_packet_cmd)
1976 (show_remote_protocol_Z_read_wp_packet_cmd)
1977 (show_remote_protocol_Z_software_bp_packet_cmd)
1978 (show_remote_protocol_Z_write_wp_packet_cmd)
1979 (show_remote_protocol_binary_download_cmd)
1980 (show_remote_protocol_p_packet_cmd)
1981 (show_remote_protocol_qPart_auxv_packet_cmd)
1982 (show_remote_protocol_qSymbol_packet_cmd)
1983 (show_remote_protocol_vcont_packet_cmd): Update.
1984
1c7b1e5a
MK
19852005-02-16 Mark Kettenis <kettenis@gnu.org>
1986
1987 * wrapper.h: Update copyright year. Properly wrap a few
1988 prototypes.
1989 (struct gdb_wrapper_arguments): Remove forward declaration.
1990 * wrapper.c: Update copyright year. Include "ui-out.h".
1991 (struct gdb_wrapper_arguments): Remove.
1992 (struct captured_value_struct_elt_args): Remove.
1993 (wrapper_parse_exp_1, wrap_evaluate_expression)
1994 (wrap_value_fetch_lazy, wrap_value_equal, wrap_value_assign)
1995 (wrap_value_subscript, wrap_value_ind, wrap_parse_and_eval_type)
1996 (do_captured_value_struct_elf): Remove functions.
1997 (gdb_parse_exp_1, gdb_evaluate_expression, gdb_value_fetch_lazy)
1998 (gdb_value_equal, gdb_value_assign, gdb_value_subscript)
1999 (gdb_value_ind, gdb_parse_and_eval_type, gdb_value_struct_elt):
2000 Re-implement using TRY_CATCH.
2001
7124f6fb
YS
20022005-02-16 Yoshinori Sato <ysato@users.sourceforge.jp>
2003
2004 * remote-e7000.c: unuse TM_FILE defined macro.
2005 (e7000_fetch_registers)
2006 (e7000_store_registers)
2007 (e7000_wait): delete NUM_REALREGS.
2008 * remote-hms.c: move TM_FILE macro.
2009 (CCR_REGNO): move define from tm-h8300.h.
2010
55e5a6d0
MK
20112005-02-15 Mark Kettenis <kettenis@gnu.org>
2012
2013 * amd64-linux-tdep.c: Update copyright year.
a348ae87
MK
2014 (amd64_linux_sigtramp_start): Use sizeof operator instead of
2015 LINUX_SIGTRAMP_LEN.
55e5a6d0 2016
77ef991d
JB
20172004-02-15 Joel Brobecker <brobecker@gnat.com>
2018
2019 From Paul Hilfinger <hilfinger@gnat.com>
2020 * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
2021 SYMBOL_NATURAL_NAME to set type names.
2022
1bedd215
AC
20232005-02-15 Andrew Cagney <cagney@gnu.org>
2024
2025 Mark up add_com, add_info and add_prefix_cmd.
2026 * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
2027 * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
2028 * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
2029 * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
2030 * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
2031 * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
2032 * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
2033 * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
2034 * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
2035 * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
2036 * symfile.c, symtab.c, target.c, thread.c, top.c: Update.
2037 * tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
2038 * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
2039 * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
2040 * tui/tui-stack.c, tui/tui-win.c: Update.
2041
66bf4b3a
AC
20422005-02-14 Andrew Cagney <cagney@gnu.org>
2043
3f325092
AC
2044 * config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
2045 * config/h8300/tm-h8300.h: Delete file.
2046
1a966eab
AC
2047 Mark up add_cmd.
2048 * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
2049 * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
2050 * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
2051 * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
2052 * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
2053 * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
2054 * sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
2055 * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
2056 * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
2057 * cli/cli-logging.c, tui/tui-regs.c: Update.
2058
7915a72c
AC
2059 Mark up add_setshow functions, replace "PRINT:" comment prefix
2060 with "FIXME: i18n:".
2061 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
2062 * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
2063 * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
2064 * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
2065 * target.c, cli/cli-logging.c: Update.
2066
66bf4b3a
AC
2067 * utils.c (paddress): New function.
2068 * defs.h (paddress): Declare.
2069 * printcmd.c (deprecated_print_address_numeric): Rename
2070 print_address_numeric, call paddress.
2071 * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
2072 * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
2073 * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
2074 * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
2075 * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
2076 * ada-valprint.c: Update.
2077
33e6b12b
RR
20782005-02-13 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2079
2080 * MAINTAINERS: Add myself to "Write After Approval".
2081
f0bdd87d
YS
20822005-02-12 Yoshinori Sato <ysato@users.sourceforge.jp>
2083
2084 Restore h8300 support.
2085 * configure.tgt: Add h8300-*-*
ba0e80db
YS
2086 * h8300-tdep.c: New file. Rewrite new frame code.
2087 * config/h8300/h8300.mt: New file. Restored Rev 1.3
2088 * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
2089
2090 * MAINTAINERS: Add myself to "Write After Approval".
f0bdd87d 2091
e2e0b3e5
AC
20922005-02-11 Andrew Cagney <cagney@gnu.org>
2093
a3f17187
AC
2094 Mark up some of printf_filtered and printf_unfiltered.
2095 * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
2096 * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
2097 * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
2098 * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
2099 * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
2100 * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
2101 * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
2102 * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
2103 * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
2104 * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
2105 * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
2106 * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
2107 * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
2108 * tui/tui-regs.c, tui/tui-win.c: Update.
2109
e2e0b3e5
AC
2110 Mark up error_no_arg, query, perror_with_name, complaint, and
2111 internal_error.
2112 * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
2113 * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
2114 * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
2115 * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
2116 * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
2117 * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
2118 * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
2119 * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
2120 * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
2121 * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
2122 * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
2123 * interps.c, language.c, linespec.c, linux-nat.c: Update.
2124 * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
2125 * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
2126 * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
2127 * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
2128 * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
2129 * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
2130 * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
2131 * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
2132 * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
2133 * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
2134 * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
2135 * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
2136 * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
2137 * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
2138 * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
2139 * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
2140 * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
2141 * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
2142 * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
2143 * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
2144 * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
2145 * tui/tui-file.c, tui/tui-interp.c: Update.
8a3fe4f8 2146
e2e0b3e5
AC
21472005-02-10 Andrew Cagney <cagney@gnu.org>
2148
8a3fe4f8
AC
2149 Mark up all error and warning messages.
2150 * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
2151 * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
2152 * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
2153 * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
2154 * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
2155 * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
2156 * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
2157 * event-top.c, exec.c, expprint.c, f-lang.c: Update.
2158 * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
2159 * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
2160 * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
2161 * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
2162 * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
2163 * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
2164 * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
2165 * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
2166 * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
2167 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
2168 * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
2169 * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
2170 * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
2171 * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
2172 * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
2173 * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
2174 * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
2175 * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
2176 * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
2177 * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
2178 * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
2179 * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
2180 * remote-rdp.c, remote-sim.c, remote-st.c: Update.
2181 * remote-utils.c, remote-utils.h, remote.c: Update.
2182 * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
2183 * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
2184 * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
2185 * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
2186 * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
2187 * somread.c, somsolib.c, source.c, stabsread.c: Update.
2188 * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
2189 * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
2190 * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
2191 * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
2192 * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
2193 * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
2194 * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
2195 * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
2196 * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
2197 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
2198 * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
2199 * tui/tui-win.c: Update.
2200
3517749c
ILT
22012005-02-10 Ian Lance Taylor <ian@airs.com>
2202
2203 * MAINTAINERS: Update my e-mail address.
2204
cf309262
DJ
22052005-02-10 Daniel Jacobowitz <dan@debian.org>
2206
2207 From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
2208 PR exp/1821
2209 * cp-valprint.c: Include "language.h".
2210 (cp_print_value_fields): Pass the current language to
2211 fprintf_symbol_filtered.
2212 * Makefile.in (cp-valprint.o): Update dependencies.
2213
899506a8
AC
22142005-02-10 Andrew Cagney <cagney@gnu.org>
2215
335cca0d
AC
2216 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
2217 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2218 (add_setshow_filename_cmd, add_setshow_string_cmd)
2219 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
2220 print string parameter with fprint_setshow function.
2221 * command.h (fprint_setshow_ftype): Define. Update declarations.
2222 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
2223 available, use that.
2224 * cli/cli-decode.h (struct cmd_list_element): Add field
2225 fprint_setshow.
2226 * complaints.c (fprint_setshow_complaints): New function.
2227 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
2228 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
2229 with NULL.
2230 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2231 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2232 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2233 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2234 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2235 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2236 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
2237 * frame.c (_initialize_frame): Ditto.
2238 * target.c (initialize_targets): Ditto.
2239 * maint.c (_initialize_maint_cmds): Ditto.
2240 * observer.c (_initialize_observer): Ditto.
2241 * infcall.c (_initialize_infcall): Ditto.
2242 * breakpoint.c (_initialize_breakpoint): Ditto.
2243 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2244 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2245
899506a8
AC
2246 * cli/cli-setshow.c (do_setshow_command): Move code printing the
2247 value to the end of the function. Handle MI and non-MI output
2248 differently.
2249
59c58d08
AC
22502005-02-09 Andrew Cagney <cagney@gnu.org>
2251
7376b4c2
AC
2252 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
2253 show_result parameters.
2254 * mips-tdep.c (_initialize_mips_tdep): Update calls.
2255 * command.h: Update declaration.
2256 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
2257 calls.
2258
11dced61
AC
2259 * NEWS: Mention removed commands.
2260 * m68hc11-tdep.c (show_regs): Delete, unused.
2261 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
2262 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
2263 eventdebug" commands.
2264 * gdb-events.c: Regenerate.
2265 * gdbarch.sh: Delete deprecated "set archdebug" and "show
2266 archdebug" commands.
2267 * gdbarch.c: Regenerate.
2268 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
2269 remotedebug" and "show remotedebug".
2270 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
2271 disassembly-flavor", "show arm disassembly-flavor", and
2272 "othernames" commands.
2273 (arm_othernames): Delete unused function.
2274
b6e1c027
AC
2275 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
2276 (convert_code_addr_to_desc_addr): Convert any function code
2277 address to the corresponding function's descriptor.
2278 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
2279 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
2280 writing, convert any function code address to the corresponding
2281 descriptor.
2282
59c58d08
AC
2283 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
2284 * config/powerpc/linux.mt (TDEPFILES): Ditto.
2285 * config/pa/linux.mt (TDEPFILES): Ditto.
2286 * config/mips/linux.mt (TDEPFILES): Ditto.
2287 * config/m68k/linux.mt (TDEPFILES): Ditto.
2288 * config/m32r/linux.mt (TDEPFILES): Ditto.
2289 * config/ia64/linux.mt (TDEPFILES): Ditto.
2290 * config/arm/linux.mt (TDEPFILES): Ditto.
2291
b6e1c027
AC
22922005-02-09 Corinna Vinschen <vinschen@redhat.com>
2293
2294 * symmisc.c: Include gdb_stat.h.
2295 (maintenance_print_msymbols): Use inode numbers to compare files.
2296
91294c83
AC
22972005-02-08 Andrew Cagney <cagney@gnu.org>
2298
d3cbe7ef
AC
2299 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2300 (METHOD_PTR_TO_VOFFSET): Move from here ...
2301 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2302 (METHOD_PTR_TO_VOFFSET): ... to here.
2303 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
2304 * Makefile.in: Update dependencies.
2305
6941d02a
AC
2306 * exceptions.c: Do not include <setjmp.h>.
2307 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
2308 (catch_exception, catch_exceptions_with_msg, catch_errors)
2309 (catch_command_errors): Use TRY_CATCH.
2310 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
2311 (exceptions_state_mc_init): Rename catcher_init.
2312 (exceptions_state_mc): Rename catcher_state_machine.
2313 (exceptions_state_mc_action_iter)
2314 (exceptions_state_mc_action_iter_1): New functions.
2315 * exceptions.h: Include <setjmp.h>.
2316 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
2317 (EXCEPTIONS_SIGLONGJMP): Define.
2318 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
2319 (exceptions_state_mc_action_iter_1): Declare.
2320 (TRY_CATCH): Define.
2321
179f02be
AC
2322 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
2323 no longer needed.
2324
8f135812
AC
2325 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
2326 PT_FPSCR breakage.
2327
91294c83
AC
2328 * value.c (struct value): Move to here ...
2329 * value.h (struct value): ... from here. Copy comments to
2330 corresponding function declarations, re-order.
2331
dfa52d88
AC
23322005-02-07 Andrew Cagney <cagney@gnu.org>
2333
9bbda503
AC
2334 * value.c (set_value_bitpos, set_value_bitsize): Define.
2335 * value.h (set_value_bitpos, set_value_bitsize): Declare.
2336 * ada-lang.c, valarith.c: Update.
2337
5086187c
AC
2338 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
2339 value_contents_writeable, include note that there are problems.
2340 * breakpoint.c, infcall.c: Use VALUE_LVAL.
2341
f5cf64a7
AC
2342 * value.h (set_value_offset): Declare.
2343 * value.c (set_value_offset): Declare.
2344 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
2345 * findvar.c: Update.
2346
17cf0ecd
AC
2347 * value.h (value_next): Declare.
2348 * value.c (value_next): Define.
2349 * breakpoint.c: Update.
2350
88e3b34b
AC
2351 * value.h (deprecated_set_value_modifiable)
2352 (deprecated_value_modifiable): Declare.
2353 * value.c (deprecated_set_value_modifiable): Define.
2354 (deprecated_value_modifiable): Define.
2355 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
2356
04624583
AC
2357 * value.h (deprecated_set_value_type): Declare.
2358 * value.c (deprecated_set_value_type): Define.
2359 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
2360 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
2361 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
2362 * ax-gdb.c, tracepoint.c: Update.
2363
13bb5560
AC
2364 * value.h (deprecated_value_lval_hack)
2365 (deprecated_value_address_hack)
7d71e29c 2366 (deprecated_value_internalvar_hack)
13bb5560
AC
2367 (deprecated_value_regnum_hack): Declare.
2368 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
2369 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
2370 * value.c (deprecated_value_lval_hack)
2371 (deprecated_value_address_hack)
7d71e29c 2372 (deprecated_value_internalvar_hack)
13bb5560
AC
2373 (deprecated_value_regnum_hack): Define.
2374
b44d461b
AC
2375 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
2376 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
2377 * value.c (set_value_pointed_to_offset): Define
2378 (value_pointed_to_offset): Define.
2379 * valops.c: Update.
2380
caadb61d
AC
2381 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
2382 (value_embedded_offset, set_value_embedded_offset): Declare.
13c3b5f5 2383 * value.c (value_embedded_offset): Define.
caadb61d 2384 (set_value_embedded_offset): Define.
13c3b5f5
AC
2385 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
2386 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
2387 * cp-abi.h: Update.
2388
dfa52d88
AC
2389 * value.h (VALUE_LAZY): Delete
2390 (set_value_lazy): Declare.
2391 * value.c (set_value_lazy): Define.
2392 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
2393 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
2394
0fd88904
AC
23952005-02-06 Andrew Cagney <cagney@gnu.org>
2396
feb13ab0
AC
2397 * value.h (VALUE_OPTIMIZED_OUT): Delete.
2398 (value_optimized_out, set_value_optimized_out): Declare.
2399 * value.c (set_value_optimized_out, value_optimized_out): Define.
2400 * valprint.c, findvar.c, dwarf2loc.c: Update.
2401
0fd88904
AC
2402 * value.c (value_contents, value_contents_writeable): New
2403 functions.
2404 * value.h (VALUE_CONTENTS): Delete macro.
2405 (value_contents, value_contents_writeable): Declare.
2406 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
2407 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
2408 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
2409 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
2410 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
2411 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
2412 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
2413 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
2414 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
2415 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
2416 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
2417 * ada-valprint.c, ada-lang.c: Update.
2418
5b90c7b5
AC
24192005-02-03 Andrew Cagney <cagney@gnu.org>
2420
2421 * utils.c (xzalloc): New function.
2422 * defs.h (XZALLOC): Use xzalloc.
2423 (xzalloc): Declare.
2424 * value.c (allocate_value): Allocate a zeroed buffer.
2425 * mdebugread.c (xzalloc): Delete.
2426
4754a64e
AC
24272005-02-02 Andrew Cagney <cagney@gnu.org>
2428
d69fe07e
AC
2429 * value.h (value_lazy): Declare.
2430 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
2431 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
2432
46615f07
AC
2433 * value.h (VALUE_CONTENTS_ALL): Delete.
2434 (value_contents_all): Declare.
2435 * value.c (value_contents_all): New function.
2436 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
2437 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
2438
4754a64e
AC
2439 * value.c (value_enclosing_type): New function.
2440 * value.h (VALUE_ENCLOSING_TYPE): Delete.
2441 (value_enclosing_type): Declare.
2442 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
2443 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
2444
990a07ab
AC
2445 * value.c (value_contents_all_raw)
2446 (value_contents_raw): New functions.
2447 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
2448 (value_contents_raw, value_contents_all_raw): Declare functions.
2449 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
2450 * std-regs.c, valarith.c, valops.c, eval.c: Update.
2451 * tracepoint.c, findvar.c: Update.
2452
ff2c3e5d
OF
24532005-02-01 Orjan Friberg <orjanf@axis.com>
2454
2455 * regformats/reg-cris.dat: New file with register definitions for CRIS.
2456 * regformats/reg-crisv32.dat: Ditto for CRISv32.
2457
c46f8c51
AC
24582005-01-31 Andrew Cagney <cagney@gnu.org>
2459
2460 * configure: Regenerate to track ../gettext.m4.
2461
a80493b8
BI
24622005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
2463
2464 * MAINTAINERS: Add myself to "Write After Approval".
2465
3d263c1d
BI
2466 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
2467 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
2468 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
2469
c21a4eee
MK
24702005-01-29 Mark Kettenis <kettenis@gnu.org>
2471
2472 * configure.ac: Remove extra check for ranlib.
2473 * configure: Regenerated.
2474
108d6ead
AC
24752005-01-28 Andrew Cagney <cagney@gnu.org>
2476
a2bd3dcd
AC
2477 * language.h (struct language_defn): Make la_val_print's buffer
2478 parameter a const bfd_byte.
2479 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
2480 * ada-lang.c (ada_aligned_value_addr)
2481 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
2482 * valprint.c (val_print_array_elements): Update.
2483 * valprint.h (val_print_array_elements): Update.
2484 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
2485 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
2486 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
2487 (ada_val_print_1, ada_print_floating, printable_val_type)
2488 (print_record, val_print_packed_array_elements)
2489 (print_field_values, print_variant_part): Update.
2490 * c-lang.h (c_val_print, cp_print_value_fields): Update.
2491 * c-valprint.c (c_val_print): Update.
2492 * f-lang.h (f_val_print): Update.
2493 * f-valprint.c (f_val_print, f77_print_array_1)
2494 (f77_print_array): Update.
2495 * jv-lang.h (java_val_print): Update.
2496 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
2497 * language.c (unk_lang_val_print): Update.
2498 * m2-lang.h (m2_val_print): Update.
2499 * m2-valprint.c (m2_val_print): Update.
2500 * p-lang.h (pascal_val_print): Update.
2501 (pascal_object_print_value_fields): Update.
2502 * p-valprint.c (pascal_val_print)
2503 (pascal_object_print_value_fields, pascal_object_print_value)
2504 (pascal_object_print_value): Update.
2505 * scm-lang.h (scm_val_print): Update.
2506 * scm-valprint.c (scm_val_print): Update.
2507 * value.h (val_print): Update.
2508
5bcca90b
AC
2509 * p-lang.h (pascal_object_print_class_member)
2510 (pascal_object_print_class_method): Make buffer a const bfd_byte.
2511 * p-valprint.c (pascal_object_print_class_method)
2512 (pascal_object_print_class_method): Ditto.
2513
ce27fb25
AC
2514 * language.h (struct language_defn): Make la_printstr's buffer
2515 parameter a const bfd_byte.
2516 * p-lang.h (pascal_printstr): Update function to match.
2517 * ada-valprint.c (ada_printstr): Update function to match.
2518 * scm-lang.c (scm_printstr): Update function to match.
2519 * p-lang.c (pascal_printstr): Update function to match.
2520 * ada-lang.h (ada_printstr): Update function to match.
2521 * m2-lang.c (m2_printstr): Update function to match.
2522 * objc-lang.c (objc_printstr): Update function to match.
2523 * c-lang.h (c_printstr): Update function to match.
2524 * f-lang.c (f_printstr): Update function to match.
2525 * c-lang.c (c_printstr): Update function to match.
2526 * language.c (unk_lang_printstr): Update function to match.
2527
5f547748
AC
2528 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
2529 * valprint.h (val_print_type_code_int): Ditto.
2530
bbb4b9db
AC
2531 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
2532
9519ccd5
AC
2533 * cp-valprint.c (cp_print_class_method)
2534 (cp_print_class_member): Make buffer a const bfd_byte.
2535 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
2536
10a2c479
AC
2537 * ada-lang.c (value_from_contents_and_address)
2538 (to_record_with_fixed_variant_part)
2539 (value_tag_from_contents_and_address, ada_to_fixed_type)
2540 (to_fixed_variant_branch_type, to_fixed_record_type)
2541 (ada_template_to_fixed_record_type, cond_offset_host)
2542 (ada_template_to_fixed_record_type_1): Make buffer a const
2543 bfd_byte.
2544 * ada-lang.h (ada_template_to_fixed_record_type_1)
2545 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
2546
d56612af
AC
2547 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
2548
366b1cbf 2549 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
d56612af 2550 * printcmd.c (print_scalar_formatted): Update.
366b1cbf 2551
c84141d6
AC
2552 * value.h (value_bit_index, print_floating)
2553 (find_rt_vbase_offset): Make buffer a const bfd_byte.
2554 * valprint.c (print_floating): Update.
2555 * valarith.c (value_bit_index): Update.
2556 * valops.c (find_rt_vbase_offset): Update.
2557
6c403953
AC
2558 * valprint.h (print_octal_chars, print_char_chars)
2559 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
2560 buffer a const bfd_byte.
2561 * valprint.c (print_binary_chars, print_octal_chars)
2562 (print_decimal_chars, print_hex_chars, print_char_chars): Make
2563 "valaddr"buffer a const bfd_byte, ditto for local variables
2564 referencing that buffer.
2565
a8d6eb4a
AC
2566 * m2-valprint.c: Include "c-lang.h".
2567 (c_val_print): Delete extern declaration.
2568 * scm-valprint.c: Include "c-lang.h".
2569 (c_val_print): Delete extern declaration.
2570 Makefile.in: Update dependencies.
2571
06c4d4dc
AC
2572 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
2573 bfd_byte.
2574 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
2575 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
2576 bfd_byte.
2577 * cp-abi.c (baseclass_offset): Update.
2578 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
2579
6b08edad
AC
2580 * gnu-v2-abi.h: New file.
2581 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
2582 (gnuv2_baseclass_offset): Delete declaration.
2583 * hpacc-abi.c: Include "gnu-v2-abi.h".
2584 (gnuv2_baseclass_offset): Delete extern declaration.
2585 * Makefile.in: Update dependencies.
2586
108d6ead
AC
2587 * doublest.c (floatformat_is_negative, floatformat_is_nan)
2588 (floatformat_mantissa, get_field): Make the buffer a const
2589 bfd_byte, simplify.
2590
a53bf506
AC
25912005-01-27 Andrew Cagney <cagney@gnu.org>
2592
8cc2524a
AC
2593 * value.h (struct value): Change type of contents to bfd_byte.
2594 (VALUE_CONTENTS_RAW): Simplify.
2595
79dd2d24
AC
2596 * gdbarch.sh (integer_to_address): Change buf parameter to a const
2597 bfd_byte, make pure-multi-arch.
2598 * gdbarch.h, gdbarch.c: Regenerate.
2599 * mips-tdep.c (mips_integer_to_address): Update.
2600 * value.c (value_as_address): Update.
2601
c26b8e3b
AC
2602 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
2603 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
2604 parameters const, change buf to a const bfd_byte.
2605 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
2606 parameters const.
2607
10e2d419
AC
2608 * corefile.c (write_memory): Update, make a copy of the read-only
2609 buffer.
2610 * target.c (target_read_memory): Update.
2611 (target_write_memory): Update, make a copy of the read-only
2612 buffer.
2613 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
2614 const.
2615 * target.h (target_read_memory, target_write_memory): Change
2616 buffer type to bfd_byte; for write_memory, make it const.
2617 * symfile-mem.c (do_target_read_memory): New function.
2618 (symbol_file_add_from_memory): Pass do_target_read_memory to
2619 bfd_elf_bfd_from_remote_memory.
2620
89f5065b
AC
2621 * value.h: Indent using gdb_indent.sh.
2622
a53bf506
AC
2623 * configure: Regenerate to track ../gettext.m4 change.
2624
c44ca51c
AC
26252005-01-26 Andrew Cagney <cagney@gnu.org>
2626
2627 * rs6000-tdep.c: Include "reggroups.h".
2628 (rs6000_gdbarch_init): Set register_reggroup_p.
2629 (rs6000_register_reggroup_p): New function.
2630
c600d464
OF
26312005-01-26 Orjan Friberg <orjanf@axis.com>
2632
2633 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
2634 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
2635 CRISv32.
2636 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
2637 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
2638 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
2639 (crisv32_register_type, cris_special_register_name)
2640 (crisv32_register_name): New functions.
2641 (cris_spec_reg_applicable): Recognize more versions.
2642 (cris_register_name): Update with call to cris_special_register_name.
2643 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
2644 warning when unable to find step target.
2645 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
2646 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
2647 CRISv32.
2648 (fetch_core_registers): Update for CRISv32.
2649 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
2650 register_name, cannot_store_register, cannot_fetch_register,
2651 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
2652
82c94ed0
NR
26532005-01-26 Nick Roberts <nickrob@snap.net.nz>
2654
2655 * interps.c (interpreter_exec_cmd): Use condition,
2656 e.reason < 0, to raise an error.
2657
0598a43c
AC
26582005-01-25 Andrew Cagney <cagney@gnu.org>
2659
a8f60bfc
AC
2660 * ppc-linux-tdep.c: Include "tramp-frame.h"
2661 (struct ppc_linux_sigtramp_cache)
2662 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
2663 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
2664 (ppc_linux_sigtramp_cache): Delete.
2665 (ppc32_linux_sigaction_cache_init)
2666 (ppc64_linux_sigaction_cache_init)
2667 (ppc32_linux_sighandler_cache_init)
2668 (ppc64_linux_sighandler_cache_init)
2669 (ppc32_linux_sigaction_tramp_frame)
2670 (ppc64_linux_sigaction_tramp_frame)
2671 (ppc32_linux_sighandler_tramp_frame)
2672 (ppc64_linux_sighandler_tramp_frame)
2673 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
2674 64-bit, sigaction and siginfo tramp-frame unwinders.
2675
0598a43c
AC
2676 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
2677 long_double_bit to 8.
2678
9d799f85
AC
26792005-01-24 Andrew Cagney <cagney@gnu.org>
2680
2681 * infrun.c (handle_inferior_event): Handle back-to-back and nested
2682 signals where the step_resume_breakpoint may have already been
2683 inserted.
2684
45181ed1
AC
26852005-01-24 Andrew Cagney <cagney@gnu.org>
2686
2687 * configure: Regenerate, ../gettext.m4 was updated.
2688
a28109e0
MK
26892005-01-23 Mark Kettenis <kettenis@gnu.org>
2690
6fe85783
MK
2691 * NEWS: Mention new BSD user-level threads support.
2692
a28109e0
MK
2693 * i386obsd-tdep.c: Update copyright year. Include
2694 "bsd-uthread.h".
2695 (i386obsd_uthread_reg_offset): New variable.
2696 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
2697 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
2698 functions.
2699 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
2700 * Makefile.in (i386obsd-tdep.o): Update dependencies.
2701 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
2702
059198c1
CF
27032005-01-23 Christopher Faylor <cgf@timesys.com>
2704
2705 * win32-nat.c: Update copyright year.
2706 (child_init_thread_list): Set thread linked list point to NULL so that
2707 it won't be reused after clearing.
2708
5c45e068
MK
27092005-01-21 Mark Kettenis <kettenis@gnu.org>
2710
2711 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
2712 undefs.
2713 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
2714 thread' has a td_pcb member and whether `struct reg' has r_fs and
2715 r_gs members.
2716 * configure, config.in: Regenerate.
2717
666ec76f
MK
27182005-01-21 Mark Kettenis <kettenis@gnu.org>
2719
b8667b61
MK
2720 * configure.ac: Remove ia64-*-aix* junk.
2721 * configure: Regenerate.
2722
a3828db0
MK
2723 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
2724 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
2725 is necessary.
2726 * configure, config.in: Regenerate.
2727 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
2728 BFD_NEED_DECLARATION. Never provide a prototype for
2729 caninicalize_file_name.
2730 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
2731 BFD_NEED_DECLARATION.
2732
666ec76f
MK
2733 * configure.ac (targ_archs): Use standard autoconf check for
2734 "struct stat.st_blocks" instead of rolling our own.
2735 * configure: Regenerated.
2736 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
2737 * config.in: Regenerated.
2738
bc8bcb4b
MK
27392005-01-21 Mark Kettenis <kettenis@gnu.org>
2740
2741 * configure.ac: Modernize checks for `long long' and `long double'
2742 support.
2743 * configure: Regenerated.
2744 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
2745 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
2746 * config.in: Regenerated.
2747
30adeb3a
MK
27482005-01-20 Mark Kettenis <kettenis@gnu.org>
2749
2750 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
2751 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
2752 * configure.ac: Remove checks for HP-UX save_state structure.
2753 * configure: Regenerated.
2754
e06e2353
AC
27552005-01-19 Andrew Cagney <cagney@gnu.org>
2756
2757 * utils.c (quit): Simplify, call fatal.
2758 * exceptions.c: Include "serial.h"
2759 (print_flush): Mimic flush code found in utils.c:quit.
2760 * Makefile.in: Update dependencies.
2761
1c44323f
JB
27622005-01-19 Jim Blandy <jimb@redhat.com>
2763
065a1afc
JB
2764 * configure.tgt: Set build_rdi_share to "yes" on those targets
2765 that use that debugging protocol.
2766 Set build_nlm to yes to build NLM stub for Netware targets.
2767 * configure.ac: If build_rdi_share is "yes", then configure the
2768 rdi-share subdirectory.
2769 If build_nlm is "yes", the configure the "nlm" subdirectory.
2770 * configure: Regenerated.
2771
1c44323f
JB
2772 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
2773 autoconf 2.59 and automake 1.9.3.
2774
8a9de0e4
AC
27752005-01-19 Andrew Cagney <cagney@gnu.org>
2776
315a522e
AC
2777 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
2778 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
2779 * utils.c (internal_verror, quit): Update.
2780 * remote-sds.c (interrupt_query): Update.
2781 * remote-mips.c (mips_error, mips_kill): Update.
2782 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
2783 * remote.c (interrupt_query): Update.
2784 * ocd.c (interrupt_query): Update.
2785 * nto-procfs.c (interrupt_query): Update.
2786 * monitor.c (monitor_interrupt_query): Update.
2787 * breakpoint.c (break_command_1): Update.
2788
8a9de0e4
AC
2789 * infrun.c: (resume, proceed, wait_for_inferior)
2790 (handle_inferior_event, stop_stepping)
2791 (prepare_to_wait): Write debug output to gdb_stdlog.
2792
53283f86
MK
27932005-01-19 Mark Kettenis <kettenis@gnu.org>
2794
2795 * inf-ptrace.c (inf_ptrace_prepare_to_store)
2796 (inf_ptrace_post_startup_inferior)
2797 (inf_ptrace_acknowledge_created_inferior)
2798 (inf_ptrace_insert_fork_catchpoint)
2799 (inf_ptrace_remove_fork_catchpoint)
2800 (inf_ptrace_insert_vfork_catchpoint):
2801 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
2802 (inf_ptrace_insert_exec_catchpoint)
2803 (inf_ptrace_remove_exec_catchpoint): Remove functions.
2804 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
2805 (inf_ptrace_target): Don't set to_prepare_to_store,
2806 to_post_startup_inferior, to_acknowledge_created_inferior,
2807 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
2808 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
2809 to_follow_fork, to_insert_exec_catchpoint,
2810 to_remove_exec_catchpoint.
2811
9ee907e0
AC
28122005-01-18 Andrew Cagney <cagney@gnu.org>
2813
fa113d1a
AC
2814 * target.h (struct target_ops): Change return type of
2815 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
2816 to_insert_exec_catchpoint to void.
2817 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
2818 (child_insert_exec_catchpoint): Change return type to void.
2819 * target.c (update_current_target): Update.
2820 (debug_to_insert_fork_catchpoint)
2821 (debug_to_insert_vfork_catchpoint)
2822 (debug_to_insert_exec_catchpoint): Update.
2823 * inf-child.c (inf_child_insert_fork_catchpoint)
2824 (inf_child_insert_vfork_catchpoint)
2825 (inf_child_insert_exec_catchpoint): Update.
2826 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
2827 * linux-nat.c (child_insert_fork_catchpoint)
2828 (child_insert_vfork_catchpoint)
2829 (child_insert_exec_catchpoint): Update.
2830 * inftarg.c (child_insert_fork_catchpoint)
2831 (child_insert_vfork_catchpoint,)
2832 (child_insert_exec_catchpoint): Update.
2833
9ee907e0
AC
2834 * remote.c (remote_open_1): Use throw_exception.
2835
295093a4
MS
28362005-01-17 Michael Snyder <msnyder@redhat.com>
2837
2838 * mips-linux-tdep.c: Whitespace tweaks.
2839
4bcff7eb
CV
28402005-01-17 Corinna Vinschen <vinschen@redhat.com>
2841
2842 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
2843
637537d0
AC
28442005-01-17 Andrew Cagney <cagney@gnu.org>
2845
2846 * top.h (source_error, source_pre_error): Delete declaration.
2847 * cli/cli-script.c (source_error_allocated, source_error): Delete.
2848 (script_from_file, source_cleanup_lines): Do not manipulate
2849 source_error_allocated, error_pre_print and source_error.
2850 (struct source_cleanup_lines_args): Delete fields old_pre_error,
2851 and old_error_pre_print.
2852 * top.c (source_error_allocated, source_error)
2853 (source_pre_error): Delete.
2854 (command_line_input): Do not set error_pre_print.
2855 * event-top.c (command_line_handler): Do not set error_pre_print.
2856
12b21d12
JT
28572005-01-16 Jason Thorpe <thorpej@netbsd.org>
2858
2859 * MAINTAINERS: Update my email address.
2860
1c02b2a5
MK
28612005-01-16 Mark Kettenis <kettenis@gnu.org>
2862
c401b55a
MK
2863 * configure.ac: Provide prerequisite headers when checking
2864 <term.h>.
2865 * configure: Regenerate.
2866
1c02b2a5
MK
2867 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
2868 and "bsd-uthread.h".
2869 (amd64fbsd_jmp_buf_reg_offset): New variable.
2870 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
2871 functions.
2872 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
2873 * i386fbsd-tdep.c: Fix typo.
2874 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
2875 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
2876
17d92a02
AC
28772005-01-16 Andrew Cagney <cagney@gnu.org>
2878
2879 * cli/cli-script.c: Include "exceptions.h".
2880 (struct wrapped_read_command_file_args): Define.
2881 (wrapped_read_command_file): New function.
2882 (script_from_file): Replace direct call to read_command_file by
2883 one wrapped by an exception handler.
2884 * exceptions.c (throw_it): Free the old message after creating the
2885 new.
2886 * Makefile.in: Update dependencies.
2887
80ad1639
MK
28882005-01-16 Mark Kettenis <kettenis@gnu.org>
2889
ae036357
MK
2890 * sparc64fbsd-tdep.c: Update copyright year.
2891 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
2892 functions.
2893 (sparc64fbsd_init_abi): Create register sets with collect
2894 functions.
2895
ca5807d9
MK
2896 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
2897 (_initialize_sparc64fbsd_nat): Add some extra features to the
2898 generic SPARC target.
2899 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
2900 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
2901 (NAT_FILE): Set to solib.h.
2902 * config/sparc/nm-fbsd.h: Remove file.
2903
c4f2d4d7
MK
2904 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
2905
80ad1639
MK
2906 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
2907
6212a5e9
AC
29082005-01-16 Andrew Cagney <cagney@gnu.org>
2909
2910 * exceptions.c (struct catcher): Delete saved_error_pre_print and
2911 saved_quit_pre_print.
2912 (catcher_init): Delete parameter errstring, do not override the
2913 pre_print strings.
2914 (catcher_pop): Do not restore the pre_print strings.
2915 (catch_exception, catch_exceptions_with_msg, catch_errors)
2916 (catch_command_errors): Update catch_init calls.
2917
936df4b3
MK
29182005-01-16 Mark Kettenis <kettenis@gnu.org>
2919
2920 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
2921 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
2922
3af1e0e3
AC
29232005-01-15 Andrew Cagney <cagney@gnu.org>
2924
85981d60
AC
2925 * acinclude.m4: Include ../bfd/bfd.m4 instead of
2926 ../bfd/acinclude.m4. Include ../gettext.m4.
2927 * aclocal.m4, configure: Re-generate.
2928
5a14cc1a
AC
2929 * exceptions.c (do_captured_command)
2930 (struct captured_command_args): Delete.
2931 (catch_command_errors): Simplify by inlining call to catch_errors.
2932
3af1e0e3
AC
2933 * exceptions.c (struct catcher): Delete field print_message.
2934 (catcher_init): Delete print_message parameter.
2935 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
2936 (throw_it): Delete prefix parameter.
2937 (throw_verror, throw_vfatal, throw_error): Update.
2938
d0555901
AC
29392005-01-14 Andrew Cagney <cagney@gnu.org>
2940
e48f5bee
AC
2941 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
2942 (throw_reason): Leave the exception's message field blank.
2943 (throw_it): New function, create the exception and throw it.
2944 (throw_verror, throw_vfatal, throw_error): Call throw_it.
2945 (print_any_exception): New function.
2946 (catch_errors, catch_exceptions_with_msg): Call
2947 print_any_exception.
2948 (throw_exception): Move code calling annotate_error and
2949 annotate_quit from here ...
2950 (print_exception): ... to here.
2951
c6da7a6d
AC
2952 * exceptions.c (exception_fprintf, exception_print): Move printing
2953 of \n from here ...
2954 (print_exception): ... to here.
2955 (print_flush): New function.
2956 (exception_print, exception_fprintf): Replace duplicated flush and
2957 wrap code with call to print_flush.
2958 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
2959 and print_exception.
2960 (do_write): Delete.
2961
d0555901
AC
2962 * remote-sds.c (interrupt_query): Call throw_reason instead of
2963 throw_exception.
2964 * remote-mips.c (mips_error, mips_kill): Ditto
2965 * ocd.c (interrupt_query): Ditto.
2966 * nto-procfs.c (interrupt_query): Ditto.
2967 * monitor.c (monitor_interrupt_query): Ditto.
2968
949df321
JJ
29692005-01-14 Jeff Johnston <jjohnstn@redhat.com>
2970
2971 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
2972
bc8332bb
AC
29732005-01-14 Andrew Cagney <cagney@gnu.org>
2974
1c3c7ee7
AC
2975 * exceptions.h (catch_exceptions): Delete errstring parameter.
2976 (catch_exceptions_with_msg): Ditto.
2977 * exceptions.c (catch_exceptions_with_msg): Update.
2978 (catch_exceptions): Update.
2979 * symfile-mem.c (add_vsyscall_page): Update.
2980 * frame.c (get_current_frame): Update.
2981 * wrapper.c (gdb_value_struct_elt): Update.
2982 * exceptions.c (catch_exceptions): Update.
2983 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
2984 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
2985 * remote-fileio.c (remote_fileio_request): Update.
2986
9cbc821d
AC
2987 * exceptions.h (exception_fprintf): Declare.
2988 (exception_print): Drop pre_print parameter.
2989 * mi/mi-main.c (mi_execute_command): Update exception_print call.
2990 * cli/cli-interp.c (safe_execute_command): Update exception_print
2991 call.
2992 * remote.c (remote_open_1): Instead of passing an error prefix to
2993 catch_exceptions, use catch_exceptions and exception_fprintf.
2994 (remote_start_remote): Change return type to void.
2995 * breakpoint.c (insert_bp_location): Instead of passing an error
2996 prefix to catch_exceptions, use catch_exceptions and
2997 exception_fprintf.
2998 (insert_catchpoint): Change return type to void.
2999 (break_command_1): Update exception_print call.
3000 * exceptions.c (exception_fprintf): New function.
3001 (print_exception): New function.
3002 (exception_print): Use print_exception.
3003
22e9b0f1
AC
3004 * utils.c (error_output_message): Delete function.
3005 * defs.h (error_output_message): Delete declaration.
3006
05ff989b
AC
3007 * linespec.c (symtab_from_filename, decode_variable): Use
3008 throw_error instead of error_silent.
3009 * breakpoint.c (do_captured_parse_breakpoint): Change return type
3010 to void.
3011 (break_command_1): Use catch_exception and check the error return
3012 status.
3013 * exceptions.c (throw_error): New function.
3014 (throw_vsilent): Delete function.
3015 * exceptions.h (throw_error): Declare.
3016 (throw_vsilent): Delete declaration.
3017 * utils.c (error_silent): Delete function.
3018 * defs.h (error_silent): Delete declaration.
3019
8a076db9
AC
3020 * mi/mi-main.c (mi_execute_command): Print the exception.
3021 * cli/cli-interp.c (safe_execute_command): Print the exception.
3022 * exceptions.h (exception_print): Declare.
3023 * exceptions.c (struct catcher): Add field print_message.
3024 (catcher_init): Add parameter print_message, store in the catcher
3025 struct.
3026 (print_and_throw): Only print the message when print_message.
3027 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
3028 catcher_init.
3029 (catch_exception): Pass print_message=0 to catcher_init.
3030
bc8332bb
AC
3031 * varobj.c (varobj_create): Add missing \n.
3032
d183932d
MS
30332005-01-13 Michael Snyder <msnyder@redhat.com>
3034
4e18e2de 3035 * cli/cli-decode.h: Whitespace tweaks.
ca0b4d12 3036 * wince.c: Whitespace tweaks.
887a3a14 3037 * uw-thread.c: Whitespace tweaks.
0a4a0819 3038 * utils.c: Whitespace tweaks.
d183932d
MS
3039 * tracepoint.[ch]: Whitespace tweaks.
3040 * solist.h: Whitespace tweaks.
3041
6b1b7650
AC
30422005-01-13 Andrew Cagney <cagney@gnu.org>
3043
b315da38
AC
3044 * exceptions.h (struct exception): Make message const.
3045 * mi/mi-main.c (mi_execute_command): Pass result.message directly
3046 to fputstr_unfiltered.
3047
79e714b4
AC
30482005-01-13 Michael Snyder <msnyder@redhat.com>
3049
3050 * stack.c: Whitespace tweaks.
3051 * somsolib.[ch]: Whitespace tweaks.
3052 * solib-aix.c: Whitespace tweaks.
3053 * solib.c: Whitespace tweaks.
3054 * solib-frv.c: Whitespace tweaks.
3055 * solib.h: Whitespace tweaks.
3056 * solib-irix.c: Whitespace tweaks.
3057 * solib-som.c: Whitespace tweaks.
3058 * solib-sunos.c: Whitespace tweaks.
3059 * solib-svr4.[ch]: Whitespace tweaks.
3060 * ser-tcp.c: Whitespace tweaks.
3061 * ser-unix.c: Whitespace tweaks.
3062 * serial.h: Whitespace tweaks.
3063 * scm-valprint.c: Whitespace tweaks.
3064 * rs6000-tdep.c: Whitespace tweaks.
3065 * rs6000-nat.c: Whitespace tweaks.
3066 * remote.c: Whitespace tweaks.
3067
30682005-01-13 Andrew Cagney <cagney@gnu.org>
3069
6b1b7650
AC
3070 * defs.h (error_last_message, error_init): Delete declaration.
3071 * utils.c (fatal, vfatal): Call throw_vfatal.
3072 (error, verror): Call throw_verror;
3073 (do_write, error_stream_1): Delete function.
3074 (error_stream): Simplify, call error.
3075 (error_last_message, error_init, gdb_lasterr): Delete.
3076 (error_silent): Simplify, call throw_vsilent.
3077 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
3078 * main.c (captured_main): Delete call to error_init.
3079 * exceptions.c (throw_verror, throw_verror)
3080 (throw_vsilent): New functions.
3081 (do_write, print_and_throw): New functions.
3082 (last_message): New global.
3083 (throw_reason): Replace error_last_message with last_message.
3084 (catch_exceptions_with_msg): Dup the message.
3085 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
3086 Declare.
3087
4791eb66
MS
30882005-01-13 Michael Snyder <msnyder@redhat.com>
3089
90c065fb 3090 * remote-st.c: Whitespace tweaks.
8a0ce09a 3091 * remote-sim.c: Whitespace tweaks.
1fa79fac 3092 * remote-mips.c: Whitespace tweaks.
beda9597 3093 * pa64solib.[ch]: Whitespace tweaks.
28397f59 3094 * mdebugread.c: Whitespace tweaks.
ba5e7e8d 3095 * main.c: Whitespace tweaks.
907d819a 3096 * interps.c: Whitespace tweaks.
9d1ff73f 3097 * infrun.c: Whitespace tweaks.
1f5d0fc9 3098 * infcmd.c: Whitespace tweaks.
d9788fe8 3099 * hpux-thread.c: Whitespace tweaks.
3b951200 3100 * hppa-hpux-tdep.c: Whitespace tweaks.
3a9a986f 3101 * gdbcore.h: Whitespace tweaks.
d3f17821 3102 * gdbcmd.h: Whitespace tweaks.
30867156 3103 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
de6854b5 3104 * corefile.c: Whitespace tweaks.
03717487 3105 * completer.c: Whitespace tweaks.
9b5c5aad
MS
3106 * coff-solib.c: Whitespace tweaks.
3107 * coff-solib.h: Whitespace tweaks.
30fdc99f 3108 * cli-out.c: Whitespace tweaks.
1272ad14 3109 * breakpoint.c: Whitespace tweaks.
4791eb66
MS
3110 * cli/cli-interp.c: Tweak comments, per coding standard.
3111
f30f06b8
AC
31122005-01-13 Andrew Cagney <cagney@gnu.org>
3113
ce43223b
AC
3114 * breakpoint.c (gdb_breakpoint_query): Update, use
3115 catch_exceptions_with_msg.
3116 (do_captured_breakpoint): Add uiout parameter.
3117 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
3118 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
3119 gdb_thread_select. Return MI_CMD_ERROR instead of
3120 MI_CMD_CAUGHT_ERROR.
3121 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
3122 (enum captured_mi_execute_command_actions): Delete
3123 EXECUTE_COMMAND_DISPLAY_ERROR.
3124 (captured_mi_execute_command): Delete code handling
3125 MI_CMD_CAUGHT_ERROR.
3126 (mi_execute_command): Don't check for
3127 EXECUTE_COMMAND_DISPLAY_ERROR.
3128 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
3129 gdb_breakpoint_query.
3130 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
3131 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
3132 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
3133 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
3134 parameter.
3135 * thread.c (thread_command): Update call.
3136 (gdb_thread_select, gdb_list_thread_ids): Update, call
3137 catch_exceptions_with_msg.
3138
f30f06b8
AC
3139 * mi/mi-main.c (mi_execute_command): Use catch_exception,
3140 eliminate call to error_last_message.
3141 (captured_mi_execute_command): Change return type to void.
3142
2a78bfb5
AC
31432005-01-12 Andrew Cagney <cagney@gnu.org>
3144
c1043fc2
AC
3145 * exceptions.c (exception_none): New variable.
3146 * Makefile.in: Update dependencies.
3147 * interps.c: Include "exceptions.h".
3148 (interpreter_exec_cmd, interp_exec): Update to return "struct
3149 exception"
3150 * exceptions.h (no_exception): Declare.
3151 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
3152 * mi/mi-interp.c: Include "exceptions.h".
3153 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
3154 'struct exception".
3155 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
3156 (do_captured_execute_command): Update to use catch_exception.
3157 * interps.h: Include "exceptions.h".
3158 (interp_exec_ftype, interp_exec): Return "struct exception".
3159
2a78bfb5
AC
3160 * exceptions.h (throw_reason): Rename throw_exception.
3161 (enum errors, struct exception): Define.
3162 (catch_exception_ftype): Define.
3163 (catch_exception, throw_exception): Declare.
3164 * exceptions.c (throw_exception): Rewrite.
3165 (throw_reason): New function.
3166 (struct catcher, catcher_state_machine): Replace "reason" with
3167 "exception", delete "gdberrmsg".
3168 (catch_exception): New function.
3169 (catcher_init): Replace "gdberrmsg" parameter with "exception".
3170 (catch_errors, catch_exceptions_with_msg): Re-implement passing
3171 exception to catcher_init.
3172 * utils.c (error_silent, error_stream_1): Use throw_reason.
3173 (internal_verror, quit): Ditto.
3174 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
3175 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
3176 * remote.c (remote_open_1, interrupt_query): Ditto.
3177
8b1ca062
MK
31782005-01-12 Mark Kettenis <kettenis@gnu.org>
3179
fa565c2b
MK
3180 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
3181 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
3182 (i386fbsd_jmp_buf_reg_offset): New variable.
3183 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
3184 functions.
3185 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
3186 * Makefile.in (i386fbsd-tdep.o): Update dependency.
3187 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
3188
82f5c14f
MK
3189 * bsd-uthread.h: New file.
3190 * bsd-uthread.c: New file.
3191 * Makefile.in (bsd_uthread_h): New variable.
3192 (ALLDEPFILES): Add bsd-uthread.c.
3193 (bsd-uthread.o): New dependency.
3194
42a6e6a0
MK
3195 * solib.h Update copyright year.
3196 (struct so_list): Forward declaration.
3197 (solib_read_symbols): New prototype.
3198 * solib.c (solib_read_symbols): New function.
3199 (solib_add): Call solib_read_symbols to read in symbols.
3200 (update_solib_list): Call observer_notify_solib_loaded.
3201
8b1ca062
MK
3202 * i386bsd-nat.c: Update copyright year. Don't include
3203 <sys/param.h> and <sys/user.h>.
3204 (register_u_addr, kernel_u_size): Remove functions.
3205 * config/i386/obsd.mh (NAT_FILE): Remove.
3206 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
3207 * config/i386/nm-obsd.h: Remove file.
3208
60250e8b
AC
32092005-01-12 Andrew Cagney <cagney@gnu.org>
3210
db5f402d
AC
3211 * exceptions.c: Include "gdb_string.h".
3212 (enum catcher_state, struct catcher): Define.
3213 (current_catcher): New global, replaces catch_return;
3214 (catch_return): Delete.
3215 (throw_exception): Use current_catcher->buf;
3216 (catcher_init, catcher_pop, catcher_state_machine): New functions.
3217 (catcher): Delete.
3218 (struct catch_errors_args): Delete.
3219 (do_catch_errors): Delete.
3220 (catch_exceptions): Replace body with call to
3221 catch_exceptions_with_msg.
3222 (catcher): Delete.
3223 (catch_exceptions_with_msg, catch_errors): Re-implement using
3224 catcher_state_machine.
3225
60250e8b
AC
3226 * exceptions.h (enum return_reason, RETURN_MASK)
3227 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
3228 (return_mask, throw_exception, catch_exceptions_ftype)
3229 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
3230 (catch_command_errors_ftype, catch_command_errors): Move to
3231 exceptions.h.
3232 * exceptions.c, exceptions.h: New files.
3233 * top.c: Do not include <setjmp.h>.
3234 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
3235 (throw_exception, catcher, catch_exceptions)
3236 (catch_exceptions_with_msg, struct catch_errors_args)
3237 (do_catch_errors, catch_errors, struct captured_command_args)
3238 (do_captured_command, catch_command_errors): Move to exceptions.c.
3239 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
3240 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
3241 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
3242 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
3243 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
3244 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
3245 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
3246 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
3247 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
3248 * ada-valprint.c, ada-lang.c: Ditto.
3249 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
3250 exceptions.o. Update all dependencies.
3251
ca14ead7
MK
32522005-01-11 Mark Kettenis <kettenis@gnu.org>
3253
eafc7eea
MK
3254 * config/i386/nm-fbsd.h: Update copyright year.
3255 Don't include "config/nm-bsd.h".
3256 (KERNEL_U_SIZE): Remove macro.
3257 (kernel_u_size): Remove prototype.
3258
ca14ead7
MK
3259 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
3260 * config/vax/nm-nbsdaout.h: Remove file.
3261
4a39d934
EZ
32622005-01-10 Elena Zannoni <ezannoni@redhat.com>
3263
3264 * MAINTAINERS: Remove self from sh/sh64 maintainership.
3265
93f0f986
AC
32662005-01-10 Andrew Cagney <cagney@gnu.org>
3267
c4f9e2bf
AC
3268 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
3269 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
3270 maintainer.
3271
6b71dd74
AC
3272 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
3273 changes to CRIS.
3274
93f0f986
AC
3275 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
3276 COMMIT means can approve).
3277
8785ced0
MK
32782005-01-10 Mark Kettenis <kettenis@gnu.org>
3279
2a2de4ce
MK
3280 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
3281 (vax_register_u_offset): Make statuc.
3282 (_initialize_vax_nat): Construct and add target vector.
3283 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
3284 inftarg.o. Add inf-ptrace.o.
3285 * Makefile.in (vax-nat.o): Update dependencies.
3286
8785ced0
MK
3287 * inf-ptrace.h: Update copyright year. Sync comment with
3288 inf-ptrace.c.
3289 (inf_ptrace_trad_target): New prototype.
3290 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
3291 "gdb_assert.h"
3292 (inf_ptrace_target): Add comment.
3293 (inf_ptrace+register_u_offset): New variable.
3294 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
3295 (inf_ptrace_store_register, inf_ptrace_store_registers)
3296 (inf_ptrace_trad_target): New functions.
3297 * Makefile.in (inf-ptrace.o): Update dependencies.
3298
7cb9022a
MK
32992005-01-09 Mark Kettenis <kettenis@gnu.org>
3300
3301 * configure.ac: Provide prerequisite headers when checking
3302 <link.h>, <sys/proc.h> and <sys/user.h>.
3303 * configure: Regenerate.
3304
c534d641
MK
33052005-01-08 Mark Kettenis <kettenis@gnu.org>
3306
3307 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
3308 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
3309
4b48ac22
MK
33102005-01-07 Mark Kettenis <kettenis@gnu.org>
3311
3312 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
3313 Don't include "tm-ia64.h".
3314 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
3315 * config/ia64/tm-ia64.h: Remove. Move contents ...
3316 * ia64-tdep.h: ... here. Update copyright year.
3317
3ace7edb
AC
33182005-01-07 Andrew Cagney <cagney@gnu.org>
3319
bec39cab
AC
3320 * configure.ac: Rename configure.in, require autoconf 2.59.
3321 * configure: Re-generate.
3322
e14ecb8f
AC
3323 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
3324 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
3325 to configdirs.
3326
3ace7edb
AC
3327 * configure.in: Replace configdirs with multiple references to
3328 AC_CONFIG_SUBDIRS.
3329 * configure: Re-generate.
3330
b33e8514
AS
33312005-01-05 Andreas Schwab <schwab@suse.de>
3332
3333 * ia64-tdep.c: Include "osabi.h".
3334 (native_find_global_pointer): Delete.
3335 (ia64_find_global_pointer): Renamed from
3336 generic_elf_find_global_pointer.
3337 (FIND_GLOBAL_POINTER): Delete. Change all users to call
3338 ia64_find_global_pointer instead.
3339 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
3340 to ia64_linux_sigcontext_register_address and
3341 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
3342 (_initialize_ia64_tdep): Call gdbarch_register instead of
3343 deprecated register_gdbarch_init.
3344 (struct gdbarch_tdep): Remove find_global_pointer field and move
3345 to ...
3346 * ia64-tdep.h (struct gdbarch_tdep): ... here.
3347 (ia64_linux_sigcontext_register_address): Remove declaration.
3348 (ia64_linux_getunwind_table): Likewise.
3349 (ia64_linux_write_pc): Likewise.
3350 * ia64-linux-tdep.c: Include "osabi.h".
3351 (ia64_linux_sigcontext_register_address): Make static.
3352 (ia64_linux_write_pc): Likewise.
3353 (ia64_linux_init_abi): New.
3354 (_initialize_ia64_linux_tdep): New.
3355 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
3356 $(osabi_h).
3357
0ea390ed
KB
33582005-01-05 Kevin Buettner <kevinb@redhat.com>
3359
3360 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
3361 functions in ia64-aix-tdep.c.
3362 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
3363 function defined in ia64-aix-tdep.c.
3364 * ia64-aix-tdep.c: Remove file.
3365 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
3366 this list.
3367 * Makefile.in (ia64-aix-tdep.o): Delete.
3368
edefbb7c
AC
33692005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3370
3371 Committed by Andrew Cagney.
3372 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
3373 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
3374 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
3375 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
3376 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
3377 * aix-thread.c (_initialize_aix_thread): Get rid of the
3378 deprecated_add_show_from_set call.
3379 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3380 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3381 * command.h (add_setshow_enum_cmd): Add arguments for returning
3382 new list elements.
3383 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
3384 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
3385 add_setshow_enum_cmd.
3386
a260932f
MK
33872005-01-04 Mark Kettenis <kettenis@gnu.org>
3388
34cf1994
MK
3389 * configure.host (ia64-*-aix*): Remove.
3390 * configure.tgt (ia64-*-aix*): Remove.
3391 * config/ia64/aix.mh: Remove file.
3392 * config/ia64/aix.mt: Remove file.
3393 * config/ia64/tm-aix.h: Remove file.
3394 * ia64-aix-nat.c: Remove file.
3395 * Makefile.in (ia64-aix-nat.o): Remove dependency.
3396
a260932f
MK
3397 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
3398 Add back inf-ptrace.o.
3399
5ed102a1
AC
34002005-01-04 Andrew Cagney <cagney@gnu.org>
3401
3402 * version.in: Change format from 6.3.50_2005-01-04-cvs to
3403 6.3.50.20050104-cvs.
3404
3a63c4b7
AS
34052005-01-04 Andreas Schwab <schwab@suse.de>
3406
3407 * breakpoint.c (break_command_1): Always free err_msg before
3408 returning when an exception was caught.
3409
e22b26cb
JB
34102005-01-01 Joel Brobecker <brobecker@gnat.com>
3411
3412 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
3413 in register number for addil instruction.
3414
151c5df6 3415For older changes see ChangeLog-2004.
c906108c
SS
3416\f
3417Local Variables:
3418mode: change-log
3419left-margin: 8
3420fill-column: 74
3421version-control: never
3422End:
This page took 1.00123 seconds and 4 git commands to generate.