OSDN Git Service

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