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