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