* Makefile.in (SFILES): Add target-memory.c.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a76d924d
DJ
12006-09-21 Vladimir Prus <vladimir@codesourcery.com>
2 Daniel Jacobowitz <dan@codesourcery.com>
3
4 * Makefile.in (SFILES): Add target-memory.c.
5 (COMMON_OBS): Add target-memory.o.
6 * memattr.c (lookup_mem_region): Adjust handling for
7 the top of memory. Improve comments.
8 * remote.c (packet_check_result): New function, split out
9 from packet_ok. Recognize "E." as an error prefix.
10 (packet_ok): Use it.
11 (remote_write_bytes_aux): New function, renamed from
12 remote_write_bytes. Take packet header, packet format,
13 and length flag as arguments.
14 (remote_write_bytes): Rewrite to use remote_write_bytes_aux.
15 (remote_send_printf, restore_remote_timeout)
16 (remote_flash_timeout, remote_flash_erase, remote_flash_write)
17 (remote_flash_done): New.
18 (remote_xfer_partial): Handle flash writes.
19 (init_remote_ops, init_remote_async_ops): Set to_flash_erase
20 and to_flash_done.
21 * symfile.c (struct load_section_data): Include a pointer to
22 the cumulative stats and a request queue. Move most members
23 to other types.
24 (struct load_progress_data, struct load_progress_section_data): New
25 types.
26 (load_progress): Handle a NULL baton and zero bytes. Update for
27 type changes.
28 (load_section_callback): Create memory write requests instead of
29 writing to memory. Don't print the progress message here.
30 (clear_memory_write_data): New function.
31 (generic_load): Use target_write_memory_blocks.
32 * target-memory.c: New file.
33 * target.c (update_current_target): Mention new uninherited methods.
34 (memory_xfer_partial): Issue an error for flash writes.
35 (target_flash_erase, target_flash_done): New functions.
36 (target_write_with_progress): Call the progress callback at the
37 start also.
38 * target.h (enum target_object): Add TARGET_OBJECT_FLASH.
39 (target_write_with_progress): Update comment.
40 (struct target_ops): Add to_flash_erase and to_flash_done.
41 (target_flash_erase, target_flash_done, struct memory_write_request)
42 (memory_write_request_s, enum flash_preserve_mode)
43 (target_write_memory_blocks): New, including a vector type
44 for memory_write_request_s.
45
fd79ecee
DJ
462006-09-21 Vladimir Prus <vladimir@codesourcery.com>
47 Daniel Jacobowitz <dan@codesourcery.com>
48 Nathan Sidwell <nathan@codesourcery.com>
49
50 * Makefile.in (SFILES): Add memory-map.c and xml-support.c.
51 (memory_map_h, xml_support_h): New.
52 (target_h): Add vec_h dependency.
53 (COMMON_OBS): Add memory-map.o and xml-support.o.
54 (memory-map.o, xml-support.o): New rules.
55 (remote.o): Update.
56 * exceptions.h (enum errors): Add XML_PARSE_ERROR.
57 * infcmd.c (run_command_1, attach_command): Call target_pre_inferior.
58 * memattr.c (default_mem_attrib): Initialize blocksize.
59 (target_mem_region_list, mem_use_target)
60 (target_mem_regions_valid, mem_region_cmp, mem_region_init)
61 (require_user_regions, require_target_regions)
62 (invalidate_target_mem_regions): New.
63 (create_mem_region): Use mem_region_init.
64 (mem_clear): Move higher.
65 (lookup_mem_region): Use require_target_regions.
66 (mem_command): Implement "mem auto".
67 (mem_info_command): Handle target-supplied regions and flash
68 attributes.
69 (mem_enable_command, mem_disable_command, mem_delete_command): Use
70 require_user_regions.
71 (_initialize_mem): Mention "mem auto" in help.
72 * memattr.h (enum mem_access_mode): Add MEM_FLASH.
73 (struct mem_attrib): Add blocksize.
74 (invalidate_target_mem_regions, mem_region_init, mem_region_cmp): New
75 prototypes.
76 * remote.c: Include "memory-map.h".
77 (PACKET_qXfer_memory_map): New enum value.
78 (remote_protocol_features): Add qXfer:memory-map:read.
79 (remote_xfer_partial): Handle memory maps.
80 (remote_memory_map): New.
81 (init_remote_ops, init_remote_async_ops): Set to_memory_map.
82 (_initialize_remote): Register qXfer:memory-map:read.
83 * target.c (update_current_target): Mention to_memory_map.
84 (target_memory_map, target_pre_inferior): New.
85 (target_preopen): Call target_pre_inferior.
86 * target.h: Include "vec.h".
87 (enum target_object): Add TARGET_OBJECT_MEMORY_MAP.
88 (struct target_ops): Add to_memory_map.
89 (target_memory_map, target_pre_inferior): New prototypes.
90 * memory-map.c, memory-map.h, xml-support.c, xml-support.h: New files.
91
253c8abb
DJ
922006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
93
94 * ada-lex.l (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
95 (strtoulst): Moved to ...
96 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
97 (strtoulst): ... here. Enhanced to behave more similarly
98 to strtoul.
99 * defs.h (strtoulst): New prototype.
100
c96fc75e
DJ
1012006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
102
103 * Makefile.in (memattr_h, memattr.o): Update.
104 * memattr.h: Include "vec.h".
105 (struct mem_region): Remove linked list pointer.
106 (mem_region_s): New typedef and corresponding vector.
107 * memattr.c: Include "vec.h".
108 (mem_region_chain): Delete.
109 (mem_region_list): New vector pointer.
110 (mem_region_lessthan): New function.
111 (create_mem_region): Remove unused return value. Use vector
112 operations. Remove linear search.
113 (delete_mem_region): Delete.
114 (lookup_mem_region): Use vector operations. Add a FIXME.
115 (mem_info_command): Update to work with vectors.
116 (mem_enable, mem_enable_command, mem_disable, mem_disable_command)
117 (mem_free, mem_delete): Likewise.
118
350da6ee
DJ
1192006-09-21 Nathan Sidwell <nathan@codesourcery.com>
120
121 * vec.h: New file.
122 * vec.c: New file.
123 * Makefile.in (SFILES): Add vec.c.
124 (vec_h): New.
125 (COMMON_OBJS): Add vec.o.
126 (vec.o): New target.
127
2e9f7625
DJ
1282006-09-20 Daniel Jacobowitz <dan@codesourcery.com>
129
130 PR remote/2154
131 * remote.c (remote_thread_alive): Remove local buf.
132 (remote_get_threadinfo): Remove local threadinfo_pkt.
133 (remote_get_threadlist): Remove unused threadlist_packet.
134 (remote_current_thread): Remove local buf.
135 (remote_threads_info): Set bufp after getpkt.
136 (remote_threads_extra_info): Remove local bufp.
137 (get_offsets): Set buf after getpkt.
138 (remote_check_symbols): Set reply after getpkt.
139 (remote_vcont_probe): Set buf after getpkt.
140 (remote_resume): Set buf after set_thread.
141 (remote_wait, remote_async_wait): Set buf after getpkt.
142 (fetch_register_using_p): Set buf after remote_send.
143 (remote_fetch_registers): Likewise.
144 (store_register_using_P): Don't use buf after remote_send.
145 (check_binary_download, remote_write_bytes)
146 (remote_read_bytes, remote_rcmd): Remove local buf.
147
6e90a7df
VP
1482006-09-17 Vladimir Prus <vladimir@codesourcery.com>
149
150 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Don't emit error
f28f46e7 151 if high requested frame number is larger than number of available
6e90a7df
VP
152 frames.
153
d51ca893
NR
1542006-09-16 Nick Roberts <nickrob@snap.net.nz>
155
156 * linux-nat.c (linux_test_for_tracefork): Don't leave zombie
157 process.
158
04d1f770
DJ
1592006-09-16 Andrzej Zaborowski <balrog@zabor.org>
160
161 * interps.c (interpreter_exec_cmd): Restore interpreter properties.
162
5a2901d9
DJ
1632006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
164
165 PR threads/2149
166 * infrun.c (handle_inferior_event): Context switch after fork
167 and exec events.
168
4c850810
DJ
1692006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
170
171 * infcall.c (call_function_by_hand): Check for function pointer
172 types.
173
0ba5a932
AS
1742006-09-10 Andreas Schwab <schwab@suse.de>
175
176 * m68k-tdep.c (m68k_analyze_register_saves): Fix decoding of
177 `move.l %R,-(%sp)'.
178
2ab1eb7a
VP
1792006-09-07 Vladimir Prus <vladimir@codesourcery.com>
180
6e90a7df 181 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Don't emit
2ab1eb7a
VP
182 error if high requested frame number is larger then number
183 of available frames.
184
7a0b0196
JB
1852006-09-07 Joel Brobecker <brobecker@adacore.com>
186
187 From Stephan Springl <springl-gdb@bfw-online.de>
188 * fork-child.c (fork_inferior): Fix typo.
189
d56874a7
DD
1902006-08-28 DJ Delorie <dj@redhat.com>
191
192 * m32c-tdep.c (m32c_decode_srcdest4): Initialize fields in sd
193 that may not be initialized elsewhere.
194 (m32c_decode_sd23): Likewise.
195
14711c82
DJ
1962006-08-25 Daniel Jacobowitz <dan@codesourcery.com>
197
198 * buildsym.c (finish_block): Don't adjust the boundaries of
199 nested functions.
200
f414f22f
AS
2012006-08-24 Andreas Schwab <schwab@suse.de>
202
203 * symfile.c (add_symbol_file_command): Fix off-by-one when
204 extending sect_opts.
205
461c8a2c
NR
2062006-08-24 Nick Roberts <nickrob@snap.net.nz>
207
208 * mi/gdb-mi.el: Refer to next release of Emacs as 22.1.
209
77a458b3
NR
2102006-08-23 Nick Roberts <nickrob@snap.net.nz>
211
212 * mi/gdb-mi.el (gdbmi): Remove gdb-force-update, initialize
213 other variables.
214 (gdbmi-send): Ensure any text properties can be removed.
215 (gdbmi-prompt1): Update to gdb-ui.el
216 (gud-gdbmi-marker-filter): Defer setting of gud-running.
217 Keep gdb-done-regexp for partial-output-buffer.
218 (gdb-stack-list-frames-handler): Add face to function names.
219
76b7178d
MK
2202006-08-22 Mark Kettenis <kettenis@gnu.org>
221
316703b9
MK
222 * valprint.c (val_print_type_code_flags): Fix GNU coding standards
223 violation.
224
2a1ce6ec
MK
225 * alpha-tdep.c (alpha_register_to_value, alpha_value_to_register)
226 (alpha_push_dummy_call, alpha_extract_return_value)
227 (alpha_breakpoint_from_pc, alpha_read_insn)
228 (alpha_get_longjmp_target, alpha_supply_int_regs)
229 (alpha_fill_int_regs, alpha_supply_fp_regs, alpha_fill_fp_regs)
230 (alpha_next_pc): Use gdb_byte instead of (unsigned) char where
231 appropriate.
232
fd936806
MK
233 * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type)
234 (sparc64_fprs_type): New variables.
235 (sparc64_init_types): New function.:
236 (sparc64_register_info): Use appropriate flag types for %fsr and
237 %fprs.
238 (sparc64_pseudo_register_info): Use appropriate type for %pstate.
239 (_initialize_sparc64_tdep): New function.
240
befae759
MK
241 * valprint.c (val_print_type_code_flags): Fix for bitfields larger
242 than 32 bits.
243
76b7178d
MK
244 * gdbtypes.c (init_flags_type): Set all fields to zero instead of
245 just the first one.
246
d3f4f91a
DJ
2472006-08-22 Daniel Jacobowitz <dan@codesourcery.com>
248
249 * Makefile.in (INTERNAL_CPPFLAGS): New.
250 (INTERNAL_CFLAGS_BASE): Use it.
251
a98b27f2
MS
2522006-08-22 Michael Snyder <Michael.Snyder@PalmSource.com>
253
254 * MAINTAINERS: Update my email address.
255
8695c747
DJ
2562006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
257
258 * Makefile.in (amd64_linux_tdep_h): New.
259 (amd64-linux-nat.o, amd64-linux-tdep.o): Update.
260 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Add
261 ORIG_RAX.
262 (_initialize_amd64_linux_nat): Set amd64_native_gregset64_num_regs.
263 * amd64-linux-tdep.c (amd64_linux_register_name)
264 (amd64_linux_register_type, amd64_linux_register_reggroup_p)
265 (amd64_linux_write_pc): New.
266 (amd64_linux_init_abi): Use them, and update num_regs.
267 * amd64-linux-tdep.h: New file.
268 * amd64-tdep.c (amd64_register_name, amd64_register_type): Make
269 public.
270 * amd64-tdep.h (amd64_register_name, amd64_register_type): New
271 prototypes.
272
273 * regformats/reg-x86-64-linux.dat: New file.
274
c17eaafe
DJ
2752006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
276
277 * infrun.c (handle_inferior_event): Check the current frame ID
278 before unwinding to the previous frame.
279
61049d3b
DJ
2802006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
281
282 * dwarf2read.c (quirk_gcc_member_function_pointer): Add GCC PR
283 number in a comment.
284
2c9771d3
MK
2852006-08-18 Mark Kettenis <kettenis@gnu.org>
286
287 * sparc-nat.c (sparc_xfer_wcookie): Signal EOF. Tweak comment.
288
c0dd20ea
DJ
2892006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
290
291 * dwarf2read.c (quirk_gcc_member_function_pointer): New.
292 (read_structure_type): Call it.
293
17218d91
DJ
2942006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
295
296 * NEWS: Mention "set trust-readonly-sections" fix.
297
2bc416ba
DJ
2982006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
299
300 * remote.c, target.c: Strip trailing whitespace.
301
cf7a04e8
DJ
3022006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
303
304 PR remote/1966
305 * dcache.c (dcache_write_line): Use target_write.
306 (dcache_read_line): Use target_read.
307 * mi/mi-main.c (mi_cmd_data_read_memory): Use target_read.
308 * symfile.c (struct load_section_data): Add new per-section
309 members.
310 (load_progress): New function.
311 (load_section_callback): Pass load_progress to the new
312 target_write_with_progress.
313 * target.c (current_xfer_partial, memory_xfer_partial): New.
314 (target_xfer_partial): New prototype.
315 (target_xfer_memory, target_xfer_partial_p, xfer_using_stratum)
316 (do_xfer_memory, target_xfer_memory_partial)
317 (target_read_memory_partial, target_write_memory_partial): Delete.
318 (trust_readonly): Move higher in the file.
319 (update_current_target): Use current_xer_partial.
320 (target_xfer_partial): Use memory_xfer_partial. Handle
321 TARGET_OBJECT_RAW_MEMORY specially.
322 (target_read_memory): Use target_read.
323 (target_write_memory): Use target_write.
324 (default_xfer_partial): Call to_xfer_partial directly.
325 (target_write_with_progress): New function, based on target_write.
326 (target_write): Call it.
327 * target.h (enum target_object): Add TARGET_OBJECT_RAW_MEMORY.
328 (target_write_with_progress): New prototype.
329 (do_xfer_memory, target_read_memory_partial)
330 (target_write_memory_partial): Delete prototypes.
331
b2182ed2
DJ
3322006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
333
334 * remote.c (remote_write_bytes): Take a const buffer argument.
335 Do the checks from remote_xfer_memory.
336 (remote_read_bytes): Do the checks from remote_xfer_memory.
337 (remote_xfer_memory): Remove checks pushed into lower level
338 functions.
339 (remote_xfer_partial): Call remote_write_bytes and remote_read_bytes
340 directly.
341 * remote.h (remote_write_bytes): Update prototype.
342
9fa66fd7
AS
3432006-08-11 Andrew Stubbs <andrew.stubbs@st.com>
344
345 * NEWS: Add 'set trace-commands' command.
346
8625200f
AS
3472006-08-10 Andrew Stubbs <andrew.stubbs@st.com>
348
349 * cli/cli-script.c (execute_user_command): Update command_next_depth
350 on user-command call.
351
4f8253f3
JB
3522006-08-09 Joel Brobecker <brobecker@adacore.com>
353
354 * NEWS: Add entry for new substitute-path commands.
355
2f61ca93
JB
3562006-08-08 Joel Brobecker <brobecker@adacore.com>
357
358 * source.c: #include gdb_assert.h.
359 (substitute_path_rule): New struct.
360 (substitute_path_rules): New static global variable.
361 (substitute_path_rule_matches): New function.
362 (get_substitute_path_rule): New function.
363 (rewrite_source_path): New function.
364 (find_and_open_source): Add source path rewriting support.
365 (strip_trailing_directory_separator): New function.
366 (find_substitute_path_rule): New function.
367 (add_substitute_path_rule): New function.
368 (delete_substitute_path_rule): New function.
369 (show_substitute_path_command): New function.
370 (unset_substitute_path_command): New function.
371 (set_substitute_path_command): New function.
372 (_initialize_source): Add new substitute-path commands.
373 * Makefile.in (source.o): Add dependency on gdb_assert.h.
374
24a2a654
JB
3752006-08-08 Joel Brobecker <brobecker@adacore.com>
376
377 * i386-tdep.c (i386_follow_jump): Use read_memory_nobpt to read
378 instructions.
379 (i386_analyze_struct_return): Likewise.
380 (i386_skip_probe): Likewise.
381 (i386_match_insn): Likewise.
382 (i386_analyze_frame_setup): Likewise.
383 (i386_analyze_register_saves): Likewise.
384 (i386_skip_prologue): Likewise.
385
359a9262
JB
3862006-08-08 Joel Brobecker <brobecker@adacore.com>
387
388 * gdbcore.h (read_memory_nobpt): New function name instead of
389 deprecated_read_memory_nobpt.
390 * breakpoint.c (read_memory_nobpt): New function name instead
391 of deprecated_read_memory_nobpt.
392 Adjust calls to old deprecated_read_memory_nobpt accordingly.
393 * alpha-tdep.c: Adjust calls to deprecated_read_memory_nobpt
394 accordingly.
395 * alphanbsd-tdep.c: Likewise.
396 * frame.c: Likewise.
397 * frv-tdep.c: Likewise.
398 * hppa-linux-tdep.c: Likewise.
399 * hppa-tdep.c: Likewise.
400 * i386-linux-nat.c: Likewise.
401 * m68klinux-tdep.c: Likewise.
402 * mips-tdep.c: Likewise.
403 * s390-tdep.c: Likewise.
404
7fa2210b
DJ
4052006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
406
407 * configure.ac: Check for expat.
408 * acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
409 * Makefile.in (LIBEXPAT): New.
410 (CLIBS): Include $(LIBEXPAT).
411 * README: Mention expat.
412 * configure, config.in: Regenerated.
413
ce928021
DJ
4142006-08-08 Joel Sherrill <joel.sherrill@oarcorp.com>
415
416 * config/sparc/embed.mt: New file.
417 * configure.tgt (sparc-*-rtems*): Use embed.mt.
418
9bdcbae7
DJ
4192006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
420
421 * Makefile.in (objfiles.o, symfile.o): Update.
422 * objfiles.c: Include "expression.h" and "parser-defs.h".
423 (free_objfile): Clear global blocks.
424 * symfile.c: Include "parser-defs.h".
425 (clear_symtab_users): Clear global blocks.
426
67985547
TS
4272006-08-08 Thiemo Seufer <ths@mips.com>
428
429 * breakpoint.c (update_breakpoints_after_exec): Fix type mismatch.
430
3d00d119
DJ
4312006-08-08 Vladimir Prus <vladimir@codesourcery.com>
432
433 * symfile.c (download_write_size): Remove.
434 (show_download_write_size): Remove.
435 (load_section_callback): Don't use download_write_size.
436 (_initialize_symfile): Don't register download_write_size.
437 * NEWS: Mention 'download-write-size' removal.
438
0534816d
DJ
4392006-08-06 Daniel Jacobowitz <dan@codesourcery.com>
440
441 * expprint.c (print_subexp_standard, dump_subexp_body_standard): Add
442 support for member pointers.
443
47ccd048
MK
4442006-08-02 Mark Kettenis <kettenis@gnu.org>
445
446 * arm-tdep.h: Add multiple inclusion protection.
447 (struct gdbarch): Add forward declaration.
448 (armobsd_regset_from_core_section): New prototype.
449 * armbsd-tdep.c: New file.
450 * armobsd-tdep.c: Include "gdb_string.h".
451 (armobsd_init_abi): Set regset_from_core_section.
452 (armobsd_core_osabi_sniffer): New function.
453 (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer.
454 * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c.
455 (armbsd-tdep.o): New dependency.
456 (armnbsd-tdep.o): Update dependencies.
457 * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
458
87177905
TS
4592006-08-02 Thiemo Seufer <ths@mips.com>
460
461 * linux-thread-db.c (thread_db_get_thread_local_address): Fix type
462 mismatch.
463 * tui/tui-stack.c (tui_show_frame_info): Likewise.
464
a22229c4
DJ
4652006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
466
467 * c-exp.y (type): Remove incorrect pointer to member case.
468 * objc-exp.y (type): Likewise.
469 * p-exp.y (type): Likewise.
470
7c00367c
MK
4712006-08-01 Mark Kettenis <kettenis@gnu.org>
472
473 * arm-tdep.h (enum struct_return): New.
474 (struct gdbarch_tdep): Add struct_return member.
475 * arm-tdep.c (arm_return_value): Return
476 RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
477 pcc_struct_return.
478 (arm_gdbarch_init): Default to reg_struct_return.
479 * armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
480
4816ec69
MK
4812006-07-31 Mark Kettenis <kettenis@gnu.org>
482
483 * alpha-tdep.h (ALPHA_S0_REGNUM): New define.
484 * alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>,
485 <machine/pcb.h> and "bsd-kvm.h".
486 (alphabsd_supply_pcb): New function.
487 (_initialize_alphabsd_nat): Enable libkvm interface.
488 * Makefile.in (alphabsd-nat.o): Update dependencies.
489 * config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
490 (LOADLIBES): New variable.
491 * config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
492 (LOADLIBES): New variable.
493
35d5d4ee
FF
4942006-07-31 Fred Fish <fnf@specifix.com>
495
496 * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
497 instead of calling frame_obstack_zalloc directly.
498 (arm_make_stub_cache): Ditto.
499 * frame-unwind.h: Ditto.
500 * frame.c (create_new_frame): Ditto.
501
0f9e5f32
BW
5022006-07-27 Bob Wilson <bob.wilson@acm.org>
503
504 * MAINTAINERS (Write After Approval): Add myself.
505
e896d70e
DJ
5062006-07-27 Bob Wilson <bob.wilson@acm.org>
507
508 * main.c (captured_main): Print a newline after calling
509 print_gdb_version instead of waiting until after the symbol file
510 has been read. Adjust error_pre_print, quit_pre_print, and
511 warning_pre_print values.
512
f58b68aa
DJ
5132006-07-27 Roger Sayle <roger@eyesopen.com>
514 Daniel Jacobowitz <dan@codesourcery.com>
515
516 * irix5-nat.c (fetch_core_registers): Simplify and correct logic.
517
159f81f3
DJ
5182006-07-27 Daniel Jacobowitz <dan@codesourcery.com>
519
520 * target.h (target_read_stralloc): New prototype.
521 * target.c (target_read_alloc_1): Renamed from target_read_alloc.
522 Take new PADDING argument.
523 (target_read_alloc): Use it.
524 (target_read_stralloc): New function.
525
40e57cf2
DJ
5262006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
527
528 * remote.c (remote_protocol_features): Correct qPart to qXfer.
529
ab5c9f60
DJ
5302006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
531
532 * eval.c (evaluate_subexp_for_address): Don't incorrectly discard
533 calls to C++ operator*.
534
725a826f
DJ
5352006-07-24 Roger Sayle <roger@eyesopen.com>
536 Daniel Jacobowitz <dan@codesourcery.com>
537
538 * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
539 (gdb_int64_bytes): Likewise.
540 (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
541 as first argument to extract_unsigned_integer to silence compiler
542 warnings.
543
72dca2f5
FR
5442006-07-24 Frederic Riss <frederic.riss@st.com>
545
546 * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero
547 field.
548 (dwarf2_locate_sections): Initialize
549 dwarf2_per_objfile->has_section_at_zero.
550 (dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero
551 instead of HAS_RELOC test.
552 (read_partial_die): Ditto.
553
4c42eaff
DJ
5542006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
555
556 * corefile.c (reopen_exec_file): Only check for an open exec file.
557 Use exec_file_attach.
558 * exec.c (exec_open): Make static.
559 (exec_file_command): Don't use target_preopen. Query directly about
560 changing the file.
561 * gdbcore.h (exec_open): Remove prototype.
562
5632006-07-24 Frederic Riss <frederic.riss@st.com>
b05e64e5
FR
564
565 * regcache.c (struct regcache): Make register_valid_p a signed char
566 array.
567
3f64f7b1
DJ
5682006-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
569 Daniel Jacobowitz <dan@codesourcery.com>
570
571 * linux-thread-db.c (thread_db_wait): Remove libthread_db
572 after exec events.
573
6aec2e11
DJ
5742006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
575
576 * NEWS: Mention Windows cross debugging support.
577
83eba059
DJ
5782006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
579
580 * linux-nat.c (linux_nat_add_target): Remove extern.
581 * linux-nat.h (thread_db_init): New prototype.
582
b80864fb
DJ
5832006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
584
585 * configure.tgt: Build gdbserver for Cygwin and mingw32.
586
66a79c16
DJ
5872006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
588
589 * config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
590 * config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
591 * config/i386/tm-cygwin.h: Delete file.
592
fc5261f2
MK
5932006-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
594
595 * infrun.c (handle_inferior_event): Typo.
596
16026cd7
AS
5972006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
598
599 * cli/cli-cmds.c (source_verbose, trace_commands): New variables.
600 (source_script): New function.
601 (source_verbose_cleanup): New function.
602 (source_command): Move old contents to source_script.
603 Make function static. Parse -v option and call source_script.
604 (init_cli_cmds): Update source command help.
605 Add 'set trace-commands' command.
606 * cli/cli-script.c (command_next_depth): New static variable.
607 (suppress_next_print_command_trace): New static variable.
608 (reset_command_nest_depth): New function.
609 (print_command_trace): New function.
610 (execute_control_command): Split the continue_control and break_control
611 cases, add calls to print_command_trace and count the nest depth.
612 (while_command): Set suppress_next_print_command_trace.
613 (if_command): Likewise.
614 * top.c (execute_command): Call print_command_trace.
615 * cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
616 (source_command): Change to source_script.
617 * main.c (captued_main): Use source_script instead of source_command.
618 * top.h (source_command): Change to source_script.
619 * event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
620 * cli/cli-script.h (print_command_trace): Export.
621 (reset_command_nest_depth): Likewise.
622
16963cb6
DJ
6232006-07-20 Daniel Jacobowitz <dan@codesourcery.com>
624
625 * eval.c (evaluate_struct_tuple): Skip static fields.
626
6b26d61a
MK
6272006-07-19 Mark Kettenis <kettenis@gnu.org>
628
6ea0ec3f
MK
629 * alphaobsd-tdep.c: Include "obsd-tdep.h".
630 (alphaobsd_init_abi): Set skip_solib_resolver.
631 * Makefile.in (alphaobsd-tdep.o): Update dependencies.
632 * config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
633
6b26d61a
MK
634 * arm-tdep.c (arm_gdbarch_init): Get default floating-point model
635 from ELF flags for binaries produced by the GNU toolchain.
636
86cc68a8
NS
6372006-07-18 Nathan Sidwell <nathan@codesourcery.com>
638
639 * remote-fileio.c (remote_fileio_func_rename): Reorder to process
640 input buffer before reading memory.
641 (remote_fileio_func_stat): Likewise.
642
29e8a844
DJ
6432006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
644
645 * blockframe.c (find_pc_partial_function): Use the minimal symbol
646 size to control the cache entry, if available.
647 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
648 symbols with zero and non-zero sizes differently.
649
28b17333
DJ
6502006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
651
652 * linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
653 (td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
654 (thread_db_fetch_registers, thread_db_store_registers)
655 (thread_db_thread_alive, thread_db_state_str): Delete.
656 (thread_db_load): Don't look up regset functions.
657 (thread_db_pid_to_str): Simplify.
658 (thread_db_extra_thread_info): New.
659 (init_thread_db_ops): Do not set to_fetch_registers,
660 to_store_registers, or to_thread_alive. Set to_extra_thread_info.
661 * Makefile.in: Remove linux-thread-db.o rule.
662
e3ac4a1e
MK
6632006-07-18 Mark Kettenis <kettenis@gnu.org>
664
665 * armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
666 (armobsd_sigframe_init): New function.
667 (armobsd_sigframe): New variable.
668 (armobsd_init_abi): Prepend armobsd_sigframe unwinder.
669 * Makefile.in (armobsd-tdep.o): Update dependencies.
670
08ae6d95
DJ
6712006-07-18 Denis PILAT <denis.pilat@st.com>
672
673 * monitor.c: Remove unused prototypes.
674
6962ad99
VP
6752006-07-18 Vladimir Prus <vladimir@codesourcery.com>
676
677 * target.c (tcomplain): Mark with ATTR_NORETURN.
678
0152ebd7
VP
679 * defs.h (print_transfer_performance): Improve comments.
680
aa88762a
MK
6812006-07-17 Mark Kettenis <kettenis@gnu.org>
682
675dcf4f
MK
683 * printcmd.c: Coding style fixes: add missing spaces in comments
684 and wrapping long lines.
685 (delete_display, enable_display_command, disable_display_command)
686 (printf_command, display_info, undisplay_command, free_display)
687 (display_command, x_command, address_info, set_command)
688 (inspect_command, call_command, print_command, print_command_1)
689 (validate_format, print_formatted, decode_format, sym_format):
690 Remove prototypes.
691 (x_command): Make static.
692 (printf_command): Convert error into internal consistency check.
693 (address_info): Avoid assignment within function call.
694 (printf_command): Avoid redundant cast.
695 * tracepoint.c (x_command): Remove extern prototype.
696
aa88762a
MK
697 * armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
698 * Makefile.in (armobsd-tdep.o): Update dependencies.
699 * config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
700
1cd566a4
MK
7012006-07-16 Mark Kettenis <kettenis@gnu.org>
702
a58dc200
MK
703 * armobsd-tdep.c: New file.
704 * Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
705 (armobsd-tdep.o): New dependency.
706 * config/arm/obsd.mt: New file.
707 * configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
708
d7b7af6f 709 * gdbarch.sh (deprecated_saved_pc_after_call): Delete.
a4bc5cf9 710 * gdbarch.h, gdbarch.c: Re-generate.
d7b7af6f 711
1cd566a4
MK
712 * arm-tdep.c (arm_saved_pc_after_call): Delete.
713 (arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
714
96ffcb62
AS
7152006-07-16 Alfred M. Szmidt <ams@gnu.org>
716
717 * gnu-nat.c: Undefine _process_user_ before including
718 <hurd/process_request.h>.
719 (gnu_resume): Supply missing argument to error().
720 (gnu_read_inferior): Add extra parenthesis around arithmetic
721 expression to silence warnings from GCC.
722 (gnu_write_inferior): Likewise.
723 (gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
724
424f3115
MK
7252006-07-16 Mark Kettenis <kettenis@gnu.org>
726
727 * armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
728 svr4_ilp_fetch_link_map_offsets.
729
a4ab4a25
MK
7302006-07-15 Mark Kettenis <kettenis@gnu.org>
731
732 * armnbsd-tdep.c: Don't include "nbsd-tdep.h".
733 * config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
734 (DEPRECATED_TM_FILE): Remove.
735 * Makefile.in (armnbsd-tdep.o): Update dependencies.
736
cd24f626
JB
7372006-07-14 Joel Brobecker <brobecker@adacore.com>
738
739 * PROBLEMS: Document threads/2137.
740
06d65a1d
MK
7412006-07-13 Mark Kettenis <kettenis@gnu.org>
742
743 * config/alpha/tm-nbsd.h: Remove file.
744 * config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
745
4844f454
CV
7462006-07-13 Corinna Vinschen <vinschen@redhat.com>
747
748 * mips-tdep.c (mips_integer_to_address): Simplify be calling
749 extract_signed_integer directly. Fix comment.
750
7830cb4f
CV
7512006-07-13 Corinna Vinschen <vinschen@redhat.com>
752
753 * m32c-tdep.c (m32c_banked_register): New function.
754 (m32c_banked_read): Use m32c_banked_register function to evaluate
755 real register number.
756 (m32c_banked_write): Ditto.
757 (m32c_virtual_frame_pointer): New function.
758 (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
759
9bb47d95
NS
7602006-07-13 Nathan Sidwell <nathan@codesourcery.com>
761
762 * m68k-tdep.c (m68k_frame_align): New.
763 (m68k_gdbarch_init): Set frame_align here.
764
9af2a054
AS
7652006-07-13 Denis PILAT <denis.pilat@st.com>
766
767 * interps.c (interpreter_completer): Allocate one more item to the
768 'matches' list and set them all to 0 with a xcalloc.
769
79ee37bc
NR
7702006-07-13 Nick Roberts <nickrob@snap.net.nz>
771
772 * annotate.c (annotate_frame_begin): Re-instate frame-begin
773 annotation for level 3 annotations.
774
fb933624
DJ
7752006-07-13 Paul N. Hilfinger <Hilfinger@adacore.com>
776 Daniel Jacobowitz <dan@codesourcery.com>
777
778 * infcall.c (value_arg_coerce): Use value_cast_pointers for
779 references. Avoid value_cast to a reference type. Don't silently
780 convert pointers to references.
781 * valops.c (value_cast_pointers): New, based on value_cast.
782 (value_cast): Use it. Reject reference types.
783 (value_ref): New.
784 (typecmp): Use it.
785 * value.h (value_cast_pointers, value_ref): New prototypes.
786
d49c44d5
DJ
7872006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
788
789 * remote.c (unpack_varlen_hex): Correct type of retval.
790 Reported by Zhigang Gong <zhigang.gong@gmail.com>.
791
99bcc461
DJ
7922006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
793
794 * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
795 or missing location list information. Suggested by Jan
796 Kratochvil <lace@jankratochvil.net>.
797
cb587d83
DJ
7982006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
799
800 * Makefile.in (arm_linux_tdep_h): New variable.
801 (arm-linux-nat.o, arm-linux-tdep.o): Update.
802 * arm-linux-nat.c: Include "arm-linux-tdep.h".
803 (typeNone, typeSingle, typeDouble, typeExtended)
804 (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
805 (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
806 (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
807 (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
808 Delete.
809 (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
810 Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
811 and collect_nwfpe_register.
812 (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
813 new regset functions.
814 * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
815 (arm_apcs_32): New declaration.
816 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
817 (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
818 (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
819 (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
820 (arm_linux_regset_from_core_section): New.
821 (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
822 * arm-linux-tdep.h: New file.
823 * arm-tdep.h (struct regset): Declare.
824 (struct gdbarch_tdep): Add gregset, fpregset members.
825 * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
826 core-regset.o.
827 * config/arm/linux.mt (TDEPFILES): Add corelow.o.
828
8802d8ed
DJ
8292006-07-12 Jan Kratochvil <lace@jankratochvil.net>
830
831 * infrun.c (handle_inferior_event): Fixed typos in printf.
832
6765f3e5
DJ
8332006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
834 Nathan Sidwell <nathan@codesourcery.com>
835
836 * remote.c (REMOTE_ALIGN_WRITES): New.
837 (remote_write_bytes): Align large write packets. Remove unused
838 payload_start variable.
839
0876f84a
DJ
8402006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
841
842 * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
843 (remote_supported_packet): Remove #if 0.
844 (remote_protocol_features): Add qPart:auxv:read.
845 (remote_unescape_input): New function.
846 (readchar): Don't mask off the high bit.
847 (read_frame): Use fputstrn_filtered for packet data.
848 (getpkt_sane): Return the number of bytes read or -1. Use
849 fputstrn_unfiltered.
850 (remote_read_qxfer): New.
851 (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
852 (_initialize_remote): Update packet registration.
853 * defs.h (fputstrn_filtered): New prototype.
854 * utils.c (fputstrn_filtered): New.
855 * NEWS: Mention qXfer.
856
13547ab6
DJ
8572006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
858
859 * target.c (target_read): Stop if target_read_partial returns 0
860 when some bytes have already been read.
861 (target_write): Likewise for target_write_partial.
862 (target_read_partial, target_write_partial): Make static.
863 (target_read_alloc): New.
864 * target.h: Doc fixes.
865 (target_read_partial, target_write_partial): Delete prototypes.
866 (target_read_alloc): New prototype.
867
868 * auxv.c (target_auxv_read): Delete.
869 (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
870 * auxv.h (target_auxv_read): Delete prototype.
871 * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
872 * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
873 * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
874 * procfs.c (procfs_make_note_section): Likewise.
875 * remote.c (remote_xfer_partial): Don't loop here.
876 * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
877
edfb1a26
DJ
8782006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
879
880 * arm-linux-tdep.c: Doc fixes.
881 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
882 (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
883 (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
884 constants.
885 (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
886 the new signal frame layouts.
887
6e2c7fa1
DJ
8882006-07-12 Mike Frysinger <vapier@gentoo.org>:
889 Daniel Jacobowitz <dan@codesourcery.com>
890
891 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
892 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
893 * gdbarch.sh: Correct comment.
894
e0f2823e
DJ
8952006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
896
897 * MAINTAINERS: Add Alfred Szmidt for the Hurd.
898
24c41760
MK
8992006-07-11 Mark Kettenis <kettenis@gnu.org>
900
901 * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
902
8a112c90
MK
9032006-07-10 Mark Kettenis <kettenis@gnu.org>
904
905 * alphaobsd-tdep.c: New file.
906 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
907 handler for GDB_OSABI_OPENBSD_ELF.
908 * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
909 (alphaobsd-tdep.o): New target.
910 * config/alpha/obsd.mt: New file.
911 * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
912
9823e921
RH
9132006-07-10 Richard Henderson <rth@redhat.com>
914
915 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
916 * alpha-tdep.c (alpha_register_byte): Remove.
917 (alpha_extract_struct_value_address): Remove.
918 (alpha_return_value): New.
919 (alpha_return_in_memory_always): New.
920 (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
921 set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
922 instead of set_gdbarch_deprecated_use_struct_convention,
923 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
924 or set_gdbarch_deprecated_extract_struct_value_address.
925 * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
926 alphafbsd_use_struct_convention, remove gcc_p argument.
927 (alphafbsd_init_abi): Set tdep->return_in_memory instead of
928 set_gdbarch_deprecated_use_struct_convention.
929
789f3b5f
MK
9302006-07-09 Mark Kettenis <kettenis@gnu.org>
931
b0ca8573
MK
932 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
933 prototype.
934 * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
935 a.out-style core file format here. Make global.
936 (alphanbsd_regset_from_core_section): Remove.
937 (alphanbsd_sigtramp_offset): Make static.
938 (alphanbsd_aout_init_abi): Remove.
939 (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
940 a.out style core files.
941 (_initialize_alphanbsd_tdep): Do not register a handler for
942 GDB_OSABI_NETBSD_AOUT.
943
3beabdb2 944 * alphabsd-tdep.h: Tweak comments.
3b03cc43 945 (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
3beabdb2
MK
946 * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
947 (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
948 (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
949 (alphanbsd_aout_supply_gregset): New functions.
950 (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
951 New variables.
952 (alphanbsd_regset_from_core_section)
953 (alphanbsd_aout_regset_from_core_section): New functions.
954 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
955 (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
956 (alphanbsd_init_abi): Set regset_from_core_section.
957 (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
958 functions.
959 (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
960 Use alphanbsd_aout_init_abi whre appropriate. Don't call
961 deprecated_add_core_fns.
962 * Makefile.in (alphanbsd-tdep.o): Update dependencies.
963
8fe7c54b
MK
964 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
965 (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
966
789f3b5f
MK
967 * alphanbsd-tdep.c (alphanbsd_init_abi): Use
968 svr4_lp64_fetch_link_map_offsets instead of
969 nbsd_lp64_solib_svr4_fetch_link_map_offsets.
970
09153d55
AS
9712006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
972
973 * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
974 write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
975 write_exp_elt_intern): Zero initialize tmp.
976
2ec3381a
DJ
9772006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
978
979 * remote.c (remote_xfer_partial): Remove KOD support.
980 * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
981 * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
071d802b
MK
982 * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
983 Remove KOD support.
2ec3381a
DJ
984 * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
985 * NEWS: Mention KOD.
986 * kod.h, kod.c, kod-cisco.c: Delete files.
987
7fca722e
DJ
9882006-07-04 Daniel Jacobowitz <dan@codesourcery.com>
989
990 * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
991
4a35b02a
NW
9922006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
993
994 * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
995 write_files is set.
996
a6f0780a
EZ
9972006-06-24 Eli Zaretskii <eliz@gnu.org>
998
999 * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
1000
e4c16157
DJ
10012006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
1002
1003 * arm-tdep.c (arm_register_type): Use unsigned types for registers.
1004 Add special types for sp and pc.
1005 * Makefile.in (arm-tdep.o): Update.
1006
a31ea83d
DJ
10072006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
1008
1009 * remote.c (remote_escape_output): New function.
1010 (remote_write_bytes): Use remote_escape_output.
1011
be2a5f71
DJ
10122006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
1013
1014 * NEWS: Mention qSupported.
1015 * remote.c (struct remote_state): Add explicit_packet_size.
1016 (get_remote_packet_size): Check explicit_packet_size.
1017 (get_memory_packet_size): Likewise.
1018 (PACKET_qSupported): New enum value.
1019 (struct protocol_feature, remote_supported_packet)
1020 (remote_packet_size, remote_protocol_features)
1021 (remote_query_supported): New.
1022 (remote_open_1): Reset explicit_packet_size. Call
1023 remote_query_supported.
1024 (_initialize_remote): Register qSupported.
1025
42b575e5
AS
10262006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
1027
1028 * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
1029
9ae03986
JB
10302006-06-20 Joel Brobecker <brobecker@adacore.com>
1031
1032 * GDB 6.5 released from GDB 6.5 branch.
1033
8b07f6d8
MS
10342006-06-19 Michael Snyder <msnyder@redhat.com>
1035
1036 * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
1037 decide how many registers it takes to pass a floating point
1038 argument, what matters is the size of a floating point register
1039 (not the size of a general purpose register).
1040 (mips_o32_push_dummy_call): Ditto.
1041
ec5a4d75
KI
10422006-06-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1043
1044 * configure.tgt: Add gdbserver support for m32r-linux.
1045
8d3239d5
MK
10462006-06-18 Mark Kettenis <kettenis@gnu.org>
1047
1048 * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
1049
14e60db5
DJ
10502006-06-15 Daniel Jacobowitz <dan@codesourcery.com>
1051
1052 * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
1053 based on insert_step_resume_breakpoint_at_frame.
1054 (handle_inferior_event): Update comments. Use
1055 insert_step_resume_breakpoint_at_caller.
1056 (insert_step_resume_breakpoint_at_frame): Revise comments.
1057
81a17f79
JB
10582006-06-14 Daniel Jacobowitz <dan@codesourcery.com>
1059
1060 * dwarf2read.c (read_unspecified_type): New function.
1061 (read_type_die): Handle DW_TAG_unspecified_type.
1062 (Committed by Julian Brown.)
1063
6490cafe
DJ
10642006-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1065
1066 * symfile.c (load_command): Check for a changed executable before
1067 "load".
1068
22e47e37
FF
10692006-06-13 Fred Fish <fnf@specifix.com>
1070
1071 * mips-tdep.c (mips_find_long_section): New function.
1072 (mips_gdbarch_init): Use it to set long and pointer sizes.
1073
5600ea19
NS
10742006-06-13 Nathan Sidwell <nathan@codesourcery.com>
1075
1076 * remote-file.io.c (remote_fileio_func_system): Treat zero length
1077 string as NULL. Adjust for NULL pointer argument.
1078 * doc/gdb.texinfo (system): Document behaviour with zero length
1079 string.
1080
bb572ddd
DJ
10812006-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1082
1083 * remote.c (set_remote_protocol_packet_cmd)
1084 (show_remote_protocol_packet_cmd): New prototypes.
1085 (remote_set_cmdlist, remote_show_cmdlist): Move higher.
1086 (struct packet_config): Make name and title const.
1087 (add_packet_config_cmd): Remove unnecessary arguments.
1088 (_initialize_remote): Update calls.
1089
98739726
DJ
10902006-06-10 Daniel Jacobowitz <dan@codesourcery.com>
1091
1092 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
1093 before calling FD_ISSET. Correct check for exceptfds which
1094 previously tested writefds.
1095
2b949cb6
JB
10962006-06-09 Daniel Jacobowitz <dan@codesourcery.com>
1097 Julian Brown <julian@codesourcery.com>
1098
4a9d57ab 1099 * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
2b949cb6 1100
5b031165
JB
11012006-06-09 Julian Brown <julian@codesourcery.com>
1102
1103 * MAINTAINERS (Write After Approval): Add myself.
1104
b2d6f210
MS
11052006-06-08 Michael Snyder <msnyder@redhat.com>
1106
1107 * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
1108
1dd41f16
NS
11092006-06-08 Nathan Sidwell <nathan@codesourcery.com>
1110
6dd0fba6
NS
1111 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
1112 (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
1113 conversion. Use M68K_NUM_REGS for number of regs.
1114
ad9a8f3f
NS
1115 * remote-fileio.c (remote_fileio_reset): New.
1116 * remote-fileio.h (remote_fileio_reset): Prototype.
1117 * remote.c (extended_remote_restart, remote_open_1): Call it.
1118
1119 * remote.c (remote_open_1): Do preopen tasks before
1dd41f16
NS
1120 irreversably destroying state.
1121
ea9c271d
DJ
11222006-06-08 Daniel Jacobowitz <dan@codesourcery.com>
1123
719abd53 1124 * remote.c (struct remote_state): New type, only containing
ea9c271d
DJ
1125 buf and buf_size.
1126 (remote_state): New variable.
1127 (get_remote_state): New function.
1128 (struct remote_arch_state): Renamed from struct remote_state.
1129 Removed buf and buf_size.
1130 (get_remote_arch_state): Renamed from get_remote_state. All
1131 necessary callers updated to call this function.
1132 (init_remote_state): Initialize the architecture-specific state.
1133 Update the target-specific state if necessary.
1134 (get_remote_packet_size): New function. All previous references
1135 changed to use this accessor function.
1136 (packet_reg_from_regnum, packet_reg_from_pnum): Take a
1137 remote_arch_state instead of a remote_state. All callers changed.
1138 (_initialize_remote): Initialize the packet buffer here.
1139
5cffb350
NS
11402006-06-06 Nathan Sidwell <nathan@codesourcery.com>
1141
ea9c271d 1142 * remote.c (remote_insert_watchpoint): Return -1, rather than
5cffb350
NS
1143 fatal error if packet is disabled.
1144 (remote_remove_watchpoint, remote_insert_hw_breakpoint,
1145 remote_remove_hw_breakpoint): Likewise.
1146
8a786d82
NR
11472006-06-02 Nick Roberts <nickrob@snap.net.nz>
1148
1149 * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
1150
f49e4e6d
MS
11512006-05-31 Michael Snyder <msnyder@redhat.com>
1152
1153 * mips-tdep.c: Comment tweaks.
1154
20e95c23
DJ
11552006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1156
1157 * Makefile.in (top_builddir): Update comments.
1158 (INTL_DIR, INTL_SRC): Delete.
1159 (INTL, INTL_DEPS, INTL_CFLAGS): Update.
1160 * acinclude.m4: Include new gettext macros.
1161 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
1162 CATALOGS code.
1163 * aclocal.m4, configure: Regenerated.
1164
9308fc88
DJ
11652006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
1166
1167 * Makefile.in (arm-linux-nat.o): Update dependencies.
1168 * arm-linux-nat.c: Include "gdb_proc_service.h".
1169 (PTRACE_GET_THREAD_AREA): Define.
1170 (ps_get_thread_area): New function.
1171
46ea248b
AO
11722006-05-28 Alexandre Oliva <aoliva@redhat.com>
1173
1174 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
1175 DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
1176 DWARF2_FRAME_REG_SAVED_VAL_EXP.
1177 * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
1178 val_offset_sf and val_expression.
1179 (dwarf2_frame_prev_register): Handle the new reg rules.
1180 (dwarf2_frame_this_id): Use pc instead of function entry point.
1181
56c987f6
AO
11822006-05-28 Alexandre Oliva <aoliva@redhat.com>
1183
1184 * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
1185 (dwarf2_frame_sniffer): Use it.
1186 (decode_frame_entry_1): Set it according to augmentation "S".
1187
5648af48
JB
11882006-05-27 Joel Brobecker <brobecker@adacore.com>
1189
1190 From Peter Schauer <peterschauer@gmx.net>
1191 * m2-typeprint.c (m2_record_fields): Move variable declarations
1192 to the begining of the block.
1193
03a73f77
MM
11942006-05-23 Mark Mitchell <mark@codesourcery.com>
1195
1196 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
1197 include additional registers.
1198
1199 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
1200 Iscramb2, Qscramb2, Qchannel2.
1201 (mt_register_name): Likewise.
1202 (mt_copro_register_type): Describe ZI2 and ZQ2.
1203
1204 * mt-tdep.c (mt_gdb_regnums): Define
1205 MT_COPRO_PSEUDOREG_MAC_REGNUM.
1206 (mt_register_name): Use it.
1207 (mt_copro_register_type): Likewise.
1208 (mt_register_type): Likewise.
1209 (mt_pseudo_register_read): Likewise. Read the MAC register, not
1210 the coprocessor register.
1211 (mt_pseudo_register_write): Likewise.
1212
2b3c8945
CF
12132006-05-21 Christopher Faylor <cgf@timesys.com>
1214
1215 * win32-nat.c (cygwin_exceptions): New variable.
1216 (handle_exception): Treat a cygwin exception like a normal exception if
1217 cygwin_exceptions is true.
1218 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
1219
f79daebb
GM
12202006-05-20 Gaius Mulley <gaius@glam.ac.uk>
1221
1222 * NEWS: (Improved Modula-2 language support): New section.
1223
b4e70030
JB
12242006-05-19 Joel Brobecker <brobecker@adacore.com>
1225
1226 * configure: Regenerate using proper version of autoconf.
1227
a1f5b845
FF
12282006-05-19 Fred Fish <fnf@specifix.com>
1229
1230 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
1231 * dwarfread.c: Fix spelling of 'unexpected'.
1232 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
1233 * stack.c: Fix spelling of 'RETURN_VALUE'.
1234
82d03102
PG
12352006-05-18 Paul Gilliam <pgilliam@us.ibm.com
1236
1237 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
1238
f2da6b3a
DJ
12392006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1240
1241 * dwarf2-frame.c: Include "value.h".
1242 (read_reg): Use unpack_long and register_type.
1243 * Makefile.in (dwarf2-frame.o): Update.
1244
1f5befc1
DJ
12452006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1246
1247 * remote-rdp.c: Deleted.
1248 * NEWS: Mention removal of remote-rdp.c.
1249
1250 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
1251 (remote-rdp.o): Delete.
1252 * README: Remove description of remote-rdp.c.
1253 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
1254 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
1255
cd96dfc9
DJ
12562006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
1257
1258 * ser-e7kpc.c: Include <time.h> if it is available.
1259
12602006-05-16 Joel Brobecker <brobecker@adacore.com>
e374b601
JB
1261
1262 * version.in (version.in): Bump version number to 6.5.50 now
1263 that the gdb-6.5 branch has been created.
1264 * NEWS: Create a new section for changes that are included
1265 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
1266 section.
1267
13942a42
JB
12682006-05-16 Jim Blandy <jimb@codesourcery.com>
1269
1270 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
1271 the Global Maintainers' invitation to be an authorized committer
1272 for the Modula-2 support.
1273
8599da2d
MK
12742006-05-15 Mark Kettenis <kettenis@gnu.org>
1275
1276 * ppcobsd-nat.c: Include "gdb_assert.h".
1277 [PT_GETFPREGS] (getfpregs_supplies): New function.
1278 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
1279 versions that have PT_GETFPREGS.
1280 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
1281 ppcobsd_fpreg_offsets.
1282 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
1283 Declare.
1284 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
1285 variables.
1286 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
1287 * Makefile.in (ppcobsd-nat.o): Update dependencies.
1288
4e8d927d
DJ
12892006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1290
1291 * configure.ac: Use GCC_HEADER_STDINT.
1292 * acinclude.m4: Include stdint.m4.
1293 * Makefile.in (gdb_stdint_h): Define.
1294 (distclean): Remove gdb_stdint.h.
1295 (Makefile, stamp-h): Update rules to generate only the correct
1296 files.
1297 (gdb_stdint.h, stamp-int): New rules.
1298 * config.in, configure: Regenerated.
1299
19ca80ba
DJ
13002006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1301
1302 * valprint.c: Include "exceptions.h".
1303 (val_print): If something goes wrong while printing, supply an
1304 error message.
1305
245c7f48
DJ
13062006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
1307
1308 * source.c (get_current_source_symtab_and_line)
1309 (set_current_source_symtab_and_line): Use { 0 }.
1310 * cli/cli-cmds.c (list_command): Likewise.
1311
53b33aeb
NR
13122006-05-14 Nick Roberts <nickrob@snap.net.nz>
1313
1314 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
1315 (gdbmi): Use new variable name gdb-pc-address.
1316 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
1317 Check that a match has been found.
1318
d3d3c7e6 13192006-05-13 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 1320
d3d3c7e6 1321 * m2-lang.h: Added function extern prototypes for
229582b7 1322 m2_is_long_set and get_long_set_bounds.
d3d3c7e6
GM
1323 * m2-typeprint.c: Complete replacement.
1324 (m2_print_type): Walk the Modula-2 type tree.
1325 (m2_type_name): New function.
1326 (m2_range): New function.
1327 (m2_typedef): New function.
1328 (m2_array): New function.
1329 (m2_pointer): New function.
1330 (m2_ref): New function.
1331 (m2_unknown): New function.
1332 (m2_union): New function.
1333 (m2_procedure): New function.
1334 (m2_print_bounds): New function.
1335 (m2_short_set): New function.
1336 (m2_is_long_set): New function.
1337 (m2_get_discrete_bounds): New function.
1338 (m2_is_long_set_of_type): New function.
1339 (m2_long_set): New function.
1340 (m2_record_fields): New function.
1341 (m2_enum): New function.
1c547afb 1342 * dwarf2read.c: Modified.
d3d3c7e6
GM
1343 (read_set_type): New function.
1344 (process_die): Call read_set_type.
1c547afb 1345 (read_base_type): Modifed.
d3d3c7e6 1346 (set_cu_language): Added Modula-2 case clause.
1c547afb 1347 * m2-valprint.c: Complete replacement.
d3d3c7e6
GM
1348 (print_function_pointer_address): New function.
1349 (get_long_set_bounds): New function.
1350 (m2_print_long_set): New function.
1351 (print_unpacked_pointer): New function.
1352 (print_variable_at_address): New function.
1353 (m2_val_print): Replaced.
1354 * gdb/MAINTAINERS (Write After Approval): Added
1355 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 1356
def18405
MK
13572006-05-12 Mark Kettenis <kettenis@gnu.org>
1358
1359 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
1360 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
1361 (ppcnbsd_fill_fpreg): Remove prototypes.
1362 (struct regset): Add forward declaration.
1363 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
1364 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
1365 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
1366 "value.h", target.h and nbsd-tdep.h". Reorder includes.
1367 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
1368 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
1369 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
1370 Remove macros.
1371 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
1372 (ppcnbsd_fill_fpreg): Remove functions.
1373 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1374 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
1375 (ppcnbsd_reg_offsets): New variable.
1376 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
1377 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
1378 introduced in NetBSD 2.0.
1379 (ppcnbsd_sigtramp): Provide complete signal trampoline.
1380 (ppcnbsd2_sigtramp): New variable.
1381 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
1382 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
1383 Add ppcnbs2_sigtramp unwinder.
1384 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
1385 Initialize ppcnbsd_reg_offsets.
1386 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
1387 (getregs_supplies): Use regnum instead of regno.
1388 (getfpregs_supplies): Likewise.
1389 (ppcnbsd_fetch_inferior_registers): Likewise. Call
1390 ppc_supply_gregset and ppc_suppply_fpregset instead of
1391 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
1392 (ppcnbsd_store_inferior_registers): Likewise. Call
1393 ppc_collect_gregset and ppc_collect_fpregset instead of
1394 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
1395 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
1396 (_initialize_ppcnbsd_nat): Add some whitespace.
1397 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
1398 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
1399 (NAT_FILE): Remove.
1400 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1401
c4c50d37
DJ
14022006-05-11 Alfred M. Szmidt <ams@gnu.org>
1403
1404 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
1405
576c2025
FF
14062006-05-11 Fred Fish <fnf@specifix.com>
1407
1408 * symtab.c (skip_prologue_using_sal): Handle single line functions
1409 like "foo(){}", which may optimize down to a single return inst.
1410
ba906c08
SE
14112006-05-10 Steve Ellcey <sje@cup.hp.com>
1412
1413 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
1414 message.
1415
4bf8967c
AS
14162006-05-09 Andreas Schwab <schwab@suse.de>
1417
1418 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
1419 (execute_cfa_program): Add parameter eh_frame_p. Call
1420 dwarf2_frame_eh_frame_regnum when true.
1421 (dwarf2_frame_cache): Pass eh_frame_p from fde to
1422 execute_cfa_program.
1423 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
1424 processing .eh_frame. Copy eh_frame_p to the new fde.
1425 (struct dwarf2_frame_ops): Add eh_frame_regnum.
1426 (dwarf2_frame_set_eh_frame_regnum): Define.
1427 (dwarf2_frame_eh_frame_regnum): Define.
1428
1429 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
1430 (dwarf2_frame_eh_frame_regnum): Declare.
1431
55e969c1
DM
14322006-05-06 David S. Miller <davem@sunset.davemloft.net>
1433
1434 * linux-nat.c (linux_nat_do_thread_registers): Check for
1435 NULL collect_regset method.
1436
92f38ec2
UW
14372006-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1438
1439 * s390-tdep.c (s390_collect_regset): New function.
1440 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
1441
6fed56b4
NR
14422006-05-06 Nick Roberts <nickrob@snap.net.nz>
1443
1444 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
1445 symbol.
1446
6fc19103
UW
14472006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
1448
1449 * linux-nat.c (exit_lwp): Fix NULL pointer access.
1450 (linux_nat_handle_extended): New parameter STOPPING.
1451 (wait_lwp): Call it with STOPPING equals 1.
1452 (linux_nat_wait): Call it with STOPPING equals 0.
1453
d539ed7e
UW
14542006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
1455
1456 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
1457 of 'uninteresting' signals when single-stepping.
1458
49101e1c
DJ
14592006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
1460
1461 * MAINTAINERS: Move NEWS to the documentation entry.
1462
4f844a66
DM
14632006-05-05 David S. Miller <davem@sunset.davemloft.net>
1464
1465 * linux-nat.c (linux_nat_do_thread_registers): Use the
1466 regset_from_core_section infrastructure if the target
1467 supports it.
1468 * Makefile.in: Update dependencies.
bcc98f88
DM
1469 * linux-thread-db.c (thread_db_store_registers): Use
1470 regcache_raw_collect.
4f844a66 1471
411cb3f9
PG
14722006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
1473
1474 * ppc-linux-nat.c: Clean up types for ptrace.
1475 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
1476 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
1477
597320e7
DJ
14782006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
1479
1480 * remote.c (remote_disconnect): Add TARGET argument.
1481 * target.c (debug_to_disconnect): Delete.
1482 (update_current_target): Do not inherit to_disconnect.
1483 (target_disconnect): Search for a target to implement to_disconnect.
1484 (setup_target_debug): Do not reference to_disconnect.
1485 * target.h (struct target_ops): Add target argument to
1486 to_disconnect.
1487
401835eb
FF
14882006-05-06 Fred Fish <fnf@specifix.com>
1489
1490 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
1491 structs or unions independent of ABI register size.
1492
7a076fd2
FF
14932006-05-06 Fred Fish <fnf@specifix.com>
1494
1495 * mips-tdep.c (mips_o64_return_value): Replace stub that always
1496 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
1497
eec01795
DJ
14982006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
1499
1500 * mi/mi-main.c (captured_mi_execute_command): Check the return
1501 value of -interpreter-exec.
1502
14b3d9c9
JB
15032006-05-03 Vladimir Prus <ghost@cs.msu.su>
1504
411cb3f9
PG
1505 * varobj.c (c_value_of_variable): Ignore top-level references.
1506 (Committed by Jim Blandy.)
14b3d9c9 1507
1893a4c0
MK
15082006-04-30 Mark Kettenis <kettenis@gnu.org>
1509
1510 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
1511 insert a single-step breakpoint an error instead of a warning.
1512
21f79b33
NW
15132006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
1514
1515 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
1516 arguments from void * to gdb_byte *.
1517
b8db102d
MS
15182006-04-26 Michael Snyder <msnyder@redhat.com>
1519
1520 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
1521 command to "delete fork" (no hyphen), compatible with other
1522 "delete" commands.
1523 (info_forks_command): Accept a fork ID argument, for info
1524 on a single fork. Report if no matching forks.
1525
bc0c849e
MK
15262006-04-25 Mark Kettenis <kettenis@gnu.org>
1527
1893a4c0
MK
1528 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
1529 no breakpoints are inserted.
1530
bc0c849e
MK
1531 From Masaki MURANAKA <monaka@monami-software.com>:
1532 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
1533 type of last argument to `gdb_byte *'
1534
5f1fb6dc
JB
15352006-04-25 Jim Blandy <jimb@codesourcery.com>
1536
1537 Add support for 'target remote |' on MinGW.
1538 * ser-mingw.c (struct pipe_state): New structure.
1539 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
1540 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
1541 (pipe_windows_write, pipe_wait_handle): New functions.
1542 (_initialize_ser_windows): Register a "pipe" interface based on
1543 them.
1544
c3e2b812
DJ
15452006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
1546
1547 * ser-mingw.c: Include <conio.h>.
1548 (struct ser_console_state, struct net_windows_state): Add exit_select,
1549 have_stopped, thread.
1550 (pipe_select_thread, console_select_thread)
1551 (net_windows_select_thread): Don't create a local state copy or
1552 close stop_select. Exit on exit_select instead of stop_select. Set
1553 have_stopped.
1554 (console_select_thread): Don't report control keypresses as pending
1555 input.
1556 (pipe_select_thread): Allow stop_select to interrupt sleeping.
1557 (set_console_wait_handle): Create exit_select and have_stopped.
1558 Save the thread handle. Check _kbhit before starting a thread.
1559 (ser_console_done_wait_handle): New.
1560 (ser_console_close): Close new handles. Wait for the thread to
1561 exit.
1562 (new_windows_select_thread): Assert that an event occurred.
1563 (net_windows_wait_handle): Check for pending input before starting
1564 a thread.
1565 (net_windows_done_wait_handle): New.
1566 (net_windows_open): Create exit_select and have_stopped.
1567 Save the thread handle.
1568 (net_windows_close): Close new handles. Wait for the thread to
1569 exit.
1570 (_intiialize_ser_windows): Register done_wait_handle methods.
1571
1572 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
1573 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
1574 [USE_WIN32API] (serial_done_wait_handle): New prototype.
1575 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
1576
b8eb021a
AS
15772006-04-23 Andreas Schwab <schwab@suse.de>
1578
1579 * rs6000-tdep.c: Include "reggroups.h" only once.
1580 * Makefile.in (rs6000-tdep.o): Update dependencies.
1581
4f1520fb
FR
15822006-04-21 Frederic Riss <frederic.riss@st.com>
1583
1584 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
1585 compilation directory as last argument.
1586 Always pass comp_dir as second argument to start_subfile and prepend
1587 dirname to the filename when necessary.
1588 Remove now superfluous search for pre-existing subfile.
1589 (dwarf_decode_lines): Pass the compilation directory to
1590 dwarf2_start_subfile.
1591
0271fba4
MS
15922006-04-20 Michael Snyder <msnyder@redhat.com>
1593
1594 * 2006-03-22 Jim Blandy <jimb@redhat.com>
1595 Add support for the Renesas M32C and M16C.
1596
1597 * configure.tgt (m32c-*-*): New entry.
1598 * config/m32c/m32c.mt: New file.
1599 * m32c-tdep.c: New file.
1600 * Makefile.in (elf_m32c_h): New variable.
1601 (m32c-tdep.o): New rule.
1602 * NEWS: Mention new target.
1603 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
1604
cfde0993
MS
16052006-04-20 Michael Snyder <msnyder@redhat.com>
1606
1607 * remote.c: Fix spelling error in comment.
1608
cba5fab9
DJ
16092006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
1610
1611 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
1612 Correct type of VALUEP. Reported by Jean-Rene Peulve
1613 <jr.peulve@wanadoo.fr>.
1614
cbba9205
KI
16152006-04-19 Masaki Muranaka <monaka@monami-software.com>
1616
1617 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
1618 netdb.h, netinet/in.h.
1619 (m32r_upload_command); Add calls WSAStartup().
1620 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
1621 netinet/in.h.
1622
8181d85f
DJ
16232006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
1624
1625 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
1626 shadow_len.
1627 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
1628 (delete_breakpoint): Update calls to changed methods.
1629 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
1630 (single_step_breakpoints, insert_single_step_breakpoint)
1631 (remove_single_step_breakpoints): New.
1632 * breakpoint.h (struct bp_target_info): New.
1633 (struct bp_location): Replace shadow_contents with
1634 target_info and overlay_target_info.
1635 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
1636 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
1637 prototypes.
1638 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
1639 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
1640 argument.
1641 * mem-break.c (default_memory_insert_breakpoint): Update. Set
1642 placed_address, placed_size, and shadow_len.
1643 (default_memory_remove_breakpoint): Update. Don't use
1644 BREAKPOINT_FROM_PC.
1645 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
1646 * target.c (update_current_target): Update prototypes for changed
1647 functions.
1648 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
1649 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
1650 Update.
1651 * target.h: Forward declare struct bp_target_info.
1652 (struct target_ops): Use a bp_target_info argument for
1653 to_insert_breakpoint, to_remove_breakpoint,
1654 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
1655 (target_insert_breakpoint, target_remove_breakpoint)
1656 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
1657 (memory_insert_breakpoint, memory_remove_breakpoint)
1658 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
1659 Update.
1660 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
1661 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
1662 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
1663
1664 * gdbarch.c, gdbarch.h: Regenerated.
1665
1666 * alpha-tdep.c (alpha_software_single_step): Use
1667 insert_single_step_breakpoint and remove_single_step_breakpoints.
1668 Remove unused statics.
1669 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
1670 * cris-tdep.c (cris_software_single_step): Likewise.
1671 * mips-tdep.c (mips_software_single_step): Likewise.
1672 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
1673 * sparc-tdep.c (sparc_software_single_step): Likewise.
1674 * wince.c (struct thread_info_struct): Remove step_prev.
1675 (undoSStep): Use remove_single_step_breakpoints.
1676 (wince_software_single_step): Use insert_single_step_breakpoint.
1677
1678 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
1679 * exec.c (ignore): Likewise.
1680 * sol-thread.c (ignore): Likewise.
1681
1682 * procfs.c (dbx_link_shadow_contents): Delete.
1683 (dbx_link_bpt): New.
1684 (procfs_mourn_inferior): Remove it if necessary.
1685 (remove_dbx_link_breakpoint): Use it.
1686 (insert_dbx_link_bpt_in_file): Set it.
1687 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
1688 * rs6000-nat.c (exec_one_dummy_insn): Use
1689 deprecated_insert_raw_breakpoint and
1690 deprecated_remove_raw_breakpoint.
1691 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
1692 (base_breakpoint): New.
1693 (disable_break): Use it.
1694 (enable_break): Set it.
1695
1696 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
1697 Update.
1698 * ia64-tdep.c (ia64_memory_insert_breakpoint)
1699 (ia64_memory_remove_breakpoint): Likewise.
1700 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1701 (m32r_memory_remove_breakpoint): Likewise.
1702 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1703 Likewise. Remove unnecessary prototypes. Use placed_address
1704 and placed_size. Removed useless read from memory.
1705 * nto-procfs.c (procfs_insert_breakpoint)
1706 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
1707 (procfs_remove_hw_breakpoint): Update.
1708 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
1709 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
1710 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1711 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
1712 * remote-e7000.c (e7000_insert_breakpoint)
1713 (e7000_remove_breakpoint): Likewise.
1714 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1715 (m32r_remove_breakpoint): Likewise.
1716 * remote-mips.c (mips_insert_breakpoint)
1717 (mips_remove_breakpoint): Likewise.
1718 * remote-rdp.c (remote_rdp_insert_breakpoint)
1719 (remote_rdp_remove_breakpoint): Likewise.
1720 (rdp_step): Use deprecated_insert_raw_breakpoint and
1721 deprecated_remove_raw_breakpoint.
1722 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
1723 Update.
1724 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
1725 Delete.
1726 (init_gdbsim_ops): Use memory_insert_breakpoint and
1727 memory_remove_breakpoint.
1728 * remote-st.c (st2000_insert_breakpoint)
1729 (st2000_remove_breakpoint): Update. Remove unused
1730 BREAKPOINT_FROM_PC.
1731 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1732 Update. Use placed_address and placed_size.
1733 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
1734
01d3a6ce
DJ
17352006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
1736
1737 * remote.c (extended_remote_restart): Pass the correct length
1738 to getpkt.
1739
2821caf1
JB
17402006-04-11 Jim Blandy <jimb@codesourcery.com>
1741
1742 * serial.c (serial_open): Check for special cases at the front of
1743 the "device" name before scanning for the ':' that would indicate
1744 an IP-based connection.
1745
02c5aecd
CF
17462006-04-10 Christopher Faylor <cgf@timesys.com>
1747
1748 * win32-nat.c (open_symbol_file_object): New function.
1749 (in_dynsym_resolve_code): Ditto.
1750 (init_win32_ops): Fill in fields which ought not to be NULL.
1751
cb832706
CF
17522006-04-10 Christopher Faylor <cgf@timesys.com>
1753
1754 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
1755 with saved context if __COPY_CONTEXT_SIZE is not defined.
1756 (handle_output_debug_string): Ditto.
1757
03926e1f
DJ
17582006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
1759
1760 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
1761
b2a0b9b2
DM
17622006-04-09 David S. Miller <davem@sunset.davemloft.net>
1763
1764 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
1765 frame sniffer.
1766 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
1767 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
1768 that the latter can override.
1769 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1770
ee1b3323
UW
17712006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
1772
1773 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
1774 (s390_store): Call pv_area_store to track stack slots.
1775 (s390_load): Call pv_area_fetch to track stack slots.
1776 (s390_check_for_saved): New function.
1777 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
1778
3fc46200
UW
17792006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
1780
1781 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
1782 * s390-tdep.c: Include "prologue-value.h".
1783 (struct prologue_value): Remove.
1784 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1785 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1786 pv_logical_and, pv_is_identical, pv_is_register): Remove.
1787 (compute_x_addr): Remove, replace by ...
1788 (s390_addr): ... this new function.
1789 (struct s390_prologue_data): Use pv_t instead of prologue_value.
1790 (s390_store, s390_load): Likewise.
1791 (s390_prologue_frame_unwind_cache): Likewise.
1792 (s390_analyze_prologue): Likewise. Also, simplify and combine
1793 several conditional statements.
1794
d750b939
JB
17952006-04-08 Jim Blandy <jimb@codesourcery.com>
1796
1797 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
1798 last patch.)
1799
0b4294d3
DM
18002006-04-08 David S. Miller <davem@sunset.davemloft.net>
1801
1802 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
1803 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
1804 (sparc32_linux_core_gregset,
1805 sparc32_linux_supply_core_gregset,
1806 sparc32_linux_collect_core_gregset,
1807 sparc32_linux_supply_core_fpregset,
1808 sparc32_linux_collect_core_fpregset): New.
1809 (sparc32_linux_init_abi): Register them with generic sparc
1810 core regset infrastructure.
0b4294d3
DM
1811 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
1812 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
1813 (sparc64_linux_core_gregset,
1814 sparc64_linux_supply_core_gregset,
1815 sparc64_linux_collect_core_gregset,
1816 sparc64_linux_supply_core_fpregset,
1817 sparc64_linux_collect_core_fpregset): New.
1818 (sparc64_linux_init_abi): Register them with generic sparc
1819 core regset infrastructure.
0b4294d3
DM
1820 * Makefile.in: Update dependencies.
1821
9c0dd46b
DM
18222006-04-07 David S. Miller <davem@sunset.davemloft.net>
1823
1824 * linux-nat.c (linux_nat_thread_alive): Handle targets that
1825 do not implement PTRACE_PEEKUSER.
1826
670aa98f
DJ
18272006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
1828
1829 * remote.c (remote_wait): Convert warning to error before
1830 parsing corrupt packets.
1831
e28493f2
AS
18322006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
1833
1834 * cli/cli-script.c (struct user_args): Add command field.
1835 (arg_cleanup): Free command string.
1836 (setup_user_args): Copy the command line before relying on it.
1837
7f198e01
JB
18382006-04-06 Joel Brobecker <brobecker@adacore.com>
1839
1840 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
1841 of the "delete" command.
1842
c9f7217e
RC
18432006-04-06 Randolph Chung <tausq@debian.org>
1844
1845 * MAINTAINERS (Patch champions): Add myself.
1846
d993720d
AS
18472006-04-05 Andreas Schwab <schwab@suse.de>
1848
1849 * Makefile.in: Update dependencies.
1850
f5a9b87d
DM
18512006-04-05 David S. Miller <davem@sunset.davemloft.net>
1852
1853 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
1854 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
1855 * Makefile.in (sparc-tdep.o): Update dependencies.
80f9e3aa
DM
1856 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
1857 window out of the correct stack frame.
1858 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
aff37fc1
DM
1859 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
1860 argument.
1861 (dwarf2_frame_default_init_reg): Likewise.
1862 (dwarf2_frame_set_init_reg): Update init_reg arg.
1863 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
1864 ops->init_reg().
1865 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
1866 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
1867 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
1868 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1869 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1870 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1871 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
1872 (sparc32_frame_cache): Call it.
1873 (sparc32_dwarf2_struct_return_p): New function.
1874 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
1875 returns a structure and thus we have to indicate the return PC and
1876 NPC are 4 bytes later than usual.
faea95b1
DM
1877 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
1878 dwarf2 frame sniffer.
1879 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
f5a9b87d 1880
75e192e6
DM
18812006-04-04 David S. Miller <davem@davemloft.net>
1882
1883 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
1884 * config/linux64.h (NATDEPFILES): Likewise
1885 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1886 fill_fpregset): New.
1887 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1888 fill_fpregset): New.
0a59b3af
DM
1889 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
1890 new includes.
1891
dbcd679b
AS
18922006-04-04 Andreas Schwab <schwab@suse.de>
1893
1894 * Makefile.in (elf_common_h): Define.
1895
357d3800
AS
18962006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
1897
1898 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
1899 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
1900
d3c139e9
AS
19012006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
1902
1903 * value.h (struct internalvar): Add field 'endian'.
1904 * value.c (lookup_internalvar): Initialise endian.
1905 (value_of_internalvar): Flip the endian of built-in types if required.
1906 (set_internalvar): Set the endian.
1907 (show_convenience): Access the value through value_of_internalvar().
1908
bb858e6a
DJ
19092006-03-30 Vladimir Prus <ghost@cs.msu.su>
1910
1911 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
1912 instead of hardcoded integer literals.
1913
61d9b92f
DJ
19142006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1915
1916 * cli/cli-script.c (insert_args): Handle NULL user_args.
1917
f7060f85
DJ
19182006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1919
1920 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
1921 the function at zero if we have no symbols.
1922
295bf0ff
DJ
19232006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
1924
1925 * i386-stub.c (getpacket): Fix array overflow.
1926 * m32r-stub.c (getpacket): Likewise.
1927 * m68k-stub.c (getpacket): Likewise.
1928 * sh-stub.c (getpacket): Likewise.
1929 * sparc-stub.c (getpacket): Likewise.
1930
7abfe014
DJ
19312006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1932
1933 * frame.h (set_current_sal_from_frame): New prototype.
1934 * stack.c (set_current_sal_from_frame): Make global.
1935 * infrun.c (normal_stop): Call set_current_sal_from_frame.
1936
0ec9a092
DJ
19372006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1938
1939 * linux-thread-db.c: Include "linux-nat.h".
1940 (check_for_thread_db): New function, split out from
1941 thread_db_new_objfile. Remove dead check for active
1942 thread_db on inapplicable targets.
1943 (thread_db_new_objfile): Call check_for_thread_db.
1944 * Makefile.in (linux-thread-db.o): Update.
1945 * linux-nat.c (child_post_attach): Call check_for_thread_db.
1946 (linux_child_post_startup_inferior): Likewise.
1947 (lin_lwp_attach_lwp): Call target_post_attach instead of
1948 child_post_attach.
1949 * linux-nat.h (check_for_thread_db): New prototype.
1950
6d820c5c
DJ
19512006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1952
1953 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
1954 (init_remote_state): Initialize the new fields.
1955 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
1956 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
1957 (remote_get_threadinfo, parse_threadlist_response)
1958 (remote_get_threadlist, remote_current_thread, remote_threads_info)
1959 (remote_threads_extra_info, extended_remote_restart, get_offsets)
1960 (remote_check_symbols, remote_open_1, remote_detach)
1961 (remove_vcont_probe, remote_vcont_resume, remote_resume)
1962 (remote_wait, remote_async_wait, fetch_register_using_p)
1963 (remote_fetch_registers, store_register_using_P)
1964 (remote_store_registers, check_binary_download, remote_write_bytes)
1965 (remote_read_bytes, remote_insert_breakpoint)
1966 (remote_remove_breakpoint, remote_insert_watchpoint)
1967 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1968 (remote_remove_hw_breakpoint, compare_sections_command)
1969 (remote_xfer_partial, remote_rcmd, packet_command)
1970 (remote_get_thread_local_address): Use the global incoming buffer
1971 instead of alloca or xmalloc. Limit outgoing packets to
1972 rs->remote_packet_size and incoming packets to rs->buf_size.
1973 Update calls to getpkt and remote_send.
1974 (remote_send): Take arguments by reference.
1975 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
1976 (skip_frame): New function.
1977 (read_frame): Take arguments by reference. Expand the packet
1978 buffer instead of issuing an error.
1979 (getpkt, getpkt_sane): Take arguments by reference.
1980 * remote.h (getpkt): Update prototype and doc.
1981 * tracepoint.c (remote_get_noisy_reply): Take arguments by
1982 reference.
1983 (target_buf): Change from array to pointer.
1984 (target_buf_size): New variable.
1985 (remote_set_transparent_ranges): Update call to getpkt.
1986 (trace_start_command, trace_stop_command, trace_status_command):
1987 Update calls to remote_get_noisy_reply.
1988 (finish_tfind_command): Take arguments by reference.
1989 (trace_find_command, trace_find_pc_command)
1990 (trace_find_tracepoint_command, trace_find_line_command):
1991 (trace_find_range_command, trace_find_outside_command): Update
1992 calls to finish_tfind_command.
1993 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
1994
3d8dcac6
RC
19952005-03-30 Randolph Chung <tausq@debian.org>
1996
1997 * hppa-linux-tdep.c: Include regset.h.
1998 (GR_REGNUM, TR_REGNUM, greg_map): New.
1999 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
2000 (hppa_linux_regset, hppa_linux_fpregset): New.
2001 (hppa_linux_regset_from_core_section): New.
2002 (hppa_linux_init_abi): Set regset_from_core_section.
2003 (_initialize_hppa_linux_tdep): Register osabi handler for
2004 64-bit Linux.
2005 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
2006 * config/pa/linux.mh: Stop using core-regset.o
2007
29d375ac
RC
20082006-03-30 Randolph Chung <tausq@debian.org>
2009
2010 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
2011 (hppa_frame_cache): Use new function to find unwind entry.
2012 (hppa_frame_this_id): Likewise.
2013 (hppa_frame_unwind_sniffer): Likewise.
2014
f4267320
DJ
20152006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2016
2017 * NEWS: Mention the removal of NLM.
2018
20192006-03-29 Steve Ellcey <sje@cup.hp.com>
2020
2021 * Makefile.in (nlm): Remove target.
2022 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
2023 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
2024 * configure: Regenerate.
2025 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
2026 * nlm: Remove directory.
2027
698ba934
DJ
20282006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2029
2030 * Makefile.in (utils.o): Update.
2031 * top.c (in_user_command): New.
2032 (command_line_input): Use input_from_terminal_p.
2033 (input_from_terminal_p): Don't check caution. Handle
2034 stdin == NULL for Insight.
2035 * top.h (in_user_command, caution): New declarations.
2036 * utils.c: Include "top.h".
2037 (query, defaulted_query): Check caution here. Move the call
2038 to input_from_terminal_p higher.
2039 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
2040 the depth. Update in_user_command if necessary.
2041 (execute_user_command): Don't clobber old_chain. Set
2042 in_user_command. Let do_restore_user_call_depth handle
2043 user_call_depth.
2044 (read_command_lines): Check whether to prompt before calling
2045 Insight hooks.
2046 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
2047 input_from_terminal_p check.
2048
2f00de94
UW
20492006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
2050
2051 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
2052 (s390_remove_watchpoint): Likewise.
2053
7d30c22d
JB
20542006-03-28 Jim Blandy <jimb@codesourcery.com>
2055
2056 * prologue-value.c, prologue-value.h: New files.
2057 * Makefile.in (prologue_value_h): New variable.
2058 (HFILES_NO_SRCDIR): List prologue-value.h.
2059 (SFILES): List prologue-value.c.
2060 (COMMON_OBS): List prologue-value.o.
2061 (prologue-value.o): New rule.
2062
05c6a9a1
MS
20632006-03-27 Michael Snyder <msnyder@redhat.com>
2064
2065 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
2066 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
2067 xstormy16_frame_prev_register): Change void* to gdb_byte*.
2068 (xstormy16_push_dummy_call): Add block-local char* val,
2069 to avoid type conflict with outer scope variable.
2070
4e6cbc38
AS
20712006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
2072
2073 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
2074
75483fbe
NR
20752006-03-27 Nick Roberts <nickrob@snap.net.nz>
2076
2077 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
2078 offsets for languages like Fortran.
2079
97ce3a05
RC
20802006-03-26 Randolph Chung <tausq@debian.org>
2081
2082 * config/pa/hppa64.mt: Use HPUX version of the tm file.
2083
be85b69f
NR
20842006-03-25 Nick Roberts <nickrob@snap.net.nz>
2085
2086 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
2087 Try to deal with continuation line.
2088 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
2089 variable names.
2090 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
2091 Future proof against new fields being added to MI output.
2092 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
2093 (gdbmi-frame-handler): Update to new variable name
2094 gdb-get-buffer-create.
2095 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
2096 frames which except the innermost (where execution has stopped).
2097
7fc4b1a1
RC
20982006-03-24 Randolph Chung <tausq@debian.org>
2099
2100 * solib-som.c (link_map_start): Don't error out if there is
2101 not yet a link map.
2102
f973ed9c
DJ
21032006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2104
2105 * linux-nat.c (linux_ops_saved): New.
2106 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
2107 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
2108 (linux_nat_fetch_registers, linux_nat_store_registers)
2109 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
2110 (init_lwp_list): Don't set threaded.
2111 (add_lwp): Don't modify threaded.
2112 (delete_lwp): Don't mention non-threaded mode.
2113 (linux_nat_switch_fork): New.
2114 (linux_nat_attach): Update inferior_ptid.
2115 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
2116 threaded flag.
2117 (linux_nat_kill): Handle pending forks and saved forks.
2118 (linux_nat_mourn_inferior): Handle saved forks.
2119 (linux_nat_pid_to_str): Don't use the LWP form when there is
2120 only one thread.
2121 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
2122 (linux_nat_add_target): New.
2123 (_initialize_linux_nat): Don't initialize the linux native target
2124 here.
2125 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
2126 prototypes.
2127 * linux-fork.c: Include "linux-nat.h".
2128 (add_fork): Update initial PID.
2129 (fork_load_infrun_state): Call linux_nat_switch_fork.
2130 * Makefile.in (linux-fork.o): Update.
2131
2132 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
2133 linux_nat_add_target instead of add_target.
2134 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
2135 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
2136 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
2137 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
2138 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
2139 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
2140 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
2141 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
2142 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
2143 * s390-nat.c (_initialize_s390_nat): Likewise.
2144 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
2145 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
2146
791b663b
DJ
21472006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2148
2149 * linux-fork.c: Include "gdb_assert.h".
2150 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
2151 Update the register cache and selected frame also.
2152 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
2153 to single fork mode if necessary.
2154 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
2155 * Makefile.in (linux_fork_h): New.
2156 (linux-fork.o, linux-nat.o): Update.
2157
d311d956
AS
21582006-03-23 Andreas Schwab <schwab@suse.de>
2159
2160 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
2161
a849c9ab
JB
21622006-03-18 Jim Blandy <jimb@codesourcery.com>
2163
2164 * symtab.h (enum address_class): Doc fix.
2165
cf913f37
MS
21662006-03-16 Michael Snyder <msnyder@redhat.com>
2167
712e3020 2168 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
88c231eb 2169 * target.c (push_target): Fix typo in comment.
94e08568 2170 * remote.c (remote_watch_data_address): Fix typo in comment.
cf913f37
MS
2171 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
2172
7c699b81
KB
21732006-03-15 Kevin Buettner <kevinb@redhat.com>
2174
2175 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
2176 Include.
2177 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
2178 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
2179 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
2180 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
2181 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
2182 (frv_elf_fpregset_t): Define types.
2183 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
2184 (frv_linux_regset_from_core_section: New functions.
2185 (frv_linux_gregset, frv_linux_fpregset): New static globals.
2186 (frv_linux_init_abi): Register the `regset_from_core_section' method.
2187 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2188 * solib-frv.c (frv_current_sos): Relocate main executable after
2189 loading core file.
2190 (frv_clear_solib): Clean up space associated with
2191 `main_executable_lm_info'.
2192 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
2193
d37eb719
DJ
21942006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2195
2196 * Makefile.in (mips_linux_tdep_h): New.
2197 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
2198 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
2199 <sys/ptrace.h>.
2200 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
2201 (mips64_linux_regsets_fetch_registers)
2202 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
2203 (mips64_linux_store_registers): New.
2204 (_initialize_mips_linux_nat): Override to_fetch_registers and
2205 to_store_registers.
2206 * mips-linux-tdep.h: New file.
2207 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
2208 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
2209 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
2210 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
2211 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
2212 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
2213 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
2214 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
2215 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
2216 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
2217 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
2218 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
2219 (supply_32bit_reg): Use gdb_byte.
2220 (supply_64bit_reg): New.
2221 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
2222 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
2223 (fill_gregset, supply_fpregset): Update for renamed types.
2224 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
2225 (mips64_fill_gregset): Make global. Handle 32-bit register
2226 sizes.
2227 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
2228 FP regsets properly.
2229
9f62d0e2
DJ
22302006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2231
2232 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
2233 (mips_fill_gregset): Renamed from fill_gregset.
2234 (mips_supply_fpregset): Renamed from supply_fpregset.
2235 (mips_fill_fpregset): Renamed from fill_fpregset.
2236 (fetch_core_registers): Update calls.
2237 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
2238 functions.
2239
26c53e50
DJ
22402006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2241
2242 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
2243
5b652102
DJ
22442006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2245
2246 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
2247 Correct arithmetic for 64-bit CORE_ADDR.
2248
d05f6826
DJ
22492006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2250
2251 * mips-linux-tdep.c: Include "floatformat.h".
2252 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
0a407ead
DJ
2253 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
2254 double.
d05f6826
DJ
2255 (print_gp_register_row): Don't print spaces before ignored
2256 or floating point registers.
6367c6b1 2257 * Makefile.in (mips-linux-tdep.o): Update.
d05f6826 2258
3e5af19e
DJ
22592006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2260
2261 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
2262 for code addresses.
2263 (non_heuristic_proc_desc): Likewise.
2264
dc60ece8
DJ
22652006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2266
2267 * mips-linux-nat.c: Include "gdb_proc_service.h".
2268 (PTRACE_GET_THREAD_AREA): Define.
2269 (ps_get_thread_area): New.
2270 * Makefile.in (mips-linux-nat.o): Update.
2271
2f83030f
JB
22722006-03-13 Jim Blandy <jimb@codesourcery.com>
2273
2274 * MAINTAINERS: Use my work address.
2275
56aac7e8 22762006-03-09 Michael Snyder <msnyder@redhat.com>
a9877905 2277
56aac7e8
MS
2278 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
2279 instead of getting tricky for the multi-fork case.
2280 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
2281 for each fork, and then use init_fork_list to delete them.
a9877905 2282
831004b7
AO
22832006-03-08 Alexandre Oliva <aoliva@redhat.com>
2284
2285 * solib-svr4.c (svr4_current_sos): Move up initialization of
2286 l_addr, such that it clearly covers all cases.
2287
f1b4b38e
AS
22882006-03-08 Andreas Schwab <schwab@suse.de>
2289
2290 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
2291 libunwind_frame_prev_register to use a gdb_byte buffer and
2292 extract_unsigned_integer.
2293 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
2294
2295 * libunwind-frame.c (libunwind_frame_prev_register): Change type
2296 of last argument to `gdb_byte *'
2297 * libunwind-frame.h: Adjust declaration.
2298
f53f0d0b
PB
22992006-03-08 Paul Brook <paul@codesourcery.com>
2300
2301 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
2302 (arm_frame_align): New function.
2303 (arm_gdbarch_init): Use it.
2304
b67fd56f
AC
23052006-03-03 Khem Raj <khem@mvista.com>
2306
2307 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
2308 Committed by Andrew Cagney.
2309
a64ae7e0
CV
23102006-03-02 Corinna Vinschen <vinschen@redhat.com>
2311
2312 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
2313 address to MDR register.
2314
9733fc94
DJ
23152006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
2316
2317 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
2318 calls.
2319
4897bfb9
RC
23202006-03-01 Randolph Chung <tausq@debian.org>
2321
2322 * somread.c (som_symfile_read): Update comment and remove unneeded
2323 use of a deprecated variable.
2324
6fcecea0
RC
23252006-03-01 Randolph Chung <tausq@debian.org>
2326
2327 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
2328 runtime specification.
2329 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
2330 (unwind_command): Likewise.
2331
46acf081
RC
23322006-03-01 Randolph Chung <tausq@debian.org>
2333
2334 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
2335 Pseudo_SP_Set in unwind record.
2336
477e69e8
RC
23372006-03-01 Randolph Chung <tausq@debian.org>
2338
2339 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
2340 TDEP->is_elf to determine if we are working with a SOM binary.
2341 (null_symtab_and_line): Remove unused variable.
2342 * config/pa/hppa64.mt: Use tm-hppa.h.
2343 * config/pa/tm-hppa64.h: Remove file.
2344
848359ac
WZ
23452006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
2346
2347 * f-typeprint.c (f_type_print_base): Delete the redundant space.
2348
f9ec92b6
KB
23492006-02-28 Kevin Buettner <kevinb@redhat.com>
2350
2351 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
2352 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
2353 Include.
2354 (am33_linux_sigframe_cache_init): New function.
2355 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
2356 descriptions.
2357 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
2358 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
2359 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
2360 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
2361 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
2362 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
2363 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
2364 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
2365 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
2366 New constants.
2367 (am33_linux_init_osabi): Register signal frame unwinders.
2368
e92e42f5
KB
23692006-02-28 Kevin Buettner <kevinb@redhat.com>
2370
2371 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
2372 out of pattern match by saving relevant state. Fix stack size
2373 adjustment bug.
2374
cc10cae3
AO
23752006-02-28 Alexandre Oliva <aoliva@redhat.com>
2376
2377 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
2378 l_ld_size fields.
2379 * solib-svr4.c (struct lm_info): Add l_addr field.
2380 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
2381 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
2382 (LM_DYNAMIC_FROM_LINK_MAP): New.
2383 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
2384 (svr4_current_sos): Initialize l_addr. Adjust.
2385 (svr4_relocate_section_addresses): Adjust.
2386 (svr4_ilp32_fetch_link_map_offsets): Define new members.
2387 (svr4_lp64_fetch_link_map_offsets): Likewise.
2388 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2389 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
2390 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2391 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
2392
691342f9
DM
23932006-02-26 David S. Miller <davem@sunset.davemloft.net>
2394
2395 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
2396 * config/sparc/linux64.mt (TDEPFILES): Likewise.
2397
2c387241
AM
23982006-02-27 Alan Modra <amodra@bigpond.net.au>
2399
2400 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
2401 (ppc_linux_remove_watchpoint): Likewise, and args.
2402
3597fb82
MK
24032006-02-26 Mark Kettenis <kettenis@gnu.org>
2404
2405 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
2406 "soft" interrupts.
2407
637d6690
CW
24082006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
2409
2410 * gdb/defs.h: unconditionally include <fcntl.h>, and
2411 ensure that O_BINARY is defined.
2412 * gdb/solib.c(solib_open): ensure solib files are opened in
2413 binary mode.
2414 * gdb/corelow.c: Remove O_BINARY macro definition.
2415 * gdb/exec.c: Remove O_BINARY macro definition
2416 * gdb/remote-rdp.c: Remove O_BINARY macro definition
2417 * gdb/source.c: Remove O_BINARY macro definition
2418 * gdb/symfile.c: Remove O_BINARY macro definition
2419
9846e541
RC
24202006-02-24 Randolph Chung <tausq@debian.org>
2421
2422 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
2423 argreg.
2424 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
2425 function.
2426
2a5e440c
WZ
24272006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
2428
2429 * f-exp.y: Symbol '%' is not used as the modulus operator in
2430 Fortran. Delete this from Fortran expression.
2431 It is now used by Fortran 90 and later to access the member
2432 of derived type. Add this into Fortran expression.
2433 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
2434 Print each elements in the derived type.
2435 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
2436 level into the function definition to do indented printing. And
2437 call fprintfi_filtered instead to do indented printing.
2438 (f_type_print_base): Replace fprintf_filtered with the indented
2439 version (fprintfi_filtered).
2440 (f_type_print_base): Call indented print_equivalent_f77_float_type.
2441 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
2442 the definition of the derived type.
2443
92128691
DJ
24442006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2445
2446 * gdb_curses.h: Provide a fallback prototype for tgetnum.
2447
a6205f53
DJ
24482006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2449
2450 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
2451 also.
2452 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
2453 (DOUBLEST_SCAN_FORMAT): New.
2454 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
2455 (processReal): Use DOUBLEST_SCAN_FORMAT.
2456 * c-exp.y (parse_number): Likewise.
2457 * jv-exp.y (parse_number): Likewise.
2458 * objc-exp.y (parse_number): Likewise.
2459 * p-exp.y (parse_number): Likewise.
2460
0f0b8dcd
DJ
24612006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2462
2463 * event-top.c (async_do_nothing, async_disconnect)
2464 (async_stop_sig, async_float_handler): Remove duplicated
2465 prototypes.
2466 (handle_sighup): Guard prototype with SIGHUP.
2467 (async_do_nothing): Guard function and prototype with
2468 SIGQUIT || SIGHUP.
2469 (async_disconnect): Guard prototype with SIGHUP.
2470 (async_stop_sig): Guard prototype with STOP_SIGNAL.
2471
4e91d01c
DJ
24722006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2473
2474 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
2475
1e0600be
DJ
24762006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2477
2478 * win32-termcap.c (tputs): Return 0.
2479
094a342e
MK
24802006-02-21 Mark Kettenis <kettenis@gnu.org>
2481
2482 * configure.ac: Introduce ---enable-werror, which adds -Werror to
2483 the compiler command line. Enabled by default. Disable with
2484 --disable-werror.
2485 * configure regenerate.
2486
74763737
DJ
24872006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
2488
2489 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
2490 special.
2491
13d35ae5
AS
24922006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
2493
2494 * defs.h (directory_switch): Add prototype.
2495 * main.c (captured_main): Use directory_switch() instead of
2496 directory_command() to add directories from the -d switch.
2497 * source.c (directory_switch): New function.
2498 (add_path): Use buildargv() to parse spaces in filenames properly.
2499 Strip multiple trailing '/' rather than just one.
2500
5b96932b
AS
25012006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
2502
2503 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
2504 hand decoding the command line, to allow use of quotes and spaces.
2505 (_initialize_symfile): Reorganize the help message for add-symbol-file
2506 such that 'help files' shows a better message.
2507
a6b0a3f3
AS
25082006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
2509
2510 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
2511 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
2512 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
2513 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
2514
17fbb0bd
DJ
25152006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2516
2517 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
2518 and __SIGRTMIN + 1.
2519
444abaca
DJ
25202006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2521
2522 * remote.c: Add an enumeration for configurable remote
2523 packets.
2524 (remote_protocol_packets, set_remote_protocol_packet_cmd)
2525 (show_remote_protocol_packet_cmd): New.
2526 (remote_protocol_vcont)
2527 (set_remote_protocol_vcont_packet_cmd)
2528 (show_remote_protocol_vcont_packet_cmd)
2529 (remote_protocol_qSymbol)
2530 (set_remote_protocol_qSymbol_packet_cmd)
2531 (show_remote_protocol_qSymbol_packet_cmd)
2532 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
2533 (show_remote_protocol_P_packet_cmd)
2534 (remote_protocol_Z)
2535 (set_remote_protocol_Z_software_bp_packet_cmd)
2536 (show_remote_protocol_Z_software_bp_packet_cmd)
2537 (set_remote_protocol_Z_hardware_bp_packet_cmd)
2538 (show_remote_protocol_Z_hardware_bp_packet_cmd)
2539 (set_remote_protocol_Z_write_wp_packet_cmd)
2540 (show_remote_protocol_Z_write_wp_packet_cmd)
2541 (set_remote_protocol_Z_read_wp_packet_cmd)
2542 (show_remote_protocol_Z_read_wp_packet_cmd)
2543 (set_remote_protocol_Z_access_wp_packet_cmd)
2544 (show_remote_protocol_Z_access_wp_packet_cmd)
2545 (remote_protocol_binary_download)
2546 (set_remote_protocol_binary_download_cmd)
2547 (show_remote_protocol_binary_download_cmd)
2548 (remote_protocol_qPart_auxv)
2549 (set_remote_protocol_qPart_auxv_packet_cmd)
2550 (show_remote_protocol_qPart_auxv_packet_cmd)
2551 (remote_protocol_qGetTLSAddr)
2552 (set_remote_protocol_qGetTLSAddr_packet_cmd)
2553 (show_remote_protocol_qGetTLSAddr_packet_cmd)
2554 (remote_protocol_p)
2555 (set_remote_protocol_p_packet_cmd)
2556 (show_remote_protocol_p_packet_cmd): Delete.
2557
2558 (init_all_packet_configs): Simplify.
2559 (set_remote_protocol_Z_packet_cmd)
2560 (show_remote_protocol_Z_packet_cmd)
2561 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
2562 (remote_fetch_registers, remote_prepare_to_store)
2563 (remote_store_registers, check_binary_download)
2564 (remote_write_bytes, remote_insert_breakpoint)
2565 (remote_remove_breakpoint, remote_insert_watchpoint)
2566 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2567 (remote_remove_hw_breakpoint, remote_xfer_partial)
2568 (remote_get_thread_local_address): Update for packet array.
2569 (_initialize_remote): Likewise; also update for common
2570 set/show commands.
2571
3bd72c6f
DJ
25722006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2573
2574 * symfile.c (place_section): Correct retry logic.
2575
a244bdca
CF
25762006-02-19 Christopher Faylor <cgf@timesys.com>
2577
2578 * win32_nat.c (cygwin_load_start): New variable.
2579 (cygwin_load_end): Ditto.
2580 (have_saved_context): Ditto.
2581 (saved_context): Ditto.
2582 (max_dll_name_len): Delete obsolete variable.
2583 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
2584 if we are in a cygwin signal rather than a windows signal.
2585 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
2586 if dll being loaded is the cygwin DLL.
2587 (register_loaded_dll): Remove calculation of max_dll_name_len.
2588 (win32_clear_solib): Ditto.
2589 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
2590 solib_add.
2591 (handle_output_debug_string): Detect and store signal information sent
2592 by Cygwin here.
2593 (handle_exception): Silently pass on errors in the cygwin DLL. Return
2594 -1 on first pass exception.
2595 (win32_continue): Remove spurious clearing of continue_status.
2596 (get_win32_debug_event): Deal differently first chance exception.
2597
806e23c0
RC
25982006-02-19 Randolph Chung <tausq@debian.org>
2599
2600 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
2601 unwind entry.
2602
d843c49c
FF
26032006-02-16 Fred Fish <fnf@specifix.com>
2604
2605 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
2606 a non lval value zero, of the appropriate type, when avoiding
2607 side effects.
2608 * typeprint.c (ptype_eval): Remove function and declaration.
2609 (ptype_command): Simplify to just a call to whatis_exp.
2610
1c5bada0
PB
26112006-02-15 Paul Brook <paul@codesourcery.com>
2612
2613 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
2614 Load insn opcodes as unsigned values.
2615
96c1eda2
AO
26162006-02-14 Alexandre Oliva <aoliva@redhat.com>
2617
2618 * doublest.h (DOUBLEST): Use long double only if we can scan
2619 it in. Undefine HAVE_LONG_DOUBLE otherwise.
2620 (DOUBLEST_FORMAT): New.
2621 * c-exp.y (parse_number): Use it.
2622 * jv-exp.y (parse_number): Likewise.
2623 * objc-exp.y (parse_number): Likewise.
2624 * p-exp.y (parse_number): Likewise.
2625 * varobj.c (free_variable): Silence type-punning warnings.
2626 * tui/tui-data.h (struct tui_list): Change type of list member.
2627 * tui/tui-data.c: Remove no-longer-needed type casts.
2628 (source_windows): Silence type-punning warnings.
2629 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
2630
92dd43fa
MK
26312006-02-13 Mark Kettenis <kettenis@gnu.org>
2632
2633 Fix PR breakpoints/2080.
2634 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
2635 (i386_analyze_stack_align): New function.
2636 (i386_analyze_prologue): Use i386_analyze_stack_align.
2637 (i386_frame_cache): Deal with stack realignment.
2638
7314787a
NR
26392006-02-14 Nick Roberts <nickrob@snap.net.nz>
2640
2641 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
2642 (gdb-break-list-regexp): Match "what" field if present.
be85b69f 2643 (gdb-stack-list-frames-regexp): Match "from" field if present.
7314787a
NR
2644 (gdb-stack-list-frames-handler): Present output like "info
2645 breakpoints" so regexps can be shared with gdb-ui
2646
0ea3f30e
DJ
26472006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
2648
2649 * NEWS: Mention native Windows support.
2650 * Makefile.in (gdb_select_h, ser_tcp_h): New.
2651 (ALLDEPFILES): Add ser-mingw.c.
2652 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
2653 (ser-tcp.o, ser-unix.o): Update.
2654 (ser-mingw.o): New rule.
2655 * configure: Regenerated.
2656 * configure.ac: Add ser-mingw.o for mingw32.
2657 * ser-mingw.c: New file.
2658 * event-loop.c: Include "gdb_select.h".
2659 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
2660 * ser-base.c: Include "gdb_select.h".
2661 (ser_base_wait_for): Use gdb_select.
2662 * serial.c (serial_for_fd): New function.
2663 (serial_fdopen): Try "terminal" before "hardwire". Initialize
2664 the allocated struct serial.
2665 (serial_wait_handle): New function.
2666 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
2667 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
2668 * gdb_select.h: New file.
2669 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
2670 (net_close, net_read_prim, net_write_prim): Make global.
2671 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
2672 Document why we can not use gdb_select.
2673 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
2674 * ser-tcp.h: New file.
2675 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
2676 (handle_sigio): Use gdb_select.
2677 (initialize_stdin_serial): New function.
2678 * terminal.h (initialize_stdin_serial): New prototype.
2679 * top.c (gdb_init): Call initialize_stdin_serial.
2680 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
2681 event-loop.c. Add exception condition support. Use serial_for_fd
2682 and serial_wait_handle. Fix timeout handling.
2683 * posix-hdep.c: Include "gdb_select.h".
2684 (gdb_select): New function.
2685 * remote-st.c (connect_command): Use gdb_select.
2686 * ser-unix.c: Include "gdb_select.h".
2687 (hardwire_send_break, wait_for): Use gdb_select.
2688
121ce6e5
DJ
26892006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
2690
2691 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
2692 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
2693 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
2694 to posix-hdep.o by default.
2695 * configure: Regenerated.
2696 * configure.host: Document gdb_host_obs. Add an entry for
2697 i[34567]86-*-mingw32*.
2698 * mingw-hdep.c, posix-hdep.c: New files.
2699 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
2700
1f82754b
JB
27012006-02-10 Joel Brobecker <brobecker@adacore.com>
2702
2703 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
2704 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
2705 * rs6000-tdep.h: New file.
2706 * rs6000-tdep.c: Include "rs6000-tdep.h".
2707 (rs6000_gdbarch_init): Remove enabling of software single step.
2708 Will be done in the AIX-specific initialization routine.
2709 * rs6000-aix-tdep.c: New file.
2710 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
2711 * Makefile.in (rs6000_tdep_h): New variable.
2712 (rs6000-tdep.o): Update dependencies.
2713 (rs6000-aix-tdep.o): New rule.
2714
577b7047
JB
27152006-02-10 Joel Brobecker <brobecker@adacore.com>
2716
2717 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
2718 instead of add_setshow_zinteger_cmd to defined the aix-thread
2719 boolean setting.
2720
ff800d76
NR
27212006-02-10 Nick Roberts <nickrob@snap.net.nz>
2722
2723 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
2724
5afb4e99
DJ
27252006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
2726
2727 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
2728 30 bits. Add load_all_dies flag.
2729 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
2730 Load DW_TAG_member by default. Remove internal_error call.
2731 (find_partial_die): Reload the compilation unit if we can not find
2732 a DIE in the cache. Call internal_error here if we still can not
2733 find the DIE.
2734
a832795c
NR
27352006-02-10 Nick Roberts <nickrob@snap.net.nz>
2736
2737 * breakpoint.c (print_one_breakpoint): Add break to case
2738 bp_catch_vfork in switch statement.
2739
c9dd6fef
WZ
27402006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
2741
2742 * config/i386/nm-i386sol2.h: Update copyright year.
2743 * config/mips/nm-irix5.h: Ditto.
2744 * config/sparc/nm-sol2.h: Ditto.
2745 * s390-nat.c: Ditto.
2746 * ppc-linux-nat.c: Ditto.
2747
2a3cdf79
WZ
27482006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
2749
2750 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
2751 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2752 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2753 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2754 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2755 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2756 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2757 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
2758 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
2759 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
2760 add to_region_ok_for_hw_watchpoint.
2761 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
2762 (s390_region_ok_for_hw_watchpoint): New.
2763 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
2764 and add to_region_ok_for_hw_watchpoint.
2765 * target.c (default_region_size_ok_for_hw_watchpoint,
2766 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
2767 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
2768 inheritance and default_region_size_ok_for_hw_watchpoint.
2769 (default_region_ok_for_hw_watchpoint): If len is less than or equal
2770 the length of void pointer, return ok.
2771 (default_region_size_ok_for_hw_watchpoint): Delete.
2772 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
2773 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
2774 * target.h (struct target_ops): Delete
2775 to_region_size_ok_for_hw_watchpoint.
2776 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2777
e0d24f8d
WZ
27782006-02-08 Ben Elliston <bje@au1.ibm.com>
2779 Wu Zhou <woodzltc@cn.ibm.com>
2780
2781 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
2782 PTRACE_GETSIGINFO): Define.
2783 (last_stopped_data_address): New.
2784 (ppc_linux_check_watch_resources): New function.
2785 (ppc_linux_region_ok_for_hw_watchpoint): New function.
2786 (ppc_linux_insert_watchpoint): New function.
2787 (ppc_linux_remove_watchpoint): New function.
2788 (ppc_linux_stopped_data_address): New function.
2789 (ppc_linux_stopped_by_watchpoint): New function.
2790 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
2791 related target vectors.
2792 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
2793 to have nonsteppable watchpoint.
2794 * target.c (default_region_ok_for_hw_watchpoint,
2795 debug_to_region_ok_for_hw_watchpoint): New prototypes.
2796 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
2797 and set default to_region_ok_for_hw_watchpoint.
2798 (default_region_ok_for_hw_watchpoint): New function.
2799 (debug_to_region_ok_for_hw_watchpoint): New function.
2800 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
2801 debug_target.
2802 * target.h (struct target_ops): Add a new target vector
2803 to_region_ok_for_hw_watchpoint.
2804 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
2805 defined anyplace else.
927890d0 2806
e0d24f8d 28072005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
2808 * symfile.c (add_symbol_file_command): Abort if the user forgot
2809 to provide the address when the file has been loaded.
2810
f4d408c6
DJ
28112006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
2812
2813 * MAINTAINERS: Update file based on maintainers survey. Add
2814 a note to Past Maintainers. Move unresponsive or inactive
2815 maintainers to Authorized Committers or Past Maintainers as
2816 appropriate. Correct Jim Kingdon's email address. Remove
2817 vacant areas of responsibility.
2818
38fcd64c
DJ
28192006-02-06 Vladimir Prus <ghost@cs.msu.su>
2820
2821 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
2822 fullname field.
2823
7b871fab
DJ
28242006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
2825
2826 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
2827 * exceptions.c (exception_none, exceptions_state_mc_init)
2828 (throw_vfatal): Use GDB_NO_ERROR.
2829
e4cd0d6a
MK
28302006-02-02 Mark Kettenis <kettenis@gnu.org>
2831
2832 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
2833 r_map_size members. Add r_version_offset, r_version_size and
2834 r_ldsomap_offset members.
2835 * solib-svr4.c (solib_svr4_r_map): Renamed from
2836 fetch_link_map_member. Simplify using read_memory_typed_address.
2837 (solib_svr4_r_ldsomap): New function.
2838 (open_symbol_file_object): Use solib_svr_r_map.
2839 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
2840 linker by using solib_svr4_r_ldsomap.
2841 (svr4_ilp32_fetch_link_map_offsets)
2842 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
2843 link_map_offsets'.
2844 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
2845 changes to `struct link_map_offsets'.
2846 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
2847 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
2848 `struct link_map_offsets'.
2849
e26af52f
DJ
28502006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2851
2852 * linux-nat.c (struct saved_ptids, threads_to_delete)
2853 (record_dead_thread, prune_lwps, find_thread_from_lwp)
2854 (exit_lwp): New.
2855 (linux_nat_resume): Call prune_lwps.
2856 (wait_lwp, linux_nat_wait): Call exit_lwp.
2857
46e9880c
DJ
28582006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2859
2860 * printcmd.c (printf_command): Make format string checking
2861 stricter. Add separate cases for long_arg, ptr_arg, and
2862 long_double_arg.
2863 * utils.c (xstrvprintf): Improve the error message issued
2864 for a bad format string.
2865 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
2866 New variables.
2867 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
2868 $(NO_WERROR_CFLAGS).
2869 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
2870 enable -Werror.
2871
37a105a1
DJ
28722006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2873
2874 * Makefile.in (remote.o): Update.
2875 * remote.c (show_packet_config_cmd): Shorten messages.
2876 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
2877 (show_remote_cmd): Iterate.
2878 (_initialize_remote): Remove remote_set_cmdlist,
2879 remote_show_cmdlist.
2880
ae5a43e0
DJ
28812006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2882
2883 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
2884 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
2885 prototypes.
2886 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
2887 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
2888 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
2889 ...here.
2890 * gdbtypes.c: Include "hashtab.h".
2891 (build_gdbtypes): Remove extra prototype.
2892 (struct type_pair, type_pair_hash, type_pair_eq)
2893 (create_copied_types_hash, copy_type_recursive): New.
2894 * gdbtypes.h: Include "hashtab.h".
2895 (TYPE_ZALLOC): New.
2896 (create_copied_types_hash, copy_type_recursive): New prototypes.
2897 * objfiles.c (free_objfile): Call preserve_values.
2898 * symfile.c (reread_symbols): Likewise.
2899 (clear_symtab_users): Remove calls to clear_value_history and
2900 clear_internalvars.
2901 * value.c (clear_value_history, clear_internalvars): Removed.
2902 (preserve_one_value, preserve_values): New functions.
2903 * value.h (clear_value_history, clear_internalvars): Removed.
2904 (preserve_values): New prototype.
2905
2906 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
2907 variables here.
2908
b929c77f
MK
29092006-01-29 Mark Kettenis <kettenis@gnu.org>
2910
2911 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
2912 Fixes PR tdep/2075.
2913
1581f359
JB
29142006-01-27 Joel Brobecker <brobecker@adacore.com>
2915
2916 * MAINTAINERS: Use a consistent email address for brobecker.
2917
37706b70
JB
29182006-01-27 Joel Brobecker <brobecker@adacore.com>
2919
2920 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
2921 in the previous change.
2922
9353355f
DJ
29232006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2924
2925 PR gdb/1914
2926 * fork-child.c (fork_inferior): Don't call
2927 solib_create_inferior_hook.
2928 * infcmd.c (post_create_inferior): Call solib_add,
2929 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
2930 (attach_command): Don't call solib_add or
2931 re_enable_breakpoints_in_shlibs. Call post_create_inferior
2932 instead.
2933 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
2934 or observer_notify_inferior_created. Call post_create_inferior
2935 instead.
2936 * corelow.c: Don't include "observer.h".
2937 (solib_add_stub): Deleted.
2938 (core_open): Don't call observer_notify_inferior_created or
2939 solib_add_stub. Call post_create_inferior instead.
2940 * inf-ptrace.c: Don't include "observer.h".
2941 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
2942 * inf-ttrace.c: Don't include "observer.h".
2943 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
2944 * inferior.h (solib_create_inferior_hook): Remove redundant
2945 prototype.
2946 * inftarg.c: Don't include "observer.h".
2947 (child_attach): Don't call observer_notify_inferior_created.
2948 * Makefile.in: Update dependencies.
2949
281b533b
DJ
29502006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2951
2952 * infcmd.c: Include "observer.h".
2953 (post_create_inferior): New function.
2954 (run_command_1): Call it. Also call proceed.
2955 * inferior.h (post_create_inferior): New prototype.
2956 * Makefile.in (infcmd.o): Update.
2957
2958 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
2959 * go32-nat.c (go32_create_inferior): Likewise.
2960 * nto-procfs.c (procfs_create_inferior): Likewise.
2961 * procfs.c (procfs_create_inferior): Likewise.
2962 * remote-sim.c (gdbsim_create_inferior): Likewise.
2963 * remote.c (extended_remote_create_inferior)
2964 (extended_remote_async_create_inferior): Likewise.
2965 * win32-nat.c (win32_create_inferior): Likewise.
2966 * wince.c (child_create_inferior): Likewise.
2967
2968 * monitor.c (monitor_create_inferior): Don't call proceed.
2969 Set the PC manually.
2970 * ocd.c (ocd_create_inferior): Likewise.
2971 * remote-e7000.c (e7000_create_inferior): Likewise.
2972 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2973 * remote-mips.c (mips_create_inferior): Likewise.
2974 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
2975 * remote-sds.c (sds_create_inferior): Likewise.
2976 * remote-st.c (st2000_create_inferior): Likewise.
2977
2978 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
2979 proceed or observer_notify_inferior_created.
2980 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
2981 * inftarg.c (child_create_inferior): Likewise.
2982
e23fc6de
DJ
29832006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2984
2985 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
2986 after mourning the inferior.
2987
13d6656b
JB
29882006-01-24 Jim Blandy <jimb@redhat.com>
2989
2990 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
2991
59f92a09
FF
29922006-01-24 Fred Fish <fnf@specifix.com>
2993
2994 * parse.c (source.h): Include.
2995 (parse_exp_in_context): Use static source context if no
2996 other context found.
2997
dda63807
AS
29982006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
2999
3000 * sh-tdep.c: Include reggroups.h.
3001 (sh_register_reggroup_p): New function.
3002 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
3003 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
3004
4b505b12
AS
30052006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
3006
3007 * cli/cli-cmds.c: Include fcntl.h.
3008 (source_command): Use the GDB search path to find script files.
3009
721d14ba
DJ
30102006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
3011
3012 PR tdep/2029
3013 Suggested by Till Straumann <strauman@slac.stanford.edu>:
3014 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
3015 instructions. Handle PIC bcl.
3016
3d64d617
DJ
30172006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
3018
3019 * config/djgpp/README: Typo fix.
3020 * config/djgpp/fnchange.lst: Update.
3021
0a8f48b9
MK
30222006-01-22 Mark Kettenis <kettenis@gnu.org>
3023
c893be75
MK
3024 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
3025 (sparc_address_from_register): New prototype.
3026 (sparcnbsd_step_trap): New prototype.
3027 * sparc-tdep.c (sparc_address_from_register): Make globally
3028 visible.
3029 (sparc_analyze_control_transfer): Change prototype to accept
3030 `struct gdbarch *' as first argument. Allow for optional hnadling
3031 for trap instructions.
3032 (sparc_step_trap): New function.
3033 (sparc_software_single_step): Adjust call to
3034 sparc_analyze_control_trabsfer.
3035 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
3036 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
3037 (sparc32nbsd_init_abi): Set TDEP->step_trap.
3038 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
3039 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
3040
0a8f48b9
MK
3041 * sparc-tdep.c (sparc32_return_value): Convert to use
3042 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
3043 RETURN_VALUE_STRUCT_CONVENTION.
3044 (sparc32_extract_struct_value_address): Remove.
3045
1f3a99d5
DJ
30462006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
3047
3048 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
3049 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
3050
84eb3c4f
DJ
30512006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
3052
3053 * solib.c (info_sharedlibrary_command): Avoid internal_error.
3054
878d9193
MK
30552006-01-21 Mark Kettenis <kettenis@gnu.org>
3056
3057 * i386-tdep.c (i386_mxcsr_type): New variable.
3058 (i386_init_types): Initialize i386_mxcsr_type.
3059 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
3060 * i386-tdep.c (i386_mxcsr_type): New extern.
3061 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
3062 %mxcsr.
3063
acab6ab2
MM
30642006-01-20 Mark Mitchell <mark@codesourcery.com>
3065
3066 * Makefile.in (remote-rdi.o): Remove.
3067 (rdi-share/libangsd.a): Likewise.
3068 * README: Don't mention remote-rdi.c.
3069 * NEWS: Mention removal of rdi-share.
3070 * configure.ac: Don't configure rdi-share subdirectory.
3071 * remote-rdi.c: Remove.
3072 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
3073 (TDEPLIBS): Remove rdi-share/libangsd.a.
3074 * rdi-share/Makefile.am: Remove.
3075 * rdi-share/Makefile.in: Likewise.
3076 * rdi-share/README.CYGNUS: Likewise.
3077 * rdi-share/aclocal.m4: Likewise.
3078 * rdi-share/adp.h: Likewise.
3079 * rdi-share/adperr.h: Likewise.
3080 * rdi-share/angel.h: Likewise.
3081 * rdi-share/angel_bytesex.c: Likewise.
3082 * rdi-share/angel_bytesex.h: Likewise.
3083 * rdi-share/angel_endian.h: Likewise.
3084 * rdi-share/ardi.c: Likewise.
3085 * rdi-share/ardi.h: Likewise.
3086 * rdi-share/armdbg.h: Likewise.
3087 * rdi-share/buffers.h: Likewise.
3088 * rdi-share/chandefs.h: Likewise.
3089 * rdi-share/channels.h: Likewise.
3090 * rdi-share/chanpriv.h: Likewise.
3091 * rdi-share/configure: Likewise.
3092 * rdi-share/configure.in: Likewise.
3093 * rdi-share/crc.c: Likewise.
3094 * rdi-share/crc.h: Likewise.
3095 * rdi-share/dbg_conf.h: Likewise.
3096 * rdi-share/dbg_cp.h: Likewise.
3097 * rdi-share/dbg_hif.h: Likewise.
3098 * rdi-share/dbg_rdi.h: Likewise.
3099 * rdi-share/devclnt.h: Likewise.
3100 * rdi-share/devices.h: Likewise.
3101 * rdi-share/devsw.c: Likewise.
3102 * rdi-share/devsw.h: Likewise.
3103 * rdi-share/drivers.c: Likewise.
3104 * rdi-share/drivers.h: Likewise.
3105 * rdi-share/etherdrv.c: Likewise.
3106 * rdi-share/ethernet.h: Likewise.
3107 * rdi-share/host.h: Likewise.
3108 * rdi-share/hostchan.c: Likewise.
3109 * rdi-share/hostchan.h: Likewise.
3110 * rdi-share/hsys.c: Likewise.
3111 * rdi-share/hsys.h: Likewise.
3112 * rdi-share/logging.c: Likewise.
3113 * rdi-share/logging.h: Likewise.
3114 * rdi-share/msgbuild.c: Likewise.
3115 * rdi-share/msgbuild.h: Likewise.
3116 * rdi-share/params.c: Likewise.
3117 * rdi-share/params.h: Likewise.
3118 * rdi-share/rx.c: Likewise.
3119 * rdi-share/rxtx.h: Likewise.
3120 * rdi-share/serdrv.c: Likewise.
3121 * rdi-share/serpardr.c: Likewise.
3122 * rdi-share/sys.h: Likewise.
3123 * rdi-share/tx.c: Likewise.
3124 * rdi-share/unixcomm.c: Likewise.
3125 * rdi-share/unixcomm.h: Likewise.
3126
4577207e
MK
31272006-01-21 Mark Kettenis <kettenis@gnu.org>
3128
3129 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
3130 Change type of last argument to `gdb_byte *'.
3131
34f55018
MK
31322006-01-20 Mark Kettenis <kettenis@gnu.org>
3133
3134 * hppa-tdep.h (hppa_in_solib_call_trampoline)
3135 (hppa_skip_trampoline_code): New prototypes.
3136 * hppa-tdep.c (struct insn_pattern): New.
3137 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
3138 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
3139 here from hppa-linux-tdep.c
3140 (HPPA_MAX_INSN_PATTERN_LEN): New define.
3141 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
3142 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
3143 functions based on functions removed from hppa-linux-tdep.c.
3144 * hppa-linux-tdep.c (hppa_long_branch_stub)
3145 (hppa_long_branch_pic_stub, hppa_import_stub)
3146 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
3147 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
3148 (hppa_linux_in_solib_call_trampoline)
3149 (hppa_linux_skip_trampoline_code): Removed.
3150 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
3151 hppa_in_solib_call_trampoline and skip_trampoline_code to
3152 hppa_skip_trampoline_code.
3153 * hppabsd-tdep.c (hppabsd_init_abi): Set
3154 TDEP->in_solib_call_trampoline and skip_trampoline_code.
3155
7be93b9e
JB
31562006-01-20 Jim Blandy <jimb@redhat.com>
3157
f408839d
JB
3158 * MAINTAINERS: Change my E-mail address.
3159
7be93b9e
JB
3160 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
3161 * configure: Regenerated.
3162
b2a74f99
DJ
31632006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
3164
3165 * MAINTAINERS: Overhaul.
3166
4f2aea11
MK
31672006-01-18 Mark Kettenis <kettenis@gnu.org>
3168
5ae96ec1
MK
3169 Based on a previous patch form Michal Ludvig:
3170 * amd64-tdep.c (amd64_sse_type): Remove.
3171 (amd64_register_info): Use i386_eflags_type and i386_sse_type
3172 where appropriate.
3173 (AMD64_NUM_REGS): Use ARRAY_SIZE.
3174 (amd64_register_type): Remove code to build amd_sse_type.
3175 * i386-tdep.c (i386_eflag_type): New variable.
3176 (i386_mmx_type, i386_sse_type): Make global.
3177 (i386_init_types): New function.
3178 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
3179 (i386_register_type): Return i386_eflag_type, i386_sse_type and
3180 i386_mmx_type when appropriate.
3181 (_initialize_i386_tdep): Call i386_init_types.
3182 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
3183 Declare extern.
3184
4f2aea11
MK
3185 Based on a previous patch form Michal Ludvig:
3186 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
3187 functions.
3188 (is_integral_type, rank_one_type, recursive_dump_type): Add
3189 support for TYPE_CODE_FLAGS.
3190 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
3191 (append_flags_type_field, init_flags_type): New prototypes.
3192 * ada-valprint.c (ada_val_print_1): Add support for
3193 TYPE_CODE_FLAGS.
3194 * c-valprint.c (c_val_print): Likewise.
3195 * f-valprint.c (f_val_print): Likewise.
3196 * p-valprint.c (pascal_val_print): Likewise.
3197 * valprint.c (val_print_type_code_flags): New function.
3198 * valprint.h (val_print_type_code_flags): New prototype.
3199 * value.c (unpack_long, value_from_longest): Add support for
3200 TYPE_CODE_FLAGS.
3201
4cdb5adf
CF
32022006-01-17 Christopher Faylor <cgf@timesys.com>
3203
3204 * MAINTAINERS: Very belatedly remove myself from from the list of
3205 people caught up in the paper trail.
3206
1193688d
JB
32072006-01-17 Jim Blandy <jimb@redhat.com>
3208
4e38b386
JB
3209 * symtab.h (struct general_symbol_info): Use gdb_byte for
3210 value.bytes.
3211 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
3212 a floating-point constant's value.
3213 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
3214 to char *.
3215 * findvar.c (read_var_value): Eliminate needless temporary.
3216
1193688d
JB
3217 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
3218 to match prior change to dwarf2_read_section's type.
3219
0d1243d9
PG
32202006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
3221
3222 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
3223 * rs6000-tdep.c (insn_changes_sp_or_jumps)
3224 (rs6000_in_function_epilogue_p): New functions.
3225 (rs6000_gdbarch_init): Set in_function_epilogue_p.
3226
fe1b8b76
JB
32272006-01-17 Jim Blandy <jimb@redhat.com>
3228
3229 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
3230 (struct line_header, struct partial_die_info, struct dwarf_block):
3231 Use gdb_byte for members that refer to Dwarf section contents.
3232 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
3233 dwarf_decode_macros, load_comp_unit, load_partial_dies,
3234 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
3235 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
3236 read_8_bytes, read_address, read_attribute, read_attribute_value,
3237 read_comp_unit, read_comp_unit_head, read_die_and_children,
3238 read_die_and_siblings, read_full_die, read_indirect_string,
3239 read_initial_length, read_n_bytes, read_offset, read_partial_die,
3240 read_signed_leb128, read_string, read_unsigned_leb128,
3241 skip_children, skip_leb128, skip_one_die): Same.
3242
a0841d7a
DJ
32432006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3244
3245 * complaints.c (stop_whining): Make signed.
3246 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
3247
939b2b42
DJ
32482006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3249
3250 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
3251 notices.
3252
891d2f0b
DJ
32532006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3254
3255 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
3256 (read_offset): Change BYTES_READ argument to unsigned int.
3257 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
3258 (create_all_comp_units, dwarf2_get_pc_bounds)
3259 (dwarf_decode_line_header, var_decode_location)
3260 (dwarf_decode_macros): Change local BYTES_READ variables to
3261 unsigned int.
3262 (read_indirect_string): Remove obsolete cast.
3263
cfd77fa1
DJ
32642006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3265
3266 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
3267 argument.
3268 (remote_fileio_func_open, remote_fileio_func_rename)
3269 (remote_fileio_func_unlink, remote_fileio_func_stat)
3270 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
3271 (remote_fileio_func_system): Cast the arguments to
3272 remote_read_bytes and remote_write_bytes.
3273 (remote_fileio_func_read, remote_fileio_func_write): Use a
3274 gdb_byte buffer.
3275 * remote.h (remote_read_bytes, remote_write_bytes): Update
3276 prototypes.
3277 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
3278 (threadref_to_int): Replace bogus char * cast.
3279 (remote_unpack_thread_info_response): Use int for tag.
3280 (remote_threads_extra_info, remote_check_symbols): Cast string
3281 arguments to hex2bin.
3282 (remote_wait): Use a char buffer for packets and a gdb_byte
3283 buffer for registers.
3284 (remote_async_wait): Likewise.
3285 (remote_prepare_to_store, store_register_using_P)
3286 (remote_store_registers): Use gdb_byte buffers.
3287 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
3288 for MYADDR and char buffers for strings.
3289 (remote_xfer_partial): Add casts for string operations on READBUF.
3290 (remote_rcmd): Cast strings passed to bin2hex.
3291
60bf0650
MM
32922006-01-16 Mark Mitchell <mark@codesourcery.com>
3293
3294 * aclocal.m4: Regenerate.
3295
60e81fcc
NS
32962006-01-16 Nathan Sidwell <nathan@codesourcery.com>
3297
3298 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
3299 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
3300 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
3301 (mt_register_name): Lazily synthesize name for coprocessor pseudo
3302 array registers.
3303 (mt_copro_register_type): New. Broken out of ...
3304 (mt_register_type): ... here. Use it. Deal with coprocessor
3305 pseudo array.
3306 (mt_select_coprocessor): New.
3307 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
3308 coprocessor pseudo array.
3309
f365de73
AS
33102006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
3311
3312 * breakpoint.c (insert_breakpoints): Check that a thread exists
3313 before inserting thread specific breakpoints.
3314
9d519230
MK
33152006-01-15 Mark Kettenis <kettenis@gnu.org>
3316
6062517a
MK
3317 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
3318 commit.
3319
9d519230
MK
3320 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
3321 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
3322 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
3323 * config/alpha/nm-nbsd.h: Remove file.
3324 * config/alpha/nm-fbsd.h: Remove file
3325 * config/alpha/nbsd.mh (NAT_FILE): Remove.
3326 * config/alpha/fbsd.mh (NAT_FILE): Remove.
3327
0a029df5
DJ
33282006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
3329
3330 * macroexp.c (expand): Initialize argc.
3331 * stabsread.c (read_type): Handle errors from read_args.
3332 (read_args): Return NULL for errors.
3333
1731e543
MK
33342006-01-15 Mark Kettenis <kettenis@gnu.org>
3335
3336 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
3337 strcmp to compare string to a byte buffer.
3338
777ea8f1
DJ
33392006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
3340
3341 * printcmd.c (output_command): Always initialize fmt.size.
3342 (printf_command): Use gdb_byte.
3343 * symfile.c (separate_debug_file_exists): Use gdb_byte.
3344 (load_section_callback, read_target_long_array): Likewise.
3345 (simple_read_overlay_table, simple_read_overlay_region_table)
3346 (simple_overlay_update_1): Correct calls to read_target_long_array.
3347 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
3348 Also change local pointers.
3349 (val_print_string): Use gdb_byte.
3350
4b17b389
MK
33512006-01-15 Mark Kettenis <kettenis@gnu.org>
3352
3353 * alphafbsd-tdep.c: Include "solib-svr4.h".
3354 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3355 svr4_lp64_fetch_link_map_offsets.
3356 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
3357 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
3358 solib-svr4.o.
3359 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3360 and solib-legacy.o.
3361 * config/alpha/nm-fbsd.h: Don't include "solib.h".
3362
bd4109fb
DJ
33632006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
3364
3365 * source.c (_initialize_source): Use add_setshow_integer_cmd.
3366
1dce6535
DJ
33672006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
3368
3369 * linux-fork.c (delete_fork_command, detach_fork_command): Use
3370 PIDGET.
3371
76a9d10f
MK
33722006-01-15 Mark Kettenis <kettenis@gnu.org>
3373
3374 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
3375 Remove.
3376 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
3377 svr4_ilp32_fetch_link_map_offsets.
3378 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
3379 function.
3380 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
3381 svr4_ilp32_fetch_link_map_offsets.
3382 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
3383 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
3384 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
3385 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
3386 where appropriate.
3387 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
3388 Simply call svr4_ilp32_fetch_link_map_offsets.
3389 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
3390 svr4_lp64_fetch_link_map_offsets.
3391 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
3392 function.
3393 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
3394 svr4_ilp32_fetch_link_map_offsets.
3395 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
3396 (s390x_svr4_fetch_link_map_offsets): Remove functions.
3397 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
3398 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
3399 where appropriate.
3400
469db033
MK
34012006-01-15 Mark Kettenis <kettenis@gnu.org>
3402
25224166
MK
3403 * arm-tdep.c (arm_return_value): Change type of readbuf and
3404 writebuf arguments to `gdb_byte *'.
3405
469db033
MK
3406 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
3407 * Makefile.in (s390-tdep.o): Update dependencies.
3408
4dd7c9f6
MK
34092006-01-14 Mark Kettenis <kettenis@gnu.org>
3410
081bf9da
MK
3411 * sol2-tdep.h. sol2-tdep.c: New files.
3412 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
3413 (amd64_sol2_init_abi): Set skip_solib_resolver.
3414 * i386-sol2-tdep.c: Include "sol2-tdep.h".
3415 (i386_sol2_init_abi): Set skip_solib_resolver.
3416 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
3417 (sparc32_sol2_init_abi): Set skip_solib_resolver.
3418 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
3419 (sparc64_sol2_init_abi): Set skip_solib_resolver.
3420 * Makefile.in (sol2_tdep_h): New variable.
3421 (ALLDEPFILES): Add sol2-tdep.c.
3422 (sol2-tdep.o): New target.
3423 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
3424 (sparc64-sol2-tdep.o): Update dependencies
3425 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
3426 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
3427 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
3428 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
3429
c0f96416
MK
3430 * hppa-linux-tdep.c: Fix copyright indentation.
3431
4dd7c9f6
MK
3432 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
3433 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
3434 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
3435 functions.
3436 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
3437 floating-point registers.
3438
6da86618
MM
34392006-01-13 Mark Mitchell <mark@codesourcery.com>
3440
3441 * event-loop.c (gdb_select): Detect file descriptors that have
3442 been closed.
3443
ed944ce7
MK
34442006-01-13 Mark Kettenis <kettenis@gnu.org>
3445
3446 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
3447 and long_double_format accordingly.
3448
03ee6b2e
PH
34492006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
3450
3451 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
3452 translation problems.
3453 * ada-lang.c (ada_value_struct_elt): Change interface and handling
3454 of errors to avoid translation problem (and less than optimal error
3455 messages).
3456 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
3457 Use new interface to ada_value_struct_elt.
3458 * ada_lang.h (ada_value_struct_elt): Update declaration to new
3459 interface.
3460
3461 * ChangeLog: remove reference to ada-tasks.c from entry of
3462 2006-01-07.
3463
24b06219
MK
34642006-01-11 Mark Kettenis <kettenis@gnu.org>
3465
3466 * remote.c (get_memory_packet_size, set_thread)
3467 (remote_unpack_thread_info_response, remote_get_threadinfo)
3468 (parse_threadlist_response, remote_get_threadlist)
3469 (remote_current_thread, remote_threads_info)
3470 (remote_threads_extra_info, extended_remote_restart, get_offsets)
3471 (remote_check_symbols, remote_open_1, remote_detach)
3472 (remote_async_wait, remote_fetch_registers)
3473 (remote_store_registers, check_binary_download, putpkt_binary)
3474 (remote_insert_breakpoint, remote_insert_watchpoint)
3475 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
3476 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
3477 (packet_command): Remove redundant parenthesis.
3478
15550d6b
MK
34792006-01-10 Mark Kettenis <kettenis@gnu.org>
3480
dfb65433
MK
3481 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
3482 (read_memory_typed_address, write_memory)
3483 (write_memory_unsigned_integer, write_memory_signed_integer): Use
3484 gdb_byte where appropriate.
3485
508416a1
MK
3486 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
3487 'gdb_byte *'.
3488
f6519ebc
MK
3489 * target.h (target_read_memory_partial, target_write_memory_partial):
3490 Change second argument to 'gdb_byte *'.
3491 * target.c (target_xfer_memory_partial): Change third argument to
3492 'gdb_byte *'.
3493 (target_read_memory_partial, target_write_memory_partial): Change
3494 second argument to 'gdb_byte *'.
3495
15550d6b
MK
3496 * linespec.c (decode_objc): Make i1 and i2 unsigned.
3497 (find_method): Set values.sals to NULL.
3498
d7a30af7
MK
34992006-01-09 Mark Kettenis <kettenis@gnu.org>
3500
3501 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
3502 of 'char *' in cast.
3503
e1d5a0d2
PH
35042006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
3505
3506 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 3507 * ada-lang.c: I18n markup.
e1d5a0d2
PH
3508 Editorial: change "can not" => "cannot" throughout.
3509
790124be
MK
35102006-01-07 Mark Kettenis <kettenis@gnu.org>
3511
3512 * Makefile.in: Sort dependencies.
3513
3c481fdc
EZ
35142006-01-07 Eli Zaretskii <eliz@gnu.org>
3515
3516 * top.c (control_level): Remove unused variable.
3517
cb5d864f
FF
35182006-01-06 Fred Fish <fnf@specifix.com>
3519
3520 * objfiles.c (source.h): Include.
3521 (free_objfile): Update comment about clear_symtab_users().
3522 (free_objfile): Check all symtabs of objfile being freed and if
3523 one of them is the current source symtab, call
3524 clear_current_source_symtab_and_line().
3525
ac264b3b
MS
35262006-01-04 Michael Snyder <msnyder@redhat.com>
3527
3528 Checkpoint/Restart for Linux.
3529 * linux-nat.c: Add support for debugging multiple forks.
3530 Add #include for linux-fork.h (interface spec).
3531 (super_mourn_inferior): New function pointer.
3532 (child_mourn_inferior): New function / target method.
3533 (linux_target): Claim to_mourn_inferior method pointer.
3534 (child_follow_fork): Call interface to linux-fork, conditionally
3535 add new fork processes to list of debugged processes.
3536 (kill_inferior): Use interface to linux-fork to kill
3537 multiple processes.
3538
3539 * linux-fork.h: New file.
3540 * linux-fork.c: New file. Support for debugging multiple forks
3541 of the same program. Support for checkpoint and restart commands.
3542
3543 * infrun.c (nullify_last_target_wait_ptid): New function.
3544
3545 * Makefile.in: Add linux-fork.
3546 * config/*/linux.mh: Add linux-fork.
3547 * NEWS: Mention new functionality.
3548
f98ce7c2
PH
35492006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
3550
3551 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
3552 Change uses of "illegal" to "invalid".
3553
52ce6436
PH
35542006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
3555
3556 * ada-exp.y: Considerable reorganization to move functionality
3557 from ada-lex.l to here, where it is logically more appropriate.
3558 The original reason, however, was to prevent premature name
3559 lookups for selector names in record aggregates.
3560 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
3561 NAME for all of these.
3562 (VAR): New artificial token to clarify precedence rules.
3563 (OTHERS): New lexeme.
3564 (empty_stoken): New symbol.
3565 (%union): Remove ssym, voidval.
3566 (%type): Remove <voidval> type declarations.
3567 (syntax definitions): Add aggregates.
3568 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
3569 Rename some non-terminals to be closer to reference manual usage.
3570 Tighten up expression syntax to disallow certain non-Ada
3571 constructions such as X and then Y or else Z.
3572 (ada_parse): Remove initialization of left_block_context.
3573 (write_var_from_name): Remove.
3574 (write_var_or_type): New function, containing previous code from
3575 defunct write_var_from_name and name_lookup.
3576 (block_lookup): New function, moved from ada-lex.l
3577 (select_possible_type_sym): New function, factored out of
3578 name_lookup, which used to be in ada-lex.l.
3579 (find_primitive_type): Ditto.
3580 (chop_selector): Ditto.
3581 (write_ambiguous_var): New function, factored out of defunct
3582 write_var_from_name.
3583 (write_selectors): New function.
3584 (write_name_assoc): New function.
3585 (write_exp_op_with_string): New function.
3586
3587 * ada-lex.l (processId): Change interface to return stoken.
3588 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
3589 (block_lookup, name_lookup): Remove. Functionality moved to
3590 ada-exp.y.
3591 (state IN_STRING): Remove.
3592 (rules): Handle string escapes in processString.
3593 Add 'others' token.
3594 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
3595 yylval.sval (as simple strings).
3596 All name look-ups now handled in ada-exp.y.
3597 Introduce "::" (COLONCOLON) token and return as separate token.
3598 (processId): Change return convention. Comment.
3599 Leave leading "'" in place.
3600 (processString): New function.
3601 (find_dot_all): Add note to comment.
3602 Fix problem that allowed match only at the end.
3603
3604 * ada-lang.c: Introduce aggregates.
3605 (find_struct_field): Add new parameter to count fields skipped, and
3606 allow other output parameters to be NULL.
3607 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
3608 new find_struct_field.
3609 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
3610 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
3611 (num_component_specs, assign_component, assign_aggregate):
3612 (aggregate_assign_from_choices,aggregate_assign_positional)
3613 (aggregate_assign_others,add_component_interval):
3614 New functions.
3615 (ada_evaluate_subexp): Declare.
3616 Add aggregate-related operators.
3617 (ada_forward_operator_length): Declare.
3618 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
3619 Consolidate Ada operators, using ada_forward_operator_length.
3620 (ada_search_struct_field): Search in forward order.
3621 (ADA_OPERATORS): Add new aggregate operators.
3622 (ada_operator_length, ada_op_name, ada_forward_operator_length)
3623 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
3624 operators and OP_NAME.
3625 (ada_type_of_array): Use longest_to_int.
3626 (value_assign_to_component): New function.
3627 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
3628 Add OP_NAME case.
3629 (ada_forward_operator_length, ada_dump_subexp_body):
3630 Add OP_STRING case.
3631
3632 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
3633 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
3634
529cad9c
PH
36352006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
3636
3637 * ada-lang.c (process_raise_exception_name): Remove extraneous
3638 definition from unsubmitted code.
3639
3640 (is_lower_alphanum): New function.
3641 (ada_decode): Add support for decoding protected object subprograms
3642 and entries, and of entities declared inside protected object
3643 subprograms.
3644 Also add missing handling for__{DIGITS}+ suffixes.
3645 Allow '$<digits>' as valid overloading suffix.
3646 (is_name_suffix): Add handling for protected type entriy suffixes.
3647 Also add support for protected type subprogram suffixes, but keep
3648 it commented out for now, as there is an ambiguity between these
3649 entities and other internally generated entities.
3650 Allow '$<digits>' as valid overloading suffix.
3651 (is_valid_name_for_wild_match): New function.
3652 (wild_match): Add an exra level of verification of the entity name
3653 before declaring it a match for the given pattern.
3654
3655 (ada_type_of_array, ada_evaluate_subexp): Use more proper
3656 longest_to_int rather than cast.
3657
3658 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
3659
3660 (ada_coerce_to_simple_array): Call check_size to make sure
3661 that the object size is reasonable.
3662
3663 (ada_value_primitive_packed_val): Use correct location in target
3664 buffer for extracting packed record fields that are themselves records.
3665
3666 (add_defn_to_vec): Do not try to replace a stub type by its full
3667 type. Avoids a potential infinite loop.
3668
3669 (ada_lookup_symbol): Move return incorrectly placed return statement,
3670 causing a loop that should be scanning all object files to only
3671 scan the first one.
3672
3673 (ada_tag_name_2): New function.
3674 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
3675 use alternative representation.
3676
3677 (ada_find_renaming_symbol): Strip the function name suffix when
3678 computing the XR type name.
3679
3680 (ada_to_fixed_type): Try determining the tag only if we have the
3681 object's address.
3682 (to_fixed_array_type): Add comments.
3683
3684 (ada_check_typedef): Replace expression checking whether the given
3685 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
3686 consistent.
3687
3688 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
3689 '$' in addition to '.' for runtime auxiliary function name suffixes.
3690 See changes to ada_decode above.
3691
3692 (struct task_control_block): Add field called_task. (This change is
3693 to keep synchronized with our local sources; it does not affect the
3694 public version yet.)
3695
3696 * ada-typeprint.c (ada_print_type): Use int_string for printing
3697 modulus of modular type.
3698
3699 (print_range): Trivial editorial comment fix.
3700
3701 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
3702 double quote in string.
3703
9b799fe6
JB
37042006-01-01 Joel Brobecker <brobecker@adacore.com>
3705
3706 * top.c: Add 2006 to list of copyright years in file header.
3707
0bee0712
JB
37082006-01-01 Joel Brobecker <brobecker@adacore.com>
3709
3710 * top.c (print_gdb_version): Update copyright year to 2006.
3711
13c763f4
JB
37122006-01-01 Roger Sayle <roger@eyesopen.com>
3713 Elena Zannoni <ezannoni@redhat.com>
3714
3715 PR symtab/1651
3716 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
3717 for NULL before assigning this_symtab_psymtab->objfile to objfile.
3718 (scan_xcoff_symtab): Initialize next_symbol_text_func.
3719 (Committed by Jim Blandy)
3720
e50f0da1 3721For older changes see ChangeLog-2005.
c906108c
SS
3722\f
3723Local Variables:
3724mode: change-log
3725left-margin: 8
3726fill-column: 74
3727version-control: never
3728End:
This page took 0.938265 seconds and 4 git commands to generate.