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