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