gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3d00d119
DJ
12006-08-08 Vladimir Prus <vladimir@codesourcery.com>
2
3 * symfile.c (download_write_size): Remove.
4 (show_download_write_size): Remove.
5 (load_section_callback): Don't use download_write_size.
6 (_initialize_symfile): Don't register download_write_size.
7 * NEWS: Mention 'download-write-size' removal.
8
0534816d
DJ
92006-08-06 Daniel Jacobowitz <dan@codesourcery.com>
10
11 * expprint.c (print_subexp_standard, dump_subexp_body_standard): Add
12 support for member pointers.
13
47ccd048
MK
142006-08-02 Mark Kettenis <kettenis@gnu.org>
15
16 * arm-tdep.h: Add multiple inclusion protection.
17 (struct gdbarch): Add forward declaration.
18 (armobsd_regset_from_core_section): New prototype.
19 * armbsd-tdep.c: New file.
20 * armobsd-tdep.c: Include "gdb_string.h".
21 (armobsd_init_abi): Set regset_from_core_section.
22 (armobsd_core_osabi_sniffer): New function.
23 (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer.
24 * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c.
25 (armbsd-tdep.o): New dependency.
26 (armnbsd-tdep.o): Update dependencies.
27 * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
28
87177905
TS
292006-08-02 Thiemo Seufer <ths@mips.com>
30
31 * linux-thread-db.c (thread_db_get_thread_local_address): Fix type
32 mismatch.
33 * tui/tui-stack.c (tui_show_frame_info): Likewise.
34
a22229c4
DJ
352006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
36
37 * c-exp.y (type): Remove incorrect pointer to member case.
38 * objc-exp.y (type): Likewise.
39 * p-exp.y (type): Likewise.
40
7c00367c
MK
412006-08-01 Mark Kettenis <kettenis@gnu.org>
42
43 * arm-tdep.h (enum struct_return): New.
44 (struct gdbarch_tdep): Add struct_return member.
45 * arm-tdep.c (arm_return_value): Return
46 RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
47 pcc_struct_return.
48 (arm_gdbarch_init): Default to reg_struct_return.
49 * armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
50
4816ec69
MK
512006-07-31 Mark Kettenis <kettenis@gnu.org>
52
53 * alpha-tdep.h (ALPHA_S0_REGNUM): New define.
54 * alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>,
55 <machine/pcb.h> and "bsd-kvm.h".
56 (alphabsd_supply_pcb): New function.
57 (_initialize_alphabsd_nat): Enable libkvm interface.
58 * Makefile.in (alphabsd-nat.o): Update dependencies.
59 * config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
60 (LOADLIBES): New variable.
61 * config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
62 (LOADLIBES): New variable.
63
35d5d4ee
FF
642006-07-31 Fred Fish <fnf@specifix.com>
65
66 * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
67 instead of calling frame_obstack_zalloc directly.
68 (arm_make_stub_cache): Ditto.
69 * frame-unwind.h: Ditto.
70 * frame.c (create_new_frame): Ditto.
71
0f9e5f32
BW
722006-07-27 Bob Wilson <bob.wilson@acm.org>
73
74 * MAINTAINERS (Write After Approval): Add myself.
75
e896d70e
DJ
762006-07-27 Bob Wilson <bob.wilson@acm.org>
77
78 * main.c (captured_main): Print a newline after calling
79 print_gdb_version instead of waiting until after the symbol file
80 has been read. Adjust error_pre_print, quit_pre_print, and
81 warning_pre_print values.
82
f58b68aa
DJ
832006-07-27 Roger Sayle <roger@eyesopen.com>
84 Daniel Jacobowitz <dan@codesourcery.com>
85
86 * irix5-nat.c (fetch_core_registers): Simplify and correct logic.
87
159f81f3
DJ
882006-07-27 Daniel Jacobowitz <dan@codesourcery.com>
89
90 * target.h (target_read_stralloc): New prototype.
91 * target.c (target_read_alloc_1): Renamed from target_read_alloc.
92 Take new PADDING argument.
93 (target_read_alloc): Use it.
94 (target_read_stralloc): New function.
95
40e57cf2
DJ
962006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
97
98 * remote.c (remote_protocol_features): Correct qPart to qXfer.
99
ab5c9f60
DJ
1002006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
101
102 * eval.c (evaluate_subexp_for_address): Don't incorrectly discard
103 calls to C++ operator*.
104
725a826f
DJ
1052006-07-24 Roger Sayle <roger@eyesopen.com>
106 Daniel Jacobowitz <dan@codesourcery.com>
107
108 * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
109 (gdb_int64_bytes): Likewise.
110 (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
111 as first argument to extract_unsigned_integer to silence compiler
112 warnings.
113
72dca2f5
FR
1142006-07-24 Frederic Riss <frederic.riss@st.com>
115
116 * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero
117 field.
118 (dwarf2_locate_sections): Initialize
119 dwarf2_per_objfile->has_section_at_zero.
120 (dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero
121 instead of HAS_RELOC test.
122 (read_partial_die): Ditto.
123
4c42eaff
DJ
1242006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
125
126 * corefile.c (reopen_exec_file): Only check for an open exec file.
127 Use exec_file_attach.
128 * exec.c (exec_open): Make static.
129 (exec_file_command): Don't use target_preopen. Query directly about
130 changing the file.
131 * gdbcore.h (exec_open): Remove prototype.
132
1332006-07-24 Frederic Riss <frederic.riss@st.com>
b05e64e5
FR
134
135 * regcache.c (struct regcache): Make register_valid_p a signed char
136 array.
137
3f64f7b1
DJ
1382006-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
139 Daniel Jacobowitz <dan@codesourcery.com>
140
141 * linux-thread-db.c (thread_db_wait): Remove libthread_db
142 after exec events.
143
6aec2e11
DJ
1442006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
145
146 * NEWS: Mention Windows cross debugging support.
147
83eba059
DJ
1482006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
149
150 * linux-nat.c (linux_nat_add_target): Remove extern.
151 * linux-nat.h (thread_db_init): New prototype.
152
b80864fb
DJ
1532006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
154
155 * configure.tgt: Build gdbserver for Cygwin and mingw32.
156
66a79c16
DJ
1572006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
158
159 * config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
160 * config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
161 * config/i386/tm-cygwin.h: Delete file.
162
fc5261f2
MK
1632006-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
164
165 * infrun.c (handle_inferior_event): Typo.
166
16026cd7
AS
1672006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
168
169 * cli/cli-cmds.c (source_verbose, trace_commands): New variables.
170 (source_script): New function.
171 (source_verbose_cleanup): New function.
172 (source_command): Move old contents to source_script.
173 Make function static. Parse -v option and call source_script.
174 (init_cli_cmds): Update source command help.
175 Add 'set trace-commands' command.
176 * cli/cli-script.c (command_next_depth): New static variable.
177 (suppress_next_print_command_trace): New static variable.
178 (reset_command_nest_depth): New function.
179 (print_command_trace): New function.
180 (execute_control_command): Split the continue_control and break_control
181 cases, add calls to print_command_trace and count the nest depth.
182 (while_command): Set suppress_next_print_command_trace.
183 (if_command): Likewise.
184 * top.c (execute_command): Call print_command_trace.
185 * cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
186 (source_command): Change to source_script.
187 * main.c (captued_main): Use source_script instead of source_command.
188 * top.h (source_command): Change to source_script.
189 * event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
190 * cli/cli-script.h (print_command_trace): Export.
191 (reset_command_nest_depth): Likewise.
192
16963cb6
DJ
1932006-07-20 Daniel Jacobowitz <dan@codesourcery.com>
194
195 * eval.c (evaluate_struct_tuple): Skip static fields.
196
6b26d61a
MK
1972006-07-19 Mark Kettenis <kettenis@gnu.org>
198
6ea0ec3f
MK
199 * alphaobsd-tdep.c: Include "obsd-tdep.h".
200 (alphaobsd_init_abi): Set skip_solib_resolver.
201 * Makefile.in (alphaobsd-tdep.o): Update dependencies.
202 * config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
203
6b26d61a
MK
204 * arm-tdep.c (arm_gdbarch_init): Get default floating-point model
205 from ELF flags for binaries produced by the GNU toolchain.
206
86cc68a8
NS
2072006-07-18 Nathan Sidwell <nathan@codesourcery.com>
208
209 * remote-fileio.c (remote_fileio_func_rename): Reorder to process
210 input buffer before reading memory.
211 (remote_fileio_func_stat): Likewise.
212
29e8a844
DJ
2132006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
214
215 * blockframe.c (find_pc_partial_function): Use the minimal symbol
216 size to control the cache entry, if available.
217 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
218 symbols with zero and non-zero sizes differently.
219
28b17333
DJ
2202006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
221
222 * linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
223 (td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
224 (thread_db_fetch_registers, thread_db_store_registers)
225 (thread_db_thread_alive, thread_db_state_str): Delete.
226 (thread_db_load): Don't look up regset functions.
227 (thread_db_pid_to_str): Simplify.
228 (thread_db_extra_thread_info): New.
229 (init_thread_db_ops): Do not set to_fetch_registers,
230 to_store_registers, or to_thread_alive. Set to_extra_thread_info.
231 * Makefile.in: Remove linux-thread-db.o rule.
232
e3ac4a1e
MK
2332006-07-18 Mark Kettenis <kettenis@gnu.org>
234
235 * armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
236 (armobsd_sigframe_init): New function.
237 (armobsd_sigframe): New variable.
238 (armobsd_init_abi): Prepend armobsd_sigframe unwinder.
239 * Makefile.in (armobsd-tdep.o): Update dependencies.
240
08ae6d95
DJ
2412006-07-18 Denis PILAT <denis.pilat@st.com>
242
243 * monitor.c: Remove unused prototypes.
244
6962ad99
VP
2452006-07-18 Vladimir Prus <vladimir@codesourcery.com>
246
247 * target.c (tcomplain): Mark with ATTR_NORETURN.
248
0152ebd7
VP
249 * defs.h (print_transfer_performance): Improve comments.
250
aa88762a
MK
2512006-07-17 Mark Kettenis <kettenis@gnu.org>
252
675dcf4f
MK
253 * printcmd.c: Coding style fixes: add missing spaces in comments
254 and wrapping long lines.
255 (delete_display, enable_display_command, disable_display_command)
256 (printf_command, display_info, undisplay_command, free_display)
257 (display_command, x_command, address_info, set_command)
258 (inspect_command, call_command, print_command, print_command_1)
259 (validate_format, print_formatted, decode_format, sym_format):
260 Remove prototypes.
261 (x_command): Make static.
262 (printf_command): Convert error into internal consistency check.
263 (address_info): Avoid assignment within function call.
264 (printf_command): Avoid redundant cast.
265 * tracepoint.c (x_command): Remove extern prototype.
266
aa88762a
MK
267 * armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
268 * Makefile.in (armobsd-tdep.o): Update dependencies.
269 * config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
270
1cd566a4
MK
2712006-07-16 Mark Kettenis <kettenis@gnu.org>
272
a58dc200
MK
273 * armobsd-tdep.c: New file.
274 * Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
275 (armobsd-tdep.o): New dependency.
276 * config/arm/obsd.mt: New file.
277 * configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
278
d7b7af6f 279 * gdbarch.sh (deprecated_saved_pc_after_call): Delete.
a4bc5cf9 280 * gdbarch.h, gdbarch.c: Re-generate.
d7b7af6f 281
1cd566a4
MK
282 * arm-tdep.c (arm_saved_pc_after_call): Delete.
283 (arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
284
96ffcb62
AS
2852006-07-16 Alfred M. Szmidt <ams@gnu.org>
286
287 * gnu-nat.c: Undefine _process_user_ before including
288 <hurd/process_request.h>.
289 (gnu_resume): Supply missing argument to error().
290 (gnu_read_inferior): Add extra parenthesis around arithmetic
291 expression to silence warnings from GCC.
292 (gnu_write_inferior): Likewise.
293 (gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
294
424f3115
MK
2952006-07-16 Mark Kettenis <kettenis@gnu.org>
296
297 * armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
298 svr4_ilp_fetch_link_map_offsets.
299
a4ab4a25
MK
3002006-07-15 Mark Kettenis <kettenis@gnu.org>
301
302 * armnbsd-tdep.c: Don't include "nbsd-tdep.h".
303 * config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
304 (DEPRECATED_TM_FILE): Remove.
305 * Makefile.in (armnbsd-tdep.o): Update dependencies.
306
cd24f626
JB
3072006-07-14 Joel Brobecker <brobecker@adacore.com>
308
309 * PROBLEMS: Document threads/2137.
310
06d65a1d
MK
3112006-07-13 Mark Kettenis <kettenis@gnu.org>
312
313 * config/alpha/tm-nbsd.h: Remove file.
314 * config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
315
4844f454
CV
3162006-07-13 Corinna Vinschen <vinschen@redhat.com>
317
318 * mips-tdep.c (mips_integer_to_address): Simplify be calling
319 extract_signed_integer directly. Fix comment.
320
7830cb4f
CV
3212006-07-13 Corinna Vinschen <vinschen@redhat.com>
322
323 * m32c-tdep.c (m32c_banked_register): New function.
324 (m32c_banked_read): Use m32c_banked_register function to evaluate
325 real register number.
326 (m32c_banked_write): Ditto.
327 (m32c_virtual_frame_pointer): New function.
328 (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
329
9bb47d95
NS
3302006-07-13 Nathan Sidwell <nathan@codesourcery.com>
331
332 * m68k-tdep.c (m68k_frame_align): New.
333 (m68k_gdbarch_init): Set frame_align here.
334
9af2a054
AS
3352006-07-13 Denis PILAT <denis.pilat@st.com>
336
337 * interps.c (interpreter_completer): Allocate one more item to the
338 'matches' list and set them all to 0 with a xcalloc.
339
79ee37bc
NR
3402006-07-13 Nick Roberts <nickrob@snap.net.nz>
341
342 * annotate.c (annotate_frame_begin): Re-instate frame-begin
343 annotation for level 3 annotations.
344
fb933624
DJ
3452006-07-13 Paul N. Hilfinger <Hilfinger@adacore.com>
346 Daniel Jacobowitz <dan@codesourcery.com>
347
348 * infcall.c (value_arg_coerce): Use value_cast_pointers for
349 references. Avoid value_cast to a reference type. Don't silently
350 convert pointers to references.
351 * valops.c (value_cast_pointers): New, based on value_cast.
352 (value_cast): Use it. Reject reference types.
353 (value_ref): New.
354 (typecmp): Use it.
355 * value.h (value_cast_pointers, value_ref): New prototypes.
356
d49c44d5
DJ
3572006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
358
359 * remote.c (unpack_varlen_hex): Correct type of retval.
360 Reported by Zhigang Gong <zhigang.gong@gmail.com>.
361
99bcc461
DJ
3622006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
363
364 * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
365 or missing location list information. Suggested by Jan
366 Kratochvil <lace@jankratochvil.net>.
367
cb587d83
DJ
3682006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
369
370 * Makefile.in (arm_linux_tdep_h): New variable.
371 (arm-linux-nat.o, arm-linux-tdep.o): Update.
372 * arm-linux-nat.c: Include "arm-linux-tdep.h".
373 (typeNone, typeSingle, typeDouble, typeExtended)
374 (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
375 (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
376 (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
377 (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
378 Delete.
379 (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
380 Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
381 and collect_nwfpe_register.
382 (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
383 new regset functions.
384 * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
385 (arm_apcs_32): New declaration.
386 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
387 (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
388 (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
389 (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
390 (arm_linux_regset_from_core_section): New.
391 (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
392 * arm-linux-tdep.h: New file.
393 * arm-tdep.h (struct regset): Declare.
394 (struct gdbarch_tdep): Add gregset, fpregset members.
395 * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
396 core-regset.o.
397 * config/arm/linux.mt (TDEPFILES): Add corelow.o.
398
8802d8ed
DJ
3992006-07-12 Jan Kratochvil <lace@jankratochvil.net>
400
401 * infrun.c (handle_inferior_event): Fixed typos in printf.
402
6765f3e5
DJ
4032006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
404 Nathan Sidwell <nathan@codesourcery.com>
405
406 * remote.c (REMOTE_ALIGN_WRITES): New.
407 (remote_write_bytes): Align large write packets. Remove unused
408 payload_start variable.
409
0876f84a
DJ
4102006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
411
412 * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
413 (remote_supported_packet): Remove #if 0.
414 (remote_protocol_features): Add qPart:auxv:read.
415 (remote_unescape_input): New function.
416 (readchar): Don't mask off the high bit.
417 (read_frame): Use fputstrn_filtered for packet data.
418 (getpkt_sane): Return the number of bytes read or -1. Use
419 fputstrn_unfiltered.
420 (remote_read_qxfer): New.
421 (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
422 (_initialize_remote): Update packet registration.
423 * defs.h (fputstrn_filtered): New prototype.
424 * utils.c (fputstrn_filtered): New.
425 * NEWS: Mention qXfer.
426
13547ab6
DJ
4272006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
428
429 * target.c (target_read): Stop if target_read_partial returns 0
430 when some bytes have already been read.
431 (target_write): Likewise for target_write_partial.
432 (target_read_partial, target_write_partial): Make static.
433 (target_read_alloc): New.
434 * target.h: Doc fixes.
435 (target_read_partial, target_write_partial): Delete prototypes.
436 (target_read_alloc): New prototype.
437
438 * auxv.c (target_auxv_read): Delete.
439 (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
440 * auxv.h (target_auxv_read): Delete prototype.
441 * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
442 * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
443 * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
444 * procfs.c (procfs_make_note_section): Likewise.
445 * remote.c (remote_xfer_partial): Don't loop here.
446 * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
447
edfb1a26
DJ
4482006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
449
450 * arm-linux-tdep.c: Doc fixes.
451 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
452 (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
453 (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
454 constants.
455 (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
456 the new signal frame layouts.
457
6e2c7fa1
DJ
4582006-07-12 Mike Frysinger <vapier@gentoo.org>:
459 Daniel Jacobowitz <dan@codesourcery.com>
460
461 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
462 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
463 * gdbarch.sh: Correct comment.
464
e0f2823e
DJ
4652006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
466
467 * MAINTAINERS: Add Alfred Szmidt for the Hurd.
468
24c41760
MK
4692006-07-11 Mark Kettenis <kettenis@gnu.org>
470
471 * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
472
8a112c90
MK
4732006-07-10 Mark Kettenis <kettenis@gnu.org>
474
475 * alphaobsd-tdep.c: New file.
476 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
477 handler for GDB_OSABI_OPENBSD_ELF.
478 * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
479 (alphaobsd-tdep.o): New target.
480 * config/alpha/obsd.mt: New file.
481 * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
482
9823e921
RH
4832006-07-10 Richard Henderson <rth@redhat.com>
484
485 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
486 * alpha-tdep.c (alpha_register_byte): Remove.
487 (alpha_extract_struct_value_address): Remove.
488 (alpha_return_value): New.
489 (alpha_return_in_memory_always): New.
490 (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
491 set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
492 instead of set_gdbarch_deprecated_use_struct_convention,
493 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
494 or set_gdbarch_deprecated_extract_struct_value_address.
495 * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
496 alphafbsd_use_struct_convention, remove gcc_p argument.
497 (alphafbsd_init_abi): Set tdep->return_in_memory instead of
498 set_gdbarch_deprecated_use_struct_convention.
499
789f3b5f
MK
5002006-07-09 Mark Kettenis <kettenis@gnu.org>
501
b0ca8573
MK
502 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
503 prototype.
504 * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
505 a.out-style core file format here. Make global.
506 (alphanbsd_regset_from_core_section): Remove.
507 (alphanbsd_sigtramp_offset): Make static.
508 (alphanbsd_aout_init_abi): Remove.
509 (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
510 a.out style core files.
511 (_initialize_alphanbsd_tdep): Do not register a handler for
512 GDB_OSABI_NETBSD_AOUT.
513
3beabdb2 514 * alphabsd-tdep.h: Tweak comments.
3b03cc43 515 (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
3beabdb2
MK
516 * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
517 (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
518 (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
519 (alphanbsd_aout_supply_gregset): New functions.
520 (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
521 New variables.
522 (alphanbsd_regset_from_core_section)
523 (alphanbsd_aout_regset_from_core_section): New functions.
524 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
525 (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
526 (alphanbsd_init_abi): Set regset_from_core_section.
527 (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
528 functions.
529 (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
530 Use alphanbsd_aout_init_abi whre appropriate. Don't call
531 deprecated_add_core_fns.
532 * Makefile.in (alphanbsd-tdep.o): Update dependencies.
533
8fe7c54b
MK
534 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
535 (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
536
789f3b5f
MK
537 * alphanbsd-tdep.c (alphanbsd_init_abi): Use
538 svr4_lp64_fetch_link_map_offsets instead of
539 nbsd_lp64_solib_svr4_fetch_link_map_offsets.
540
09153d55
AS
5412006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
542
543 * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
544 write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
545 write_exp_elt_intern): Zero initialize tmp.
546
2ec3381a
DJ
5472006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
548
549 * remote.c (remote_xfer_partial): Remove KOD support.
550 * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
551 * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
071d802b
MK
552 * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
553 Remove KOD support.
2ec3381a
DJ
554 * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
555 * NEWS: Mention KOD.
556 * kod.h, kod.c, kod-cisco.c: Delete files.
557
7fca722e
DJ
5582006-07-04 Daniel Jacobowitz <dan@codesourcery.com>
559
560 * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
561
4a35b02a
NW
5622006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
563
564 * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
565 write_files is set.
566
a6f0780a
EZ
5672006-06-24 Eli Zaretskii <eliz@gnu.org>
568
569 * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
570
e4c16157
DJ
5712006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
572
573 * arm-tdep.c (arm_register_type): Use unsigned types for registers.
574 Add special types for sp and pc.
575 * Makefile.in (arm-tdep.o): Update.
576
a31ea83d
DJ
5772006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
578
579 * remote.c (remote_escape_output): New function.
580 (remote_write_bytes): Use remote_escape_output.
581
be2a5f71
DJ
5822006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
583
584 * NEWS: Mention qSupported.
585 * remote.c (struct remote_state): Add explicit_packet_size.
586 (get_remote_packet_size): Check explicit_packet_size.
587 (get_memory_packet_size): Likewise.
588 (PACKET_qSupported): New enum value.
589 (struct protocol_feature, remote_supported_packet)
590 (remote_packet_size, remote_protocol_features)
591 (remote_query_supported): New.
592 (remote_open_1): Reset explicit_packet_size. Call
593 remote_query_supported.
594 (_initialize_remote): Register qSupported.
595
42b575e5
AS
5962006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
597
598 * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
599
9ae03986
JB
6002006-06-20 Joel Brobecker <brobecker@adacore.com>
601
602 * GDB 6.5 released from GDB 6.5 branch.
603
8b07f6d8
MS
6042006-06-19 Michael Snyder <msnyder@redhat.com>
605
606 * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
607 decide how many registers it takes to pass a floating point
608 argument, what matters is the size of a floating point register
609 (not the size of a general purpose register).
610 (mips_o32_push_dummy_call): Ditto.
611
ec5a4d75
KI
6122006-06-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
613
614 * configure.tgt: Add gdbserver support for m32r-linux.
615
8d3239d5
MK
6162006-06-18 Mark Kettenis <kettenis@gnu.org>
617
618 * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
619
14e60db5
DJ
6202006-06-15 Daniel Jacobowitz <dan@codesourcery.com>
621
622 * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
623 based on insert_step_resume_breakpoint_at_frame.
624 (handle_inferior_event): Update comments. Use
625 insert_step_resume_breakpoint_at_caller.
626 (insert_step_resume_breakpoint_at_frame): Revise comments.
627
81a17f79
JB
6282006-06-14 Daniel Jacobowitz <dan@codesourcery.com>
629
630 * dwarf2read.c (read_unspecified_type): New function.
631 (read_type_die): Handle DW_TAG_unspecified_type.
632 (Committed by Julian Brown.)
633
6490cafe
DJ
6342006-06-13 Daniel Jacobowitz <dan@codesourcery.com>
635
636 * symfile.c (load_command): Check for a changed executable before
637 "load".
638
22e47e37
FF
6392006-06-13 Fred Fish <fnf@specifix.com>
640
641 * mips-tdep.c (mips_find_long_section): New function.
642 (mips_gdbarch_init): Use it to set long and pointer sizes.
643
5600ea19
NS
6442006-06-13 Nathan Sidwell <nathan@codesourcery.com>
645
646 * remote-file.io.c (remote_fileio_func_system): Treat zero length
647 string as NULL. Adjust for NULL pointer argument.
648 * doc/gdb.texinfo (system): Document behaviour with zero length
649 string.
650
bb572ddd
DJ
6512006-06-12 Daniel Jacobowitz <dan@codesourcery.com>
652
653 * remote.c (set_remote_protocol_packet_cmd)
654 (show_remote_protocol_packet_cmd): New prototypes.
655 (remote_set_cmdlist, remote_show_cmdlist): Move higher.
656 (struct packet_config): Make name and title const.
657 (add_packet_config_cmd): Remove unnecessary arguments.
658 (_initialize_remote): Update calls.
659
98739726
DJ
6602006-06-10 Daniel Jacobowitz <dan@codesourcery.com>
661
662 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
663 before calling FD_ISSET. Correct check for exceptfds which
664 previously tested writefds.
665
2b949cb6
JB
6662006-06-09 Daniel Jacobowitz <dan@codesourcery.com>
667 Julian Brown <julian@codesourcery.com>
668
4a9d57ab 669 * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
2b949cb6 670
5b031165
JB
6712006-06-09 Julian Brown <julian@codesourcery.com>
672
673 * MAINTAINERS (Write After Approval): Add myself.
674
b2d6f210
MS
6752006-06-08 Michael Snyder <msnyder@redhat.com>
676
677 * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
678
1dd41f16
NS
6792006-06-08 Nathan Sidwell <nathan@codesourcery.com>
680
6dd0fba6
NS
681 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
682 (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
683 conversion. Use M68K_NUM_REGS for number of regs.
684
ad9a8f3f
NS
685 * remote-fileio.c (remote_fileio_reset): New.
686 * remote-fileio.h (remote_fileio_reset): Prototype.
687 * remote.c (extended_remote_restart, remote_open_1): Call it.
688
689 * remote.c (remote_open_1): Do preopen tasks before
1dd41f16
NS
690 irreversably destroying state.
691
ea9c271d
DJ
6922006-06-08 Daniel Jacobowitz <dan@codesourcery.com>
693
719abd53 694 * remote.c (struct remote_state): New type, only containing
ea9c271d
DJ
695 buf and buf_size.
696 (remote_state): New variable.
697 (get_remote_state): New function.
698 (struct remote_arch_state): Renamed from struct remote_state.
699 Removed buf and buf_size.
700 (get_remote_arch_state): Renamed from get_remote_state. All
701 necessary callers updated to call this function.
702 (init_remote_state): Initialize the architecture-specific state.
703 Update the target-specific state if necessary.
704 (get_remote_packet_size): New function. All previous references
705 changed to use this accessor function.
706 (packet_reg_from_regnum, packet_reg_from_pnum): Take a
707 remote_arch_state instead of a remote_state. All callers changed.
708 (_initialize_remote): Initialize the packet buffer here.
709
5cffb350
NS
7102006-06-06 Nathan Sidwell <nathan@codesourcery.com>
711
ea9c271d 712 * remote.c (remote_insert_watchpoint): Return -1, rather than
5cffb350
NS
713 fatal error if packet is disabled.
714 (remote_remove_watchpoint, remote_insert_hw_breakpoint,
715 remote_remove_hw_breakpoint): Likewise.
716
8a786d82
NR
7172006-06-02 Nick Roberts <nickrob@snap.net.nz>
718
719 * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
720
f49e4e6d
MS
7212006-05-31 Michael Snyder <msnyder@redhat.com>
722
723 * mips-tdep.c: Comment tweaks.
724
20e95c23
DJ
7252006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
726
727 * Makefile.in (top_builddir): Update comments.
728 (INTL_DIR, INTL_SRC): Delete.
729 (INTL, INTL_DEPS, INTL_CFLAGS): Update.
730 * acinclude.m4: Include new gettext macros.
731 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
732 CATALOGS code.
733 * aclocal.m4, configure: Regenerated.
734
9308fc88
DJ
7352006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
736
737 * Makefile.in (arm-linux-nat.o): Update dependencies.
738 * arm-linux-nat.c: Include "gdb_proc_service.h".
739 (PTRACE_GET_THREAD_AREA): Define.
740 (ps_get_thread_area): New function.
741
46ea248b
AO
7422006-05-28 Alexandre Oliva <aoliva@redhat.com>
743
744 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
745 DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
746 DWARF2_FRAME_REG_SAVED_VAL_EXP.
747 * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
748 val_offset_sf and val_expression.
749 (dwarf2_frame_prev_register): Handle the new reg rules.
750 (dwarf2_frame_this_id): Use pc instead of function entry point.
751
56c987f6
AO
7522006-05-28 Alexandre Oliva <aoliva@redhat.com>
753
754 * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
755 (dwarf2_frame_sniffer): Use it.
756 (decode_frame_entry_1): Set it according to augmentation "S".
757
5648af48
JB
7582006-05-27 Joel Brobecker <brobecker@adacore.com>
759
760 From Peter Schauer <peterschauer@gmx.net>
761 * m2-typeprint.c (m2_record_fields): Move variable declarations
762 to the begining of the block.
763
03a73f77
MM
7642006-05-23 Mark Mitchell <mark@codesourcery.com>
765
766 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
767 include additional registers.
768
769 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
770 Iscramb2, Qscramb2, Qchannel2.
771 (mt_register_name): Likewise.
772 (mt_copro_register_type): Describe ZI2 and ZQ2.
773
774 * mt-tdep.c (mt_gdb_regnums): Define
775 MT_COPRO_PSEUDOREG_MAC_REGNUM.
776 (mt_register_name): Use it.
777 (mt_copro_register_type): Likewise.
778 (mt_register_type): Likewise.
779 (mt_pseudo_register_read): Likewise. Read the MAC register, not
780 the coprocessor register.
781 (mt_pseudo_register_write): Likewise.
782
2b3c8945
CF
7832006-05-21 Christopher Faylor <cgf@timesys.com>
784
785 * win32-nat.c (cygwin_exceptions): New variable.
786 (handle_exception): Treat a cygwin exception like a normal exception if
787 cygwin_exceptions is true.
788 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
789
f79daebb
GM
7902006-05-20 Gaius Mulley <gaius@glam.ac.uk>
791
792 * NEWS: (Improved Modula-2 language support): New section.
793
b4e70030
JB
7942006-05-19 Joel Brobecker <brobecker@adacore.com>
795
796 * configure: Regenerate using proper version of autoconf.
797
a1f5b845
FF
7982006-05-19 Fred Fish <fnf@specifix.com>
799
800 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
801 * dwarfread.c: Fix spelling of 'unexpected'.
802 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
803 * stack.c: Fix spelling of 'RETURN_VALUE'.
804
82d03102
PG
8052006-05-18 Paul Gilliam <pgilliam@us.ibm.com
806
807 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
808
f2da6b3a
DJ
8092006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
810
811 * dwarf2-frame.c: Include "value.h".
812 (read_reg): Use unpack_long and register_type.
813 * Makefile.in (dwarf2-frame.o): Update.
814
1f5befc1
DJ
8152006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
816
817 * remote-rdp.c: Deleted.
818 * NEWS: Mention removal of remote-rdp.c.
819
820 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
821 (remote-rdp.o): Delete.
822 * README: Remove description of remote-rdp.c.
823 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
824 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
825
cd96dfc9
DJ
8262006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
827
828 * ser-e7kpc.c: Include <time.h> if it is available.
829
8302006-05-16 Joel Brobecker <brobecker@adacore.com>
e374b601
JB
831
832 * version.in (version.in): Bump version number to 6.5.50 now
833 that the gdb-6.5 branch has been created.
834 * NEWS: Create a new section for changes that are included
835 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
836 section.
837
13942a42
JB
8382006-05-16 Jim Blandy <jimb@codesourcery.com>
839
840 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
841 the Global Maintainers' invitation to be an authorized committer
842 for the Modula-2 support.
843
8599da2d
MK
8442006-05-15 Mark Kettenis <kettenis@gnu.org>
845
846 * ppcobsd-nat.c: Include "gdb_assert.h".
847 [PT_GETFPREGS] (getfpregs_supplies): New function.
848 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
849 versions that have PT_GETFPREGS.
850 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
851 ppcobsd_fpreg_offsets.
852 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
853 Declare.
854 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
855 variables.
856 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
857 * Makefile.in (ppcobsd-nat.o): Update dependencies.
858
4e8d927d
DJ
8592006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
860
861 * configure.ac: Use GCC_HEADER_STDINT.
862 * acinclude.m4: Include stdint.m4.
863 * Makefile.in (gdb_stdint_h): Define.
864 (distclean): Remove gdb_stdint.h.
865 (Makefile, stamp-h): Update rules to generate only the correct
866 files.
867 (gdb_stdint.h, stamp-int): New rules.
868 * config.in, configure: Regenerated.
869
19ca80ba
DJ
8702006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
871
872 * valprint.c: Include "exceptions.h".
873 (val_print): If something goes wrong while printing, supply an
874 error message.
875
245c7f48
DJ
8762006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
877
878 * source.c (get_current_source_symtab_and_line)
879 (set_current_source_symtab_and_line): Use { 0 }.
880 * cli/cli-cmds.c (list_command): Likewise.
881
53b33aeb
NR
8822006-05-14 Nick Roberts <nickrob@snap.net.nz>
883
884 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
885 (gdbmi): Use new variable name gdb-pc-address.
886 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
887 Check that a match has been found.
888
d3d3c7e6 8892006-05-13 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 890
d3d3c7e6 891 * m2-lang.h: Added function extern prototypes for
229582b7 892 m2_is_long_set and get_long_set_bounds.
d3d3c7e6
GM
893 * m2-typeprint.c: Complete replacement.
894 (m2_print_type): Walk the Modula-2 type tree.
895 (m2_type_name): New function.
896 (m2_range): New function.
897 (m2_typedef): New function.
898 (m2_array): New function.
899 (m2_pointer): New function.
900 (m2_ref): New function.
901 (m2_unknown): New function.
902 (m2_union): New function.
903 (m2_procedure): New function.
904 (m2_print_bounds): New function.
905 (m2_short_set): New function.
906 (m2_is_long_set): New function.
907 (m2_get_discrete_bounds): New function.
908 (m2_is_long_set_of_type): New function.
909 (m2_long_set): New function.
910 (m2_record_fields): New function.
911 (m2_enum): New function.
1c547afb 912 * dwarf2read.c: Modified.
d3d3c7e6
GM
913 (read_set_type): New function.
914 (process_die): Call read_set_type.
1c547afb 915 (read_base_type): Modifed.
d3d3c7e6 916 (set_cu_language): Added Modula-2 case clause.
1c547afb 917 * m2-valprint.c: Complete replacement.
d3d3c7e6
GM
918 (print_function_pointer_address): New function.
919 (get_long_set_bounds): New function.
920 (m2_print_long_set): New function.
921 (print_unpacked_pointer): New function.
922 (print_variable_at_address): New function.
923 (m2_val_print): Replaced.
924 * gdb/MAINTAINERS (Write After Approval): Added
925 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 926
def18405
MK
9272006-05-12 Mark Kettenis <kettenis@gnu.org>
928
929 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
930 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
931 (ppcnbsd_fill_fpreg): Remove prototypes.
932 (struct regset): Add forward declaration.
933 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
934 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
935 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
936 "value.h", target.h and nbsd-tdep.h". Reorder includes.
937 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
938 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
939 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
940 Remove macros.
941 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
942 (ppcnbsd_fill_fpreg): Remove functions.
943 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
944 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
945 (ppcnbsd_reg_offsets): New variable.
946 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
947 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
948 introduced in NetBSD 2.0.
949 (ppcnbsd_sigtramp): Provide complete signal trampoline.
950 (ppcnbsd2_sigtramp): New variable.
951 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
952 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
953 Add ppcnbs2_sigtramp unwinder.
954 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
955 Initialize ppcnbsd_reg_offsets.
956 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
957 (getregs_supplies): Use regnum instead of regno.
958 (getfpregs_supplies): Likewise.
959 (ppcnbsd_fetch_inferior_registers): Likewise. Call
960 ppc_supply_gregset and ppc_suppply_fpregset instead of
961 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
962 (ppcnbsd_store_inferior_registers): Likewise. Call
963 ppc_collect_gregset and ppc_collect_fpregset instead of
964 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
965 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
966 (_initialize_ppcnbsd_nat): Add some whitespace.
967 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
968 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
969 (NAT_FILE): Remove.
970 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
971
c4c50d37
DJ
9722006-05-11 Alfred M. Szmidt <ams@gnu.org>
973
974 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
975
576c2025
FF
9762006-05-11 Fred Fish <fnf@specifix.com>
977
978 * symtab.c (skip_prologue_using_sal): Handle single line functions
979 like "foo(){}", which may optimize down to a single return inst.
980
ba906c08
SE
9812006-05-10 Steve Ellcey <sje@cup.hp.com>
982
983 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
984 message.
985
4bf8967c
AS
9862006-05-09 Andreas Schwab <schwab@suse.de>
987
988 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
989 (execute_cfa_program): Add parameter eh_frame_p. Call
990 dwarf2_frame_eh_frame_regnum when true.
991 (dwarf2_frame_cache): Pass eh_frame_p from fde to
992 execute_cfa_program.
993 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
994 processing .eh_frame. Copy eh_frame_p to the new fde.
995 (struct dwarf2_frame_ops): Add eh_frame_regnum.
996 (dwarf2_frame_set_eh_frame_regnum): Define.
997 (dwarf2_frame_eh_frame_regnum): Define.
998
999 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
1000 (dwarf2_frame_eh_frame_regnum): Declare.
1001
55e969c1
DM
10022006-05-06 David S. Miller <davem@sunset.davemloft.net>
1003
1004 * linux-nat.c (linux_nat_do_thread_registers): Check for
1005 NULL collect_regset method.
1006
92f38ec2
UW
10072006-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1008
1009 * s390-tdep.c (s390_collect_regset): New function.
1010 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
1011
6fed56b4
NR
10122006-05-06 Nick Roberts <nickrob@snap.net.nz>
1013
1014 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
1015 symbol.
1016
6fc19103
UW
10172006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
1018
1019 * linux-nat.c (exit_lwp): Fix NULL pointer access.
1020 (linux_nat_handle_extended): New parameter STOPPING.
1021 (wait_lwp): Call it with STOPPING equals 1.
1022 (linux_nat_wait): Call it with STOPPING equals 0.
1023
d539ed7e
UW
10242006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
1025
1026 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
1027 of 'uninteresting' signals when single-stepping.
1028
49101e1c
DJ
10292006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
1030
1031 * MAINTAINERS: Move NEWS to the documentation entry.
1032
4f844a66
DM
10332006-05-05 David S. Miller <davem@sunset.davemloft.net>
1034
1035 * linux-nat.c (linux_nat_do_thread_registers): Use the
1036 regset_from_core_section infrastructure if the target
1037 supports it.
1038 * Makefile.in: Update dependencies.
bcc98f88
DM
1039 * linux-thread-db.c (thread_db_store_registers): Use
1040 regcache_raw_collect.
4f844a66 1041
411cb3f9
PG
10422006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
1043
1044 * ppc-linux-nat.c: Clean up types for ptrace.
1045 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
1046 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
1047
597320e7
DJ
10482006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
1049
1050 * remote.c (remote_disconnect): Add TARGET argument.
1051 * target.c (debug_to_disconnect): Delete.
1052 (update_current_target): Do not inherit to_disconnect.
1053 (target_disconnect): Search for a target to implement to_disconnect.
1054 (setup_target_debug): Do not reference to_disconnect.
1055 * target.h (struct target_ops): Add target argument to
1056 to_disconnect.
1057
401835eb
FF
10582006-05-06 Fred Fish <fnf@specifix.com>
1059
1060 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
1061 structs or unions independent of ABI register size.
1062
7a076fd2
FF
10632006-05-06 Fred Fish <fnf@specifix.com>
1064
1065 * mips-tdep.c (mips_o64_return_value): Replace stub that always
1066 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
1067
eec01795
DJ
10682006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
1069
1070 * mi/mi-main.c (captured_mi_execute_command): Check the return
1071 value of -interpreter-exec.
1072
14b3d9c9
JB
10732006-05-03 Vladimir Prus <ghost@cs.msu.su>
1074
411cb3f9
PG
1075 * varobj.c (c_value_of_variable): Ignore top-level references.
1076 (Committed by Jim Blandy.)
14b3d9c9 1077
1893a4c0
MK
10782006-04-30 Mark Kettenis <kettenis@gnu.org>
1079
1080 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
1081 insert a single-step breakpoint an error instead of a warning.
1082
21f79b33
NW
10832006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
1084
1085 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
1086 arguments from void * to gdb_byte *.
1087
b8db102d
MS
10882006-04-26 Michael Snyder <msnyder@redhat.com>
1089
1090 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
1091 command to "delete fork" (no hyphen), compatible with other
1092 "delete" commands.
1093 (info_forks_command): Accept a fork ID argument, for info
1094 on a single fork. Report if no matching forks.
1095
bc0c849e
MK
10962006-04-25 Mark Kettenis <kettenis@gnu.org>
1097
1893a4c0
MK
1098 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
1099 no breakpoints are inserted.
1100
bc0c849e
MK
1101 From Masaki MURANAKA <monaka@monami-software.com>:
1102 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
1103 type of last argument to `gdb_byte *'
1104
5f1fb6dc
JB
11052006-04-25 Jim Blandy <jimb@codesourcery.com>
1106
1107 Add support for 'target remote |' on MinGW.
1108 * ser-mingw.c (struct pipe_state): New structure.
1109 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
1110 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
1111 (pipe_windows_write, pipe_wait_handle): New functions.
1112 (_initialize_ser_windows): Register a "pipe" interface based on
1113 them.
1114
c3e2b812
DJ
11152006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
1116
1117 * ser-mingw.c: Include <conio.h>.
1118 (struct ser_console_state, struct net_windows_state): Add exit_select,
1119 have_stopped, thread.
1120 (pipe_select_thread, console_select_thread)
1121 (net_windows_select_thread): Don't create a local state copy or
1122 close stop_select. Exit on exit_select instead of stop_select. Set
1123 have_stopped.
1124 (console_select_thread): Don't report control keypresses as pending
1125 input.
1126 (pipe_select_thread): Allow stop_select to interrupt sleeping.
1127 (set_console_wait_handle): Create exit_select and have_stopped.
1128 Save the thread handle. Check _kbhit before starting a thread.
1129 (ser_console_done_wait_handle): New.
1130 (ser_console_close): Close new handles. Wait for the thread to
1131 exit.
1132 (new_windows_select_thread): Assert that an event occurred.
1133 (net_windows_wait_handle): Check for pending input before starting
1134 a thread.
1135 (net_windows_done_wait_handle): New.
1136 (net_windows_open): Create exit_select and have_stopped.
1137 Save the thread handle.
1138 (net_windows_close): Close new handles. Wait for the thread to
1139 exit.
1140 (_intiialize_ser_windows): Register done_wait_handle methods.
1141
1142 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
1143 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
1144 [USE_WIN32API] (serial_done_wait_handle): New prototype.
1145 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
1146
b8eb021a
AS
11472006-04-23 Andreas Schwab <schwab@suse.de>
1148
1149 * rs6000-tdep.c: Include "reggroups.h" only once.
1150 * Makefile.in (rs6000-tdep.o): Update dependencies.
1151
4f1520fb
FR
11522006-04-21 Frederic Riss <frederic.riss@st.com>
1153
1154 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
1155 compilation directory as last argument.
1156 Always pass comp_dir as second argument to start_subfile and prepend
1157 dirname to the filename when necessary.
1158 Remove now superfluous search for pre-existing subfile.
1159 (dwarf_decode_lines): Pass the compilation directory to
1160 dwarf2_start_subfile.
1161
0271fba4
MS
11622006-04-20 Michael Snyder <msnyder@redhat.com>
1163
1164 * 2006-03-22 Jim Blandy <jimb@redhat.com>
1165 Add support for the Renesas M32C and M16C.
1166
1167 * configure.tgt (m32c-*-*): New entry.
1168 * config/m32c/m32c.mt: New file.
1169 * m32c-tdep.c: New file.
1170 * Makefile.in (elf_m32c_h): New variable.
1171 (m32c-tdep.o): New rule.
1172 * NEWS: Mention new target.
1173 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
1174
cfde0993
MS
11752006-04-20 Michael Snyder <msnyder@redhat.com>
1176
1177 * remote.c: Fix spelling error in comment.
1178
cba5fab9
DJ
11792006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
1180
1181 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
1182 Correct type of VALUEP. Reported by Jean-Rene Peulve
1183 <jr.peulve@wanadoo.fr>.
1184
cbba9205
KI
11852006-04-19 Masaki Muranaka <monaka@monami-software.com>
1186
1187 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
1188 netdb.h, netinet/in.h.
1189 (m32r_upload_command); Add calls WSAStartup().
1190 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
1191 netinet/in.h.
1192
8181d85f
DJ
11932006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
1194
1195 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
1196 shadow_len.
1197 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
1198 (delete_breakpoint): Update calls to changed methods.
1199 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
1200 (single_step_breakpoints, insert_single_step_breakpoint)
1201 (remove_single_step_breakpoints): New.
1202 * breakpoint.h (struct bp_target_info): New.
1203 (struct bp_location): Replace shadow_contents with
1204 target_info and overlay_target_info.
1205 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
1206 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
1207 prototypes.
1208 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
1209 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
1210 argument.
1211 * mem-break.c (default_memory_insert_breakpoint): Update. Set
1212 placed_address, placed_size, and shadow_len.
1213 (default_memory_remove_breakpoint): Update. Don't use
1214 BREAKPOINT_FROM_PC.
1215 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
1216 * target.c (update_current_target): Update prototypes for changed
1217 functions.
1218 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
1219 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
1220 Update.
1221 * target.h: Forward declare struct bp_target_info.
1222 (struct target_ops): Use a bp_target_info argument for
1223 to_insert_breakpoint, to_remove_breakpoint,
1224 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
1225 (target_insert_breakpoint, target_remove_breakpoint)
1226 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
1227 (memory_insert_breakpoint, memory_remove_breakpoint)
1228 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
1229 Update.
1230 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
1231 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
1232 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
1233
1234 * gdbarch.c, gdbarch.h: Regenerated.
1235
1236 * alpha-tdep.c (alpha_software_single_step): Use
1237 insert_single_step_breakpoint and remove_single_step_breakpoints.
1238 Remove unused statics.
1239 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
1240 * cris-tdep.c (cris_software_single_step): Likewise.
1241 * mips-tdep.c (mips_software_single_step): Likewise.
1242 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
1243 * sparc-tdep.c (sparc_software_single_step): Likewise.
1244 * wince.c (struct thread_info_struct): Remove step_prev.
1245 (undoSStep): Use remove_single_step_breakpoints.
1246 (wince_software_single_step): Use insert_single_step_breakpoint.
1247
1248 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
1249 * exec.c (ignore): Likewise.
1250 * sol-thread.c (ignore): Likewise.
1251
1252 * procfs.c (dbx_link_shadow_contents): Delete.
1253 (dbx_link_bpt): New.
1254 (procfs_mourn_inferior): Remove it if necessary.
1255 (remove_dbx_link_breakpoint): Use it.
1256 (insert_dbx_link_bpt_in_file): Set it.
1257 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
1258 * rs6000-nat.c (exec_one_dummy_insn): Use
1259 deprecated_insert_raw_breakpoint and
1260 deprecated_remove_raw_breakpoint.
1261 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
1262 (base_breakpoint): New.
1263 (disable_break): Use it.
1264 (enable_break): Set it.
1265
1266 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
1267 Update.
1268 * ia64-tdep.c (ia64_memory_insert_breakpoint)
1269 (ia64_memory_remove_breakpoint): Likewise.
1270 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1271 (m32r_memory_remove_breakpoint): Likewise.
1272 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1273 Likewise. Remove unnecessary prototypes. Use placed_address
1274 and placed_size. Removed useless read from memory.
1275 * nto-procfs.c (procfs_insert_breakpoint)
1276 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
1277 (procfs_remove_hw_breakpoint): Update.
1278 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
1279 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
1280 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1281 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
1282 * remote-e7000.c (e7000_insert_breakpoint)
1283 (e7000_remove_breakpoint): Likewise.
1284 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1285 (m32r_remove_breakpoint): Likewise.
1286 * remote-mips.c (mips_insert_breakpoint)
1287 (mips_remove_breakpoint): Likewise.
1288 * remote-rdp.c (remote_rdp_insert_breakpoint)
1289 (remote_rdp_remove_breakpoint): Likewise.
1290 (rdp_step): Use deprecated_insert_raw_breakpoint and
1291 deprecated_remove_raw_breakpoint.
1292 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
1293 Update.
1294 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
1295 Delete.
1296 (init_gdbsim_ops): Use memory_insert_breakpoint and
1297 memory_remove_breakpoint.
1298 * remote-st.c (st2000_insert_breakpoint)
1299 (st2000_remove_breakpoint): Update. Remove unused
1300 BREAKPOINT_FROM_PC.
1301 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1302 Update. Use placed_address and placed_size.
1303 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
1304
01d3a6ce
DJ
13052006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
1306
1307 * remote.c (extended_remote_restart): Pass the correct length
1308 to getpkt.
1309
2821caf1
JB
13102006-04-11 Jim Blandy <jimb@codesourcery.com>
1311
1312 * serial.c (serial_open): Check for special cases at the front of
1313 the "device" name before scanning for the ':' that would indicate
1314 an IP-based connection.
1315
02c5aecd
CF
13162006-04-10 Christopher Faylor <cgf@timesys.com>
1317
1318 * win32-nat.c (open_symbol_file_object): New function.
1319 (in_dynsym_resolve_code): Ditto.
1320 (init_win32_ops): Fill in fields which ought not to be NULL.
1321
cb832706
CF
13222006-04-10 Christopher Faylor <cgf@timesys.com>
1323
1324 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
1325 with saved context if __COPY_CONTEXT_SIZE is not defined.
1326 (handle_output_debug_string): Ditto.
1327
03926e1f
DJ
13282006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
1329
1330 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
1331
b2a0b9b2
DM
13322006-04-09 David S. Miller <davem@sunset.davemloft.net>
1333
1334 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
1335 frame sniffer.
1336 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
1337 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
1338 that the latter can override.
1339 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1340
ee1b3323
UW
13412006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
1342
1343 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
1344 (s390_store): Call pv_area_store to track stack slots.
1345 (s390_load): Call pv_area_fetch to track stack slots.
1346 (s390_check_for_saved): New function.
1347 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
1348
3fc46200
UW
13492006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
1350
1351 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
1352 * s390-tdep.c: Include "prologue-value.h".
1353 (struct prologue_value): Remove.
1354 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1355 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1356 pv_logical_and, pv_is_identical, pv_is_register): Remove.
1357 (compute_x_addr): Remove, replace by ...
1358 (s390_addr): ... this new function.
1359 (struct s390_prologue_data): Use pv_t instead of prologue_value.
1360 (s390_store, s390_load): Likewise.
1361 (s390_prologue_frame_unwind_cache): Likewise.
1362 (s390_analyze_prologue): Likewise. Also, simplify and combine
1363 several conditional statements.
1364
d750b939
JB
13652006-04-08 Jim Blandy <jimb@codesourcery.com>
1366
1367 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
1368 last patch.)
1369
0b4294d3
DM
13702006-04-08 David S. Miller <davem@sunset.davemloft.net>
1371
1372 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
1373 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
1374 (sparc32_linux_core_gregset,
1375 sparc32_linux_supply_core_gregset,
1376 sparc32_linux_collect_core_gregset,
1377 sparc32_linux_supply_core_fpregset,
1378 sparc32_linux_collect_core_fpregset): New.
1379 (sparc32_linux_init_abi): Register them with generic sparc
1380 core regset infrastructure.
0b4294d3
DM
1381 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
1382 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
1383 (sparc64_linux_core_gregset,
1384 sparc64_linux_supply_core_gregset,
1385 sparc64_linux_collect_core_gregset,
1386 sparc64_linux_supply_core_fpregset,
1387 sparc64_linux_collect_core_fpregset): New.
1388 (sparc64_linux_init_abi): Register them with generic sparc
1389 core regset infrastructure.
0b4294d3
DM
1390 * Makefile.in: Update dependencies.
1391
9c0dd46b
DM
13922006-04-07 David S. Miller <davem@sunset.davemloft.net>
1393
1394 * linux-nat.c (linux_nat_thread_alive): Handle targets that
1395 do not implement PTRACE_PEEKUSER.
1396
670aa98f
DJ
13972006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
1398
1399 * remote.c (remote_wait): Convert warning to error before
1400 parsing corrupt packets.
1401
e28493f2
AS
14022006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
1403
1404 * cli/cli-script.c (struct user_args): Add command field.
1405 (arg_cleanup): Free command string.
1406 (setup_user_args): Copy the command line before relying on it.
1407
7f198e01
JB
14082006-04-06 Joel Brobecker <brobecker@adacore.com>
1409
1410 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
1411 of the "delete" command.
1412
c9f7217e
RC
14132006-04-06 Randolph Chung <tausq@debian.org>
1414
1415 * MAINTAINERS (Patch champions): Add myself.
1416
d993720d
AS
14172006-04-05 Andreas Schwab <schwab@suse.de>
1418
1419 * Makefile.in: Update dependencies.
1420
f5a9b87d
DM
14212006-04-05 David S. Miller <davem@sunset.davemloft.net>
1422
1423 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
1424 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
1425 * Makefile.in (sparc-tdep.o): Update dependencies.
80f9e3aa
DM
1426 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
1427 window out of the correct stack frame.
1428 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
aff37fc1
DM
1429 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
1430 argument.
1431 (dwarf2_frame_default_init_reg): Likewise.
1432 (dwarf2_frame_set_init_reg): Update init_reg arg.
1433 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
1434 ops->init_reg().
1435 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
1436 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
1437 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
1438 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1439 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1440 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1441 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
1442 (sparc32_frame_cache): Call it.
1443 (sparc32_dwarf2_struct_return_p): New function.
1444 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
1445 returns a structure and thus we have to indicate the return PC and
1446 NPC are 4 bytes later than usual.
faea95b1
DM
1447 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
1448 dwarf2 frame sniffer.
1449 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
f5a9b87d 1450
75e192e6
DM
14512006-04-04 David S. Miller <davem@davemloft.net>
1452
1453 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
1454 * config/linux64.h (NATDEPFILES): Likewise
1455 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1456 fill_fpregset): New.
1457 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1458 fill_fpregset): New.
0a59b3af
DM
1459 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
1460 new includes.
1461
dbcd679b
AS
14622006-04-04 Andreas Schwab <schwab@suse.de>
1463
1464 * Makefile.in (elf_common_h): Define.
1465
357d3800
AS
14662006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
1467
1468 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
1469 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
1470
d3c139e9
AS
14712006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
1472
1473 * value.h (struct internalvar): Add field 'endian'.
1474 * value.c (lookup_internalvar): Initialise endian.
1475 (value_of_internalvar): Flip the endian of built-in types if required.
1476 (set_internalvar): Set the endian.
1477 (show_convenience): Access the value through value_of_internalvar().
1478
bb858e6a
DJ
14792006-03-30 Vladimir Prus <ghost@cs.msu.su>
1480
1481 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
1482 instead of hardcoded integer literals.
1483
61d9b92f
DJ
14842006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1485
1486 * cli/cli-script.c (insert_args): Handle NULL user_args.
1487
f7060f85
DJ
14882006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1489
1490 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
1491 the function at zero if we have no symbols.
1492
295bf0ff
DJ
14932006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
1494
1495 * i386-stub.c (getpacket): Fix array overflow.
1496 * m32r-stub.c (getpacket): Likewise.
1497 * m68k-stub.c (getpacket): Likewise.
1498 * sh-stub.c (getpacket): Likewise.
1499 * sparc-stub.c (getpacket): Likewise.
1500
7abfe014
DJ
15012006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1502
1503 * frame.h (set_current_sal_from_frame): New prototype.
1504 * stack.c (set_current_sal_from_frame): Make global.
1505 * infrun.c (normal_stop): Call set_current_sal_from_frame.
1506
0ec9a092
DJ
15072006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1508
1509 * linux-thread-db.c: Include "linux-nat.h".
1510 (check_for_thread_db): New function, split out from
1511 thread_db_new_objfile. Remove dead check for active
1512 thread_db on inapplicable targets.
1513 (thread_db_new_objfile): Call check_for_thread_db.
1514 * Makefile.in (linux-thread-db.o): Update.
1515 * linux-nat.c (child_post_attach): Call check_for_thread_db.
1516 (linux_child_post_startup_inferior): Likewise.
1517 (lin_lwp_attach_lwp): Call target_post_attach instead of
1518 child_post_attach.
1519 * linux-nat.h (check_for_thread_db): New prototype.
1520
6d820c5c
DJ
15212006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1522
1523 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
1524 (init_remote_state): Initialize the new fields.
1525 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
1526 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
1527 (remote_get_threadinfo, parse_threadlist_response)
1528 (remote_get_threadlist, remote_current_thread, remote_threads_info)
1529 (remote_threads_extra_info, extended_remote_restart, get_offsets)
1530 (remote_check_symbols, remote_open_1, remote_detach)
1531 (remove_vcont_probe, remote_vcont_resume, remote_resume)
1532 (remote_wait, remote_async_wait, fetch_register_using_p)
1533 (remote_fetch_registers, store_register_using_P)
1534 (remote_store_registers, check_binary_download, remote_write_bytes)
1535 (remote_read_bytes, remote_insert_breakpoint)
1536 (remote_remove_breakpoint, remote_insert_watchpoint)
1537 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1538 (remote_remove_hw_breakpoint, compare_sections_command)
1539 (remote_xfer_partial, remote_rcmd, packet_command)
1540 (remote_get_thread_local_address): Use the global incoming buffer
1541 instead of alloca or xmalloc. Limit outgoing packets to
1542 rs->remote_packet_size and incoming packets to rs->buf_size.
1543 Update calls to getpkt and remote_send.
1544 (remote_send): Take arguments by reference.
1545 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
1546 (skip_frame): New function.
1547 (read_frame): Take arguments by reference. Expand the packet
1548 buffer instead of issuing an error.
1549 (getpkt, getpkt_sane): Take arguments by reference.
1550 * remote.h (getpkt): Update prototype and doc.
1551 * tracepoint.c (remote_get_noisy_reply): Take arguments by
1552 reference.
1553 (target_buf): Change from array to pointer.
1554 (target_buf_size): New variable.
1555 (remote_set_transparent_ranges): Update call to getpkt.
1556 (trace_start_command, trace_stop_command, trace_status_command):
1557 Update calls to remote_get_noisy_reply.
1558 (finish_tfind_command): Take arguments by reference.
1559 (trace_find_command, trace_find_pc_command)
1560 (trace_find_tracepoint_command, trace_find_line_command):
1561 (trace_find_range_command, trace_find_outside_command): Update
1562 calls to finish_tfind_command.
1563 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
1564
3d8dcac6
RC
15652005-03-30 Randolph Chung <tausq@debian.org>
1566
1567 * hppa-linux-tdep.c: Include regset.h.
1568 (GR_REGNUM, TR_REGNUM, greg_map): New.
1569 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
1570 (hppa_linux_regset, hppa_linux_fpregset): New.
1571 (hppa_linux_regset_from_core_section): New.
1572 (hppa_linux_init_abi): Set regset_from_core_section.
1573 (_initialize_hppa_linux_tdep): Register osabi handler for
1574 64-bit Linux.
1575 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
1576 * config/pa/linux.mh: Stop using core-regset.o
1577
29d375ac
RC
15782006-03-30 Randolph Chung <tausq@debian.org>
1579
1580 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
1581 (hppa_frame_cache): Use new function to find unwind entry.
1582 (hppa_frame_this_id): Likewise.
1583 (hppa_frame_unwind_sniffer): Likewise.
1584
f4267320
DJ
15852006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1586
1587 * NEWS: Mention the removal of NLM.
1588
15892006-03-29 Steve Ellcey <sje@cup.hp.com>
1590
1591 * Makefile.in (nlm): Remove target.
1592 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
1593 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
1594 * configure: Regenerate.
1595 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
1596 * nlm: Remove directory.
1597
698ba934
DJ
15982006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1599
1600 * Makefile.in (utils.o): Update.
1601 * top.c (in_user_command): New.
1602 (command_line_input): Use input_from_terminal_p.
1603 (input_from_terminal_p): Don't check caution. Handle
1604 stdin == NULL for Insight.
1605 * top.h (in_user_command, caution): New declarations.
1606 * utils.c: Include "top.h".
1607 (query, defaulted_query): Check caution here. Move the call
1608 to input_from_terminal_p higher.
1609 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
1610 the depth. Update in_user_command if necessary.
1611 (execute_user_command): Don't clobber old_chain. Set
1612 in_user_command. Let do_restore_user_call_depth handle
1613 user_call_depth.
1614 (read_command_lines): Check whether to prompt before calling
1615 Insight hooks.
1616 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
1617 input_from_terminal_p check.
1618
2f00de94
UW
16192006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
1620
1621 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
1622 (s390_remove_watchpoint): Likewise.
1623
7d30c22d
JB
16242006-03-28 Jim Blandy <jimb@codesourcery.com>
1625
1626 * prologue-value.c, prologue-value.h: New files.
1627 * Makefile.in (prologue_value_h): New variable.
1628 (HFILES_NO_SRCDIR): List prologue-value.h.
1629 (SFILES): List prologue-value.c.
1630 (COMMON_OBS): List prologue-value.o.
1631 (prologue-value.o): New rule.
1632
05c6a9a1
MS
16332006-03-27 Michael Snyder <msnyder@redhat.com>
1634
1635 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
1636 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
1637 xstormy16_frame_prev_register): Change void* to gdb_byte*.
1638 (xstormy16_push_dummy_call): Add block-local char* val,
1639 to avoid type conflict with outer scope variable.
1640
4e6cbc38
AS
16412006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
1642
1643 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
1644
75483fbe
NR
16452006-03-27 Nick Roberts <nickrob@snap.net.nz>
1646
1647 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
1648 offsets for languages like Fortran.
1649
97ce3a05
RC
16502006-03-26 Randolph Chung <tausq@debian.org>
1651
1652 * config/pa/hppa64.mt: Use HPUX version of the tm file.
1653
be85b69f
NR
16542006-03-25 Nick Roberts <nickrob@snap.net.nz>
1655
1656 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
1657 Try to deal with continuation line.
1658 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
1659 variable names.
1660 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
1661 Future proof against new fields being added to MI output.
1662 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
1663 (gdbmi-frame-handler): Update to new variable name
1664 gdb-get-buffer-create.
1665 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
1666 frames which except the innermost (where execution has stopped).
1667
7fc4b1a1
RC
16682006-03-24 Randolph Chung <tausq@debian.org>
1669
1670 * solib-som.c (link_map_start): Don't error out if there is
1671 not yet a link map.
1672
f973ed9c
DJ
16732006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1674
1675 * linux-nat.c (linux_ops_saved): New.
1676 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
1677 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
1678 (linux_nat_fetch_registers, linux_nat_store_registers)
1679 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
1680 (init_lwp_list): Don't set threaded.
1681 (add_lwp): Don't modify threaded.
1682 (delete_lwp): Don't mention non-threaded mode.
1683 (linux_nat_switch_fork): New.
1684 (linux_nat_attach): Update inferior_ptid.
1685 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
1686 threaded flag.
1687 (linux_nat_kill): Handle pending forks and saved forks.
1688 (linux_nat_mourn_inferior): Handle saved forks.
1689 (linux_nat_pid_to_str): Don't use the LWP form when there is
1690 only one thread.
1691 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
1692 (linux_nat_add_target): New.
1693 (_initialize_linux_nat): Don't initialize the linux native target
1694 here.
1695 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
1696 prototypes.
1697 * linux-fork.c: Include "linux-nat.h".
1698 (add_fork): Update initial PID.
1699 (fork_load_infrun_state): Call linux_nat_switch_fork.
1700 * Makefile.in (linux-fork.o): Update.
1701
1702 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
1703 linux_nat_add_target instead of add_target.
1704 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
1705 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
1706 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
1707 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
1708 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
1709 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
1710 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
1711 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
1712 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
1713 * s390-nat.c (_initialize_s390_nat): Likewise.
1714 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
1715 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
1716
791b663b
DJ
17172006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1718
1719 * linux-fork.c: Include "gdb_assert.h".
1720 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
1721 Update the register cache and selected frame also.
1722 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
1723 to single fork mode if necessary.
1724 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
1725 * Makefile.in (linux_fork_h): New.
1726 (linux-fork.o, linux-nat.o): Update.
1727
d311d956
AS
17282006-03-23 Andreas Schwab <schwab@suse.de>
1729
1730 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
1731
a849c9ab
JB
17322006-03-18 Jim Blandy <jimb@codesourcery.com>
1733
1734 * symtab.h (enum address_class): Doc fix.
1735
cf913f37
MS
17362006-03-16 Michael Snyder <msnyder@redhat.com>
1737
712e3020 1738 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
88c231eb 1739 * target.c (push_target): Fix typo in comment.
94e08568 1740 * remote.c (remote_watch_data_address): Fix typo in comment.
cf913f37
MS
1741 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
1742
7c699b81
KB
17432006-03-15 Kevin Buettner <kevinb@redhat.com>
1744
1745 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
1746 Include.
1747 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
1748 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
1749 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
1750 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
1751 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
1752 (frv_elf_fpregset_t): Define types.
1753 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
1754 (frv_linux_regset_from_core_section: New functions.
1755 (frv_linux_gregset, frv_linux_fpregset): New static globals.
1756 (frv_linux_init_abi): Register the `regset_from_core_section' method.
1757 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1758 * solib-frv.c (frv_current_sos): Relocate main executable after
1759 loading core file.
1760 (frv_clear_solib): Clean up space associated with
1761 `main_executable_lm_info'.
1762 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
1763
d37eb719
DJ
17642006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1765
1766 * Makefile.in (mips_linux_tdep_h): New.
1767 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
1768 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
1769 <sys/ptrace.h>.
1770 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
1771 (mips64_linux_regsets_fetch_registers)
1772 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
1773 (mips64_linux_store_registers): New.
1774 (_initialize_mips_linux_nat): Override to_fetch_registers and
1775 to_store_registers.
1776 * mips-linux-tdep.h: New file.
1777 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
1778 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
1779 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
1780 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
1781 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
1782 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
1783 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
1784 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
1785 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
1786 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
1787 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
1788 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
1789 (supply_32bit_reg): Use gdb_byte.
1790 (supply_64bit_reg): New.
1791 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
1792 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
1793 (fill_gregset, supply_fpregset): Update for renamed types.
1794 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
1795 (mips64_fill_gregset): Make global. Handle 32-bit register
1796 sizes.
1797 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
1798 FP regsets properly.
1799
9f62d0e2
DJ
18002006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1801
1802 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
1803 (mips_fill_gregset): Renamed from fill_gregset.
1804 (mips_supply_fpregset): Renamed from supply_fpregset.
1805 (mips_fill_fpregset): Renamed from fill_fpregset.
1806 (fetch_core_registers): Update calls.
1807 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
1808 functions.
1809
26c53e50
DJ
18102006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1811
1812 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
1813
5b652102
DJ
18142006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1815
1816 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
1817 Correct arithmetic for 64-bit CORE_ADDR.
1818
d05f6826
DJ
18192006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1820
1821 * mips-linux-tdep.c: Include "floatformat.h".
1822 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
0a407ead
DJ
1823 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
1824 double.
d05f6826
DJ
1825 (print_gp_register_row): Don't print spaces before ignored
1826 or floating point registers.
6367c6b1 1827 * Makefile.in (mips-linux-tdep.o): Update.
d05f6826 1828
3e5af19e
DJ
18292006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1830
1831 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
1832 for code addresses.
1833 (non_heuristic_proc_desc): Likewise.
1834
dc60ece8
DJ
18352006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1836
1837 * mips-linux-nat.c: Include "gdb_proc_service.h".
1838 (PTRACE_GET_THREAD_AREA): Define.
1839 (ps_get_thread_area): New.
1840 * Makefile.in (mips-linux-nat.o): Update.
1841
2f83030f
JB
18422006-03-13 Jim Blandy <jimb@codesourcery.com>
1843
1844 * MAINTAINERS: Use my work address.
1845
56aac7e8 18462006-03-09 Michael Snyder <msnyder@redhat.com>
a9877905 1847
56aac7e8
MS
1848 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
1849 instead of getting tricky for the multi-fork case.
1850 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
1851 for each fork, and then use init_fork_list to delete them.
a9877905 1852
831004b7
AO
18532006-03-08 Alexandre Oliva <aoliva@redhat.com>
1854
1855 * solib-svr4.c (svr4_current_sos): Move up initialization of
1856 l_addr, such that it clearly covers all cases.
1857
f1b4b38e
AS
18582006-03-08 Andreas Schwab <schwab@suse.de>
1859
1860 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
1861 libunwind_frame_prev_register to use a gdb_byte buffer and
1862 extract_unsigned_integer.
1863 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
1864
1865 * libunwind-frame.c (libunwind_frame_prev_register): Change type
1866 of last argument to `gdb_byte *'
1867 * libunwind-frame.h: Adjust declaration.
1868
f53f0d0b
PB
18692006-03-08 Paul Brook <paul@codesourcery.com>
1870
1871 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
1872 (arm_frame_align): New function.
1873 (arm_gdbarch_init): Use it.
1874
b67fd56f
AC
18752006-03-03 Khem Raj <khem@mvista.com>
1876
1877 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
1878 Committed by Andrew Cagney.
1879
a64ae7e0
CV
18802006-03-02 Corinna Vinschen <vinschen@redhat.com>
1881
1882 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
1883 address to MDR register.
1884
9733fc94
DJ
18852006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
1886
1887 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
1888 calls.
1889
4897bfb9
RC
18902006-03-01 Randolph Chung <tausq@debian.org>
1891
1892 * somread.c (som_symfile_read): Update comment and remove unneeded
1893 use of a deprecated variable.
1894
6fcecea0
RC
18952006-03-01 Randolph Chung <tausq@debian.org>
1896
1897 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
1898 runtime specification.
1899 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
1900 (unwind_command): Likewise.
1901
46acf081
RC
19022006-03-01 Randolph Chung <tausq@debian.org>
1903
1904 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
1905 Pseudo_SP_Set in unwind record.
1906
477e69e8
RC
19072006-03-01 Randolph Chung <tausq@debian.org>
1908
1909 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
1910 TDEP->is_elf to determine if we are working with a SOM binary.
1911 (null_symtab_and_line): Remove unused variable.
1912 * config/pa/hppa64.mt: Use tm-hppa.h.
1913 * config/pa/tm-hppa64.h: Remove file.
1914
848359ac
WZ
19152006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
1916
1917 * f-typeprint.c (f_type_print_base): Delete the redundant space.
1918
f9ec92b6
KB
19192006-02-28 Kevin Buettner <kevinb@redhat.com>
1920
1921 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
1922 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
1923 Include.
1924 (am33_linux_sigframe_cache_init): New function.
1925 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
1926 descriptions.
1927 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
1928 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
1929 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
1930 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
1931 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
1932 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
1933 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
1934 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
1935 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
1936 New constants.
1937 (am33_linux_init_osabi): Register signal frame unwinders.
1938
e92e42f5
KB
19392006-02-28 Kevin Buettner <kevinb@redhat.com>
1940
1941 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
1942 out of pattern match by saving relevant state. Fix stack size
1943 adjustment bug.
1944
cc10cae3
AO
19452006-02-28 Alexandre Oliva <aoliva@redhat.com>
1946
1947 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
1948 l_ld_size fields.
1949 * solib-svr4.c (struct lm_info): Add l_addr field.
1950 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
1951 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
1952 (LM_DYNAMIC_FROM_LINK_MAP): New.
1953 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
1954 (svr4_current_sos): Initialize l_addr. Adjust.
1955 (svr4_relocate_section_addresses): Adjust.
1956 (svr4_ilp32_fetch_link_map_offsets): Define new members.
1957 (svr4_lp64_fetch_link_map_offsets): Likewise.
1958 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1959 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
1960 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1961 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
1962
691342f9
DM
19632006-02-26 David S. Miller <davem@sunset.davemloft.net>
1964
1965 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
1966 * config/sparc/linux64.mt (TDEPFILES): Likewise.
1967
2c387241
AM
19682006-02-27 Alan Modra <amodra@bigpond.net.au>
1969
1970 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
1971 (ppc_linux_remove_watchpoint): Likewise, and args.
1972
3597fb82
MK
19732006-02-26 Mark Kettenis <kettenis@gnu.org>
1974
1975 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
1976 "soft" interrupts.
1977
637d6690
CW
19782006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
1979
1980 * gdb/defs.h: unconditionally include <fcntl.h>, and
1981 ensure that O_BINARY is defined.
1982 * gdb/solib.c(solib_open): ensure solib files are opened in
1983 binary mode.
1984 * gdb/corelow.c: Remove O_BINARY macro definition.
1985 * gdb/exec.c: Remove O_BINARY macro definition
1986 * gdb/remote-rdp.c: Remove O_BINARY macro definition
1987 * gdb/source.c: Remove O_BINARY macro definition
1988 * gdb/symfile.c: Remove O_BINARY macro definition
1989
9846e541
RC
19902006-02-24 Randolph Chung <tausq@debian.org>
1991
1992 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
1993 argreg.
1994 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
1995 function.
1996
2a5e440c
WZ
19972006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
1998
1999 * f-exp.y: Symbol '%' is not used as the modulus operator in
2000 Fortran. Delete this from Fortran expression.
2001 It is now used by Fortran 90 and later to access the member
2002 of derived type. Add this into Fortran expression.
2003 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
2004 Print each elements in the derived type.
2005 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
2006 level into the function definition to do indented printing. And
2007 call fprintfi_filtered instead to do indented printing.
2008 (f_type_print_base): Replace fprintf_filtered with the indented
2009 version (fprintfi_filtered).
2010 (f_type_print_base): Call indented print_equivalent_f77_float_type.
2011 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
2012 the definition of the derived type.
2013
92128691
DJ
20142006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2015
2016 * gdb_curses.h: Provide a fallback prototype for tgetnum.
2017
a6205f53
DJ
20182006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2019
2020 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
2021 also.
2022 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
2023 (DOUBLEST_SCAN_FORMAT): New.
2024 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
2025 (processReal): Use DOUBLEST_SCAN_FORMAT.
2026 * c-exp.y (parse_number): Likewise.
2027 * jv-exp.y (parse_number): Likewise.
2028 * objc-exp.y (parse_number): Likewise.
2029 * p-exp.y (parse_number): Likewise.
2030
0f0b8dcd
DJ
20312006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2032
2033 * event-top.c (async_do_nothing, async_disconnect)
2034 (async_stop_sig, async_float_handler): Remove duplicated
2035 prototypes.
2036 (handle_sighup): Guard prototype with SIGHUP.
2037 (async_do_nothing): Guard function and prototype with
2038 SIGQUIT || SIGHUP.
2039 (async_disconnect): Guard prototype with SIGHUP.
2040 (async_stop_sig): Guard prototype with STOP_SIGNAL.
2041
4e91d01c
DJ
20422006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2043
2044 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
2045
1e0600be
DJ
20462006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2047
2048 * win32-termcap.c (tputs): Return 0.
2049
094a342e
MK
20502006-02-21 Mark Kettenis <kettenis@gnu.org>
2051
2052 * configure.ac: Introduce ---enable-werror, which adds -Werror to
2053 the compiler command line. Enabled by default. Disable with
2054 --disable-werror.
2055 * configure regenerate.
2056
74763737
DJ
20572006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
2058
2059 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
2060 special.
2061
13d35ae5
AS
20622006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
2063
2064 * defs.h (directory_switch): Add prototype.
2065 * main.c (captured_main): Use directory_switch() instead of
2066 directory_command() to add directories from the -d switch.
2067 * source.c (directory_switch): New function.
2068 (add_path): Use buildargv() to parse spaces in filenames properly.
2069 Strip multiple trailing '/' rather than just one.
2070
5b96932b
AS
20712006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
2072
2073 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
2074 hand decoding the command line, to allow use of quotes and spaces.
2075 (_initialize_symfile): Reorganize the help message for add-symbol-file
2076 such that 'help files' shows a better message.
2077
a6b0a3f3
AS
20782006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
2079
2080 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
2081 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
2082 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
2083 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
2084
17fbb0bd
DJ
20852006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2086
2087 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
2088 and __SIGRTMIN + 1.
2089
444abaca
DJ
20902006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2091
2092 * remote.c: Add an enumeration for configurable remote
2093 packets.
2094 (remote_protocol_packets, set_remote_protocol_packet_cmd)
2095 (show_remote_protocol_packet_cmd): New.
2096 (remote_protocol_vcont)
2097 (set_remote_protocol_vcont_packet_cmd)
2098 (show_remote_protocol_vcont_packet_cmd)
2099 (remote_protocol_qSymbol)
2100 (set_remote_protocol_qSymbol_packet_cmd)
2101 (show_remote_protocol_qSymbol_packet_cmd)
2102 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
2103 (show_remote_protocol_P_packet_cmd)
2104 (remote_protocol_Z)
2105 (set_remote_protocol_Z_software_bp_packet_cmd)
2106 (show_remote_protocol_Z_software_bp_packet_cmd)
2107 (set_remote_protocol_Z_hardware_bp_packet_cmd)
2108 (show_remote_protocol_Z_hardware_bp_packet_cmd)
2109 (set_remote_protocol_Z_write_wp_packet_cmd)
2110 (show_remote_protocol_Z_write_wp_packet_cmd)
2111 (set_remote_protocol_Z_read_wp_packet_cmd)
2112 (show_remote_protocol_Z_read_wp_packet_cmd)
2113 (set_remote_protocol_Z_access_wp_packet_cmd)
2114 (show_remote_protocol_Z_access_wp_packet_cmd)
2115 (remote_protocol_binary_download)
2116 (set_remote_protocol_binary_download_cmd)
2117 (show_remote_protocol_binary_download_cmd)
2118 (remote_protocol_qPart_auxv)
2119 (set_remote_protocol_qPart_auxv_packet_cmd)
2120 (show_remote_protocol_qPart_auxv_packet_cmd)
2121 (remote_protocol_qGetTLSAddr)
2122 (set_remote_protocol_qGetTLSAddr_packet_cmd)
2123 (show_remote_protocol_qGetTLSAddr_packet_cmd)
2124 (remote_protocol_p)
2125 (set_remote_protocol_p_packet_cmd)
2126 (show_remote_protocol_p_packet_cmd): Delete.
2127
2128 (init_all_packet_configs): Simplify.
2129 (set_remote_protocol_Z_packet_cmd)
2130 (show_remote_protocol_Z_packet_cmd)
2131 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
2132 (remote_fetch_registers, remote_prepare_to_store)
2133 (remote_store_registers, check_binary_download)
2134 (remote_write_bytes, remote_insert_breakpoint)
2135 (remote_remove_breakpoint, remote_insert_watchpoint)
2136 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2137 (remote_remove_hw_breakpoint, remote_xfer_partial)
2138 (remote_get_thread_local_address): Update for packet array.
2139 (_initialize_remote): Likewise; also update for common
2140 set/show commands.
2141
3bd72c6f
DJ
21422006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2143
2144 * symfile.c (place_section): Correct retry logic.
2145
a244bdca
CF
21462006-02-19 Christopher Faylor <cgf@timesys.com>
2147
2148 * win32_nat.c (cygwin_load_start): New variable.
2149 (cygwin_load_end): Ditto.
2150 (have_saved_context): Ditto.
2151 (saved_context): Ditto.
2152 (max_dll_name_len): Delete obsolete variable.
2153 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
2154 if we are in a cygwin signal rather than a windows signal.
2155 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
2156 if dll being loaded is the cygwin DLL.
2157 (register_loaded_dll): Remove calculation of max_dll_name_len.
2158 (win32_clear_solib): Ditto.
2159 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
2160 solib_add.
2161 (handle_output_debug_string): Detect and store signal information sent
2162 by Cygwin here.
2163 (handle_exception): Silently pass on errors in the cygwin DLL. Return
2164 -1 on first pass exception.
2165 (win32_continue): Remove spurious clearing of continue_status.
2166 (get_win32_debug_event): Deal differently first chance exception.
2167
806e23c0
RC
21682006-02-19 Randolph Chung <tausq@debian.org>
2169
2170 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
2171 unwind entry.
2172
d843c49c
FF
21732006-02-16 Fred Fish <fnf@specifix.com>
2174
2175 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
2176 a non lval value zero, of the appropriate type, when avoiding
2177 side effects.
2178 * typeprint.c (ptype_eval): Remove function and declaration.
2179 (ptype_command): Simplify to just a call to whatis_exp.
2180
1c5bada0
PB
21812006-02-15 Paul Brook <paul@codesourcery.com>
2182
2183 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
2184 Load insn opcodes as unsigned values.
2185
96c1eda2
AO
21862006-02-14 Alexandre Oliva <aoliva@redhat.com>
2187
2188 * doublest.h (DOUBLEST): Use long double only if we can scan
2189 it in. Undefine HAVE_LONG_DOUBLE otherwise.
2190 (DOUBLEST_FORMAT): New.
2191 * c-exp.y (parse_number): Use it.
2192 * jv-exp.y (parse_number): Likewise.
2193 * objc-exp.y (parse_number): Likewise.
2194 * p-exp.y (parse_number): Likewise.
2195 * varobj.c (free_variable): Silence type-punning warnings.
2196 * tui/tui-data.h (struct tui_list): Change type of list member.
2197 * tui/tui-data.c: Remove no-longer-needed type casts.
2198 (source_windows): Silence type-punning warnings.
2199 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
2200
92dd43fa
MK
22012006-02-13 Mark Kettenis <kettenis@gnu.org>
2202
2203 Fix PR breakpoints/2080.
2204 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
2205 (i386_analyze_stack_align): New function.
2206 (i386_analyze_prologue): Use i386_analyze_stack_align.
2207 (i386_frame_cache): Deal with stack realignment.
2208
7314787a
NR
22092006-02-14 Nick Roberts <nickrob@snap.net.nz>
2210
2211 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
2212 (gdb-break-list-regexp): Match "what" field if present.
be85b69f 2213 (gdb-stack-list-frames-regexp): Match "from" field if present.
7314787a
NR
2214 (gdb-stack-list-frames-handler): Present output like "info
2215 breakpoints" so regexps can be shared with gdb-ui
2216
0ea3f30e
DJ
22172006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
2218
2219 * NEWS: Mention native Windows support.
2220 * Makefile.in (gdb_select_h, ser_tcp_h): New.
2221 (ALLDEPFILES): Add ser-mingw.c.
2222 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
2223 (ser-tcp.o, ser-unix.o): Update.
2224 (ser-mingw.o): New rule.
2225 * configure: Regenerated.
2226 * configure.ac: Add ser-mingw.o for mingw32.
2227 * ser-mingw.c: New file.
2228 * event-loop.c: Include "gdb_select.h".
2229 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
2230 * ser-base.c: Include "gdb_select.h".
2231 (ser_base_wait_for): Use gdb_select.
2232 * serial.c (serial_for_fd): New function.
2233 (serial_fdopen): Try "terminal" before "hardwire". Initialize
2234 the allocated struct serial.
2235 (serial_wait_handle): New function.
2236 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
2237 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
2238 * gdb_select.h: New file.
2239 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
2240 (net_close, net_read_prim, net_write_prim): Make global.
2241 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
2242 Document why we can not use gdb_select.
2243 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
2244 * ser-tcp.h: New file.
2245 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
2246 (handle_sigio): Use gdb_select.
2247 (initialize_stdin_serial): New function.
2248 * terminal.h (initialize_stdin_serial): New prototype.
2249 * top.c (gdb_init): Call initialize_stdin_serial.
2250 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
2251 event-loop.c. Add exception condition support. Use serial_for_fd
2252 and serial_wait_handle. Fix timeout handling.
2253 * posix-hdep.c: Include "gdb_select.h".
2254 (gdb_select): New function.
2255 * remote-st.c (connect_command): Use gdb_select.
2256 * ser-unix.c: Include "gdb_select.h".
2257 (hardwire_send_break, wait_for): Use gdb_select.
2258
121ce6e5
DJ
22592006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
2260
2261 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
2262 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
2263 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
2264 to posix-hdep.o by default.
2265 * configure: Regenerated.
2266 * configure.host: Document gdb_host_obs. Add an entry for
2267 i[34567]86-*-mingw32*.
2268 * mingw-hdep.c, posix-hdep.c: New files.
2269 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
2270
1f82754b
JB
22712006-02-10 Joel Brobecker <brobecker@adacore.com>
2272
2273 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
2274 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
2275 * rs6000-tdep.h: New file.
2276 * rs6000-tdep.c: Include "rs6000-tdep.h".
2277 (rs6000_gdbarch_init): Remove enabling of software single step.
2278 Will be done in the AIX-specific initialization routine.
2279 * rs6000-aix-tdep.c: New file.
2280 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
2281 * Makefile.in (rs6000_tdep_h): New variable.
2282 (rs6000-tdep.o): Update dependencies.
2283 (rs6000-aix-tdep.o): New rule.
2284
577b7047
JB
22852006-02-10 Joel Brobecker <brobecker@adacore.com>
2286
2287 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
2288 instead of add_setshow_zinteger_cmd to defined the aix-thread
2289 boolean setting.
2290
ff800d76
NR
22912006-02-10 Nick Roberts <nickrob@snap.net.nz>
2292
2293 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
2294
5afb4e99
DJ
22952006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
2296
2297 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
2298 30 bits. Add load_all_dies flag.
2299 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
2300 Load DW_TAG_member by default. Remove internal_error call.
2301 (find_partial_die): Reload the compilation unit if we can not find
2302 a DIE in the cache. Call internal_error here if we still can not
2303 find the DIE.
2304
a832795c
NR
23052006-02-10 Nick Roberts <nickrob@snap.net.nz>
2306
2307 * breakpoint.c (print_one_breakpoint): Add break to case
2308 bp_catch_vfork in switch statement.
2309
c9dd6fef
WZ
23102006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
2311
2312 * config/i386/nm-i386sol2.h: Update copyright year.
2313 * config/mips/nm-irix5.h: Ditto.
2314 * config/sparc/nm-sol2.h: Ditto.
2315 * s390-nat.c: Ditto.
2316 * ppc-linux-nat.c: Ditto.
2317
2a3cdf79
WZ
23182006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
2319
2320 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
2321 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2322 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2323 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2324 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2325 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2326 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2327 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
2328 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
2329 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
2330 add to_region_ok_for_hw_watchpoint.
2331 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
2332 (s390_region_ok_for_hw_watchpoint): New.
2333 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
2334 and add to_region_ok_for_hw_watchpoint.
2335 * target.c (default_region_size_ok_for_hw_watchpoint,
2336 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
2337 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
2338 inheritance and default_region_size_ok_for_hw_watchpoint.
2339 (default_region_ok_for_hw_watchpoint): If len is less than or equal
2340 the length of void pointer, return ok.
2341 (default_region_size_ok_for_hw_watchpoint): Delete.
2342 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
2343 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
2344 * target.h (struct target_ops): Delete
2345 to_region_size_ok_for_hw_watchpoint.
2346 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2347
e0d24f8d
WZ
23482006-02-08 Ben Elliston <bje@au1.ibm.com>
2349 Wu Zhou <woodzltc@cn.ibm.com>
2350
2351 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
2352 PTRACE_GETSIGINFO): Define.
2353 (last_stopped_data_address): New.
2354 (ppc_linux_check_watch_resources): New function.
2355 (ppc_linux_region_ok_for_hw_watchpoint): New function.
2356 (ppc_linux_insert_watchpoint): New function.
2357 (ppc_linux_remove_watchpoint): New function.
2358 (ppc_linux_stopped_data_address): New function.
2359 (ppc_linux_stopped_by_watchpoint): New function.
2360 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
2361 related target vectors.
2362 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
2363 to have nonsteppable watchpoint.
2364 * target.c (default_region_ok_for_hw_watchpoint,
2365 debug_to_region_ok_for_hw_watchpoint): New prototypes.
2366 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
2367 and set default to_region_ok_for_hw_watchpoint.
2368 (default_region_ok_for_hw_watchpoint): New function.
2369 (debug_to_region_ok_for_hw_watchpoint): New function.
2370 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
2371 debug_target.
2372 * target.h (struct target_ops): Add a new target vector
2373 to_region_ok_for_hw_watchpoint.
2374 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
2375 defined anyplace else.
927890d0 2376
e0d24f8d 23772005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
2378 * symfile.c (add_symbol_file_command): Abort if the user forgot
2379 to provide the address when the file has been loaded.
2380
f4d408c6
DJ
23812006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
2382
2383 * MAINTAINERS: Update file based on maintainers survey. Add
2384 a note to Past Maintainers. Move unresponsive or inactive
2385 maintainers to Authorized Committers or Past Maintainers as
2386 appropriate. Correct Jim Kingdon's email address. Remove
2387 vacant areas of responsibility.
2388
38fcd64c
DJ
23892006-02-06 Vladimir Prus <ghost@cs.msu.su>
2390
2391 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
2392 fullname field.
2393
7b871fab
DJ
23942006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
2395
2396 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
2397 * exceptions.c (exception_none, exceptions_state_mc_init)
2398 (throw_vfatal): Use GDB_NO_ERROR.
2399
e4cd0d6a
MK
24002006-02-02 Mark Kettenis <kettenis@gnu.org>
2401
2402 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
2403 r_map_size members. Add r_version_offset, r_version_size and
2404 r_ldsomap_offset members.
2405 * solib-svr4.c (solib_svr4_r_map): Renamed from
2406 fetch_link_map_member. Simplify using read_memory_typed_address.
2407 (solib_svr4_r_ldsomap): New function.
2408 (open_symbol_file_object): Use solib_svr_r_map.
2409 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
2410 linker by using solib_svr4_r_ldsomap.
2411 (svr4_ilp32_fetch_link_map_offsets)
2412 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
2413 link_map_offsets'.
2414 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
2415 changes to `struct link_map_offsets'.
2416 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
2417 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
2418 `struct link_map_offsets'.
2419
e26af52f
DJ
24202006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2421
2422 * linux-nat.c (struct saved_ptids, threads_to_delete)
2423 (record_dead_thread, prune_lwps, find_thread_from_lwp)
2424 (exit_lwp): New.
2425 (linux_nat_resume): Call prune_lwps.
2426 (wait_lwp, linux_nat_wait): Call exit_lwp.
2427
46e9880c
DJ
24282006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2429
2430 * printcmd.c (printf_command): Make format string checking
2431 stricter. Add separate cases for long_arg, ptr_arg, and
2432 long_double_arg.
2433 * utils.c (xstrvprintf): Improve the error message issued
2434 for a bad format string.
2435 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
2436 New variables.
2437 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
2438 $(NO_WERROR_CFLAGS).
2439 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
2440 enable -Werror.
2441
37a105a1
DJ
24422006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2443
2444 * Makefile.in (remote.o): Update.
2445 * remote.c (show_packet_config_cmd): Shorten messages.
2446 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
2447 (show_remote_cmd): Iterate.
2448 (_initialize_remote): Remove remote_set_cmdlist,
2449 remote_show_cmdlist.
2450
ae5a43e0
DJ
24512006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2452
2453 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
2454 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
2455 prototypes.
2456 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
2457 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
2458 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
2459 ...here.
2460 * gdbtypes.c: Include "hashtab.h".
2461 (build_gdbtypes): Remove extra prototype.
2462 (struct type_pair, type_pair_hash, type_pair_eq)
2463 (create_copied_types_hash, copy_type_recursive): New.
2464 * gdbtypes.h: Include "hashtab.h".
2465 (TYPE_ZALLOC): New.
2466 (create_copied_types_hash, copy_type_recursive): New prototypes.
2467 * objfiles.c (free_objfile): Call preserve_values.
2468 * symfile.c (reread_symbols): Likewise.
2469 (clear_symtab_users): Remove calls to clear_value_history and
2470 clear_internalvars.
2471 * value.c (clear_value_history, clear_internalvars): Removed.
2472 (preserve_one_value, preserve_values): New functions.
2473 * value.h (clear_value_history, clear_internalvars): Removed.
2474 (preserve_values): New prototype.
2475
2476 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
2477 variables here.
2478
b929c77f
MK
24792006-01-29 Mark Kettenis <kettenis@gnu.org>
2480
2481 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
2482 Fixes PR tdep/2075.
2483
1581f359
JB
24842006-01-27 Joel Brobecker <brobecker@adacore.com>
2485
2486 * MAINTAINERS: Use a consistent email address for brobecker.
2487
37706b70
JB
24882006-01-27 Joel Brobecker <brobecker@adacore.com>
2489
2490 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
2491 in the previous change.
2492
9353355f
DJ
24932006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2494
2495 PR gdb/1914
2496 * fork-child.c (fork_inferior): Don't call
2497 solib_create_inferior_hook.
2498 * infcmd.c (post_create_inferior): Call solib_add,
2499 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
2500 (attach_command): Don't call solib_add or
2501 re_enable_breakpoints_in_shlibs. Call post_create_inferior
2502 instead.
2503 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
2504 or observer_notify_inferior_created. Call post_create_inferior
2505 instead.
2506 * corelow.c: Don't include "observer.h".
2507 (solib_add_stub): Deleted.
2508 (core_open): Don't call observer_notify_inferior_created or
2509 solib_add_stub. Call post_create_inferior instead.
2510 * inf-ptrace.c: Don't include "observer.h".
2511 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
2512 * inf-ttrace.c: Don't include "observer.h".
2513 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
2514 * inferior.h (solib_create_inferior_hook): Remove redundant
2515 prototype.
2516 * inftarg.c: Don't include "observer.h".
2517 (child_attach): Don't call observer_notify_inferior_created.
2518 * Makefile.in: Update dependencies.
2519
281b533b
DJ
25202006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2521
2522 * infcmd.c: Include "observer.h".
2523 (post_create_inferior): New function.
2524 (run_command_1): Call it. Also call proceed.
2525 * inferior.h (post_create_inferior): New prototype.
2526 * Makefile.in (infcmd.o): Update.
2527
2528 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
2529 * go32-nat.c (go32_create_inferior): Likewise.
2530 * nto-procfs.c (procfs_create_inferior): Likewise.
2531 * procfs.c (procfs_create_inferior): Likewise.
2532 * remote-sim.c (gdbsim_create_inferior): Likewise.
2533 * remote.c (extended_remote_create_inferior)
2534 (extended_remote_async_create_inferior): Likewise.
2535 * win32-nat.c (win32_create_inferior): Likewise.
2536 * wince.c (child_create_inferior): Likewise.
2537
2538 * monitor.c (monitor_create_inferior): Don't call proceed.
2539 Set the PC manually.
2540 * ocd.c (ocd_create_inferior): Likewise.
2541 * remote-e7000.c (e7000_create_inferior): Likewise.
2542 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2543 * remote-mips.c (mips_create_inferior): Likewise.
2544 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
2545 * remote-sds.c (sds_create_inferior): Likewise.
2546 * remote-st.c (st2000_create_inferior): Likewise.
2547
2548 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
2549 proceed or observer_notify_inferior_created.
2550 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
2551 * inftarg.c (child_create_inferior): Likewise.
2552
e23fc6de
DJ
25532006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2554
2555 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
2556 after mourning the inferior.
2557
13d6656b
JB
25582006-01-24 Jim Blandy <jimb@redhat.com>
2559
2560 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
2561
59f92a09
FF
25622006-01-24 Fred Fish <fnf@specifix.com>
2563
2564 * parse.c (source.h): Include.
2565 (parse_exp_in_context): Use static source context if no
2566 other context found.
2567
dda63807
AS
25682006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
2569
2570 * sh-tdep.c: Include reggroups.h.
2571 (sh_register_reggroup_p): New function.
2572 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
2573 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
2574
4b505b12
AS
25752006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
2576
2577 * cli/cli-cmds.c: Include fcntl.h.
2578 (source_command): Use the GDB search path to find script files.
2579
721d14ba
DJ
25802006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
2581
2582 PR tdep/2029
2583 Suggested by Till Straumann <strauman@slac.stanford.edu>:
2584 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
2585 instructions. Handle PIC bcl.
2586
3d64d617
DJ
25872006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
2588
2589 * config/djgpp/README: Typo fix.
2590 * config/djgpp/fnchange.lst: Update.
2591
0a8f48b9
MK
25922006-01-22 Mark Kettenis <kettenis@gnu.org>
2593
c893be75
MK
2594 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
2595 (sparc_address_from_register): New prototype.
2596 (sparcnbsd_step_trap): New prototype.
2597 * sparc-tdep.c (sparc_address_from_register): Make globally
2598 visible.
2599 (sparc_analyze_control_transfer): Change prototype to accept
2600 `struct gdbarch *' as first argument. Allow for optional hnadling
2601 for trap instructions.
2602 (sparc_step_trap): New function.
2603 (sparc_software_single_step): Adjust call to
2604 sparc_analyze_control_trabsfer.
2605 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
2606 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
2607 (sparc32nbsd_init_abi): Set TDEP->step_trap.
2608 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
2609 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
2610
0a8f48b9
MK
2611 * sparc-tdep.c (sparc32_return_value): Convert to use
2612 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
2613 RETURN_VALUE_STRUCT_CONVENTION.
2614 (sparc32_extract_struct_value_address): Remove.
2615
1f3a99d5
DJ
26162006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2617
2618 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
2619 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
2620
84eb3c4f
DJ
26212006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2622
2623 * solib.c (info_sharedlibrary_command): Avoid internal_error.
2624
878d9193
MK
26252006-01-21 Mark Kettenis <kettenis@gnu.org>
2626
2627 * i386-tdep.c (i386_mxcsr_type): New variable.
2628 (i386_init_types): Initialize i386_mxcsr_type.
2629 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
2630 * i386-tdep.c (i386_mxcsr_type): New extern.
2631 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
2632 %mxcsr.
2633
acab6ab2
MM
26342006-01-20 Mark Mitchell <mark@codesourcery.com>
2635
2636 * Makefile.in (remote-rdi.o): Remove.
2637 (rdi-share/libangsd.a): Likewise.
2638 * README: Don't mention remote-rdi.c.
2639 * NEWS: Mention removal of rdi-share.
2640 * configure.ac: Don't configure rdi-share subdirectory.
2641 * remote-rdi.c: Remove.
2642 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
2643 (TDEPLIBS): Remove rdi-share/libangsd.a.
2644 * rdi-share/Makefile.am: Remove.
2645 * rdi-share/Makefile.in: Likewise.
2646 * rdi-share/README.CYGNUS: Likewise.
2647 * rdi-share/aclocal.m4: Likewise.
2648 * rdi-share/adp.h: Likewise.
2649 * rdi-share/adperr.h: Likewise.
2650 * rdi-share/angel.h: Likewise.
2651 * rdi-share/angel_bytesex.c: Likewise.
2652 * rdi-share/angel_bytesex.h: Likewise.
2653 * rdi-share/angel_endian.h: Likewise.
2654 * rdi-share/ardi.c: Likewise.
2655 * rdi-share/ardi.h: Likewise.
2656 * rdi-share/armdbg.h: Likewise.
2657 * rdi-share/buffers.h: Likewise.
2658 * rdi-share/chandefs.h: Likewise.
2659 * rdi-share/channels.h: Likewise.
2660 * rdi-share/chanpriv.h: Likewise.
2661 * rdi-share/configure: Likewise.
2662 * rdi-share/configure.in: Likewise.
2663 * rdi-share/crc.c: Likewise.
2664 * rdi-share/crc.h: Likewise.
2665 * rdi-share/dbg_conf.h: Likewise.
2666 * rdi-share/dbg_cp.h: Likewise.
2667 * rdi-share/dbg_hif.h: Likewise.
2668 * rdi-share/dbg_rdi.h: Likewise.
2669 * rdi-share/devclnt.h: Likewise.
2670 * rdi-share/devices.h: Likewise.
2671 * rdi-share/devsw.c: Likewise.
2672 * rdi-share/devsw.h: Likewise.
2673 * rdi-share/drivers.c: Likewise.
2674 * rdi-share/drivers.h: Likewise.
2675 * rdi-share/etherdrv.c: Likewise.
2676 * rdi-share/ethernet.h: Likewise.
2677 * rdi-share/host.h: Likewise.
2678 * rdi-share/hostchan.c: Likewise.
2679 * rdi-share/hostchan.h: Likewise.
2680 * rdi-share/hsys.c: Likewise.
2681 * rdi-share/hsys.h: Likewise.
2682 * rdi-share/logging.c: Likewise.
2683 * rdi-share/logging.h: Likewise.
2684 * rdi-share/msgbuild.c: Likewise.
2685 * rdi-share/msgbuild.h: Likewise.
2686 * rdi-share/params.c: Likewise.
2687 * rdi-share/params.h: Likewise.
2688 * rdi-share/rx.c: Likewise.
2689 * rdi-share/rxtx.h: Likewise.
2690 * rdi-share/serdrv.c: Likewise.
2691 * rdi-share/serpardr.c: Likewise.
2692 * rdi-share/sys.h: Likewise.
2693 * rdi-share/tx.c: Likewise.
2694 * rdi-share/unixcomm.c: Likewise.
2695 * rdi-share/unixcomm.h: Likewise.
2696
4577207e
MK
26972006-01-21 Mark Kettenis <kettenis@gnu.org>
2698
2699 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
2700 Change type of last argument to `gdb_byte *'.
2701
34f55018
MK
27022006-01-20 Mark Kettenis <kettenis@gnu.org>
2703
2704 * hppa-tdep.h (hppa_in_solib_call_trampoline)
2705 (hppa_skip_trampoline_code): New prototypes.
2706 * hppa-tdep.c (struct insn_pattern): New.
2707 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
2708 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
2709 here from hppa-linux-tdep.c
2710 (HPPA_MAX_INSN_PATTERN_LEN): New define.
2711 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
2712 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
2713 functions based on functions removed from hppa-linux-tdep.c.
2714 * hppa-linux-tdep.c (hppa_long_branch_stub)
2715 (hppa_long_branch_pic_stub, hppa_import_stub)
2716 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
2717 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
2718 (hppa_linux_in_solib_call_trampoline)
2719 (hppa_linux_skip_trampoline_code): Removed.
2720 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
2721 hppa_in_solib_call_trampoline and skip_trampoline_code to
2722 hppa_skip_trampoline_code.
2723 * hppabsd-tdep.c (hppabsd_init_abi): Set
2724 TDEP->in_solib_call_trampoline and skip_trampoline_code.
2725
7be93b9e
JB
27262006-01-20 Jim Blandy <jimb@redhat.com>
2727
f408839d
JB
2728 * MAINTAINERS: Change my E-mail address.
2729
7be93b9e
JB
2730 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
2731 * configure: Regenerated.
2732
b2a74f99
DJ
27332006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2734
2735 * MAINTAINERS: Overhaul.
2736
4f2aea11
MK
27372006-01-18 Mark Kettenis <kettenis@gnu.org>
2738
5ae96ec1
MK
2739 Based on a previous patch form Michal Ludvig:
2740 * amd64-tdep.c (amd64_sse_type): Remove.
2741 (amd64_register_info): Use i386_eflags_type and i386_sse_type
2742 where appropriate.
2743 (AMD64_NUM_REGS): Use ARRAY_SIZE.
2744 (amd64_register_type): Remove code to build amd_sse_type.
2745 * i386-tdep.c (i386_eflag_type): New variable.
2746 (i386_mmx_type, i386_sse_type): Make global.
2747 (i386_init_types): New function.
2748 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
2749 (i386_register_type): Return i386_eflag_type, i386_sse_type and
2750 i386_mmx_type when appropriate.
2751 (_initialize_i386_tdep): Call i386_init_types.
2752 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
2753 Declare extern.
2754
4f2aea11
MK
2755 Based on a previous patch form Michal Ludvig:
2756 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
2757 functions.
2758 (is_integral_type, rank_one_type, recursive_dump_type): Add
2759 support for TYPE_CODE_FLAGS.
2760 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
2761 (append_flags_type_field, init_flags_type): New prototypes.
2762 * ada-valprint.c (ada_val_print_1): Add support for
2763 TYPE_CODE_FLAGS.
2764 * c-valprint.c (c_val_print): Likewise.
2765 * f-valprint.c (f_val_print): Likewise.
2766 * p-valprint.c (pascal_val_print): Likewise.
2767 * valprint.c (val_print_type_code_flags): New function.
2768 * valprint.h (val_print_type_code_flags): New prototype.
2769 * value.c (unpack_long, value_from_longest): Add support for
2770 TYPE_CODE_FLAGS.
2771
4cdb5adf
CF
27722006-01-17 Christopher Faylor <cgf@timesys.com>
2773
2774 * MAINTAINERS: Very belatedly remove myself from from the list of
2775 people caught up in the paper trail.
2776
1193688d
JB
27772006-01-17 Jim Blandy <jimb@redhat.com>
2778
4e38b386
JB
2779 * symtab.h (struct general_symbol_info): Use gdb_byte for
2780 value.bytes.
2781 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
2782 a floating-point constant's value.
2783 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
2784 to char *.
2785 * findvar.c (read_var_value): Eliminate needless temporary.
2786
1193688d
JB
2787 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
2788 to match prior change to dwarf2_read_section's type.
2789
0d1243d9
PG
27902006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
2791
2792 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
2793 * rs6000-tdep.c (insn_changes_sp_or_jumps)
2794 (rs6000_in_function_epilogue_p): New functions.
2795 (rs6000_gdbarch_init): Set in_function_epilogue_p.
2796
fe1b8b76
JB
27972006-01-17 Jim Blandy <jimb@redhat.com>
2798
2799 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
2800 (struct line_header, struct partial_die_info, struct dwarf_block):
2801 Use gdb_byte for members that refer to Dwarf section contents.
2802 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
2803 dwarf_decode_macros, load_comp_unit, load_partial_dies,
2804 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
2805 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
2806 read_8_bytes, read_address, read_attribute, read_attribute_value,
2807 read_comp_unit, read_comp_unit_head, read_die_and_children,
2808 read_die_and_siblings, read_full_die, read_indirect_string,
2809 read_initial_length, read_n_bytes, read_offset, read_partial_die,
2810 read_signed_leb128, read_string, read_unsigned_leb128,
2811 skip_children, skip_leb128, skip_one_die): Same.
2812
a0841d7a
DJ
28132006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2814
2815 * complaints.c (stop_whining): Make signed.
2816 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
2817
939b2b42
DJ
28182006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2819
2820 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
2821 notices.
2822
891d2f0b
DJ
28232006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2824
2825 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
2826 (read_offset): Change BYTES_READ argument to unsigned int.
2827 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
2828 (create_all_comp_units, dwarf2_get_pc_bounds)
2829 (dwarf_decode_line_header, var_decode_location)
2830 (dwarf_decode_macros): Change local BYTES_READ variables to
2831 unsigned int.
2832 (read_indirect_string): Remove obsolete cast.
2833
cfd77fa1
DJ
28342006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2835
2836 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
2837 argument.
2838 (remote_fileio_func_open, remote_fileio_func_rename)
2839 (remote_fileio_func_unlink, remote_fileio_func_stat)
2840 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2841 (remote_fileio_func_system): Cast the arguments to
2842 remote_read_bytes and remote_write_bytes.
2843 (remote_fileio_func_read, remote_fileio_func_write): Use a
2844 gdb_byte buffer.
2845 * remote.h (remote_read_bytes, remote_write_bytes): Update
2846 prototypes.
2847 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
2848 (threadref_to_int): Replace bogus char * cast.
2849 (remote_unpack_thread_info_response): Use int for tag.
2850 (remote_threads_extra_info, remote_check_symbols): Cast string
2851 arguments to hex2bin.
2852 (remote_wait): Use a char buffer for packets and a gdb_byte
2853 buffer for registers.
2854 (remote_async_wait): Likewise.
2855 (remote_prepare_to_store, store_register_using_P)
2856 (remote_store_registers): Use gdb_byte buffers.
2857 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
2858 for MYADDR and char buffers for strings.
2859 (remote_xfer_partial): Add casts for string operations on READBUF.
2860 (remote_rcmd): Cast strings passed to bin2hex.
2861
60bf0650
MM
28622006-01-16 Mark Mitchell <mark@codesourcery.com>
2863
2864 * aclocal.m4: Regenerate.
2865
60e81fcc
NS
28662006-01-16 Nathan Sidwell <nathan@codesourcery.com>
2867
2868 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
2869 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
2870 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
2871 (mt_register_name): Lazily synthesize name for coprocessor pseudo
2872 array registers.
2873 (mt_copro_register_type): New. Broken out of ...
2874 (mt_register_type): ... here. Use it. Deal with coprocessor
2875 pseudo array.
2876 (mt_select_coprocessor): New.
2877 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
2878 coprocessor pseudo array.
2879
f365de73
AS
28802006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
2881
2882 * breakpoint.c (insert_breakpoints): Check that a thread exists
2883 before inserting thread specific breakpoints.
2884
9d519230
MK
28852006-01-15 Mark Kettenis <kettenis@gnu.org>
2886
6062517a
MK
2887 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
2888 commit.
2889
9d519230
MK
2890 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
2891 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
2892 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
2893 * config/alpha/nm-nbsd.h: Remove file.
2894 * config/alpha/nm-fbsd.h: Remove file
2895 * config/alpha/nbsd.mh (NAT_FILE): Remove.
2896 * config/alpha/fbsd.mh (NAT_FILE): Remove.
2897
0a029df5
DJ
28982006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2899
2900 * macroexp.c (expand): Initialize argc.
2901 * stabsread.c (read_type): Handle errors from read_args.
2902 (read_args): Return NULL for errors.
2903
1731e543
MK
29042006-01-15 Mark Kettenis <kettenis@gnu.org>
2905
2906 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
2907 strcmp to compare string to a byte buffer.
2908
777ea8f1
DJ
29092006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2910
2911 * printcmd.c (output_command): Always initialize fmt.size.
2912 (printf_command): Use gdb_byte.
2913 * symfile.c (separate_debug_file_exists): Use gdb_byte.
2914 (load_section_callback, read_target_long_array): Likewise.
2915 (simple_read_overlay_table, simple_read_overlay_region_table)
2916 (simple_overlay_update_1): Correct calls to read_target_long_array.
2917 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
2918 Also change local pointers.
2919 (val_print_string): Use gdb_byte.
2920
4b17b389
MK
29212006-01-15 Mark Kettenis <kettenis@gnu.org>
2922
2923 * alphafbsd-tdep.c: Include "solib-svr4.h".
2924 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2925 svr4_lp64_fetch_link_map_offsets.
2926 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
2927 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
2928 solib-svr4.o.
2929 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2930 and solib-legacy.o.
2931 * config/alpha/nm-fbsd.h: Don't include "solib.h".
2932
bd4109fb
DJ
29332006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2934
2935 * source.c (_initialize_source): Use add_setshow_integer_cmd.
2936
1dce6535
DJ
29372006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2938
2939 * linux-fork.c (delete_fork_command, detach_fork_command): Use
2940 PIDGET.
2941
76a9d10f
MK
29422006-01-15 Mark Kettenis <kettenis@gnu.org>
2943
2944 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
2945 Remove.
2946 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2947 svr4_ilp32_fetch_link_map_offsets.
2948 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
2949 function.
2950 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2951 svr4_ilp32_fetch_link_map_offsets.
2952 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
2953 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
2954 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2955 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2956 where appropriate.
2957 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
2958 Simply call svr4_ilp32_fetch_link_map_offsets.
2959 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
2960 svr4_lp64_fetch_link_map_offsets.
2961 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
2962 function.
2963 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2964 svr4_ilp32_fetch_link_map_offsets.
2965 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
2966 (s390x_svr4_fetch_link_map_offsets): Remove functions.
2967 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2968 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2969 where appropriate.
2970
469db033
MK
29712006-01-15 Mark Kettenis <kettenis@gnu.org>
2972
25224166
MK
2973 * arm-tdep.c (arm_return_value): Change type of readbuf and
2974 writebuf arguments to `gdb_byte *'.
2975
469db033
MK
2976 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
2977 * Makefile.in (s390-tdep.o): Update dependencies.
2978
4dd7c9f6
MK
29792006-01-14 Mark Kettenis <kettenis@gnu.org>
2980
081bf9da
MK
2981 * sol2-tdep.h. sol2-tdep.c: New files.
2982 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
2983 (amd64_sol2_init_abi): Set skip_solib_resolver.
2984 * i386-sol2-tdep.c: Include "sol2-tdep.h".
2985 (i386_sol2_init_abi): Set skip_solib_resolver.
2986 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
2987 (sparc32_sol2_init_abi): Set skip_solib_resolver.
2988 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
2989 (sparc64_sol2_init_abi): Set skip_solib_resolver.
2990 * Makefile.in (sol2_tdep_h): New variable.
2991 (ALLDEPFILES): Add sol2-tdep.c.
2992 (sol2-tdep.o): New target.
2993 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
2994 (sparc64-sol2-tdep.o): Update dependencies
2995 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
2996 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2997 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
2998 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2999
c0f96416
MK
3000 * hppa-linux-tdep.c: Fix copyright indentation.
3001
4dd7c9f6
MK
3002 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
3003 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
3004 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
3005 functions.
3006 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
3007 floating-point registers.
3008
6da86618
MM
30092006-01-13 Mark Mitchell <mark@codesourcery.com>
3010
3011 * event-loop.c (gdb_select): Detect file descriptors that have
3012 been closed.
3013
ed944ce7
MK
30142006-01-13 Mark Kettenis <kettenis@gnu.org>
3015
3016 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
3017 and long_double_format accordingly.
3018
03ee6b2e
PH
30192006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
3020
3021 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
3022 translation problems.
3023 * ada-lang.c (ada_value_struct_elt): Change interface and handling
3024 of errors to avoid translation problem (and less than optimal error
3025 messages).
3026 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
3027 Use new interface to ada_value_struct_elt.
3028 * ada_lang.h (ada_value_struct_elt): Update declaration to new
3029 interface.
3030
3031 * ChangeLog: remove reference to ada-tasks.c from entry of
3032 2006-01-07.
3033
24b06219
MK
30342006-01-11 Mark Kettenis <kettenis@gnu.org>
3035
3036 * remote.c (get_memory_packet_size, set_thread)
3037 (remote_unpack_thread_info_response, remote_get_threadinfo)
3038 (parse_threadlist_response, remote_get_threadlist)
3039 (remote_current_thread, remote_threads_info)
3040 (remote_threads_extra_info, extended_remote_restart, get_offsets)
3041 (remote_check_symbols, remote_open_1, remote_detach)
3042 (remote_async_wait, remote_fetch_registers)
3043 (remote_store_registers, check_binary_download, putpkt_binary)
3044 (remote_insert_breakpoint, remote_insert_watchpoint)
3045 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
3046 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
3047 (packet_command): Remove redundant parenthesis.
3048
15550d6b
MK
30492006-01-10 Mark Kettenis <kettenis@gnu.org>
3050
dfb65433
MK
3051 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
3052 (read_memory_typed_address, write_memory)
3053 (write_memory_unsigned_integer, write_memory_signed_integer): Use
3054 gdb_byte where appropriate.
3055
508416a1
MK
3056 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
3057 'gdb_byte *'.
3058
f6519ebc
MK
3059 * target.h (target_read_memory_partial, target_write_memory_partial):
3060 Change second argument to 'gdb_byte *'.
3061 * target.c (target_xfer_memory_partial): Change third argument to
3062 'gdb_byte *'.
3063 (target_read_memory_partial, target_write_memory_partial): Change
3064 second argument to 'gdb_byte *'.
3065
15550d6b
MK
3066 * linespec.c (decode_objc): Make i1 and i2 unsigned.
3067 (find_method): Set values.sals to NULL.
3068
d7a30af7
MK
30692006-01-09 Mark Kettenis <kettenis@gnu.org>
3070
3071 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
3072 of 'char *' in cast.
3073
e1d5a0d2
PH
30742006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
3075
3076 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 3077 * ada-lang.c: I18n markup.
e1d5a0d2
PH
3078 Editorial: change "can not" => "cannot" throughout.
3079
790124be
MK
30802006-01-07 Mark Kettenis <kettenis@gnu.org>
3081
3082 * Makefile.in: Sort dependencies.
3083
3c481fdc
EZ
30842006-01-07 Eli Zaretskii <eliz@gnu.org>
3085
3086 * top.c (control_level): Remove unused variable.
3087
cb5d864f
FF
30882006-01-06 Fred Fish <fnf@specifix.com>
3089
3090 * objfiles.c (source.h): Include.
3091 (free_objfile): Update comment about clear_symtab_users().
3092 (free_objfile): Check all symtabs of objfile being freed and if
3093 one of them is the current source symtab, call
3094 clear_current_source_symtab_and_line().
3095
ac264b3b
MS
30962006-01-04 Michael Snyder <msnyder@redhat.com>
3097
3098 Checkpoint/Restart for Linux.
3099 * linux-nat.c: Add support for debugging multiple forks.
3100 Add #include for linux-fork.h (interface spec).
3101 (super_mourn_inferior): New function pointer.
3102 (child_mourn_inferior): New function / target method.
3103 (linux_target): Claim to_mourn_inferior method pointer.
3104 (child_follow_fork): Call interface to linux-fork, conditionally
3105 add new fork processes to list of debugged processes.
3106 (kill_inferior): Use interface to linux-fork to kill
3107 multiple processes.
3108
3109 * linux-fork.h: New file.
3110 * linux-fork.c: New file. Support for debugging multiple forks
3111 of the same program. Support for checkpoint and restart commands.
3112
3113 * infrun.c (nullify_last_target_wait_ptid): New function.
3114
3115 * Makefile.in: Add linux-fork.
3116 * config/*/linux.mh: Add linux-fork.
3117 * NEWS: Mention new functionality.
3118
f98ce7c2
PH
31192006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
3120
3121 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
3122 Change uses of "illegal" to "invalid".
3123
52ce6436
PH
31242006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
3125
3126 * ada-exp.y: Considerable reorganization to move functionality
3127 from ada-lex.l to here, where it is logically more appropriate.
3128 The original reason, however, was to prevent premature name
3129 lookups for selector names in record aggregates.
3130 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
3131 NAME for all of these.
3132 (VAR): New artificial token to clarify precedence rules.
3133 (OTHERS): New lexeme.
3134 (empty_stoken): New symbol.
3135 (%union): Remove ssym, voidval.
3136 (%type): Remove <voidval> type declarations.
3137 (syntax definitions): Add aggregates.
3138 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
3139 Rename some non-terminals to be closer to reference manual usage.
3140 Tighten up expression syntax to disallow certain non-Ada
3141 constructions such as X and then Y or else Z.
3142 (ada_parse): Remove initialization of left_block_context.
3143 (write_var_from_name): Remove.
3144 (write_var_or_type): New function, containing previous code from
3145 defunct write_var_from_name and name_lookup.
3146 (block_lookup): New function, moved from ada-lex.l
3147 (select_possible_type_sym): New function, factored out of
3148 name_lookup, which used to be in ada-lex.l.
3149 (find_primitive_type): Ditto.
3150 (chop_selector): Ditto.
3151 (write_ambiguous_var): New function, factored out of defunct
3152 write_var_from_name.
3153 (write_selectors): New function.
3154 (write_name_assoc): New function.
3155 (write_exp_op_with_string): New function.
3156
3157 * ada-lex.l (processId): Change interface to return stoken.
3158 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
3159 (block_lookup, name_lookup): Remove. Functionality moved to
3160 ada-exp.y.
3161 (state IN_STRING): Remove.
3162 (rules): Handle string escapes in processString.
3163 Add 'others' token.
3164 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
3165 yylval.sval (as simple strings).
3166 All name look-ups now handled in ada-exp.y.
3167 Introduce "::" (COLONCOLON) token and return as separate token.
3168 (processId): Change return convention. Comment.
3169 Leave leading "'" in place.
3170 (processString): New function.
3171 (find_dot_all): Add note to comment.
3172 Fix problem that allowed match only at the end.
3173
3174 * ada-lang.c: Introduce aggregates.
3175 (find_struct_field): Add new parameter to count fields skipped, and
3176 allow other output parameters to be NULL.
3177 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
3178 new find_struct_field.
3179 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
3180 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
3181 (num_component_specs, assign_component, assign_aggregate):
3182 (aggregate_assign_from_choices,aggregate_assign_positional)
3183 (aggregate_assign_others,add_component_interval):
3184 New functions.
3185 (ada_evaluate_subexp): Declare.
3186 Add aggregate-related operators.
3187 (ada_forward_operator_length): Declare.
3188 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
3189 Consolidate Ada operators, using ada_forward_operator_length.
3190 (ada_search_struct_field): Search in forward order.
3191 (ADA_OPERATORS): Add new aggregate operators.
3192 (ada_operator_length, ada_op_name, ada_forward_operator_length)
3193 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
3194 operators and OP_NAME.
3195 (ada_type_of_array): Use longest_to_int.
3196 (value_assign_to_component): New function.
3197 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
3198 Add OP_NAME case.
3199 (ada_forward_operator_length, ada_dump_subexp_body):
3200 Add OP_STRING case.
3201
3202 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
3203 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
3204
529cad9c
PH
32052006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
3206
3207 * ada-lang.c (process_raise_exception_name): Remove extraneous
3208 definition from unsubmitted code.
3209
3210 (is_lower_alphanum): New function.
3211 (ada_decode): Add support for decoding protected object subprograms
3212 and entries, and of entities declared inside protected object
3213 subprograms.
3214 Also add missing handling for__{DIGITS}+ suffixes.
3215 Allow '$<digits>' as valid overloading suffix.
3216 (is_name_suffix): Add handling for protected type entriy suffixes.
3217 Also add support for protected type subprogram suffixes, but keep
3218 it commented out for now, as there is an ambiguity between these
3219 entities and other internally generated entities.
3220 Allow '$<digits>' as valid overloading suffix.
3221 (is_valid_name_for_wild_match): New function.
3222 (wild_match): Add an exra level of verification of the entity name
3223 before declaring it a match for the given pattern.
3224
3225 (ada_type_of_array, ada_evaluate_subexp): Use more proper
3226 longest_to_int rather than cast.
3227
3228 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
3229
3230 (ada_coerce_to_simple_array): Call check_size to make sure
3231 that the object size is reasonable.
3232
3233 (ada_value_primitive_packed_val): Use correct location in target
3234 buffer for extracting packed record fields that are themselves records.
3235
3236 (add_defn_to_vec): Do not try to replace a stub type by its full
3237 type. Avoids a potential infinite loop.
3238
3239 (ada_lookup_symbol): Move return incorrectly placed return statement,
3240 causing a loop that should be scanning all object files to only
3241 scan the first one.
3242
3243 (ada_tag_name_2): New function.
3244 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
3245 use alternative representation.
3246
3247 (ada_find_renaming_symbol): Strip the function name suffix when
3248 computing the XR type name.
3249
3250 (ada_to_fixed_type): Try determining the tag only if we have the
3251 object's address.
3252 (to_fixed_array_type): Add comments.
3253
3254 (ada_check_typedef): Replace expression checking whether the given
3255 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
3256 consistent.
3257
3258 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
3259 '$' in addition to '.' for runtime auxiliary function name suffixes.
3260 See changes to ada_decode above.
3261
3262 (struct task_control_block): Add field called_task. (This change is
3263 to keep synchronized with our local sources; it does not affect the
3264 public version yet.)
3265
3266 * ada-typeprint.c (ada_print_type): Use int_string for printing
3267 modulus of modular type.
3268
3269 (print_range): Trivial editorial comment fix.
3270
3271 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
3272 double quote in string.
3273
9b799fe6
JB
32742006-01-01 Joel Brobecker <brobecker@adacore.com>
3275
3276 * top.c: Add 2006 to list of copyright years in file header.
3277
0bee0712
JB
32782006-01-01 Joel Brobecker <brobecker@adacore.com>
3279
3280 * top.c (print_gdb_version): Update copyright year to 2006.
3281
13c763f4
JB
32822006-01-01 Roger Sayle <roger@eyesopen.com>
3283 Elena Zannoni <ezannoni@redhat.com>
3284
3285 PR symtab/1651
3286 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
3287 for NULL before assigning this_symtab_psymtab->objfile to objfile.
3288 (scan_xcoff_symtab): Initialize next_symbol_text_func.
3289 (Committed by Jim Blandy)
3290
e50f0da1 3291For older changes see ChangeLog-2005.
c906108c
SS
3292\f
3293Local Variables:
3294mode: change-log
3295left-margin: 8
3296fill-column: 74
3297version-control: never
3298End:
This page took 0.936668 seconds and 4 git commands to generate.