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