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