2006-04-19 Masaki Muranaka <monaka@monami-software.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2006-04-19  Masaki Muranaka  <monaka@monami-software.com>
2
3         * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
4         netdb.h, netinet/in.h.
5         (m32r_upload_command); Add calls WSAStartup().
6         * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
7         netinet/in.h.
8
9 2006-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
10
11         * breakpoint.c (deprecated_read_memory_nobpt): Update to use
12         shadow_len.
13         (insert_bp_location, reattach_breakpoints, remove_breakpoint)
14         (delete_breakpoint): Update calls to changed methods.
15         (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
16         (single_step_breakpoints, insert_single_step_breakpoint)
17         (remove_single_step_breakpoints): New.
18         * breakpoint.h (struct bp_target_info): New.
19         (struct bp_location): Replace shadow_contents with
20         target_info and overlay_target_info.
21         (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
22         (insert_single_step_breakpoint, remove_single_step_breakpoints): New
23         prototypes.
24         * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
25         (memory_insert_breakpoint, memory_remove_breakpoint): Update second
26         argument.
27         * mem-break.c (default_memory_insert_breakpoint): Update.  Set
28         placed_address, placed_size, and shadow_len.
29         (default_memory_remove_breakpoint): Update.  Don't use
30         BREAKPOINT_FROM_PC.
31         (memory_insert_breakpoint, memory_remove_breakpoint): Update.
32         * target.c (update_current_target): Update prototypes for changed
33         functions.
34         (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
35         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
36         Update.
37         * target.h: Forward declare struct bp_target_info.
38         (struct target_ops): Use a bp_target_info argument for
39         to_insert_breakpoint, to_remove_breakpoint,
40         to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
41         (target_insert_breakpoint, target_remove_breakpoint)
42         (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
43         (memory_insert_breakpoint, memory_remove_breakpoint)
44         (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
45         Update.
46         * config/i386/nm-i386.h: Forward declare struct bp_target_info.
47         (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
48         (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
49
50         * gdbarch.c, gdbarch.h: Regenerated.
51
52         * alpha-tdep.c (alpha_software_single_step): Use
53         insert_single_step_breakpoint and remove_single_step_breakpoints.
54         Remove unused statics.
55         * arm-tdep.c (arm_software_single_step): Likewise.  Add a note.
56         * cris-tdep.c (cris_software_single_step): Likewise.
57         * mips-tdep.c (mips_software_single_step): Likewise.
58         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
59         * sparc-tdep.c (sparc_software_single_step): Likewise.
60         * wince.c (struct thread_info_struct): Remove step_prev.
61         (undoSStep): Use remove_single_step_breakpoints.
62         (wince_software_single_step): Use insert_single_step_breakpoint.
63
64         * corelow.c (ignore): Remove unneeded prototype.  Update arguments.
65         * exec.c (ignore): Likewise.
66         * sol-thread.c (ignore): Likewise.
67
68         * procfs.c (dbx_link_shadow_contents): Delete.
69         (dbx_link_bpt): New.
70         (procfs_mourn_inferior): Remove it if necessary.
71         (remove_dbx_link_breakpoint): Use it.
72         (insert_dbx_link_bpt_in_file): Set it.
73         (procfs_init_inferior): Don't update dbx_link_bpt_addr.
74         * rs6000-nat.c (exec_one_dummy_insn): Use
75         deprecated_insert_raw_breakpoint and
76         deprecated_remove_raw_breakpoint.
77         * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
78         (base_breakpoint): New.
79         (disable_break): Use it.
80         (enable_break): Set it.
81
82         * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
83         Update.
84         * ia64-tdep.c (ia64_memory_insert_breakpoint)
85         (ia64_memory_remove_breakpoint): Likewise.
86         * m32r-tdep.c (m32r_memory_insert_breakpoint)
87         (m32r_memory_remove_breakpoint): Likewise.
88         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
89         Likewise.  Remove unnecessary prototypes.  Use placed_address
90         and placed_size.  Removed useless read from memory.
91         * nto-procfs.c (procfs_insert_breakpoint)
92         (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
93         (procfs_remove_hw_breakpoint): Update.
94         * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
95         * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
96         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
97         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
98         * remote-e7000.c (e7000_insert_breakpoint)
99         (e7000_remove_breakpoint): Likewise.
100         * remote-m32r-sdi.c (m32r_insert_breakpoint)
101         (m32r_remove_breakpoint): Likewise.
102         * remote-mips.c (mips_insert_breakpoint)
103         (mips_remove_breakpoint): Likewise.
104         * remote-rdp.c (remote_rdp_insert_breakpoint)
105         (remote_rdp_remove_breakpoint): Likewise.
106         (rdp_step): Use deprecated_insert_raw_breakpoint and
107         deprecated_remove_raw_breakpoint.
108         * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
109         Update.
110         * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
111         Delete.
112         (init_gdbsim_ops): Use memory_insert_breakpoint and
113         memory_remove_breakpoint.
114         * remote-st.c (st2000_insert_breakpoint)
115         (st2000_remove_breakpoint): Update.  Remove unused
116         BREAKPOINT_FROM_PC.
117         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
118         Update.  Use placed_address and placed_size.
119         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
120
121 2006-04-12  Daniel Jacobowitz  <dan@codesourcery.com>
122
123         * remote.c (extended_remote_restart): Pass the correct length
124         to getpkt.
125
126 2006-04-11  Jim Blandy  <jimb@codesourcery.com>
127
128         * serial.c (serial_open): Check for special cases at the front of
129         the "device" name before scanning for the ':' that would indicate
130         an IP-based connection.
131
132 2006-04-10  Christopher Faylor  <cgf@timesys.com>
133
134         * win32-nat.c (open_symbol_file_object): New function.
135         (in_dynsym_resolve_code): Ditto.
136         (init_win32_ops): Fill in fields which ought not to be NULL.
137
138 2006-04-10  Christopher Faylor  <cgf@timesys.com>
139
140         * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
141         with saved context if __COPY_CONTEXT_SIZE is not defined.
142         (handle_output_debug_string): Ditto.
143
144 2006-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
145
146         * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
147
148 2006-04-09  David S. Miller  <davem@sunset.davemloft.net>
149
150         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
151         frame sniffer.
152         * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
153         dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
154         that the latter can override.
155         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
156
157 2006-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
158
159         * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
160         (s390_store): Call pv_area_store to track stack slots.
161         (s390_load): Call pv_area_fetch to track stack slots.
162         (s390_check_for_saved): New function.
163         (s390_analyze_prologue): Call pv_area_scan.  Allocate and free stack.
164
165 2006-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
166
167         * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
168         * s390-tdep.c: Include "prologue-value.h".
169         (struct prologue_value): Remove.
170         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
171         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
172         pv_logical_and, pv_is_identical, pv_is_register): Remove.
173         (compute_x_addr): Remove, replace by ...
174         (s390_addr): ... this new function.
175         (struct s390_prologue_data): Use pv_t instead of prologue_value.
176         (s390_store, s390_load): Likewise.
177         (s390_prologue_frame_unwind_cache): Likewise.
178         (s390_analyze_prologue): Likewise.  Also, simplify and combine
179         several conditional statements.
180
181 2006-04-08  Jim Blandy  <jimb@codesourcery.com>
182
183         * Makefile.in (COMMON_OBS): List prologue-value.o.  (Omitted from
184         last patch.)
185
186 2006-04-08  David S. Miller  <davem@sunset.davemloft.net>
187
188         * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
189         (sparc32_linux_init_abi): Hook it into tdep->step_trap.
190         (sparc32_linux_core_gregset,
191         sparc32_linux_supply_core_gregset,
192         sparc32_linux_collect_core_gregset,
193         sparc32_linux_supply_core_fpregset,
194         sparc32_linux_collect_core_fpregset): New.
195         (sparc32_linux_init_abi): Register them with generic sparc
196         core regset infrastructure.
197         * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
198         (sparc64_linux_init_abi): Hook it into tdep->step_trap.
199         (sparc64_linux_core_gregset,
200         sparc64_linux_supply_core_gregset,
201         sparc64_linux_collect_core_gregset,
202         sparc64_linux_supply_core_fpregset,
203         sparc64_linux_collect_core_fpregset): New.
204         (sparc64_linux_init_abi): Register them with generic sparc
205         core regset infrastructure.     
206         * Makefile.in: Update dependencies.
207
208 2006-04-07  David S. Miller  <davem@sunset.davemloft.net>
209
210         * linux-nat.c (linux_nat_thread_alive): Handle targets that
211         do not implement PTRACE_PEEKUSER.
212
213 2006-04-07  Daniel Jacobowitz  <dan@codesourcery.com>
214
215         * remote.c (remote_wait): Convert warning to error before
216         parsing corrupt packets.
217
218 2006-04-07  Andrew Stubbs  <andrew.stubbs@st.com>
219
220         * cli/cli-script.c (struct user_args): Add command field.
221         (arg_cleanup): Free command string.
222         (setup_user_args): Copy the command line before relying on it.
223
224 2006-04-06  Joel Brobecker  <brobecker@adacore.com>
225
226         * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
227         of the "delete" command.
228
229 2006-04-06  Randolph Chung  <tausq@debian.org>
230
231         * MAINTAINERS (Patch champions): Add myself.
232
233 2006-04-05  Andreas Schwab  <schwab@suse.de>
234
235         * Makefile.in: Update dependencies.
236
237 2006-04-05  David S. Miller  <davem@sunset.davemloft.net>
238
239         * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
240         (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
241         * Makefile.in (sparc-tdep.o): Update dependencies.
242         * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
243         window out of the correct stack frame.
244         * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
245         * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
246         argument.
247         (dwarf2_frame_default_init_reg): Likewise.
248         (dwarf2_frame_set_init_reg): Update init_reg arg.
249         (dwarf2_frame_init_reg): Take "next_frame" and pass it to
250         ops->init_reg().
251         (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
252         * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
253         * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
254         * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
255         * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
256         * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
257         * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
258         (sparc32_frame_cache): Call it.
259         (sparc32_dwarf2_struct_return_p): New function.
260         (sparc_dwarf2_frame_init_reg): Use it to determine if the function
261         returns a structure and thus we have to indicate the return PC and
262         NPC are 4 bytes later than usual.
263         * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
264         dwarf2 frame sniffer.
265         * Makefile.in (sparc-linux-tdep.o): Update dependencies.
266         
267 2006-04-04  David S. Miller  <davem@davemloft.net>
268
269         * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
270         * config/linux64.h (NATDEPFILES): Likewise
271         * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
272         fill_fpregset): New.
273         * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
274         fill_fpregset): New.
275         * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
276         new includes.
277         
278 2006-04-04  Andreas Schwab  <schwab@suse.de>
279
280         * Makefile.in (elf_common_h): Define.
281
282 2006-04-03  Andrew Stubbs  <andrew.stubbs@st.com>
283
284         * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
285         (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
286
287 2006-03-31  Andrew Stubbs  <andrew.stubbs@st.com>
288
289         * value.h (struct internalvar): Add field 'endian'.
290         * value.c (lookup_internalvar): Initialise endian.
291         (value_of_internalvar): Flip the endian of built-in types if required.
292         (set_internalvar): Set the endian.
293         (show_convenience): Access the value through value_of_internalvar().
294
295 2006-03-30  Vladimir Prus  <ghost@cs.msu.su>
296
297         * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
298         instead of hardcoded integer literals.
299
300 2006-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
301
302         * cli/cli-script.c (insert_args): Handle NULL user_args.
303
304 2006-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
305
306         * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
307         the function at zero if we have no symbols.
308
309 2006-03-30  Adrien Kunysz  <a_kunysz@yahoo.com>
310
311         * i386-stub.c (getpacket): Fix array overflow.
312         * m32r-stub.c (getpacket): Likewise.
313         * m68k-stub.c (getpacket): Likewise.
314         * sh-stub.c (getpacket): Likewise.
315         * sparc-stub.c (getpacket): Likewise.
316
317 2006-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
318  
319         * frame.h (set_current_sal_from_frame): New prototype.
320         * stack.c (set_current_sal_from_frame): Make global.
321         * infrun.c (normal_stop): Call set_current_sal_from_frame.
322
323 2006-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
324
325         * linux-thread-db.c: Include "linux-nat.h".
326         (check_for_thread_db): New function, split out from
327         thread_db_new_objfile.  Remove dead check for active
328         thread_db on inapplicable targets.
329         (thread_db_new_objfile): Call check_for_thread_db.
330         * Makefile.in (linux-thread-db.o): Update.
331         * linux-nat.c (child_post_attach): Call check_for_thread_db.
332         (linux_child_post_startup_inferior): Likewise.
333         (lin_lwp_attach_lwp): Call target_post_attach instead of
334         child_post_attach.
335         * linux-nat.h (check_for_thread_db): New prototype.
336
337 2006-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
338
339         * remote.c (struct remote_state): Add BUF and BUF_SIZE.
340         (init_remote_state): Initialize the new fields.
341         (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
342         (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
343         (remote_get_threadinfo, parse_threadlist_response)
344         (remote_get_threadlist, remote_current_thread, remote_threads_info)
345         (remote_threads_extra_info, extended_remote_restart, get_offsets)
346         (remote_check_symbols, remote_open_1, remote_detach)
347         (remove_vcont_probe, remote_vcont_resume, remote_resume)
348         (remote_wait, remote_async_wait, fetch_register_using_p)
349         (remote_fetch_registers, store_register_using_P)
350         (remote_store_registers, check_binary_download, remote_write_bytes)
351         (remote_read_bytes, remote_insert_breakpoint)
352         (remote_remove_breakpoint, remote_insert_watchpoint)
353         (remote_remove_watchpoint, remote_insert_hw_breakpoint)
354         (remote_remove_hw_breakpoint, compare_sections_command)
355         (remote_xfer_partial, remote_rcmd, packet_command)
356         (remote_get_thread_local_address): Use the global incoming buffer
357         instead of alloca or xmalloc.  Limit outgoing packets to
358         rs->remote_packet_size and incoming packets to rs->buf_size.
359         Update calls to getpkt and remote_send.
360         (remote_send): Take arguments by reference.
361         (putpkt_binary): Eliminate junkbuf.  Use skip_frame.
362         (skip_frame): New function.
363         (read_frame): Take arguments by reference.  Expand the packet
364         buffer instead of issuing an error.
365         (getpkt, getpkt_sane): Take arguments by reference.
366         * remote.h (getpkt): Update prototype and doc.
367         * tracepoint.c (remote_get_noisy_reply): Take arguments by
368         reference.
369         (target_buf): Change from array to pointer.
370         (target_buf_size): New variable.
371         (remote_set_transparent_ranges): Update call to getpkt.
372         (trace_start_command, trace_stop_command, trace_status_command):
373         Update calls to remote_get_noisy_reply.
374         (finish_tfind_command): Take arguments by reference.
375         (trace_find_command, trace_find_pc_command)
376         (trace_find_tracepoint_command, trace_find_line_command):
377         (trace_find_range_command, trace_find_outside_command): Update
378         calls to finish_tfind_command.
379         (_initialize_tracepoint): Initialize target_buf_size and target_buf.
380
381 2005-03-30  Randolph Chung  <tausq@debian.org>
382
383         * hppa-linux-tdep.c: Include regset.h.
384         (GR_REGNUM, TR_REGNUM, greg_map): New.
385         (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
386         (hppa_linux_regset, hppa_linux_fpregset): New.
387         (hppa_linux_regset_from_core_section): New.
388         (hppa_linux_init_abi): Set regset_from_core_section.
389         (_initialize_hppa_linux_tdep): Register osabi handler for
390         64-bit Linux.
391         * Makefile.in (hppa-linux-tdep.o): Update dependencies.
392         * config/pa/linux.mh: Stop using core-regset.o
393
394 2006-03-30  Randolph Chung  <tausq@debian.org>
395
396         * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
397         (hppa_frame_cache): Use new function to find unwind entry.
398         (hppa_frame_this_id): Likewise.
399         (hppa_frame_unwind_sniffer): Likewise.
400
401 2006-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
402
403         * NEWS: Mention the removal of NLM.
404
405 2006-03-29  Steve Ellcey  <sje@cup.hp.com>
406
407         * Makefile.in (nlm): Remove target.
408         * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
409         * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
410         * configure: Regenerate.
411         * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
412         * nlm: Remove directory.
413
414 2006-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
415
416         * Makefile.in (utils.o): Update.
417         * top.c (in_user_command): New.
418         (command_line_input): Use input_from_terminal_p.
419         (input_from_terminal_p): Don't check caution.  Handle
420         stdin == NULL for Insight.
421         * top.h (in_user_command, caution): New declarations.
422         * utils.c: Include "top.h".
423         (query, defaulted_query): Check caution here.  Move the call
424         to input_from_terminal_p higher.
425         * cli/cli-script.c (do_restore_user_call_depth): Only decrement
426         the depth.  Update in_user_command if necessary.
427         (execute_user_command): Don't clobber old_chain.  Set
428         in_user_command.  Let do_restore_user_call_depth handle
429         user_call_depth.
430         (read_command_lines): Check whether to prompt before calling
431         Insight hooks.
432         * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
433         input_from_terminal_p check.
434
435 2006-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
436
437         * s390-nat.c (s390_insert_watchpoint): Add missing argument.
438         (s390_remove_watchpoint): Likewise.
439
440 2006-03-28  Jim Blandy  <jimb@codesourcery.com>
441
442         * prologue-value.c, prologue-value.h: New files.
443         * Makefile.in (prologue_value_h): New variable.
444         (HFILES_NO_SRCDIR): List prologue-value.h.
445         (SFILES): List prologue-value.c.
446         (COMMON_OBS): List prologue-value.o.
447         (prologue-value.o): New rule.
448
449 2006-03-27  Michael Snyder  <msnyder@redhat.com>
450
451         * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
452         xstormy16_pointer_to_address, xstormy16_address_to_pointer, 
453         xstormy16_frame_prev_register): Change void* to gdb_byte*.
454         (xstormy16_push_dummy_call): Add block-local char* val, 
455         to avoid type conflict with outer scope variable.
456
457 2006-03-27  Andrew Stubbs  <andrew.stubbs@st.com>
458
459         * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
460
461 2006-03-27  Nick Roberts  <nickrob@snap.net.nz>
462
463         * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
464         offsets for languages like Fortran.
465
466 2006-03-26  Randolph Chung  <tausq@debian.org>
467
468         * config/pa/hppa64.mt: Use HPUX version of the tm file.
469
470 2006-03-25  Nick Roberts  <nickrob@snap.net.nz>
471
472         * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
473         Try to deal with continuation line.
474         (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
475         variable names.
476         (gdb-break-list-regexp, gdb-stack-list-frames-regexp): 
477         Future proof against new fields being added to MI output.
478         (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
479         (gdbmi-frame-handler): Update to new variable name
480         gdb-get-buffer-create.
481         (gdbmi-frame-handler): Use hollow-right-triangle for all selected
482         frames which except the innermost (where execution has stopped).
483
484 2006-03-24  Randolph Chung  <tausq@debian.org>
485
486         * solib-som.c (link_map_start): Don't error out if there is
487         not yet a link map.
488
489 2006-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
490
491         * linux-nat.c (linux_ops_saved): New.
492         (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
493         (child_mourn_inferior, child_wait, linux_nat_create_inferior)
494         (linux_nat_fetch_registers, linux_nat_store_registers)
495         (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
496         (init_lwp_list): Don't set threaded.
497         (add_lwp): Don't modify threaded.
498         (delete_lwp): Don't mention non-threaded mode.
499         (linux_nat_switch_fork): New.
500         (linux_nat_attach): Update inferior_ptid.
501         (linux_nat_wait): Handle num_lwps == 0 at entry.  Don't check
502         threaded flag.
503         (linux_nat_kill): Handle pending forks and saved forks.
504         (linux_nat_mourn_inferior): Handle saved forks.
505         (linux_nat_pid_to_str): Don't use the LWP form when there is
506         only one thread.
507         (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
508         (linux_nat_add_target): New.
509         (_initialize_linux_nat): Don't initialize the linux native target
510         here.
511         * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
512         prototypes.
513         * linux-fork.c: Include "linux-nat.h".
514         (add_fork): Update initial PID.
515         (fork_load_infrun_state): Call linux_nat_switch_fork.
516         * Makefile.in (linux-fork.o): Update.
517
518         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
519         linux_nat_add_target instead of add_target.
520         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
521         * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
522         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
523         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
524         * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
525         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
526         * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
527         * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
528         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
529         * s390-nat.c (_initialize_s390_nat): Likewise.
530         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
531         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
532
533 2006-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
534
535         * linux-fork.c: Include "gdb_assert.h".
536         (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
537         Update the register cache and selected frame also.
538         (linux_fork_mourn_inferior): Use fork_load_infrun_state.  Return
539         to single fork mode if necessary.
540         (linux_fork_context): Remove bits handled by fork_load_infrun_state.
541         * Makefile.in (linux_fork_h): New.
542         (linux-fork.o, linux-nat.o): Update.
543
544 2006-03-23  Andreas Schwab  <schwab@suse.de>
545
546         * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
547
548 2006-03-18  Jim Blandy  <jimb@codesourcery.com>
549
550         * symtab.h (enum address_class): Doc fix.
551
552 2006-03-16  Michael Snyder  <msnyder@redhat.com>
553
554         * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
555         * target.c (push_target): Fix typo in comment.
556         * remote.c (remote_watch_data_address): Fix typo in comment.
557         * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
558
559 2006-03-15  Kevin Buettner  <kevinb@redhat.com>
560
561         * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
562         Include.
563         (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
564         (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
565         (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
566         (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
567         (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
568         (frv_elf_fpregset_t): Define types.
569         (frv_linux_supply_gregset, frv_linux_supply_fpregset)
570         (frv_linux_regset_from_core_section: New functions.
571         (frv_linux_gregset, frv_linux_fpregset): New static globals.
572         (frv_linux_init_abi): Register the `regset_from_core_section' method.
573         * Makefile.in (frv-linux-tdep.o): Update dependencies.
574         * solib-frv.c (frv_current_sos): Relocate main executable after
575         loading core file.
576         (frv_clear_solib): Clean up space associated with
577         `main_executable_lm_info'.
578         * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
579
580 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
581
582         * Makefile.in (mips_linux_tdep_h): New.
583         (mpis-linux-nat.o, mips-linux-tdep.o): Update.
584         * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
585         <sys/ptrace.h>.
586         (have_ptrace_regsets, super_fetch_registers, super_store_registers)
587         (mips64_linux_regsets_fetch_registers)
588         (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
589         (mips64_linux_store_registers): New.
590         (_initialize_mips_linux_nat): Override to_fetch_registers and
591         to_store_registers.
592         * mips-linux-tdep.h: New file.
593         * mips-linux-tdep.c: Include "mips-linux-tdep.c".
594         (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
595         (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
596         (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
597         (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
598         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
599         (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
600         (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
601         (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
602         (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
603         (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
604         (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
605         (supply_32bit_reg): Use gdb_byte.
606         (supply_64bit_reg): New.
607         (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
608         (mips_fill_fpregset, fetch_core_registers, supply_gregset)
609         (fill_gregset, supply_fpregset): Update for renamed types.
610         (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
611         (mips64_fill_gregset): Make global.  Handle 32-bit register
612         sizes.
613         (mips64_fill_fpregset): Make global.  Use gdb_byte.  Handle
614         FP regsets properly.
615
616 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
617
618         * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
619         (mips_fill_gregset): Renamed from fill_gregset.
620         (mips_supply_fpregset): Renamed from supply_fpregset.
621         (mips_fill_fpregset): Renamed from fill_fpregset.
622         (fetch_core_registers): Update calls.
623         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
624         functions.
625
626 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
627
628         * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
629
630 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
631
632         * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
633         Correct arithmetic for 64-bit CORE_ADDR.
634
635 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
636
637         * mips-linux-tdep.c: Include "floatformat.h".
638         (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
639         * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
640         double.
641         (print_gp_register_row): Don't print spaces before ignored
642         or floating point registers.
643         * Makefile.in (mips-linux-tdep.o): Update.
644
645 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
646
647         * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
648         for code addresses.
649         (non_heuristic_proc_desc): Likewise.
650
651 2006-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
652
653         * mips-linux-nat.c: Include "gdb_proc_service.h".
654         (PTRACE_GET_THREAD_AREA): Define.
655         (ps_get_thread_area): New.
656         * Makefile.in (mips-linux-nat.o): Update.
657
658 2006-03-13  Jim Blandy  <jimb@codesourcery.com>
659
660         * MAINTAINERS: Use my work address.
661
662 2006-03-09  Michael Snyder  <msnyder@redhat.com>
663
664         * linux-nat.c (kill_inferior): Just call target_mourn_inferior
665         instead of getting tricky for the multi-fork case.
666         * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
667         for each fork, and then use init_fork_list to delete them.
668
669 2006-03-08  Alexandre Oliva  <aoliva@redhat.com>
670
671         * solib-svr4.c (svr4_current_sos): Move up initialization of
672         l_addr, such that it clearly covers all cases.
673
674 2006-03-08  Andreas Schwab  <schwab@suse.de>
675
676         * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
677         libunwind_frame_prev_register to use a gdb_byte buffer and
678         extract_unsigned_integer.
679         (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
680
681         * libunwind-frame.c (libunwind_frame_prev_register): Change type
682         of last argument to `gdb_byte *'
683         * libunwind-frame.h: Adjust declaration.
684
685 2006-03-08  Paul Brook  <paul@codesourcery.com>
686
687         * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
688         (arm_frame_align): New function.
689         (arm_gdbarch_init): Use it.
690
691 2006-03-03  Khem Raj <khem@mvista.com>
692
693         * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
694         Committed by Andrew Cagney.
695         
696 2006-03-02  Corinna Vinschen  <vinschen@redhat.com>
697
698         * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
699         address to MDR register.
700
701 2006-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
702
703         * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
704         calls.
705
706 2006-03-01  Randolph Chung  <tausq@debian.org>
707
708         * somread.c (som_symfile_read): Update comment and remove unneeded 
709         use of a deprecated variable.
710
711 2006-03-01  Randolph Chung  <tausq@debian.org>
712
713         * hppa-tdep.h (unwind_table_entry): Update field names to match HP
714         runtime specification.
715         * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
716         (unwind_command): Likewise.
717
718 2006-03-01  Randolph Chung  <tausq@debian.org>
719
720         * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
721         Pseudo_SP_Set in unwind record.
722
723 2006-03-01  Randolph Chung  <tausq@debian.org>
724
725         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
726         TDEP->is_elf to determine if we are working with a SOM binary.
727         (null_symtab_and_line): Remove unused variable.
728         * config/pa/hppa64.mt: Use tm-hppa.h.
729         * config/pa/tm-hppa64.h: Remove file.
730
731 2006-03-01  Wu Zhou  <woodzltc@cn.ibm.com>
732
733          * f-typeprint.c (f_type_print_base): Delete the redundant space.
734
735 2006-02-28  Kevin Buettner  <kevinb@redhat.com>
736
737         * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
738         * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
739         Include.
740         (am33_linux_sigframe_cache_init): New function.
741         (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
742         descriptions.
743         (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
744         (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
745         (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
746         (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
747         (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
748         (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
749         (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
750         (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
751         (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
752         New constants.
753         (am33_linux_init_osabi): Register signal frame unwinders.
754
755 2006-02-28  Kevin Buettner  <kevinb@redhat.com>
756
757         * mn10300-tdep.c (mn10300_analyze_prologue):  Implement backtrack
758         out of pattern match by saving relevant state.  Fix stack size
759         adjustment bug.
760
761 2006-02-28  Alexandre Oliva  <aoliva@redhat.com>
762
763         * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
764         l_ld_size fields.
765         * solib-svr4.c (struct lm_info): Add l_addr field.
766         (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
767         (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
768         (LM_DYNAMIC_FROM_LINK_MAP): New.
769         (LM_ADDR_CHECK): New.  Use it instead of LM_ADDR.
770         (svr4_current_sos): Initialize l_addr.  Adjust.
771         (svr4_relocate_section_addresses): Adjust.
772         (svr4_ilp32_fetch_link_map_offsets): Define new members.
773         (svr4_lp64_fetch_link_map_offsets): Likewise.
774         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
775         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
776         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
777         * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
778
779 2006-02-26  David S. Miller  <davem@sunset.davemloft.net>
780
781         * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
782         * config/sparc/linux64.mt (TDEPFILES): Likewise.
783
784 2006-02-27  Alan Modra  <amodra@bigpond.net.au>
785
786         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
787         (ppc_linux_remove_watchpoint): Likewise, and args.
788
789 2006-02-26  Mark Kettenis  <kettenis@gnu.org>
790
791         * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
792         "soft" interrupts.
793
794 2006-02-24  Charles Wilson  <cygwin@cwilson.fastmail.fm>
795
796         * gdb/defs.h: unconditionally include <fcntl.h>, and
797         ensure that O_BINARY is defined.
798         * gdb/solib.c(solib_open): ensure solib files are opened in
799         binary mode.
800         * gdb/corelow.c: Remove O_BINARY macro definition.
801         * gdb/exec.c: Remove O_BINARY macro definition
802         * gdb/remote-rdp.c: Remove O_BINARY macro definition
803         * gdb/source.c: Remove O_BINARY macro definition
804         * gdb/symfile.c: Remove O_BINARY macro definition
805
806 2006-02-24  Randolph Chung  <tausq@debian.org>
807
808         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize 
809         argreg.
810         * solib-som.c (som_solib_remove_inferior_hook): Remove unused 
811         function.
812
813 2006-02-24  Wu Zhou  <woodzltc@cn.ibm.com>
814
815         * f-exp.y: Symbol '%' is not used as the modulus operator in
816         Fortran.  Delete this from Fortran expression.
817         It is now used by Fortran 90 and later to access the member
818         of derived type.  Add this into Fortran expression.
819         * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
820         Print each elements in the derived type.
821         * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
822         level into the function definition to do indented printing.  And
823         call fprintfi_filtered instead to do indented printing.
824         (f_type_print_base): Replace fprintf_filtered with the indented
825         version (fprintfi_filtered).
826         (f_type_print_base): Call indented print_equivalent_f77_float_type.
827         (f_type_print_base): Add code to handle TYPE_CODE_STRUCT.  Print
828         the definition of the derived type.
829
830 2006-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
831
832         * gdb_curses.h: Provide a fallback prototype for tgetnum.
833
834 2006-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
835
836         * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
837         also.
838         (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
839         (DOUBLEST_SCAN_FORMAT): New.
840         * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
841         (processReal): Use DOUBLEST_SCAN_FORMAT.
842         * c-exp.y (parse_number): Likewise.
843         * jv-exp.y (parse_number): Likewise.
844         * objc-exp.y (parse_number): Likewise.
845         * p-exp.y (parse_number): Likewise.
846
847 2006-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
848
849         * event-top.c (async_do_nothing, async_disconnect)
850         (async_stop_sig, async_float_handler): Remove duplicated
851         prototypes.
852         (handle_sighup): Guard prototype with SIGHUP.
853         (async_do_nothing): Guard function and prototype with
854         SIGQUIT || SIGHUP.
855         (async_disconnect): Guard prototype with SIGHUP.
856         (async_stop_sig): Guard prototype with STOP_SIGNAL.
857
858 2006-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
859
860         * maint.c (maintenance_dump_me): Remove unnecessary prototype.
861
862 2006-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
863
864         * win32-termcap.c (tputs): Return 0.
865
866 2006-02-21  Mark Kettenis  <kettenis@gnu.org>
867
868         * configure.ac: Introduce ---enable-werror, which adds -Werror to
869         the compiler command line.  Enabled by default.  Disable with
870         --disable-werror.
871         * configure regenerate.
872
873 2006-02-21  Daniel Jacobowitz  <dan@codesourcery.com>
874
875         * elfread.c (elf_symtab_read): Skip symbols which BFD considers
876         special.
877
878 2006-02-21  Andrew Stubbs  <andrew.stubbs@st.com>
879
880         * defs.h (directory_switch): Add prototype.
881         * main.c (captured_main): Use directory_switch() instead of
882         directory_command() to add directories from the -d switch.
883         * source.c (directory_switch): New function.
884         (add_path): Use buildargv() to parse spaces in filenames properly.
885         Strip multiple trailing '/' rather than just one.
886
887 2006-02-21  Andrew Stubbs  <andrew.stubbs@st.com>
888
889         * symfile.c (add_symbol_file_command): Use buildargv(), instead of
890         hand decoding the command line, to allow use of quotes and spaces.
891         (_initialize_symfile): Reorganize the help message for add-symbol-file
892         such that 'help files' shows a better message.
893
894 2006-02-21  Andrew Stubbs  <andrew.stubbs@st.com>
895
896         * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
897         (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
898         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
899         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
900
901 2006-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
902
903         * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
904         and __SIGRTMIN + 1.
905
906 2006-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
907
908         * remote.c: Add an enumeration for configurable remote
909         packets.
910         (remote_protocol_packets, set_remote_protocol_packet_cmd)
911         (show_remote_protocol_packet_cmd): New.
912         (remote_protocol_vcont)
913         (set_remote_protocol_vcont_packet_cmd)
914         (show_remote_protocol_vcont_packet_cmd)
915         (remote_protocol_qSymbol)
916         (set_remote_protocol_qSymbol_packet_cmd)
917         (show_remote_protocol_qSymbol_packet_cmd)
918         (remote_protocol_P, set_remote_protocol_P_packet_cmd)
919         (show_remote_protocol_P_packet_cmd)
920         (remote_protocol_Z)
921         (set_remote_protocol_Z_software_bp_packet_cmd)
922         (show_remote_protocol_Z_software_bp_packet_cmd)
923         (set_remote_protocol_Z_hardware_bp_packet_cmd)
924         (show_remote_protocol_Z_hardware_bp_packet_cmd)
925         (set_remote_protocol_Z_write_wp_packet_cmd)
926         (show_remote_protocol_Z_write_wp_packet_cmd)
927         (set_remote_protocol_Z_read_wp_packet_cmd)
928         (show_remote_protocol_Z_read_wp_packet_cmd)
929         (set_remote_protocol_Z_access_wp_packet_cmd)
930         (show_remote_protocol_Z_access_wp_packet_cmd)
931         (remote_protocol_binary_download)
932         (set_remote_protocol_binary_download_cmd)
933         (show_remote_protocol_binary_download_cmd)
934         (remote_protocol_qPart_auxv)
935         (set_remote_protocol_qPart_auxv_packet_cmd)
936         (show_remote_protocol_qPart_auxv_packet_cmd)
937         (remote_protocol_qGetTLSAddr)
938         (set_remote_protocol_qGetTLSAddr_packet_cmd)
939         (show_remote_protocol_qGetTLSAddr_packet_cmd)
940         (remote_protocol_p)
941         (set_remote_protocol_p_packet_cmd)
942         (show_remote_protocol_p_packet_cmd): Delete.
943
944         (init_all_packet_configs): Simplify.
945         (set_remote_protocol_Z_packet_cmd)
946         (show_remote_protocol_Z_packet_cmd)
947         (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
948         (remote_fetch_registers, remote_prepare_to_store)
949         (remote_store_registers, check_binary_download)
950         (remote_write_bytes, remote_insert_breakpoint)
951         (remote_remove_breakpoint, remote_insert_watchpoint)
952         (remote_remove_watchpoint, remote_insert_hw_breakpoint)
953         (remote_remove_hw_breakpoint, remote_xfer_partial)
954         (remote_get_thread_local_address): Update for packet array.
955         (_initialize_remote): Likewise; also update for common
956         set/show commands.
957
958 2006-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
959
960         * symfile.c (place_section): Correct retry logic.
961
962 2006-02-19  Christopher Faylor  <cgf@timesys.com>
963
964         * win32_nat.c (cygwin_load_start): New variable.
965         (cygwin_load_end): Ditto.
966         (have_saved_context): Ditto.
967         (saved_context): Ditto.
968         (max_dll_name_len): Delete obsolete variable.
969         (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
970         if we are in a cygwin signal rather than a windows signal.
971         (solib_symbols_add): Detect and store beginning and end of cygwin DLL
972         if dll being loaded is the cygwin DLL.
973         (register_loaded_dll): Remove calculation of max_dll_name_len.
974         (win32_clear_solib): Ditto.
975         (handle_load_dll): Delete obsolete variable.  Remove unneeded call to
976         solib_add.
977         (handle_output_debug_string): Detect and store signal information sent
978         by Cygwin here.
979         (handle_exception): Silently pass on errors in the cygwin DLL.  Return
980         -1 on first pass exception.
981         (win32_continue): Remove spurious clearing of continue_status.
982         (get_win32_debug_event): Deal differently first chance exception.
983
984 2006-02-19  Randolph Chung  <tausq@debian.org>
985
986         * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
987         unwind entry.
988
989 2006-02-16  Fred Fish  <fnf@specifix.com>
990
991         * eval.c (evaluate_subexp_standard):  For OP_TYPE, return
992         a non lval value zero, of the appropriate type, when avoiding
993         side effects.
994         * typeprint.c (ptype_eval): Remove function and declaration.
995         (ptype_command): Simplify to just a call to whatis_exp.
996
997 2006-02-15  Paul Brook  <paul@codesourcery.com>
998
999         * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
1000         Load insn opcodes as unsigned values.
1001
1002 2006-02-14  Alexandre Oliva  <aoliva@redhat.com>
1003
1004         * doublest.h (DOUBLEST): Use long double only if we can scan
1005         it in.  Undefine HAVE_LONG_DOUBLE otherwise.
1006         (DOUBLEST_FORMAT): New.
1007         * c-exp.y (parse_number): Use it.
1008         * jv-exp.y (parse_number): Likewise.
1009         * objc-exp.y (parse_number): Likewise.
1010         * p-exp.y (parse_number): Likewise.
1011         * varobj.c (free_variable): Silence type-punning warnings.
1012         * tui/tui-data.h (struct tui_list): Change type of list member.
1013         * tui/tui-data.c: Remove no-longer-needed type casts.
1014         (source_windows): Silence type-punning warnings.
1015         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
1016
1017 2006-02-13  Mark Kettenis  <kettenis@gnu.org>
1018
1019         Fix PR breakpoints/2080.
1020         * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
1021         (i386_analyze_stack_align): New function.
1022         (i386_analyze_prologue): Use i386_analyze_stack_align.
1023         (i386_frame_cache): Deal with stack realignment.
1024
1025 2006-02-14  Nick Roberts  <nickrob@snap.net.nz>
1026
1027         * mi/gdb-mi.el: Use more functions from gdb-ui.el.
1028         (gdb-break-list-regexp): Match "what" field if present.
1029         (gdb-stack-list-frames-regexp): Match "from" field if present.
1030         (gdb-stack-list-frames-handler): Present output like "info
1031         breakpoints" so regexps can be shared with gdb-ui
1032
1033 2006-02-10  Daniel Jacobowitz  <dan@codesourcery.com>
1034
1035         * NEWS: Mention native Windows support.
1036         * Makefile.in (gdb_select_h, ser_tcp_h): New.
1037         (ALLDEPFILES): Add ser-mingw.c.
1038         (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
1039         (ser-tcp.o, ser-unix.o): Update.
1040         (ser-mingw.o): New rule.
1041         * configure: Regenerated.
1042         * configure.ac: Add ser-mingw.o for mingw32.
1043         * ser-mingw.c: New file.
1044         * event-loop.c: Include "gdb_select.h".
1045         (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
1046         * ser-base.c: Include "gdb_select.h".
1047         (ser_base_wait_for): Use gdb_select.
1048         * serial.c (serial_for_fd): New function.
1049         (serial_fdopen): Try "terminal" before "hardwire".  Initialize
1050         the allocated struct serial.
1051         (serial_wait_handle): New function.
1052         * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
1053         (struct serial_ops) [USE_WIN32API]: Add wait_handle.
1054         * gdb_select.h: New file.
1055         * ser-tcp.c: Include "ser-tcp.h".  Remove unused "ser-unix.h" include.
1056         (net_close, net_read_prim, net_write_prim): Make global.
1057         (net_open): Likewise.  Pass an exception set to select.  Whitespace fix.
1058         Document why we can not use gdb_select.
1059         (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
1060         * ser-tcp.h: New file.
1061         * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
1062         (handle_sigio): Use gdb_select.
1063         (initialize_stdin_serial): New function.
1064         * terminal.h (initialize_stdin_serial): New prototype.
1065         * top.c (gdb_init): Call initialize_stdin_serial.
1066         * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
1067         event-loop.c.  Add exception condition support.  Use serial_for_fd
1068         and serial_wait_handle.  Fix timeout handling.
1069         * posix-hdep.c: Include "gdb_select.h".
1070         (gdb_select): New function.
1071         * remote-st.c (connect_command): Use gdb_select.
1072         * ser-unix.c: Include "gdb_select.h".
1073         (hardwire_send_break, wait_for): Use gdb_select.
1074
1075 2006-02-10  Daniel Jacobowitz  <dan@codesourcery.com>
1076
1077         * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
1078         (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
1079         * configure.ac: Add gdb_host_obs to CONFIG_OBS.  Set gdb_host_obs
1080         to posix-hdep.o by default.
1081         * configure: Regenerated.
1082         * configure.host: Document gdb_host_obs.  Add an entry for
1083         i[34567]86-*-mingw32*.
1084         * mingw-hdep.c, posix-hdep.c: New files.
1085         * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
1086
1087 2006-02-10  Joel Brobecker  <brobecker@adacore.com>
1088
1089         * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
1090         * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
1091         * rs6000-tdep.h: New file.
1092         * rs6000-tdep.c: Include "rs6000-tdep.h".
1093         (rs6000_gdbarch_init): Remove enabling of software single step.
1094         Will be done in the AIX-specific initialization routine.
1095         * rs6000-aix-tdep.c: New file.
1096         * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
1097         * Makefile.in (rs6000_tdep_h): New variable.
1098         (rs6000-tdep.o): Update dependencies.
1099         (rs6000-aix-tdep.o): New rule.
1100
1101 2006-02-10  Joel Brobecker  <brobecker@adacore.com>
1102
1103         * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
1104         instead of add_setshow_zinteger_cmd to defined the aix-thread
1105         boolean setting.
1106
1107 2006-02-10  Nick Roberts  <nickrob@snap.net.nz>
1108
1109         * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
1110
1111 2006-02-09  Daniel Jacobowitz  <dan@codesourcery.com>
1112
1113         * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
1114         30 bits.  Add load_all_dies flag.
1115         (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
1116         Load DW_TAG_member by default.  Remove internal_error call.
1117         (find_partial_die): Reload the compilation unit if we can not find
1118         a DIE in the cache.  Call internal_error here if we still can not
1119         find the DIE.
1120
1121 2006-02-10  Nick Roberts  <nickrob@snap.net.nz>
1122
1123         * breakpoint.c (print_one_breakpoint): Add break to case
1124         bp_catch_vfork in switch statement.
1125
1126 2006-02-08  Wu Zhou  <woodzltc@cn.ibm.com>
1127
1128         * config/i386/nm-i386sol2.h: Update copyright year.
1129         * config/mips/nm-irix5.h: Ditto.
1130         * config/sparc/nm-sol2.h: Ditto.
1131         * s390-nat.c: Ditto.
1132         * ppc-linux-nat.c: Ditto.
1133
1134 2006-02-08  Wu Zhou  <woodzltc@cn.ibm.com>
1135
1136         * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
1137         * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1138         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1139         * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1140         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1141         * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1142         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1143         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
1144         (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
1145         (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
1146         add to_region_ok_for_hw_watchpoint.
1147         * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
1148         (s390_region_ok_for_hw_watchpoint): New.
1149         (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
1150         and add to_region_ok_for_hw_watchpoint.
1151         * target.c (default_region_size_ok_for_hw_watchpoint, 
1152         debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
1153         (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
1154         inheritance and default_region_size_ok_for_hw_watchpoint.
1155         (default_region_ok_for_hw_watchpoint): If len is less than or equal
1156         the length of void pointer, return ok.
1157         (default_region_size_ok_for_hw_watchpoint): Delete.
1158         (debug_to_region_size_ok_for_hw_watchpoint): Delete.
1159         (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
1160         * target.h (struct target_ops): Delete 
1161         to_region_size_ok_for_hw_watchpoint.
1162         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1163         
1164 2006-02-08  Ben Elliston  <bje@au1.ibm.com>
1165             Wu Zhou  <woodzltc@cn.ibm.com>
1166
1167         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
1168         PTRACE_GETSIGINFO): Define.
1169         (last_stopped_data_address): New.
1170         (ppc_linux_check_watch_resources): New function.
1171         (ppc_linux_region_ok_for_hw_watchpoint): New function.
1172         (ppc_linux_insert_watchpoint): New function.
1173         (ppc_linux_remove_watchpoint): New function.
1174         (ppc_linux_stopped_data_address): New function.
1175         (ppc_linux_stopped_by_watchpoint): New function.
1176         (_initialize_ppc_linux_nat): Set the above hardware watchpoint
1177         related target vectors.
1178         * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
1179         to have nonsteppable watchpoint.
1180         * target.c (default_region_ok_for_hw_watchpoint,
1181         debug_to_region_ok_for_hw_watchpoint): New prototypes.
1182         (update_current_target): Inherit to_region_ok_for_hw_watchpoint
1183         and set default to_region_ok_for_hw_watchpoint.
1184         (default_region_ok_for_hw_watchpoint): New function.
1185         (debug_to_region_ok_for_hw_watchpoint): New function.
1186         (setup_target_debug): Set to_region_ok_for_hw_watchpoint of 
1187         debug_target.
1188         * target.h (struct target_ops): Add a new target vector 
1189         to_region_ok_for_hw_watchpoint.
1190         (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
1191         defined anyplace else.
1192
1193 2005-02-07  Joel Brobecker  <brobecker@adacore.com>
1194         * symfile.c (add_symbol_file_command): Abort if the user forgot
1195         to provide the address when the file has been loaded.
1196
1197 2006-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
1198
1199         * MAINTAINERS: Update file based on maintainers survey.  Add
1200         a note to Past Maintainers.  Move unresponsive or inactive
1201         maintainers to Authorized Committers or Past Maintainers as
1202         appropriate.  Correct Jim Kingdon's email address.  Remove
1203         vacant areas of responsibility.
1204
1205 2006-02-06  Vladimir Prus  <ghost@cs.msu.su>
1206
1207         * breakpoint.c (print_one_breakpoint): For MI-like UI, output
1208         fullname field.
1209
1210 2006-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
1211
1212         * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
1213         * exceptions.c (exception_none, exceptions_state_mc_init)
1214         (throw_vfatal): Use GDB_NO_ERROR.
1215
1216 2006-02-02  Mark Kettenis  <kettenis@gnu.org>
1217
1218         * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
1219         r_map_size members.  Add r_version_offset, r_version_size and
1220         r_ldsomap_offset members.
1221         * solib-svr4.c (solib_svr4_r_map): Renamed from
1222         fetch_link_map_member.  Simplify using read_memory_typed_address.
1223         (solib_svr4_r_ldsomap): New function.
1224         (open_symbol_file_object): Use solib_svr_r_map.
1225         (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
1226         linker by using solib_svr4_r_ldsomap.
1227         (svr4_ilp32_fetch_link_map_offsets)
1228         (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
1229         link_map_offsets'.
1230         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
1231         changes to `struct link_map_offsets'.
1232         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
1233         (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
1234         `struct link_map_offsets'.
1235
1236 2006-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
1237
1238         * linux-nat.c (struct saved_ptids, threads_to_delete)
1239         (record_dead_thread, prune_lwps, find_thread_from_lwp)
1240         (exit_lwp): New.
1241         (linux_nat_resume): Call prune_lwps.
1242         (wait_lwp, linux_nat_wait): Call exit_lwp.
1243
1244 2006-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
1245
1246         * printcmd.c (printf_command): Make format string checking
1247         stricter.  Add separate cases for long_arg, ptr_arg, and
1248         long_double_arg.
1249         * utils.c (xstrvprintf): Improve the error message issued
1250         for a bad format string.
1251         * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
1252         New variables.
1253         (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
1254         $(NO_WERROR_CFLAGS).
1255         (printcmd.o): Likewise.  Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
1256         enable -Werror.
1257
1258 2006-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
1259
1260         * Makefile.in (remote.o): Update.
1261         * remote.c (show_packet_config_cmd): Shorten messages.
1262         (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
1263         (show_remote_cmd): Iterate.
1264         (_initialize_remote): Remove remote_set_cmdlist,
1265         remote_show_cmdlist.
1266
1267 2006-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
1268
1269         * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
1270         * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
1271         prototypes.
1272         * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
1273         (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
1274         * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
1275         ...here.
1276         * gdbtypes.c: Include "hashtab.h".
1277         (build_gdbtypes): Remove extra prototype.
1278         (struct type_pair, type_pair_hash, type_pair_eq)
1279         (create_copied_types_hash, copy_type_recursive): New.
1280         * gdbtypes.h: Include "hashtab.h".
1281         (TYPE_ZALLOC): New.
1282         (create_copied_types_hash, copy_type_recursive): New prototypes.
1283         * objfiles.c (free_objfile): Call preserve_values.
1284         * symfile.c (reread_symbols): Likewise.
1285         (clear_symtab_users): Remove calls to clear_value_history and
1286         clear_internalvars.
1287         * value.c (clear_value_history, clear_internalvars): Removed.
1288         (preserve_one_value, preserve_values): New functions.
1289         * value.h (clear_value_history, clear_internalvars): Removed.
1290         (preserve_values): New prototype.
1291
1292         * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
1293         variables here.
1294
1295 2006-01-29  Mark Kettenis  <kettenis@gnu.org>
1296
1297         * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
1298         Fixes PR tdep/2075.
1299
1300 2006-01-27  Joel Brobecker  <brobecker@adacore.com>
1301
1302         * MAINTAINERS: Use a consistent email address for brobecker.
1303
1304 2006-01-27  Joel Brobecker  <brobecker@adacore.com>
1305
1306         * infcmd.c (post_create_inferior): Fix copy/paste error introduced
1307         in the previous change.
1308
1309 2006-01-24  Daniel Jacobowitz  <dan@codesourcery.com>
1310
1311         PR gdb/1914
1312         * fork-child.c (fork_inferior): Don't call
1313         solib_create_inferior_hook.
1314         * infcmd.c (post_create_inferior): Call solib_add,
1315         solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
1316         (attach_command): Don't call solib_add or
1317         re_enable_breakpoints_in_shlibs.  Call post_create_inferior
1318         instead.
1319         * remote.c (remote_open_1): Don't call solib_create_inferior_hook
1320         or observer_notify_inferior_created.  Call post_create_inferior
1321         instead.
1322         * corelow.c: Don't include "observer.h".
1323         (solib_add_stub): Deleted.
1324         (core_open): Don't call observer_notify_inferior_created or
1325         solib_add_stub.  Call post_create_inferior instead.
1326         * inf-ptrace.c: Don't include "observer.h".
1327         (inf_ptrace_attach): Don't call observer_notify_inferior_created.
1328         * inf-ttrace.c: Don't include "observer.h".
1329         (inf_ttrace_attach): Don't call observer_notify_inferior_created.
1330         * inferior.h (solib_create_inferior_hook): Remove redundant
1331         prototype.
1332         * inftarg.c: Don't include "observer.h".
1333         (child_attach): Don't call observer_notify_inferior_created.
1334         * Makefile.in: Update dependencies.
1335
1336 2006-01-24  Daniel Jacobowitz  <dan@codesourcery.com>
1337
1338         * infcmd.c: Include "observer.h".
1339         (post_create_inferior): New function.
1340         (run_command_1): Call it.  Also call proceed.
1341         * inferior.h (post_create_inferior): New prototype.
1342         * Makefile.in (infcmd.o): Update.
1343
1344         * gnu-nat.c (gnu_create_inferior): Don't call proceed.
1345         * go32-nat.c (go32_create_inferior): Likewise.
1346         * nto-procfs.c (procfs_create_inferior): Likewise.
1347         * procfs.c (procfs_create_inferior): Likewise.
1348         * remote-sim.c (gdbsim_create_inferior): Likewise.
1349         * remote.c (extended_remote_create_inferior)
1350         (extended_remote_async_create_inferior): Likewise.
1351         * win32-nat.c (win32_create_inferior): Likewise.
1352         * wince.c (child_create_inferior): Likewise.
1353
1354         * monitor.c (monitor_create_inferior): Don't call proceed.
1355         Set the PC manually.
1356         * ocd.c (ocd_create_inferior): Likewise.
1357         * remote-e7000.c (e7000_create_inferior): Likewise.
1358         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1359         * remote-mips.c (mips_create_inferior): Likewise.
1360         * remote-rdp.c (remote_rdp_create_inferior): Likewise.
1361         * remote-sds.c (sds_create_inferior): Likewise.
1362         * remote-st.c (st2000_create_inferior): Likewise.
1363
1364         * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
1365         proceed or observer_notify_inferior_created.
1366         * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
1367         * inftarg.c (child_create_inferior): Likewise.
1368
1369 2006-01-24  Daniel Jacobowitz  <dan@codesourcery.com>
1370
1371         * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
1372         after mourning the inferior.
1373
1374 2006-01-24  Jim Blandy  <jimb@redhat.com>
1375
1376         * valarith.c (binop_user_defined_p): Handle refs to typedefs.
1377
1378 2006-01-24  Fred Fish  <fnf@specifix.com>
1379
1380         * parse.c (source.h): Include.
1381         (parse_exp_in_context):  Use static source context if no
1382         other context found.
1383
1384 2006-01-23  Andrew Stubbs  <andrew.stubbs@st.com>
1385
1386         * sh-tdep.c: Include reggroups.h.
1387         (sh_register_reggroup_p): New function.
1388         (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
1389         * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
1390
1391 2006-01-23  Andrew Stubbs  <andrew.stubbs@st.com>
1392
1393         * cli/cli-cmds.c: Include fcntl.h.
1394         (source_command): Use the GDB search path to find script files.
1395
1396 2006-01-22  Daniel Jacobowitz  <dan@codesourcery.com>
1397
1398         PR tdep/2029
1399         Suggested by Till Straumann <strauman@slac.stanford.edu>:
1400         * rs6000-tdep.c (skip_prologue): Update check for later mtlr
1401         instructions.  Handle PIC bcl.
1402
1403 2006-01-22  Daniel Jacobowitz  <dan@codesourcery.com>
1404
1405         * config/djgpp/README: Typo fix.
1406         * config/djgpp/fnchange.lst: Update.
1407
1408 2006-01-22  Mark Kettenis  <kettenis@gnu.org>
1409
1410         * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
1411         (sparc_address_from_register): New prototype.
1412         (sparcnbsd_step_trap): New prototype.
1413         * sparc-tdep.c (sparc_address_from_register): Make globally
1414         visible.
1415         (sparc_analyze_control_transfer): Change prototype to accept
1416         `struct gdbarch *' as first argument.  Allow for optional hnadling
1417         for trap instructions.
1418         (sparc_step_trap): New function.
1419         (sparc_software_single_step): Adjust call to
1420         sparc_analyze_control_trabsfer.
1421         (sparc32_gdbarch_init): Initialize TDEP->step_trap.
1422         * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
1423         (sparc32nbsd_init_abi): Set TDEP->step_trap.
1424         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
1425         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
1426
1427         * sparc-tdep.c (sparc32_return_value): Convert to use
1428         RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
1429         RETURN_VALUE_STRUCT_CONVENTION.
1430         (sparc32_extract_struct_value_address): Remove.
1431
1432 2006-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
1433
1434         * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
1435         (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
1436
1437 2006-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
1438
1439         * solib.c (info_sharedlibrary_command): Avoid internal_error.
1440
1441 2006-01-21  Mark Kettenis  <kettenis@gnu.org>
1442
1443         * i386-tdep.c (i386_mxcsr_type): New variable.
1444         (i386_init_types): Initialize i386_mxcsr_type.
1445         (i386_register_type): Return i386_mxcsr_type for %mxcsr.
1446         * i386-tdep.c (i386_mxcsr_type): New extern.
1447         * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
1448         %mxcsr.
1449
1450 2006-01-20  Mark Mitchell  <mark@codesourcery.com>
1451
1452         * Makefile.in (remote-rdi.o): Remove.
1453         (rdi-share/libangsd.a): Likewise.
1454         * README: Don't mention remote-rdi.c.
1455         * NEWS: Mention removal of rdi-share.
1456         * configure.ac: Don't configure rdi-share subdirectory.
1457         * remote-rdi.c: Remove.
1458         * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
1459         (TDEPLIBS): Remove rdi-share/libangsd.a.
1460         * rdi-share/Makefile.am: Remove.
1461         * rdi-share/Makefile.in: Likewise.
1462         * rdi-share/README.CYGNUS: Likewise.
1463         * rdi-share/aclocal.m4: Likewise.
1464         * rdi-share/adp.h: Likewise.
1465         * rdi-share/adperr.h: Likewise.
1466         * rdi-share/angel.h: Likewise.
1467         * rdi-share/angel_bytesex.c: Likewise.
1468         * rdi-share/angel_bytesex.h: Likewise.
1469         * rdi-share/angel_endian.h: Likewise.
1470         * rdi-share/ardi.c: Likewise.
1471         * rdi-share/ardi.h: Likewise.
1472         * rdi-share/armdbg.h: Likewise.
1473         * rdi-share/buffers.h: Likewise.
1474         * rdi-share/chandefs.h: Likewise.
1475         * rdi-share/channels.h: Likewise.
1476         * rdi-share/chanpriv.h: Likewise.
1477         * rdi-share/configure: Likewise.
1478         * rdi-share/configure.in: Likewise.
1479         * rdi-share/crc.c: Likewise.
1480         * rdi-share/crc.h: Likewise.
1481         * rdi-share/dbg_conf.h: Likewise.
1482         * rdi-share/dbg_cp.h: Likewise.
1483         * rdi-share/dbg_hif.h: Likewise.
1484         * rdi-share/dbg_rdi.h: Likewise.
1485         * rdi-share/devclnt.h: Likewise.
1486         * rdi-share/devices.h: Likewise.
1487         * rdi-share/devsw.c: Likewise.
1488         * rdi-share/devsw.h: Likewise.
1489         * rdi-share/drivers.c: Likewise.
1490         * rdi-share/drivers.h: Likewise.
1491         * rdi-share/etherdrv.c: Likewise.
1492         * rdi-share/ethernet.h: Likewise.
1493         * rdi-share/host.h: Likewise.
1494         * rdi-share/hostchan.c: Likewise.
1495         * rdi-share/hostchan.h: Likewise.
1496         * rdi-share/hsys.c: Likewise.
1497         * rdi-share/hsys.h: Likewise.
1498         * rdi-share/logging.c: Likewise.
1499         * rdi-share/logging.h: Likewise.
1500         * rdi-share/msgbuild.c: Likewise.
1501         * rdi-share/msgbuild.h: Likewise.
1502         * rdi-share/params.c: Likewise.
1503         * rdi-share/params.h: Likewise.
1504         * rdi-share/rx.c: Likewise.
1505         * rdi-share/rxtx.h: Likewise.
1506         * rdi-share/serdrv.c: Likewise.
1507         * rdi-share/serpardr.c: Likewise.
1508         * rdi-share/sys.h: Likewise.
1509         * rdi-share/tx.c: Likewise.
1510         * rdi-share/unixcomm.c: Likewise.
1511         * rdi-share/unixcomm.h: Likewise.
1512
1513 2006-01-21  Mark Kettenis  <kettenis@gnu.org>
1514
1515         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
1516         Change type of last argument to `gdb_byte *'.
1517
1518 2006-01-20  Mark Kettenis  <kettenis@gnu.org>
1519
1520         * hppa-tdep.h (hppa_in_solib_call_trampoline)
1521         (hppa_skip_trampoline_code): New prototypes.
1522         * hppa-tdep.c (struct insn_pattern): New.
1523         (hppa_long_branch_stub, hppa_long_branch_pic_stub)
1524         (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
1525         here from hppa-linux-tdep.c
1526         (HPPA_MAX_INSN_PATTERN_LEN): New define.
1527         (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
1528         (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
1529         functions based on functions removed from hppa-linux-tdep.c.
1530         * hppa-linux-tdep.c (hppa_long_branch_stub)
1531         (hppa_long_branch_pic_stub, hppa_import_stub)
1532         (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
1533         (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
1534         (hppa_linux_in_solib_call_trampoline)
1535         (hppa_linux_skip_trampoline_code): Removed.
1536         (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
1537         hppa_in_solib_call_trampoline and skip_trampoline_code to
1538         hppa_skip_trampoline_code.
1539         * hppabsd-tdep.c (hppabsd_init_abi): Set
1540         TDEP->in_solib_call_trampoline and skip_trampoline_code.
1541
1542 2006-01-20  Jim Blandy  <jimb@redhat.com>
1543
1544         * MAINTAINERS: Change my E-mail address.
1545
1546         * configure.ac: Add -Wno-pointer-sign to list of build warnings.
1547         * configure: Regenerated.
1548
1549 2006-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
1550
1551         * MAINTAINERS: Overhaul.
1552
1553 2006-01-18  Mark Kettenis  <kettenis@gnu.org>
1554
1555         Based on a previous patch form Michal Ludvig:
1556         * amd64-tdep.c (amd64_sse_type): Remove.
1557         (amd64_register_info): Use i386_eflags_type and i386_sse_type
1558         where appropriate.
1559         (AMD64_NUM_REGS): Use ARRAY_SIZE.
1560         (amd64_register_type): Remove code to build amd_sse_type.
1561         * i386-tdep.c (i386_eflag_type): New variable.
1562         (i386_mmx_type, i386_sse_type): Make global.
1563         (i386_init_types): New function.
1564         (i386_build_mmx_type, i386_build_sse_type): Remove functions.
1565         (i386_register_type): Return i386_eflag_type, i386_sse_type and
1566         i386_mmx_type when appropriate.
1567         (_initialize_i386_tdep): Call i386_init_types.
1568         * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
1569         Declare extern.
1570
1571         Based on a previous patch form Michal Ludvig:
1572         * gdbtypes.c (append_flags_type_flag, init_flags_type): New
1573         functions.
1574         (is_integral_type, rank_one_type, recursive_dump_type): Add
1575         support for TYPE_CODE_FLAGS.
1576         * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
1577         (append_flags_type_field, init_flags_type): New prototypes.
1578         * ada-valprint.c (ada_val_print_1): Add support for
1579         TYPE_CODE_FLAGS.
1580         * c-valprint.c (c_val_print): Likewise.
1581         * f-valprint.c (f_val_print): Likewise.
1582         * p-valprint.c (pascal_val_print): Likewise.
1583         * valprint.c (val_print_type_code_flags): New function.
1584         * valprint.h (val_print_type_code_flags): New prototype.
1585         * value.c (unpack_long, value_from_longest): Add support for
1586         TYPE_CODE_FLAGS.
1587
1588 2006-01-17  Christopher Faylor  <cgf@timesys.com>
1589
1590         * MAINTAINERS: Very belatedly remove myself from from the list of
1591         people caught up in the paper trail.
1592
1593 2006-01-17  Jim Blandy  <jimb@redhat.com>
1594
1595         * symtab.h (struct general_symbol_info): Use gdb_byte for
1596         value.bytes.
1597         * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
1598         a floating-point constant's value.
1599         * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
1600         to char *.
1601         * findvar.c (read_var_value): Eliminate needless temporary.
1602
1603         * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
1604         to match prior change to dwarf2_read_section's type.
1605
1606 2006-01-16  Paul Gilliam  <pgilliam@us.ibm.com>
1607
1608         * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
1609         * rs6000-tdep.c (insn_changes_sp_or_jumps)
1610         (rs6000_in_function_epilogue_p): New functions.
1611         (rs6000_gdbarch_init): Set in_function_epilogue_p.
1612
1613 2006-01-17  Jim Blandy  <jimb@redhat.com>
1614
1615         * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
1616         (struct line_header, struct partial_die_info, struct dwarf_block):
1617         Use gdb_byte for members that refer to Dwarf section contents.
1618         (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
1619         dwarf_decode_macros, load_comp_unit, load_partial_dies,
1620         locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
1621         read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
1622         read_8_bytes, read_address, read_attribute, read_attribute_value,
1623         read_comp_unit, read_comp_unit_head, read_die_and_children,
1624         read_die_and_siblings, read_full_die, read_indirect_string,
1625         read_initial_length, read_n_bytes, read_offset, read_partial_die,
1626         read_signed_leb128, read_string, read_unsigned_leb128,
1627         skip_children, skip_leb128, skip_one_die): Same.
1628
1629 2006-01-17  Daniel Jacobowitz  <dan@codesourcery.com>
1630
1631         * complaints.c (stop_whining): Make signed.
1632         * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
1633
1634 2006-01-17  Daniel Jacobowitz  <dan@codesourcery.com>
1635
1636         * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
1637         notices.
1638
1639 2006-01-17  Daniel Jacobowitz  <dan@codesourcery.com>
1640
1641         * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
1642         (read_offset): Change BYTES_READ argument to unsigned int.
1643         (dwarf2_build_psymtabs_easy, read_comp_unit_head)
1644         (create_all_comp_units, dwarf2_get_pc_bounds)
1645         (dwarf_decode_line_header, var_decode_location)
1646         (dwarf_decode_macros): Change local BYTES_READ variables to
1647         unsigned int.
1648         (read_indirect_string): Remove obsolete cast.
1649
1650 2006-01-17  Daniel Jacobowitz  <dan@codesourcery.com>
1651
1652         * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
1653         argument.
1654         (remote_fileio_func_open, remote_fileio_func_rename)
1655         (remote_fileio_func_unlink, remote_fileio_func_stat)
1656         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1657         (remote_fileio_func_system): Cast the arguments to
1658         remote_read_bytes and remote_write_bytes.
1659         (remote_fileio_func_read, remote_fileio_func_write): Use a
1660         gdb_byte buffer.
1661         * remote.h (remote_read_bytes, remote_write_bytes): Update
1662         prototypes.
1663         * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
1664         (threadref_to_int): Replace bogus char * cast.
1665         (remote_unpack_thread_info_response): Use int for tag.
1666         (remote_threads_extra_info, remote_check_symbols): Cast string
1667         arguments to hex2bin.
1668         (remote_wait): Use a char buffer for packets and a gdb_byte
1669         buffer for registers.
1670         (remote_async_wait): Likewise.
1671         (remote_prepare_to_store, store_register_using_P)
1672         (remote_store_registers): Use gdb_byte buffers.
1673         (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
1674         for MYADDR and char buffers for strings.
1675         (remote_xfer_partial): Add casts for string operations on READBUF.
1676         (remote_rcmd): Cast strings passed to bin2hex.
1677
1678 2006-01-16  Mark Mitchell  <mark@codesourcery.com>
1679
1680         * aclocal.m4: Regenerate.
1681
1682 2006-01-16  Nathan Sidwell  <nathan@codesourcery.com>
1683
1684         * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
1685         MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
1686         MT_COPRO_PSEUDOREG_REGS members.  Adjust MT_NUM_PSEUDO_REGS.
1687         (mt_register_name): Lazily synthesize name for coprocessor pseudo
1688         array registers.
1689         (mt_copro_register_type): New. Broken out of ...
1690         (mt_register_type): ... here.  Use it.  Deal with coprocessor
1691         pseudo array.
1692         (mt_select_coprocessor): New.
1693         (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
1694         coprocessor pseudo array.
1695
1696 2006-01-16  Andrew Stubbs  <andrew.stubbs@st.com>
1697
1698         * breakpoint.c (insert_breakpoints): Check that a thread exists
1699         before inserting thread specific breakpoints.
1700
1701 2006-01-15  Mark Kettenis  <kettenis@gnu.org>
1702
1703         * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
1704         commit.
1705
1706         * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
1707         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
1708         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
1709         * config/alpha/nm-nbsd.h: Remove file.
1710         * config/alpha/nm-fbsd.h: Remove file
1711         * config/alpha/nbsd.mh (NAT_FILE): Remove.
1712         * config/alpha/fbsd.mh (NAT_FILE): Remove.
1713
1714 2006-01-15  Daniel Jacobowitz  <dan@codesourcery.com>
1715
1716         * macroexp.c (expand): Initialize argc.
1717         * stabsread.c (read_type): Handle errors from read_args.
1718         (read_args): Return NULL for errors.
1719
1720 2006-01-15  Mark Kettenis  <kettenis@gnu.org>
1721
1722         * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
1723         strcmp to compare string to a byte buffer.
1724
1725 2006-01-15  Daniel Jacobowitz  <dan@codesourcery.com>
1726
1727         * printcmd.c (output_command): Always initialize fmt.size.
1728         (printf_command): Use gdb_byte.
1729         * symfile.c (separate_debug_file_exists): Use gdb_byte.
1730         (load_section_callback, read_target_long_array): Likewise.
1731         (simple_read_overlay_table, simple_read_overlay_region_table)
1732         (simple_overlay_update_1): Correct calls to read_target_long_array.
1733         * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
1734         Also change local pointers.
1735         (val_print_string): Use gdb_byte.
1736
1737 2006-01-15  Mark Kettenis  <kettenis@gnu.org>
1738
1739         * alphafbsd-tdep.c: Include "solib-svr4.h".
1740         (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1741         svr4_lp64_fetch_link_map_offsets.
1742         * Makefile.in (alphafbsd-tdep.o): Update dependencies.
1743         * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
1744         solib-svr4.o.
1745         * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
1746         and solib-legacy.o.
1747         * config/alpha/nm-fbsd.h: Don't include "solib.h".
1748
1749 2006-01-15  Daniel Jacobowitz  <dan@codesourcery.com>
1750
1751         * source.c (_initialize_source): Use add_setshow_integer_cmd.
1752
1753 2006-01-15  Daniel Jacobowitz  <dan@codesourcery.com>
1754
1755         * linux-fork.c (delete_fork_command, detach_fork_command): Use
1756         PIDGET.
1757
1758 2006-01-15  Mark Kettenis  <kettenis@gnu.org>
1759
1760         * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
1761         Remove.
1762         (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1763         svr4_ilp32_fetch_link_map_offsets.
1764         * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
1765         function.
1766         (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1767         svr4_ilp32_fetch_link_map_offsets.
1768         * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
1769         (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
1770         (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1771         svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
1772         where appropriate.
1773         * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
1774         Simply call svr4_ilp32_fetch_link_map_offsets.
1775         (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
1776         svr4_lp64_fetch_link_map_offsets.
1777         * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
1778         function.
1779         (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1780         svr4_ilp32_fetch_link_map_offsets.
1781         * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
1782         (s390x_svr4_fetch_link_map_offsets): Remove functions.
1783         (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1784         svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
1785         where appropriate.
1786
1787 2006-01-15  Mark Kettenis  <kettenis@gnu.org>
1788
1789         * arm-tdep.c (arm_return_value): Change type of readbuf and
1790         writebuf arguments to `gdb_byte *'.
1791
1792         * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
1793         * Makefile.in (s390-tdep.o): Update dependencies.
1794
1795 2006-01-14  Mark Kettenis  <kettenis@gnu.org>
1796
1797         * sol2-tdep.h. sol2-tdep.c: New files.
1798         * amd64-sol2-tdep.c: Include "sol2-tdep.h".
1799         (amd64_sol2_init_abi): Set skip_solib_resolver.
1800         * i386-sol2-tdep.c: Include "sol2-tdep.h".
1801         (i386_sol2_init_abi): Set skip_solib_resolver.
1802         * sparc-sol2-tdep.c: Include "sol2-tdep.h".
1803         (sparc32_sol2_init_abi): Set skip_solib_resolver.
1804         * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
1805         (sparc64_sol2_init_abi): Set skip_solib_resolver.
1806         * Makefile.in (sol2_tdep_h): New variable.
1807         (ALLDEPFILES): Add sol2-tdep.c.
1808         (sol2-tdep.o): New target.
1809         (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
1810         (sparc64-sol2-tdep.o): Update dependencies
1811         * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
1812         * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
1813         * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
1814         * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
1815
1816         * hppa-linux-tdep.c: Fix copyright indentation.
1817
1818         * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
1819         * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
1820         (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
1821         functions.
1822         (hppabsd_fetch_registers, hppabsd_store_registers): Handle
1823         floating-point registers.
1824
1825 2006-01-13  Mark Mitchell  <mark@codesourcery.com>
1826
1827         * event-loop.c (gdb_select): Detect file descriptors that have
1828         been closed.
1829
1830 2006-01-13  Mark Kettenis  <kettenis@gnu.org>
1831
1832         * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
1833         and long_double_format accordingly.
1834
1835 2006-01-12  Paul N. Hilfinger <hilfinger@adacore.com>
1836
1837         * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
1838         translation problems.
1839         * ada-lang.c (ada_value_struct_elt): Change interface and handling
1840         of errors to avoid translation problem (and less than optimal error
1841         messages).
1842         (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
1843         Use new interface to ada_value_struct_elt.
1844         * ada_lang.h (ada_value_struct_elt): Update declaration to new 
1845         interface.
1846         
1847         * ChangeLog: remove reference to ada-tasks.c from entry of
1848         2006-01-07.
1849         
1850 2006-01-11  Mark Kettenis  <kettenis@gnu.org>
1851
1852         * remote.c (get_memory_packet_size, set_thread) 
1853         (remote_unpack_thread_info_response, remote_get_threadinfo) 
1854         (parse_threadlist_response, remote_get_threadlist) 
1855         (remote_current_thread, remote_threads_info) 
1856         (remote_threads_extra_info, extended_remote_restart, get_offsets) 
1857         (remote_check_symbols, remote_open_1, remote_detach) 
1858         (remote_async_wait, remote_fetch_registers) 
1859         (remote_store_registers, check_binary_download, putpkt_binary) 
1860         (remote_insert_breakpoint, remote_insert_watchpoint) 
1861         (remote_remove_watchpoint, remote_insert_hw_breakpoint) 
1862         (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd) 
1863         (packet_command): Remove redundant parenthesis.
1864
1865 2006-01-10  Mark Kettenis  <kettenis@gnu.org>
1866
1867         * corefile.c (read_memory_integer, read_memory_unsigned_integer)
1868         (read_memory_typed_address, write_memory)
1869         (write_memory_unsigned_integer, write_memory_signed_integer): Use
1870         gdb_byte where appropriate.
1871
1872         * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
1873         'gdb_byte *'.
1874
1875         * target.h (target_read_memory_partial, target_write_memory_partial):
1876         Change second argument to 'gdb_byte *'.
1877         * target.c (target_xfer_memory_partial): Change third argument to
1878         'gdb_byte *'.
1879         (target_read_memory_partial, target_write_memory_partial): Change
1880         second argument to 'gdb_byte *'.
1881
1882         * linespec.c (decode_objc): Make i1 and i2 unsigned.
1883         (find_method): Set values.sals to NULL.
1884
1885 2006-01-09  Mark Kettenis  <kettenis@gnu.org>
1886
1887         * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
1888         of 'char *' in cast.
1889
1890 2006-01-07  Paul N. Hilfinger <hilfinger@adacore.com>
1891
1892         * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
1893         * ada-lang.c: I18n markup.  
1894         Editorial: change "can not" => "cannot" throughout.
1895
1896 2006-01-07  Mark Kettenis  <kettenis@gnu.org>
1897
1898         * Makefile.in: Sort dependencies.
1899
1900 2006-01-07  Eli Zaretskii  <eliz@gnu.org>
1901
1902         * top.c (control_level): Remove unused variable.
1903
1904 2006-01-06  Fred Fish  <fnf@specifix.com>
1905
1906         * objfiles.c (source.h): Include.
1907         (free_objfile): Update comment about clear_symtab_users().
1908         (free_objfile): Check all symtabs of objfile being freed and if
1909         one of them is the current source symtab, call
1910         clear_current_source_symtab_and_line().
1911
1912 2006-01-04  Michael Snyder  <msnyder@redhat.com>
1913
1914         Checkpoint/Restart for Linux.
1915         * linux-nat.c: Add support for debugging multiple forks.
1916         Add #include for linux-fork.h (interface spec).
1917         (super_mourn_inferior): New function pointer.
1918         (child_mourn_inferior): New function / target method.
1919         (linux_target): Claim to_mourn_inferior method pointer.
1920         (child_follow_fork): Call interface to linux-fork, conditionally
1921         add new fork processes to list of debugged processes.
1922         (kill_inferior): Use interface to linux-fork to kill
1923         multiple processes.
1924
1925         * linux-fork.h: New file.
1926         * linux-fork.c: New file.  Support for debugging multiple forks
1927         of the same program.  Support for checkpoint and restart commands.
1928
1929         * infrun.c (nullify_last_target_wait_ptid): New function.
1930
1931         * Makefile.in: Add linux-fork.
1932         * config/*/linux.mh: Add linux-fork.
1933         * NEWS: Mention new functionality.
1934
1935 2006-01-02  Paul Hilfinger  <hilfingr@nile.gnat.com>
1936
1937         * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc): 
1938         Change uses of "illegal" to "invalid".
1939         
1940 2006-01-02  Paul N. Hilfinger  <hilfinger@adacore.com>
1941
1942         * ada-exp.y: Considerable reorganization to move functionality
1943         from ada-lex.l to here, where it is logically more appropriate.
1944         The original reason, however, was to prevent premature name
1945         lookups for selector names in record aggregates.
1946         (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
1947         NAME for all of these.
1948         (VAR): New artificial token to clarify precedence rules.
1949         (OTHERS): New lexeme.
1950         (empty_stoken): New symbol.
1951         (%union): Remove ssym, voidval.
1952         (%type): Remove <voidval> type declarations.
1953         (syntax definitions): Add aggregates.
1954         Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
1955         Rename some non-terminals to be closer to reference manual usage.
1956         Tighten up expression syntax to disallow certain non-Ada 
1957         constructions such as X and then Y or else Z.
1958         (ada_parse): Remove initialization of left_block_context.
1959         (write_var_from_name): Remove.
1960         (write_var_or_type): New function, containing previous code from
1961         defunct write_var_from_name and name_lookup.
1962         (block_lookup): New function, moved from ada-lex.l
1963         (select_possible_type_sym): New function, factored out of
1964         name_lookup, which used to be in ada-lex.l.
1965         (find_primitive_type): Ditto.
1966         (chop_selector): Ditto.
1967         (write_ambiguous_var): New function, factored out of defunct
1968         write_var_from_name.
1969         (write_selectors): New function.
1970         (write_name_assoc): New function.
1971         (write_exp_op_with_string): New function.
1972
1973         * ada-lex.l (processId): Change interface to return stoken.
1974         (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
1975         (block_lookup, name_lookup): Remove.  Functionality moved to
1976         ada-exp.y.
1977         (state IN_STRING): Remove.
1978         (rules): Handle string escapes in processString.
1979         Add 'others' token.
1980         Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
1981         yylval.sval (as simple strings).
1982         All name look-ups now handled in ada-exp.y.
1983         Introduce "::" (COLONCOLON) token and return as separate token.
1984         (processId): Change return convention.  Comment.
1985         Leave leading "'" in place.
1986         (processString): New function.
1987         (find_dot_all): Add note to comment.
1988         Fix problem that allowed match only at the end.
1989
1990         * ada-lang.c: Introduce aggregates.
1991         (find_struct_field): Add new parameter to count fields skipped, and
1992         allow other output parameters to be NULL.
1993         (value_tag_from_contents_and_address, ada_value_struct_elt): Use 
1994         new find_struct_field.
1995         (ada_index_struct_field, assign_aggregate, ada_is_array_type)
1996         (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
1997         (num_component_specs, assign_component, assign_aggregate):
1998         (aggregate_assign_from_choices,aggregate_assign_positional)
1999         (aggregate_assign_others,add_component_interval):
2000         New functions.
2001         (ada_evaluate_subexp): Declare.
2002         Add aggregate-related operators.
2003         (ada_forward_operator_length): Declare.
2004         (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
2005         Consolidate Ada operators, using ada_forward_operator_length.
2006         (ada_search_struct_field): Search in forward order.
2007         (ADA_OPERATORS): Add new aggregate operators.
2008         (ada_operator_length, ada_op_name, ada_forward_operator_length)
2009         (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate 
2010         operators and OP_NAME.
2011         (ada_type_of_array): Use longest_to_int.
2012         (value_assign_to_component): New function.
2013         (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
2014         Add OP_NAME case.
2015         (ada_forward_operator_length, ada_dump_subexp_body):
2016         Add OP_STRING case.
2017
2018         * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
2019         OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
2020
2021 2006-01-02  Paul N. Hilfinger  <hilfinger@adacore.com>
2022
2023         * ada-lang.c (process_raise_exception_name): Remove extraneous 
2024         definition from unsubmitted code.
2025
2026         (is_lower_alphanum): New function.
2027         (ada_decode):  Add support for decoding protected object subprograms
2028         and entries, and of entities declared inside protected object
2029         subprograms. 
2030         Also add missing handling for__{DIGITS}+ suffixes.
2031         Allow '$<digits>' as valid overloading suffix.
2032         (is_name_suffix): Add handling for protected type entriy suffixes.
2033         Also add support for protected type subprogram suffixes, but keep
2034         it commented out for now, as there is an ambiguity between these
2035         entities and other internally generated entities.
2036         Allow '$<digits>' as valid overloading suffix.
2037         (is_valid_name_for_wild_match): New function.
2038         (wild_match): Add an exra level of verification of the entity name
2039         before declaring it a match for the given pattern.
2040
2041         (ada_type_of_array, ada_evaluate_subexp): Use more proper 
2042         longest_to_int rather than cast.
2043
2044         (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
2045
2046         (ada_coerce_to_simple_array): Call check_size to make sure
2047         that the object size is reasonable.
2048
2049         (ada_value_primitive_packed_val):  Use correct location in target 
2050         buffer for extracting packed record fields that are themselves records.
2051
2052         (add_defn_to_vec): Do not try to replace a stub type by its full
2053         type. Avoids a potential infinite loop.
2054         
2055         (ada_lookup_symbol): Move return incorrectly placed return statement, 
2056         causing a loop that should be scanning all object files to only 
2057         scan the first one.
2058
2059         (ada_tag_name_2): New function.
2060         (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
2061         use alternative representation.
2062
2063         (ada_find_renaming_symbol): Strip the function name suffix when 
2064         computing the XR type name.
2065
2066         (ada_to_fixed_type): Try determining the tag only if we have the
2067         object's address.
2068         (to_fixed_array_type): Add comments.
2069
2070         (ada_check_typedef): Replace expression checking whether the given
2071         type is a stub or not by a "call" to TYPE_STUB. Clearer and more
2072         consistent.
2073         
2074         * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
2075         '$' in addition to '.' for runtime auxiliary function name suffixes.
2076         See changes to ada_decode above.
2077
2078         (struct task_control_block): Add field called_task.  (This change is
2079         to keep synchronized with our local sources; it does not affect the
2080         public version yet.)
2081
2082         * ada-typeprint.c (ada_print_type): Use int_string for printing
2083         modulus of modular type.
2084         
2085         (print_range): Trivial editorial comment fix.
2086
2087         * ada-valprint.c (ada_emit_char): Use normal Ada syntax for 
2088         double quote in string.
2089
2090 2006-01-01  Joel Brobecker  <brobecker@adacore.com>
2091
2092         * top.c: Add 2006 to list of copyright years in file header.
2093
2094 2006-01-01  Joel Brobecker  <brobecker@adacore.com>
2095
2096         * top.c (print_gdb_version): Update copyright year to 2006.
2097
2098 2006-01-01  Roger Sayle  <roger@eyesopen.com>
2099             Elena Zannoni <ezannoni@redhat.com>
2100
2101         PR symtab/1651
2102         * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
2103         for NULL before assigning this_symtab_psymtab->objfile to objfile.
2104         (scan_xcoff_symtab): Initialize next_symbol_text_func.
2105         (Committed by Jim Blandy)
2106
2107 For older changes see ChangeLog-2005.
2108 \f
2109 Local Variables:
2110 mode: change-log
2111 left-margin: 8
2112 fill-column: 74
2113 version-control: never
2114 End: