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