* aix-thread.c (pdc_read_regs): Fix compiler warning.
[binutils-gdb.git] / gdb / ChangeLog
1 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
2
3 * aix-thread.c (pdc_read_regs): Fix compiler warning.
4 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
5 (store_regs_kernel_thread): Likewise.
6
7 2008-03-21 Pedro Alves <pedro@codesourcery.com>
8
9 Linux native async support.
10
11 * target.h (struct target_ops): Delete to_async_mask_value and add
12 to_async_mask.
13 (target_is_async_p, target_async): Formatting.
14 (target_async_mask_value): Delete.
15 (target_async_mask): Delete function declaration, and add new
16 target macro with the same name.
17
18 * target.c (update_current_target): Replace to_async_mask_value by
19 to_async_mask. Default to_async_mask to return_one.
20 (target_async_mask): Delete.
21 (find_default_can_async_p, find_default_is_async_p): New.
22 (init_dummy_target): register find_default_can_async_p and
23 find_default_is_async_p on the dummy target.
24
25 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
26 (debug_linux_nat_async): New global.
27 (show_debug_linux_nat_async): New function.
28 (linux_nat_async_enabled, linux_nat_async_mask_value)
29 (linux_nat_event_pipe, linux_nat_num_queued_events)
30 (linux_nat_async_events_enabled): New globals.
31 (struct waitpid_result): New struct.
32 (waitpid_queue): New global.
33 (queued_waitpid, push_waitpid, drain_queued_events): New.
34 (my_waitpid): Call queued_waitpid.
35 (linux_child_follow_fork): Disable async events during the call.
36 (blocked_mask): Delete.
37 (sync_sigchld_action, async_sigchld_action): New globals.
38 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
39 async mode, block events during the call.
40 (linux_nat_create_inferior): New.
41 (linux_nat_attach): In sync mode, restore the mask states. In
42 async mode, wake the event loop immediatelly.
43 (detach_callback): Drain all queued events of the lwp we're
44 detaching from.
45 (linux_nat_detach): Block async mode, and drain events of the main
46 process.
47 (linux_nat_resume): If in async mode, mask async events during the
48 call. If short circuiting, force event loop to wake up. If
49 resuming, set target_executing, and register target events in the
50 event loop.
51 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
52 (linux_nat_wait): In async mode, block events during the call.
53 Only enable/disable passing SIGINT to the inferior in sync mode.
54 Get events from local waitpid queue. If no interesting events was
55 found, return to events loop. Reregister target events in the
56 event loop on exit. In sync mode, no need to reblock SIGCHLD.
57 (linux_nat_kill): Disable events on entry.
58 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
59 here. Detach async mode from the event loop if there are no more
60 forks available, otherwise leave it on.
61 (sigchld_handler): Assure this is called only in sync mode.
62 (linux_async_permitted, linux_async_permitted_1): New globals.
63 (set_maintenance_linux_async_permitted)
64 (show_maintenance_linux_async_permitted): New functions.
65 (linux_nat_is_async_p, linux_nat_can_async_p)
66 (linux_nat_async_mask): New.
67 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
68 (get_pending_events, async_sigchld_handler): New.
69 (linux_nat_async_events): New.
70 (async_terminal_is_ours): New global.
71 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
72 (async_client_callback, async_client_context): New.
73 (linux_nat_async_file_handler, linux_nat_async)
74 (linux_nat_disable_async, linux_nat_enable_async): New.
75 (linux_nat_add_target): Register linux_nat_create_inferior,
76 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
77 linux_nat_async_mask, linux_nat_terminal_inferior and
78 linux_nat_terminal_ours.
79 (_initialize_linux_nat): Remove local action variable, and update
80 code that used it to use sync_sigchld_action. Add new
81 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
82 set/show command in the maintenance class. Add new "linux-async"
83 maintenance set/show command. Block SIGCHLD by default. Setup
84 async_sichld_action, and sync_sigchld_action. Install the default
85 async mode.
86 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
87 the cancel signals.
88
89 * linux-thread-db.c (re_check_for_thread_db): New.
90 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
91 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
92 (thread_db_async_mask): New.
93 (init_thread_db_ops): Register thread_db_can_async_p,
94 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
95
96 * remote.c (remote_async_mask_value): New.
97 (remote_return_zero): New.
98 (init_remote_ops): Register remote_return_zero as callbacks of
99 to_can_async_p and to_is_async_p.
100 (remote_can_async_p, remote_is_async_p, remote_async): Update to
101 use remote_async_mask_value.
102 (remote_async_mask): New.
103 (init_remote_async_ops): Remove to_async_mask_value setting and
104 register remote_async_mask as to_async_mask callback in
105 remote_async_ops.
106
107 * Makefile.in (linux-nat.o): Update.
108
109 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
110
111 * gdbthread.h (add_thread_with_info): New.
112 * linux-thread-db.c: Add some documentation.
113 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
114 (struct private_thread_info): Remove th_valid and ti_valid.
115 Replace ti with tid.
116 (thread_get_info_callback): Do not add TID to the new ptid. Do
117 not cache th or ti.
118 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
119 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
120 new PTID.
121 (attach_thread): Handle an already-existing thread. Use
122 add_thread_with_info. Cache the th and tid.
123 (detach_thread): Verify that private was set. Remove verbose
124 argument and printing. Update caller.
125 (thread_db_detach): Do not adjust inferior_ptid.
126 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
127 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
128 (thread_db_wait): Do not use lwp_from_thread.
129 (thread_db_pid_to_str): Use the cached TID.
130 (thread_db_extra_thread_info): Check that private is set.
131 (same_ptid_callback): Delete.
132 (thread_db_get_thread_local_address): Do not use it or check
133 is_thread. Check that private is set. Assume that the thread
134 handle is already cached.
135 (init_thread_db_ops): Remove to_resume and to_kill.
136 * thread.c (add_thread_with_info): New.
137 (add_thread): Use it.
138 * linux-nat.c (find_thread_from_lwp): Delete.
139 (exit_lwp): Do not use it. Check print_thread_events. Print before
140 deleting the thread.
141 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
142 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
143 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
144 printf_unfiltered for thread exits.
145 * procfs.c (procfs_wait): Likewise.
146
147 2008-03-21 Chris Demetriou <cgd@google.com>
148
149 * symtab.c (rbreak_command): Quote symbol name before passing
150 it to break_command.
151
152 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
153
154 * eval.c (evaluate_subexp_for_address): Clarify error message.
155 Use value_must_coerce_to_target.
156 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
157 * valops.c (value_assign): Call value_coerce_to_target when
158 assigning to anything but internalvars. Leave GDB-side arrays
159 as arrays when assigning to internalvars.
160 (value_must_coerce_to_target, value_coerce_to_target): New.
161 (value_coerce_array, value_addr): Call value_coerce_to_target.
162 (value_array): Create the array in GDB's memory instead of
163 the inferior's.
164 * value.h (value_must_coerce_to_target, value_coerce_to_target):
165 Declare.
166
167 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
168
169 * top.c (quit_confirm): Warn that we will kill the program.
170
171 2008-03-19 Pedro Alves <pedro@codesourcery.com>
172
173 * inflow.c (terminal_ours_1): Guard access to
174 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
175
176 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
177 Jim Blandy <jimb@codesourcery.com>
178 Daniel Jacobowitz <drow@false.org>
179
180 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
181 (dwarf2_read_address): Update prototype.
182
183 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
184 (signed_address_type): Likewise.
185 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
186 (execute_stack_op): Update calls to unsigned_address_type,
187 signed_address_type and dwarf2_read_address. Fix implementation
188 of DW_OP_deref_size.
189
190 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
191 (dwarf2_per_cu_addr_size): Likewise.
192 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
193 (struct dwarf2_loclist_baton): Likewise.
194
195 * dwarf2loc.c (find_location_expression): Update calls to
196 dwarf2_read_address. Use dwarf2_per_cu_objfile and
197 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
198 (locexpr_describe_location): Likewise.
199 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
200 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
201 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
202 to dwarf2_per_cu_addr_size (per_cu).
203 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
204 (loclist_read_variable): Likewise.
205 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
206
207 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
208 instead of baton->objfile.
209 (dwarf2_per_cu_obfile): New function.
210 (dwarf2_per_cu_addr_size): Likewise.
211
212 * dwarf2-frame.c (struct comp_unit): Move higher.
213 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
214 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
215 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
216 parameter by using fde->eh_frame_p. Use read_encoded_value
217 to implement DW_CFA_set_loc.
218 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
219 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
220 execute_stack_op and execute_cfa_program.
221 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
222 (size_of_encoded_value): Remove.
223 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
224 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
225 (add_cie): Set cie->unit backlink.
226 (decode_frame_entry_1): Set cie->addr_size. Update calls to
227 read_encoded_value.
228 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
229
230 2008-03-17 Markus Deuling <deuling@de.ibm.com>
231
232 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
233 gdbarch_bfd_arch_info.
234
235 2008-03-17 Joel Brobecker <brobecker@adacore.com>
236
237 * aix-thread.c (pdc_read_regs): Minor reformatting.
238
239 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
240
241 * thread.c (print_thread_info): Don't insist
242 on having current thread if there are no
243 threads at all.
244
245 2008-03-17 Pedro Alves <pedro@codesourcery.com>
246
247 * infcmd.c (attach_command_post_wait)
248 (attach_command_continuation): New.
249 (attach_command): Support background async execution, and async
250 execution in synchronous mode.
251
252 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
253
254 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
255 * symmisc.c (dump_symtab_1): Likewise.
256 * wrapper.c (gdb_value_struct_elt): Likewise.
257
258 2008-03-17 Pedro Alves <pedro@codesourcery.com>
259
260 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
261
262 2008-03-17 Pedro Alves <pedro@codesourcery.com>
263
264 * linux-nat.c (linux_nat_filter_event): New, refactored from
265 linux_nat_wait.
266 (linux_nat_wait): Call linux_nat_filter_event.
267
268 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
269
270 * top.c (execute_command): Fix uninitialized variable error.
271
272 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
273
274 * Makefile.in (amd64nbsd-nat.o): New dependency.
275 * amd64nbsd-nat.c: Include "nbsd-nat.h".
276 (_initialize_amd64nbsd_nat): Update target vector to use
277 nbsd_pid_to_exec_file.
278 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
279
280 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
281
282 Remove ignoring leading exec events code.
283 * fork-child.c (startup_inferior): Do not set
284 inferior_ignoring_leading_exec_events.
285 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
286 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
287 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
288 (handle_inferior_event): Remove code for ignoring leading exec
289 events.
290 * target.c (update_current_target): Do not inherit, or default,
291 to_reported_exec_events_per_exec_call.
292 (debug_to_reported_exec_events_per_exec_call): Remove.
293 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
294 * target.h (target_reported_exec_events_per_exec_call): Remove.
295 (struct target): Remove the to_reported_exec_events_per_exec_call
296 field.
297
298 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
299
300 Implement -thread-info.
301 * gdbthread.h (print_thread_info): Declare.
302
303 * thread.c (print_thread_info): New, extracted
304 from info_threads_command and adjusted to
305 work for CLI and MI.
306 (info_threads_command): Use print_thread_info.
307 * Makefile.in: Update dependencies.
308
309 * mi/mi-cmds.c (mi_cmds): Specify a handler
310 for -thread-info.
311 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
312 * mi/mi-main.c (mi_cmd_thread_info): New.
313 (mi_cmd_list_features): Include 'thread-info'.
314
315 2008-03-14 Kevin Buettner <kevinb@redhat.com>
316
317 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
318 to decide whether to match instruction patterns using "sw" and "sd".
319
320 2008-03-14 Pedro Alves <pedro@codesourcery.com>
321
322 * infcmd.c (jump_command): Postpone disabling stdin until after
323 the possible query.
324
325 2008-03-14 Pedro Alves <pedro@codesourcery.com>
326
327 * inflow.c (gdb_getpgrp): New.
328 (gdb_has_a_terminal): Use get_getpgrp.
329 (terminal_ours_1): If attach_flag is set, don't refetch
330 inferior_process_group.
331
332 2008-03-14 Pedro Alves <pedro@codesourcery.com>
333
334 * features/library-list.dtd: Allow "section" elements as children
335 of "library". Add "section" element and describe its attributes.
336
337 * solib-target.c (struct lm_info): Add section_bases member.
338 (library_list_start_segment): Error out if seen a section element.
339 (library_list_start_section): New.
340 (library_list_end_library): New.
341 (solib_target_free_library_list): Free section_bases.
342 (section_attributes): New.
343 (library_children): Make "segment" optional. Add "section" child.
344 (library_list_children): Register library_list_end_library.
345 (solib_target_relocate_section_addresses): Handle section bases.
346
347 * NEWS: Mention new qXfer:libraries:read section offsets support.
348
349 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
350
351 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
352 (make_exec_error_cleanup): Remove declarations.
353 * utils.c (exec_error_cleanup_chain): Remove.
354 (do_exec_error_cleanups, discard_exec_error_cleanups)
355 (make_exec_error_cleanup): Remove.
356 * event-loop.c (start_event_loop): Adjust call to
357 async_enable_stdin.
358 * event-top.c (async_enable_stdin): Remove the paramater dummy.
359 (async_disable_stdin): Don't register async_enable_stdin via
360 cleanup.
361 * inf-loop.c (inferior_event_handler): Don't
362 call do_exec_error_cleanups. Call async_enable_stdin instead.
363 * event-loop.c (start_event_loop): Adjust call to
364 async_enable_stdin.
365 * tui/tui-interp.c (tui_command_loop): Adjust call to
366 async_enable_stdin.
367
368 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
369
370 Async mode fixes.
371 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
372 * breakpoint.c (bpstat_do_actions): In async mode,
373 don't jump to top expecting stop_bpstat to be already
374 updated.
375 * event-loop.c (start_event_loop): Call async_enable_stdin
376 on exception.
377 * event-top.c (async_enable_stdin): Do nothing if sync_execution
378 is not set.
379 (command_handler): Do not setup continuation here.
380 (command_line_handler_continuation): Move to...
381 * top.c (command_line_handler_continuation): ... here.
382 (execute_command): In async mode, register continuation.
383 Don't check frame's language in running in async mode.
384 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
385 * inf-loop.c (complete_execution): Inline into...
386 (inferior_event_handler): ... here. Clear target_executing before
387 doing any cleanups. Don't try to show prompt if the target was
388 resumed.
389 * infcmd.c (signal_command): Add support for async mode.
390 (finish_command): Only add continuation if the target was
391 successfully resumed.
392 * remote.c (init_async_opts): Register to_get_thread_local_address
393 handler.
394 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
395 with sync_execution.
396 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
397 on exception.
398
399 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
400
401 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
402 * exec.c (exec_bfd_mtime): Define.
403 (exec_close): Clear it.
404 (exec_file_attach): Set it.
405 * gdbcore.h (exec_bfd_mtime): Declare.
406 * source.c (find_source_lines): Do not use bfd_get_mtime.
407
408 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
409
410 * top.c (simplified_command_loop): Remove.
411
412 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
413
414 Remove unused remote.c hooks.
415 * remote.c (deprecated_target_resume_hook)
416 (deprecated_target_wait_loop_hook): Remove.
417 (remote_resume): Do not call deprecated_target_resume_hook.
418 (remote_wait): Do not call deprecated_target_wait_loop_hook.
419 (remote_async_wait): Likewise.
420
421 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
422
423 Implement MI notification for new threads.
424 * doc/observer.texi (new_thread): Document.
425 * observer.sh: Forward declare struct thread_info.
426 * thread.c (add_thread): Notify observer.
427
428 * interps.h (interp_init_ftype): New parameter
429 top_level.
430 (interp_set): Likewise.
431 (top_level_interpreter_data): Declare.
432 * interps.c (interp_set): New parameter top_level.
433 Pass it to interpreter's init function. Remember
434 top level interpreter.
435 (interpreter_exec_cmd): Adjust.
436 (top_level_interpreter_data): New.
437 * main.c (captured_main): Pass 1 for top_level
438 parameter of interp_set.
439 * cli/cli-interp.c (cli_interpreter_init): New
440 parameter top_level.
441 * tui/tui-interp.c (tui_init): New parameter top_level.
442
443 * mi/mi-interp.c (mi_new_thread): New.
444 (mi_interpreter_init): If top level, register
445 observer for new threads.
446
447 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
448
449 2008-03-14 Pedro Alves <pedro@codesourcery.com>
450
451 * top.c (execute_command): Disable break and stop
452 commands in async mode.
453
454 2008-03-14 Pedro Alves <pedro@codesourcery.com>
455
456 revert:
457 2008-03-14 Pedro Alves <pedro@codesourcery.com>
458 * inf-loop.c (inferior_event_handler): Don't include remote.h.
459 Call target_stop in the INF_QUIT_REQ case.
460 * Makefile.in (inf-loop.o): Update.
461
462 2008-03-14 Pedro Alves <pedro@codesourcery.com>
463
464 * inf-loop.c (inferior_event_handler): Don't include remote.h.
465 Call target_stop in the INF_QUIT_REQ case.
466 * Makefile.in (inf-loop.o): Update.
467
468 2008-03-14 Pedro Alves <pedro@codesourcery.com>
469
470 * top.c (execute_command): Enable break, info and interrupt
471 commands in async mode.
472
473 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
474 Daniel Jacobowitz <dan@codesourcery.com>
475
476 * breakpoint.h (breakpoint_restore_shadows): New
477 declaration.
478 * breakpoint.c (breakpoint_restore_shadows): New.
479 (read_memory_nobpt): Delete.
480 * gdbcore.h (read_memory_nobpt): Delete declaration.
481 * target.c (memory_xfer_partial): Call
482 breakpoint_restore_shadows.
483 (restore_show_memory_breakpoints)
484 (make_show_memory_beakpoints_cleanup): New.
485 (show_memory_breakpoints): New.
486 * target.h (make_show_memory_beakpoints_cleanup): Declare.
487 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
488 Make sure we see memory breakpoints when checking if
489 breakpoint is still there.
490 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
491 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
492 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
493 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
494
495 2008-03-12 Pedro Alves <pedro@codesourcery.com>
496
497 * thread.c (add_thread): Use printf_unfiltered to print.
498
499 2008-03-12 Joel Brobecker <brobecker@gnat.com>
500
501 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
502 that is true only on x86-solaris and x86_64-solaris.
503 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
504 with proc_get_LDT_entry.
505
506 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
507
508 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
509 * config.in, configure: Regenerate.
510 * fork-child.c (fork_inferior): Call create_tty_session.
511 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
512 (create_tty_session): New function.
513 * terminal.h: Declare create_tty_session.
514
515 2008-03-12 Alan Modra <amodra@bigpond.net.au>
516
517 PR 5900
518 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
519 * mipsread.c: Include elf/internal.h.
520 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
521 to internal range.
522
523 2008-03-11 Markus Deuling <deuling@de.ibm.com>
524
525 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
526 to get at the current architecture and at the target specific vector.
527 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
528 remove define of I387_ST0_REGNUM.
529
530 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
531
532 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
533 get at the current architecture
534 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
535 parameter.
536
537 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
538 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
539
540 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
541 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
542 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
543
544 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
545 at the target specific vector.
546
547 (i386_get_longjmp_target): Use get_frame_arch to get at the current
548 architecture. Use gdbarch_tdep to get at the target specific vector.
549
550 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
551 update caller. Use gdbarch_tdep to get at the target specific vector.
552
553 (i386_register_to_value: Use get_frame_arch to get at the current
554 architecture.
555
556 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
557 parameter.
558
559 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
560 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
561 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
562 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
563
564 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
565 undef's.
566
567 (i387_convert_register_p, i387_register_to_value,
568 i387_value_to_register): Update call for i386_fp_regnum_p.
569
570 * i387-tdep.h: Remove comment.
571 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
572 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
573 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
574 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
575 I387_MXCSR_REGNUM): Add target specific vector as parameter.
576
577 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
578
579 * Makefile.in (fork-child.o): Update.
580 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
581 argument. Gather all gdbserver features together.
582 * fork-child.c (exec_wrapper): New variable.
583 (fork_inferior): Use it.
584 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
585 (unset_exec_wrapper_command, _initialize_fork_child): New.
586
587 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
588
589 * source.c (directory_command): Modify the determination of
590 condition of terminal "from_tty".
591
592 2008-03-10 Matt Rice <ratmice@gmail.com>
593
594 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
595
596 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
597
598 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
599 of the data passing to strtoulst function.
600 (info_spu_signal_command): Likewise.
601
602 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
603
604 * mi/mi-interp.c (mi_command_loop): Remove
605 commented-out code.
606
607 2008-03-07 Joel Brobecker <brobecker@adacore.com>
608
609 * remote.c (extended_remote_attach_1): Make local variable pid an int
610 instead of a pid_t.
611
612 2008-03-07 Joel Brobecker <brobecker@adacore.com>
613
614 * solib-svr4.c (svr4_same_1): New function, originally extracted
615 from svr4_same and expanded to handle the sparc64 case.
616 (svr4_same): Move up and reimplement using svr4_same_1.
617 (enable_break): Use svr4_same_1 to do shared library name comparisons.
618
619 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
620
621 * MAINTAINERS: Move self to Paper trail.
622
623 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
624
625 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
626 * event-loop.c (call_async_signal_handler): New.
627 * event-loop.h (call_async_signal_handler)
628 (gdb_call_async_signal_handler): Declare.
629 (mark_async_signal_handler): Add comments.
630 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
631 * mingw-hdep.c (sigint_event, sigint_handler): New.
632 (gdb_select): Use them. Wait for the readline signal handler
633 to finish.
634 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
635 * posix-hdep.c (gdb_call_async_signal_handler): New function.
636 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
637 New.
638 (remote_fileio_ctrl_c_signal_handler): Use
639 gdb_call_async_signal_handler.
640 (initialize_remote_fileio): Initialize sigint_fileio_token.
641 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
642 not initialize tokens here.
643 (handle_remote_sigint_twice): Likewise. Reinstall
644 handle_remote_sigint.
645 (async_remote_interrupt_twice): Just call interrupt_query.
646 (cleanup_sigint_signal_handler): Do not delete tokens.
647 (remote_interrupt, remote_interrupt_twice): Use
648 gdb_call_async_signal_handler.
649 (interrupt_query): Reinstall the default signal handler.
650 (_initialize_remote): Initialize tokens here.
651
652 2008-03-04 Joel Brobecker <brobecker@adacore.com>
653
654 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
655 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
656 Change the type of the lr register to code_ptr.
657 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
658 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
659 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
660 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
661 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
662 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
663 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
664
665 2008-03-03 James E. Wilson <wilson@tuliptree.org>
666
667 * MAINTAINERS: Update my email address.
668
669 2008-03-03 Keith Seitz <keiths@redhat.com>
670
671 From Dave Murphy <davem@devkitpro.org>:
672 * configure.ac: Set tcl configdir to win under mingw.
673 * configure: Regenerate.
674
675 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
676
677 * breakpoint.c (fetch_watchpoint_value): New function.
678 (update_watchpoint): Set and clear val_valid. Use
679 fetch_watchpoint_value. Handle unreadable values on the
680 value chain. Correct check for user-requested array watchpoints.
681 (breakpoint_init_inferior): Clear val_valid.
682 (watchpoint_value_print): New function.
683 (print_it_typical): Use it. Do not free or clear old_val. Print
684 watchpoints even if old_val == NULL.
685 (watchpoint_check): Use fetch_watchpoint_value. Check for values
686 becoming readable or unreadable.
687 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
688 (do_enable_watchpoint): Likewise.
689 * breakpoint.h (struct breakpoint): Update comment for val. Add
690 val_valid.
691 * NEWS: Mention watchpoints on inaccessible memory.
692
693 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
694
695 * Makefile.in (i386-nat.o): Update.
696 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
697 i386_use_watchpoints.
698 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
699 i386_use_watchpoints.
700 * i386-nat.c (i386_stopped_data_address): Take two arguments.
701 (i386_stopped_by_watchpoint): Update call.
702 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
703 * config/i386/nm-i386.h: Conditionalize definitions on
704 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
705 (i386_use_watchpoints): Declare.
706 (i386_stopped_data_address): Update.
707 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
708 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
709
710 2008-02-29 Joel Brobecker <brobecker@adacore.com>
711
712 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
713 * version.in: Bump version to 6.8.50.20080229-cvs.
714
715 2008-02-28 Markus Deuling <deuling@de.ibm.com>
716
717 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
718 properly.
719
720 2008-02-28 Tom Tromey <tromey@redhat.com>
721
722 * infcmd.c (notice_args_read): Print result of get_inferior_args.
723
724 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
725
726 * infcmd.c (kill_if_already_running): Make static. Use
727 target_require_runnable.
728 * target.c (target_require_runnable): New.
729 * target.h (target_require_runnable): Declare.
730
731 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
732
733 * frame.c (reinit_frame_cache): Only annotate if frames were
734 previously valid.
735
736 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
737
738 * regformats/reg-ppc.dat: Rename "ps" to "msr".
739 * regformats/reg-ppc64.dat: Likewise.
740
741 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
742
743 * features/Makefile (%.dat): Emit xmltarget statement.
744
745 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
746 Generate code to set gdbserver_xmltarget in init_registers_${name}.
747
748 * regformats/arm-with-iwmmxt.dat: Regenerate.
749 * regformats/mips64-linux.dat: Regenerate.
750 * regformats/mips-linux.dat: Regenerate.
751 * regformats/rs6000/powerpc-32.dat: Regenerate.
752 * regformats/rs6000/powerpc-64.dat: Regenerate.
753 * regformats/rs6000/powerpc-e500.dat: Regenerate.
754
755 * regformats/reg-arm.dat: Add xmlarch statement.
756 * regformats/reg-i386.dat: Likewise.
757 * regformats/reg-i386-linux.dat: Likewise.
758 * regformats/reg-x86-64-linux.dat: Likewise.
759 * regformats/reg-spu.dat: Likewise.
760
761 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
762
763 * remote.c (remote_wait, remote_async_wait): Stop if we receive
764 an error.
765
766 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
767
768 * utils.c (debug_timestamp): New.
769 (vfprintf_unfiltered): Print timestamps if requested.
770 (show_debug_timestamp): New.
771 (initialize_utils): Register "set debug timestamp".
772 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
773
774 2008-02-27 Joel Brobecker <brobecker@adacore.com>
775
776 * breakpoint.c (skip_prologue_sal): New function.
777 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
778 computed from a line number.
779
780 2008-02-27 Joel Brobecker <brobecker@adacore.com>
781
782 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
783 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
784 Set PC register type to "code_ptr".
785 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
786 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
787 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
788 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
789 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
790 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
791 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
792 Regenerate.
793
794 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
795
796 * regformats/regdat.sh: Rename init_registers function in
797 generated file to init_registers_${name}.
798
799 * regformats/reg-crisv32.dat: Set "name" to crisv32.
800 * regformats/reg-ppc64.dat: Set "name" to ppc64.
801 * regformats/reg-s390x.dat: Set "name" to s390x.
802
803 2008-02-26 Greg Law <glaw@undo-software.com>
804
805 * regcache.c (registers_changed): Call reinit_frame_cache.
806
807 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
808
809 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
810 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
811 and svr4_fetch_objfile_link_map.
812 * Makefile.in (sh-linux-tdep.o): Update.
813
814 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
815
816 * amd64-tdep.c (amd64_classify): Add support for decimal float
817 types.
818 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
819 use the struct return convention.
820
821 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
822
823 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
824 to old format. Discard breakpoint address if shared library is
825 unloaded.
826 (breakpoint_1): Adjust formatting of table header accordingly.
827
828 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
829
830 * remote.c (remote_get_threadlist): If the response
831 is empty, don't try to parse it.
832
833 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
834
835 Unbreak 'target async'.
836 * serial.c (serial_async): Set the
837 handler function before enabling async
838 mode.
839
840 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
841
842 * solib-svr4.c (enable_break): Convert r_brk to a code address.
843
844 2008-02-21 Pedro Alves <pedro@codesourcery.com>
845
846 * remote.c (extended_remote_attach_1): Set attach_flag.
847 (extended_remote_create_inferior_1): Clear attach_flag.
848
849 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
850
851 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
852 r_brk_offset.
853 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
854 * solib-svr4.c (solib_svr4_r_brk): New.
855 (open_symbol_file_object, svr4_current_sos): Always check the
856 debug base.
857 (svr4_fetch_objfile_link_map): Do not set debug_base.
858 (enable_break): Use r_brk if it is set.
859 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
860 (svr4_lp64_fetch_link_map_offsets): Likewise.
861 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
862
863 2008-02-20 Markus Deuling <deuling@de.ibm.com>
864 Mark Kettenis <kettenis@gnu.org>
865
866 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
867 trad_frame_saved_reg.
868 (trad-frame.h): New include.
869
870 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
871 instead of frame_obstack_zalloc.
872 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
873
874 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
875
876 2008-02-20 Markus Deuling <deuling@de.ibm.com>
877
878 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
879 from disassemble_info instead of gdbarch_byte_order.
880
881 * mips-tdep.c (gdb_print_insn_mips): Likewise.
882 * arm-tdep.c (gdb_print_insn_arm): Likewise.
883
884 2008-02-20 Markus Deuling <deuling@de.ibm.com>
885
886 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
887 gdbarch as parameter.
888
889 * gdbarch.{c,h}: Regenerate.
890
891 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
892 parameter.
893 * mem-break.c (default_memory_insert_breakpoint)
894 (default_memory_remove_breakpoint): Likewise.
895 * target.h (default_memory_remove_breakpoint)
896 (default_memory_insert_breakpoint): Likewise.
897
898 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
899 parameter. Replace current_gdbarch by gdbarch.
900 * m32r-tdep.c (m32r_memory_insert_breakpoint)
901 (m32r_memory_remove_breakpoint): Likewise.
902
903 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
904
905 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
906
907 2008-02-19 Joel Brobecker <brobecker@adacore.com>
908
909 * NEWS: Add entry describing Add support improvements.
910
911 2008-02-18 Markus Deuling <deuling@de.ibm.com>
912
913 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
914 M68K_FP0_REGNUM.
915
916 2008-02-18 Markus Deuling <deuling@de.ibm.com>
917
918 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
919 register_offset_hack anymore.
920
921 * regcache.{c,h} (register_offset_hack): Remove.
922
923 2008-02-18 Markus Deuling <deuling@de.ibm.com>
924
925 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
926
927 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
928 current_gdbarch by gdbarch.
929 (hppa64_hpux_find_global_pointer): Likewise.
930 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
931 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
932 find_global_pointer.
933
934 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
935 parameter.
936 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
937
938 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
939 of gdbarch_num_regs.
940
941 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
942 replace current_gdbarch by gdbarch.
943 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
944
945 2008-02-18 Markus Deuling <deuling@de.ibm.com>
946
947 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
948 and replace current_gdbarch by gdbarch.
949
950 (store_register): Update call for exec_one_dummy_insn.
951 (fetch_register, store_register): Update call of regmap.
952
953 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
954 parameter and replace current_gdbarch by gdbarch.
955
956 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
957 the current architecture. Update call for getregs_supplies and
958 getfpregs_supplies.
959 (ppcnbsd_fetch_inferior_registers): Likewise.
960
961 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
962 replace current_gdbarch by gdbarch.
963 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
964 get_regcache_arch to get at the current architecture. Update call for
965 getfpregs_supplies.
966
967 2008-02-18 Markus Deuling <deuling@de.ibm.com>
968
969 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
970 variables.
971
972 2008-02-15 Markus Deuling <deuling@de.ibm.com>
973
974 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
975
976 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
977
978 * NEWS: Mention pending breakpints in MI.
979
980 2008-02-14 Markus Deuling <deuling@de.ibm.com>
981
982 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
983
984 2008-02-13 Markus Deuling <deuling@de.ibm.com>
985
986 Add script to build and test GDB using enable-targets=all.
987
988 * gdb_buildall.sh: New file.
989
990 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
991
992 * NEWS (New native configurations): Xtensa GNU/Linux.
993 (New targets): Xtensa GNU/Linux.
994 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
995 xtensa-linux-tdep.o
996 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
997 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
998 * configure.tgt (xtensa*-*-linux*): New entry.
999 * xtensa-config.c (xtensa_tdep): New variable.
1000 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
1001 (rmap): Change format based on new macro XTREG.
1002 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
1003 * xtensa-linux-nat.c: New.
1004 * xtensa-linux-tdep.c: New.
1005 * xtensa-xtregs.c: New.
1006 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
1007 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
1008 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
1009 (xtensa_register_t): New field coprocessor.
1010 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
1011 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
1012 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
1013 Update to handle privileged registers.
1014 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
1015 (xtensa_push_dummy_call): Set windowstart register correctly.
1016 (call0_analyze_prologue): Initialize xtensa_default_isa.
1017 (xtensa_derive_tdep): New.
1018 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
1019 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
1020 Call xtensa_derive_tdep().
1021 * config/xtensa/linux.mh: New.
1022 * regformats/reg-xtensa.dat: New.
1023
1024 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
1025
1026 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
1027 (filenames.h): New include.
1028 * Makefile.in (corelow.o): Add dependency for filenames.h.
1029
1030 2008-02-08 Doug Evans <dje@google.com>
1031
1032 * source.c (find_and_open_source): Always rewrite absolute filenames.
1033
1034 2008-02-07 Doug Evans <dje@google.com>
1035
1036 * breakpoint.c: #include "hashtab.h".
1037 (ambiguous_names_p): New fn.
1038 (update_breakpoint_locations): When restoring bp enable status, don't
1039 compare function names if any functions have same name.
1040 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
1041
1042 2008-02-07 Joel Brobecker <brobecker@adacore.com>
1043
1044 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
1045 instead of just a VEC*. Update use of SV.
1046 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
1047
1048 2007-02-07 Joel Brobecker <brobecker@adacore.com>
1049
1050 * NEWS: Put all new commands since gdb-6.7 together.
1051
1052 2007-02-07 Joel Brobecker <brobecker@adacore.com>
1053
1054 * ada-lang.c: #include "vec.h".
1055 (struct string_vector, new_string_vector, string_vector_append):
1056 Delete.
1057 (char_ptr): New typedef.
1058 (DEF_VEC_P (char_ptr)): New VEC type.
1059 (symbol_completion_add): Update profile to take the new VEC type
1060 instead of the old string_vector structure. Update code accordingly.
1061 (ada_make_symbol_completion_list): Use the new VEC type instead of
1062 the old string_vector structure, and update the code accordingly.
1063 * Makefile.in (ada-lang.o): Add dependency on vec.h.
1064
1065 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
1066
1067 * p-exp.y: Set current_type in missing places.
1068 (leftdiv_is_integer): New static variable.
1069 Typecast right operand of BINOP_DIV to long_double if both operands
1070 are integers.
1071
1072 2008-02-06 Maciej W. Rozycki <macro@mips.com>
1073
1074 * remote-mips.c (set_breakpoint): Rename to...
1075 (mips_set_breakpoint): ... this.
1076 (clear_breakpoint): Rename to...
1077 (mips_clear_breakpoint): ... this.
1078 (common_breakpoint): Rename to...
1079 (mips_common_breakpoint): ... this.
1080 (check_lsi_error): Rename to...
1081 (mips_check_lsi_error): ... this.
1082
1083 2007-02-05 Joel Brobecker <brobecker@adacore.com>
1084
1085 * language.h (struct language_defn): Add new field
1086 la_make_symbol_completion_list.
1087 * symtab.c (default_make_symbol_completion_list): Renames
1088 make_symbol_completion_list.
1089 (make_symbol_completion_list): New function.
1090 * symtab.h (default_make_symbol_completion_list): Add declaration.
1091 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
1092 (auto_language, local_language): Likewise.
1093 * objc-lang.c (objc_language_defn): Likewise.
1094 * scm-lang.c (scm_language_defn): Likewise.
1095 * m2-lang.c (m2_language_defn): Likewise.
1096 * f-lang.c (f_language_defn): Likewise.
1097 * jv-lang.c (java_language_defn): Likewise.
1098 * p-lang.c (pascal_language_defn): Likewise.
1099 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
1100 (minimal_language_defn): Likewise.
1101 * ada-lang.c (struct string_vector): New structure.
1102 (new_string_vector, string_vector_append, ada_unqualified_name)
1103 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
1104 (ada_make_symbol_completion_list): New functions.
1105 (ada_language_defn): Set la_make_symbol_completion_list.
1106 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
1107 this function is static.
1108
1109 2008-02-05 Kevin Buettner <kevinb@redhat.com>
1110
1111 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
1112 to account for call site optimizations.
1113
1114 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
1115
1116 * tracepoint.c (read_actions): Handle end-of-text indicator
1117 in action list properly. (Committed by Jim Blandy)
1118
1119 2008-02-05 Jim Blandy <jimb@red-bean.com>
1120
1121 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
1122 pseudoregister, not an internal error.
1123 Reported by: Andrzej Zaborowski
1124
1125 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
1126
1127 * varobj.c (c_value_of_variable): Use xstrdup.
1128
1129 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
1130
1131 Update stored rendition of varobj value when format changes.
1132 * varobj.c (varobj_set_display_format): Recomputed
1133 print_value.
1134 (c_value_of_variable): Return print_value.
1135
1136 2008-02-03 Doug Evans <dje@google.com>
1137
1138 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
1139 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
1140 * valops.c (value_one): New function.
1141 * value.h (value_one): Declare.
1142
1143 Fix argument promotion for binary arithmetic ops for C.
1144 * valarith.c (unop_result_type): New fn.
1145 (binop_result_type): New fn.
1146 (value_binop): Move result type computation to binop_result_type.
1147 (value_pos, value_neg, value_complement): Move result type
1148 computation to unop_result_type.
1149
1150 PR 2384
1151 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1152 Return basetype, fieldno if found. All callers updated.
1153 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
1154 objfile.
1155 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1156 * symfile.h (fill_in_vptr_fieldno): Delete.
1157
1158 2008-02-02 Doug Evans <dje@google.com>
1159
1160 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
1161
1162 * typeprint.c (*): Whitespace cleanup.
1163
1164 2008-02-02 Mark Kettenis <kettenis@gnu.org>
1165 Luis Machado <luisgpm@br.ibm.com>
1166 Thiago Jung Bauermann <bauerman@br.ibm.com>
1167
1168 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
1169 don't fit into registerson the stack the way GCC does.
1170
1171 2008-02-01 Joel Brobecker <brobecker@adacore.com>
1172
1173 * symtab.c (symbol_set_names): Do not add an entry in the demangling
1174 hash table for Ada symbols. Just store the linkage name as is,
1175 and leave the demangled_name as NULL.
1176
1177 2007-02-01 Joel Brobecker <brobecker@adacore.com>
1178
1179 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
1180 in the global scope.
1181 (new_symbol): Likewise.
1182
1183 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1184
1185 * breakpoint.c (break_command_1): Return void.
1186 (break_command_really): Return void. Rethrow
1187 exceptions instead of returning.
1188 (gdb_breakpoint): Remove the error_message parameter.
1189 Return void. Rename to set_breakpoint.
1190 * gdb.h (gdb_breakpoint): Rename and move to...
1191 * breakpoint.h (set_breakpoint): ...here.
1192 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
1193 event hooks even if exception is thrown. Adjust to
1194 gdb_breakpoint interface changes.
1195
1196
1197 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1198
1199 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
1200 float in both first and second word in the doubleword, to support
1201 old and new ABIs.
1202
1203 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1204
1205 Properly rethrow exception. This fixes errors
1206 about non-existent functions for -break-insert.
1207 * breakpoint.c (break_command_really): Use throw_exception
1208 for rethrowing. If rethrowing, don't print the exception.
1209
1210 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1211
1212 * NEWS: Mention Decimal Floating Point support.
1213
1214 2008-01-31 Joel Brobecker <brobecker@adacore.com>
1215
1216 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
1217 value type to builtin_type_void_func_ptr.
1218
1219 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
1220
1221 * s390-tdep.c (is_float_singleton, is_float_like,
1222 alignment_of, s390_return_value): Make checks for
1223 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
1224
1225 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
1226 Thiago Jung Bauermann <bauerman@br.ibm.com>
1227
1228 * infcmd.c (default_print_registers_info): Also print hex
1229 raw contents for TYPE_CODE_DECFLOAT registers.
1230 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
1231 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
1232 (rs6000_register_name): Add support for DFP pseudo-registers.
1233 (rs6000_pseudo_register_type): Likewise.
1234 rs6000_pseudo_register_reggroup_p): Likewise.
1235 (ppc_pseudo_register_read): New function.
1236 (ppc_pseudo_register_write): Likewise.
1237 (rs6000_pseudo_register_read): Likewise.
1238 (rs6000_pseudo_register_write): Likewise.
1239 (e500_pseudo_register_read): Move checks to
1240 rs6000_pseudo_register_read.
1241 (e500_pseudo_register_write): Move checks to
1242 rs6000_pseudo_register_write.
1243 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
1244 rs6000_pseudo_register_read and rs6000_pseudo_register_write
1245 in gdbarch if SPE or DFP is available. Adjust gdbarch's
1246 num_pseudo_regs to account for DFP pseudo regs.
1247
1248 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1249
1250 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
1251 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
1252 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
1253 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
1254 e500_pseudo_register_read, e500_pseudo_register_write): Use
1255 IS_SPE_PSEUDOREG macro.
1256 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
1257 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
1258 Remove initialization of tdep->ppc_ev31_regnum.
1259
1260 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1261
1262 * printcmd.c (print_formatted): Handle references as for unformatted
1263 prints.
1264
1265 2008-01-30 Joel Brobecker <brobecker@adacore.com>
1266
1267 * eval.c (evaluate_subexp_standard): Add handling of user
1268 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
1269
1270 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
1271
1272 * eval.c (evaluate_subexp_standard): Support
1273 BINOP_INTDIV opcode.
1274
1275 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
1276
1277 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1278 BINOP_MAX cases.
1279 For BINOP_EXP, use length and signedness of left operand only for
1280 result, as for shifts.
1281 For integral operands to BINOP_EXP, use new integer_pow and
1282 uinteger_pow functions so as to get full range of results.
1283 (integer_pow): New function.
1284 (uinteger_pow): New function.
1285
1286 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
1287
1288 Use vector for varobj_list_children interface.
1289 * gdb/varobj.c (varobj_list_children): Return vector
1290 of varobjs.
1291 * gdb/varobj.h (varobj_list_children): Adjust
1292 prototype.
1293 (varobj_p): Declare. Declare vector thereof.
1294 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1295 for varobj_list_children change.
1296 * Makefile.in (varobj_h): Update dependencies.
1297
1298 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1299
1300 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1301 TYPE_CODE_DECFLOAT arguments.
1302 (ppc64_sysv_abi_push_dummy_call) Likewise.
1303 (get_decimal_float_return_value): New function.
1304 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1305 values by calling get_decimal_float_return_value.
1306 (ppc64_sysv_abi_return_value): Likewise.
1307
1308 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
1309
1310 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1311 for preprocessor macro information. Formatting changes.
1312
1313 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1314
1315 * remote.c (struct remote_state): Add cached_wait_status.
1316 (remote_exec_file): New variable.
1317 (PACKET_vAttach, PACKET_vRun): New constants.
1318 (extended_remote_restart): Do not query for status.
1319 (struct start_remote_args): New.
1320 (remote_start_remote): Take it as a second argument. Check
1321 whether the target is running. Issue an error for non-running
1322 non-extended targets. Cache the wait status. Set inferior_ptid
1323 here.
1324 (remote_open_1): Prompt to disconnect non-running targets. Make
1325 sure the target is marked running. Do not set inferior_ptid here.
1326 Update call to remote_start_remote. Do not call remote_check_symbols
1327 if the target is not running.
1328 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1329 argument. Handle a non-running target.
1330 (remote_detach): Use it.
1331 (extended_remote_detach): New.
1332 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1333 (extended_remote_attach_1, extended_remote_attach)
1334 (extended_async_remote_attach): New.
1335 (remote_vcont_resume): Remove unused variable.
1336 (remote_wait, remote_async_wait): Use any cached wait status.
1337 (putpkt_binary, getpkt): Clear any cached wait status.
1338 (extended_remoute_mourn_1): New.
1339 (extended_remote_mourn): Use it.
1340 (extended_async_remote_mourn, extended_remote_run): New.
1341 (extended_remote_create_inferior_1): New.
1342 (extended_remote_create_inferior): Use it.
1343 (extended_remote_async_create_inferior): Likewise.
1344 (remote_xfer_partial): Skip for non-executing targets.
1345 (init_extended_remote_ops): Set to_detach and to_attach.
1346 (init_extended_async_remote_ops): Likewise. Use
1347 extended_async_remote_mourn.
1348 (_initialize_remote): Register vAttach, vRun, and
1349 set remote exec-file.
1350 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1351
1352 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1353
1354 * Makefile.in (symfile.o): Update.
1355 * NEWS: Mention exec tracing support.
1356 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1357 exec events.
1358 * infcmd.c (kill_if_already_running, detach_command)
1359 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1360 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1361 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1362 targets. Apply the sysroot path to the loaded executable. Use
1363 no_shared_libraries.
1364 * linux-nat.c (linux_child_follow_fork): Print fork following
1365 messages if verbose.
1366 (kill_wait_callback): Kill again before waiting a second time.
1367 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1368 no_shared_libraries.
1369
1370 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1371
1372 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1373
1374 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1375
1376 * nto-tdep.h: Remove #include "defs.h".
1377 * nto-tdep.c: Add #include "defs.h".
1378 * Makefile.in (nto_tdep_h): Update dependencies.
1379 (nto-tdep.o): Likewise.
1380
1381 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1382
1383 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1384 and use it.
1385 (proceed, start_remote): Update call to wait_for_inferior.
1386 * inferior.h (wait_for_inferior): Update declaration.
1387 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1388 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1389 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1390 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1391
1392 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1393
1394 * varobj (adjust_value_for_child_access): Added checking for
1395 returned value from gdb_value_ind.
1396 (c_describe_child): Likewise.
1397 (cplus_describe_child): Fixed a typo.
1398
1399 2008-01-29 Jim Blandy <jimb@red-bean.com>
1400
1401 * MAINTAINERS: Update my info.
1402
1403 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1404
1405 Use multiple locations for hardware watchpoints.
1406 This eliminates the need to traverse value chain, doing
1407 various checks, in three different places.
1408
1409 * breakpoint.h (struct bp_location): New fields
1410 lengths and watchpoint_type.
1411 (struct breakpoint): Remove the val_chain field.
1412 * breakpoint.c (is_hardware_watchpoint): New.
1413 (free_valchain): Remove.
1414 (update_watchpoint): New.
1415 (insert_bp_location): For hardware watchpoint, just
1416 directly insert it.
1417 (insert_breakpoints): Call update_watchpoint_locations
1418 on all watchpoints. If we have failed to insert
1419 any location of a hardware watchpoint, remove all inserted
1420 locations.
1421 (remove_breakpoint): For hardware watchpoints, directly
1422 remove location.
1423 (watchpoints_triggered): Iterate over locations.
1424 (bpstat_stop_status): Use only first location of
1425 a resource watchpoint.
1426 (delete_breakpoint): Don't call free_valchain.
1427 (print_one_breakpoint): Don't print all
1428 locations for watchpoints.
1429 (breakpoint_re_set_one): Use update_watchpoint for
1430 watchpoints.
1431
1432 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1433
1434 Don't reset watchpoint block on solib load.
1435
1436 * breakpoint.c (insert_bp_location): For watchpoints,
1437 recompute condition.
1438 (breakpoint_re_set_one): Instead of recomputing value
1439 and condition for watchpoints, just reset value and
1440 let insert_breakpoints/insert_bp_location recompute it.
1441 Don't do anything about disabled watchpoint.
1442
1443 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1444
1445 * valarith.c (value_binop): Handle unsigned integer
1446 division by zero.
1447
1448 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1449
1450 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1451 instruction pattern that appears frequently in position
1452 independent code. Fix bug in code which looks for "fmov" and
1453 backtracks if no "fmov" is found.
1454
1455 2008-01-28 Doug Evans <dje@google.com>
1456
1457 * dbxread.c (read_dbx_symtab): Fix indentation.
1458 Reformat comments to 80 columns.
1459 Move local var def closer to only use.
1460
1461 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1462
1463 * fork-child.c (SHELL_FILE): Remove #ifndef.
1464 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1465
1466 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1467
1468 * i386-tdep.c (i386_skip_noop): New function.
1469 (i386_analyze_prologue): Call i386_skip_noop function.
1470
1471 2008-01-24 Michael Snyder <msnyder@specifix.com>
1472
1473 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1474 * win32-nat.c (win32_xfer_partial): Ditto.
1475 * target.c (default_xfer_partial): Minor whitespace adjustment.
1476
1477 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1478
1479 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1480 strip bit 1 even if pc doesn't point to thumb code.
1481
1482 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1483
1484 * remote.c (remote_wait): Handle SIGINT between packets.
1485 (remote_async_wait): Likewise.
1486
1487 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1488 Chris Demetriou <cgd@google.com>
1489
1490 * thread.c (add_thread_silent): Renamed
1491 from add_thread.
1492 (print_thread_events): New variable definition.
1493 (show_print_thread_events): New function.
1494 (_initialize_thread): Add "set print thread-events" and
1495 "show print thread-events" commands.
1496 (add_thread): Announce new thread.
1497 * gdbthread.h (add_thread_silent): Declare.
1498 (print_thread_events): New variable declaration.
1499 * inf-ttrace.c (inf_ttrace_wait): Don't
1500 inform about new thread, as add_thread is always
1501 called too, and will take care of that.
1502 * infrun.c (handle_inferior_event): Likewise.
1503 * procfs.c (procfs_wait): Likewise.
1504 * remote.c (remote_currthread): Likewise.
1505 * sol-thread.c (sol_thread_wait): Likewise.
1506 * win32-nat.c (get_win32_debug_event): Likewise.
1507 * linux-thread-db.c (attach_thread): Likewise.
1508 Remove the verbose parameter.
1509 (check_event): Make detach_thread be verbose
1510 only if print_thread_events is set.
1511 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1512 about new thread. This is called only from
1513 linux-thread-db.c:attach_thread, which will take care.
1514 Remove the verbose parameter.
1515 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1516
1517 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1518
1519 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1520
1521 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1522
1523 * breakpoint.c (break_command_really): New parameter
1524 ignore_count.
1525 (break_command_1): Pass 0 as
1526 ignore_count to break_command_really.
1527 (gdb_breakpoint): Pass ignore_count to
1528 break_command_really.
1529
1530 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1531
1532 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1533 sigcontext struct via pointer.
1534 (struct sigframe comment): Update to show new field `psc'.
1535
1536 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1537
1538 * infrun.c (handle_inferior_event): If
1539 we failed to remove breakpoints, error,
1540 don't try to increment PC by hand.
1541
1542 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1543
1544 Add NetBSD/hppa target and host support.
1545
1546 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1547 (hppabsd_gregset): Move to ...
1548 (hppabsd_regset_from_core_section): Rename
1549 hppaobsd_regset_from_core_section and move to ...
1550 (hppabsd_find_global_pointer): Update comment.
1551 (hppabsd_init_abi): Make global. Do not register
1552 hppabsd_regset_from_core_section.
1553 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1554 move to ...
1555 (_initialize_hppabsd_tdep): Move to ...
1556 * hppaobsd-tdep.c: ... here. New file.
1557 * hppnbsd-tdep.c: New file.
1558 * hppnbsd-nat.c: New file.
1559 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1560 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1561 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1562 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1563 * configure.host (hppa*-*-netbsd*): New entry.
1564 * configure.tgt (hppa*-*-netbsd*): New entry.
1565 (hppa*-*-openbsd*): Update.
1566 * NEWS (New native configuration): Mention NetBSD/hppa.
1567 (New targets): Mention NetBSD/hppa.
1568
1569 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1570
1571 * gdbarch.sh (function_list): Add new property bits_big_endian to
1572 gdbarch structure.
1573 * gdbarch.{c,h}: Regenerate.
1574
1575 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1576 gdbarch_bits_big_endian (comment).
1577 (unpack_field_as_long, modify_field): Likewise.
1578 * value.h: Likewise (comment).
1579 * valops.c (value_slice): Likewise.
1580 * valarith.c (value_subscript, value_bit_index): Likewise.
1581 * gdbtypes.h (field): Likewise (comment).
1582 * eval.c (evaluate_subexp_standard): Likewise.
1583 * dwarf2read.c (dwarf2_add_field): Likewise.
1584 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1585 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1586
1587 * defs.h (BITS_BIG_ENDIAN): Remove.
1588
1589 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1590
1591 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1592 function calls.
1593 * m2-exp.y (yylex): Likewise.
1594 * objc-exp.y (yylex): Likewise.
1595
1596 * defs.h (DEPRECATED_STREQN): Remove.
1597
1598 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1599
1600 * MAINTAINERS: Update my email address.
1601
1602 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1603
1604 * README: Mention gdbserver/README.
1605
1606 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1607
1608 * valarith.c (value_binop): Handle BINOP_INTDIV
1609 for unsigned and signed integers.
1610
1611 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1612
1613 * s390-tdep.c (s390_gdbarch_init): Set default long double
1614 type to 128-bit IEEE quad.
1615
1616 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1617
1618 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1619
1620 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1621
1622 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1623
1624 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1625 * value.c: All callers changed.
1626
1627 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1628
1629 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1630 DEPRECATED_STREQ by its expression.
1631 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1632 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1633 (scan_xcoff_symtab): Likewise.
1634 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1635 * f-lang.c (find_common_for_function): Likewise.
1636 * objc-exp.y (parse_number): Likewise.
1637
1638 * defs.h (DEPRECATED_STREQ): Remove.
1639
1640 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1641
1642 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1643 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1644 get_frame_arch to get at the current_architecture. Update AM33_MODE
1645 call.
1646 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1647 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1648 architecture.
1649 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1650
1651 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1652
1653 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1654 parameter.
1655 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1656
1657 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1658 current_gdbarch by gdbarch. Update caller.
1659
1660 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1661 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1662 the current architecture. Update calls of
1663 amd64_native_gregset_supplies_p.
1664 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1665 (amd64bsd_store_inferior_registers): Likewise.
1666
1667 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1668
1669 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1670 Replace current_gdbarch by gdbarch. Update caller.
1671
1672 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1673
1674 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1675 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1676 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1677 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1678 (stabsect_build_psymtabs): Fix indentation.
1679
1680 2008-01-15 Michael Snyder <msnyder@specifix.com>
1681
1682 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1683
1684 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1685
1686 * win32-nat.c (win32_create_inferior): Restore code calling
1687 CloseHandle on ProcessInformation structure.
1688
1689 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1690
1691 * configure.ac: Check for void * as 3 argument of ptrace.
1692 * configure: regenerate.
1693
1694 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1695
1696 * alpha-tdep.c (alpha_heuristic_proc_start)
1697 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1698 current_gdbarch by gdbarch.
1699
1700 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1701 current architecture by frame_info. Update alpha_heuristic_proc_start
1702 call.
1703
1704 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1705 get_frame_arch to get at the current architecture by frame_info. Update
1706 alpha_sigtramp_register_address call.
1707
1708 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1709 current_gdbarch by gdbarch. Update caller.
1710 (convert_to_extended, convert_from_extended): Add endianess parameter
1711 for comparison. Update caller.
1712 (arm_extract_return_value, arm_store_return_value): Use
1713 get_regcache_arch to get at the current architecture.
1714
1715 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1716 current_gdbarch by gdbarch. Update caller.
1717 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1718 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1719
1720 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1721 gdbarch as parameter. Update caller.
1722 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1723 current_gdbarch by gdbarch. Update caller.
1724
1725 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1726 update caller. Replace current_gdbarch by gdbarch.
1727
1728 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1729 the current architecture. Replace current_gdbarch by gdbarch.
1730 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1731 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1732 expression. Add gdbarch as parameter and replace current_gdbarch with
1733 it. Update caller.
1734 (M6811_TDEP): Remove.
1735 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1736 architecture.
1737 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1738 current_gdbarch by gdbarch. Update caller.
1739
1740 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1741 update caller.
1742 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1743 by gdbarch.
1744
1745 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1746 caller. Relace current_gdbarch by gdbarch.
1747 (altivec_register_p, spe_register_p): Likewise.
1748 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1749 parameter.
1750 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1751 altivec_register_p and spe_register_p.
1752
1753 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1754 caller. Replace current_gdbarch by gdbarch.
1755 (score_analyze_prologue): use get_frame_arch to get at the current
1756 architecture.
1757
1758 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1759 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1760 current_gdbarch by gdbarch. Update caller.
1761 (sparc_frame_cache): Use get_frame_arch to get at the current
1762 architecture.
1763 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1764 sparc_analyze_prologue.
1765
1766 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1767 parameter.
1768
1769 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1770
1771 * exec.c: #include "arch-utils.h"
1772 (print_section_info): Use gdbarch_from_bfd to get at the
1773 current architecture. Replace current_gdbarch. Fix indention. Replace
1774 deprecated_print_address_numeric by paddress.
1775 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1776
1777 * valprint.c (val_print_string): Replace
1778 deprecated_print_address_numeric.
1779 * tracepoint.c (trace_mention, scope_info): Likewise.
1780 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1781 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1782 (maintenance_check_symtabs): Likewise.
1783 * symfile.c (list_overlays_command): Likewise.
1784 * stack.c (frame_info, print_block_frame_labels): Likewise.
1785 * printcmd.c (print_address, print_address_demangle)
1786 (address_info): Likewise.
1787 * corefile.c (memory_error): Likewise.
1788 * infcmd.c (jump_command): Likewise.
1789 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1790 (mention, delete_breakpoint): Likewise.
1791 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1792 * dwarf2read.c (dump_die): Likewise.
1793 * ada-valprint.c (ada_val_print_1): Likewise.
1794 * f-valprint.c (f_val_print): Likewise.
1795 * linux-fork.c (info_forks_command): Likewise.
1796 * m32r-com.c (m32r_load_section, m32r_load)
1797 (m32r_upload_command): Likewise.
1798
1799 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1800
1801 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1802
1803 * gdbarch.sh (skip_prologue): Add gdbarch
1804 as parameter.
1805 * gdbarch.{c,h}: Regenerate.
1806
1807 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1808 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1809 * avr-tdep.c (avr_skip_prologue): Likewise.
1810 * cris-tdep.c (cris_skip_prologue): Likewise.
1811 * frv-tdep.c (frv_skip_prologue): Likewise.
1812 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1813 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1814 * i386-tdep.c (i386_skip_prologue): Likewise.
1815 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1816 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1817 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1818 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1819 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1820 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1821 * mep-tdep.c (mep_skip_prologue): Likewise.
1822 * mips-tdep.c (mips_skip_prologue): Likewise.
1823 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1824 * mt-tdep.c (mt_skip_prologue): Likewise.
1825 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1826 * score-tdep.c (score_skip_prologue): Likewise.
1827 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1828 * sh-tdep.c (sh_skip_prologue): Likewise.
1829 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1830 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1831 * spu-tdep.c (spu_skip_prologue): Likewise.
1832 * v850-tdep.c (v850_skip_prologue): Likewise.
1833 * vax-tdep.c (vax_skip_prologue): Likewise.
1834 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1835 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1836
1837 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1838 current_gdbarch by gdbarch.
1839 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1840 * s390-tdep.c (s390_skip_prologue): Likewise.
1841
1842 2008-01-10 Doug Evans <dje@google.com>
1843
1844 * defs.h (struct continuation_arg): Fix typo in comment.
1845 * target.c (target_translate_tls_address): Fix comment spelling error.
1846
1847 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1848
1849 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1850 (DOUBLEST_SCAN_FORMAT): Likewise.
1851 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1852 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1853 * c-exp.y (parse_number): Likewise.
1854 * jv-exp.y (parse_number): Likewise.
1855 * objc-exp.y (parse_number): Likewise.
1856 * p-exp.y (parse_number): Likewise.
1857
1858 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1859
1860 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1861 (check_typedef): Likewise.
1862
1863 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1864
1865 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1866 seen_double_big_d, treat the new H, D, and DD modifiers as length
1867 modifiers.
1868
1869 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1870
1871 * dwarf2read.c (read_enumeration_type): Add comment.
1872
1873 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1874
1875 * config.in: Regenerate.
1876
1877 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1878
1879 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1880 Make non-static.
1881 (ada_convert_actuals): Delete.
1882 * ada-lang.h (ada_convert_actual): Add declaration.
1883 (ada_convert_actuals): Remove declaration.
1884 * infcall.c: #include "ada-lang.h".
1885 (value_arg_coerce): Add new parameter sp. Update function
1886 documetnation. Add handling of Ada function call parameters.
1887 * Makefile.in (infcall.o): Update dependencies.
1888
1889 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1890
1891 * ada-lang.c (ensure_lval): Fix value lval kind.
1892 (convert_actual): Add handling for arguments passed by reference.
1893
1894 2008-01-08 Doug Evans <dje@google.com>
1895
1896 * dbxread.c (read_dbx_symtab): Fix indentation.
1897
1898 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1899
1900 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1901 (valarith.o): Depend on dfp.h.
1902 (valops.o): Likewise.
1903 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1904 (set_decnumber_context): New function.
1905 (decimal_check_errors): Likewise.
1906 (decimal_from_number): Likewise.
1907 (decimal_to_number): Likewise.
1908 (decimal_from_string): Use set_decnumber_context and
1909 decimal_check_errors.
1910 (decimal_from_integral): New function.
1911 (decimal_from_floating): Likewise.
1912 (decimal_to_double): Likewise.
1913 (promote_decimal): Likewise.
1914 (decimal_binop): Likewise.
1915 (decimal_is_zero): Likewise.
1916 (decimal_compare): Likewise.
1917 (decimal_convert): Likewise.
1918 * dfp.h (decimal_from_integral): New prototype.
1919 (decimal_from_floating): Likewise.
1920 (decimal_to_double): Likewise.
1921 (decimal_binop): Likewise.
1922 (decimal_is_zero): Likewise.
1923 (decimal_compare): Likewise.
1924 (decimal_convert): Likewise.
1925 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1926 call to value_from_decfloat.
1927 * valarith.c: Include dfp.h.
1928 (value_args_as_decimal): New function.
1929 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1930 (value_logical_not): Likewise.
1931 (value_equal): Likewise.
1932 (value_less): Likewise.
1933 (value_pos): Likewise.
1934 (value_neg): Formatting fix.
1935 * valops.c: Include dfp.h.
1936 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1937 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1938 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1939 (value_from_decfloat): Remove expect_type argument.
1940 * value.h (value_from_decfloat): Update prototype.
1941
1942 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1943
1944 Ignore change in name of dynamic linker during
1945 execution on Solaris. This also unbreaks pending breakpoints.
1946
1947 * solist.h (struct target_so_ops): New field same.
1948 * solib-svr4.c (svr4_same): New.
1949 (_initialize_svr4_solib): Register svr4_same.
1950 * solib.c (update_solib_list): Use ops->same, if available.
1951
1952 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1953
1954 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1955 when using MS-DOS paths.
1956
1957 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1958
1959 * NEWS: Mention --pid and --core command line behaviour changes.
1960
1961 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1962
1963 * main.c (captured_main): Remove 'count' varible and the
1964 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1965 --pid options were issued simultaneously. If an explicit pid
1966 option was passed, don't fallback to core file. Detect extra
1967 arguments better in the presence of explicit pid or core
1968 arguments.
1969
1970 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1971
1972 * ada-lang.c (ada_which_variant_applies): Correctly compute
1973 the value of the discriminant when the variant record is packed.
1974
1975 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1976
1977 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1978 that are used to differentiate homonyms.
1979
1980 2008-01-04 Jerome Guitton <guitton@adacore.com>
1981
1982 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1983 when the type is an anonymous pointer type.
1984 (ada_check_typedef): Avoid a seg fault when the type is null.
1985 * ada-typeprint.c (print_array_type): Add support for pointer
1986 to packed arrays.
1987
1988 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1989
1990 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1991
1992 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1993
1994 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1995 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1996
1997 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1998
1999 * ada-exp.y (chop_separator): New function.
2000 (write_selectors): Rewrite to re-use chop_separator.
2001 (ada_nget_field_index, get_symbol_field_type): New functions.
2002 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
2003 expressions.
2004
2005 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2006
2007 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
2008 of SYMBOL_VALUE when working with function symbols.
2009
2010 2008-01-03 Joel Brobecker <brobecker@adacore.com>
2011
2012 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
2013 expressions. These expressions do not need to be rewriten.
2014
2015 2008-01-03 Joel Brobecker <brobecker@adacore.com>
2016
2017 * dwarf2read.c (read_enumeration_type): Flag type as stub if
2018 the given die is a declaration.
2019
2020 2008-01-03 Joel Brobecker <brobecker@adacore.com>
2021
2022 * ada-lang.c (ada_array_bound_from_type): Make non-static.
2023 Handle properly the case when the index type is an enumerated type.
2024 Do not return the subtype of the bounds type, just return the
2025 bounds type directly - this is not needed and is more consistent
2026 with what we do for arrays when no XA parallel type exists.
2027
2028 2008-01-03 Joel Brobecker <brobecker@adacore.com>
2029
2030 * ada-lang.c (static_unwrap_type): Add forward declaration.
2031 (template_to_static_fixed_type): Fields of dynamic types sometimes
2032 also need to be unwrapped. Take this into account.
2033 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
2034 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
2035 * ada-typeprint.c (ada_print_type): Get the typename from
2036 the original type, not the base type.
2037
2038 2008-01-03 Jerome Guitton <guitton@adacore.com>
2039
2040 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
2041 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
2042 Update calls to ada_to_fixed_type.
2043 (ada_template_to_fixed_record_type_1): Ditto, but without looking
2044 for the tag.
2045 (ada_to_fixed_type): Add check_tag parameter; do not look for
2046 tag if null. When looking for a tag, use a fixed record type.
2047 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
2048 * ada-valprint.c (printable_val_type, ada_value_print): Update
2049 calls to ada_to_fixed_type.
2050
2051 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
2052
2053 * doublest.c (convert_floatformat_to_doublest): Call
2054 floatformat_to_doublest instead of floatformat_to_double and use
2055 DOUBLEST variables.
2056 (convert_doublest_to_floatformat): Call floatformat_from_doublest
2057 instead of floatformat_from_double and use DOUBLEST variables.
2058
2059 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
2060
2061 * MAINTAINERS (Write After Approval): Add self.
2062
2063 2008-01-03 Joel Brobecker <brobecker@adacore.com>
2064
2065 * symfile.c (set_initial_language): Make non-static.
2066 * symfile.h (set_initial_language): Add declaration.
2067 * language.c: #include "symfile.h".
2068 (set_language): Call set_initial_language if the frame language
2069 could not be determined.
2070
2071 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
2072
2073 * eval.c (evaluate_subexp_for_address): Provide frame address to
2074 locate_var_value only if it will be needed.
2075
2076 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2077
2078 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
2079
2080 2008-01-02 Joel Brobecker <brobecker@adacore.com>
2081
2082 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
2083 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
2084 This is needed to make sure that any other treatment applied
2085 to the resulting value does not fail for spurious reason,
2086 such as trying to take the address of this value.
2087
2088 2008-01-02 Joel Brobecker <brobecker@adacore.com>
2089
2090 * ada-lang.c (ada_value_equal): Dereference reference types when
2091 comparing arrays.
2092
2093 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
2094
2095 Updated copyright notices for most files.
2096
2097 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
2098
2099 * win32-nat.c (psapi_module_handle): Remove static.
2100 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
2101 return first module found if base_address is zero. Don't initialize
2102 psapi function pointers here. Convert to cygwin paths when
2103 appropriate.
2104 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
2105 executable name. Use get_module_name when that fails or when
2106 !__CYGWIN__.
2107 (_initialize_psapi): New function. Initialize psapi stuff before it is
2108 needed or issue a warning if it is not found. Move psapi_module_handle
2109 here.
2110
2111 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2112
2113 * ada-lang.c (ada_remove_trailing_digits): New function.
2114 (ada_remove_po_subprogram_suffix): New function.
2115 (ada_decode): Improve. Move the description of the algorithm
2116 directly inside the code, instead of in the function global
2117 description.
2118
2119 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2120
2121 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
2122 and always print the dereferenced value.
2123
2124 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2125
2126 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
2127 of the case where the first argument is a reference.
2128 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
2129
2130 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2131
2132 Implement support for Ada interface types.
2133
2134 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
2135 (ada_is_ignored_field): Ignore fields that are a dispatch table
2136 of a tagged type.
2137
2138 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2139
2140 * top.c (print_gdb_version): Update copyright year.
2141
2142 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2143
2144 * ChangeLog-2007: New ChangeLog rotation.
2145 * ChangeLog: Reset for 2008.
2146 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
2147 ChangeLog-2007.
2148
2149 For older changes see ChangeLog-2007.
2150 \f
2151 Local Variables:
2152 mode: change-log
2153 left-margin: 8
2154 fill-column: 74
2155 version-control: never
2156 coding: utf-8
2157 End: