f2428b659c3b6dda4a4c6518df1261613d42c2c3
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2008-09-24 Vladimir Prus <vladimir@codesourcery.com>
2
3 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
4
5 2008-09-24 Andreas Schwab <schwab@suse.de>
6
7 * frame.c (get_frame_register_bytes): Take pseudo registers into
8 account. Avoid excessive function calls.
9
10 2008-09-23 Doug Evans <dje@google.com>
11
12 * dcache.c (state_chars): New static global.
13 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
14 All uses updated.
15 (dcache_info): Print cache state as mnemonically useful letters instead
16 of magic numbers.
17
18 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
19
20 2008-09-22 Tom Tromey <tromey@redhat.com>
21
22 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
23 printf_filtered.
24
25 2008-09-22 Pedro Alves <pedro@codesourcery.com>
26
27 * infrun.c (follow_exec): Don't do a generic mourn. Instead
28 inline the required bits.
29 * breakpoint.h (enum inf_context): Add inf_execd.
30
31 2008-09-22 Pedro Alves <pedro@codesourcery.com>
32
33 * infrun.c (handle_inferior_event): In the follow exec case,
34 context-switch before doing anything else.
35
36 2008-09-22 Pedro Alves <pedro@codesourcery.com>
37
38 * top.c (any_thread_of, kill_or_detach): New functions.
39 (quit_target): Iterate over all inferiors, killing or detaching
40 accordingly.
41
42 2008-09-22 Pedro Alves <pedro@codesourcery.com>
43
44 Remove the attach_flag global, and make it per-inferior.
45
46 * inferior.h (attach_flag): Delete.
47 (inferior_process): Declare.
48 * solib.c (update_solib_list): Adjust.
49 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
50 * inf-ptrace.c (inf_ptrace_detach): Adjust.
51 (inf_ptrace_files_info): Get it from the current inferior.
52 * inf-ttrace.c (inf_ttrace_attach): Adjust.
53 (inf_ttrace_files_info): Get it from the current
54 inferior.
55 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
56 (clear_sigint_trap): Get it from the current process.
57 * remote.c (extended_remote_attach_1)
58 (extended_remote_create_inferior_1): Adjust.
59 * top.c (quit_confirm, quit_target): Get it from the current inferior.
60 * procfs.c (do_detach): Adjust.
61 (procfs_wait): Get it from the event inferior.
62 (procfs_files_info): Get it from the current inferior.
63 * nto-procfs.c (procfs_files_info): Likewise.
64 (procfs_attach): Adjust. Set the attach_flag here.
65 (do_attach): Don't set it here.
66 (procfs_detach): Don't clear it.
67 (procfs_mourn_inferior): Don't clear it.
68 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
69 * target.c (attach_flag): Delete.
70 (generic_mourn_inferior): Don't clear it.
71 * win32-nat.c (get_win32_debug_event): Get it from the event
72 process.
73 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
74 in the inferior accordingly.
75 (win32_attach): Don't set the attach_flag here. Pass 1 to
76 do_intial_win32_stuff.
77 (win32_files_info): Get it from the current inferior.
78 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
79 do_intial_win32_stuff.
80
81 2008-09-22 Pedro Alves <pedro@codesourcery.com>
82
83 Make the stop_soon global be per-inferior instead.
84
85 * infcmd.c (attach_command_post_wait): Adjust.
86 (attach_command): Likewise.
87
88 * inferior.h (stop_soon): Delete.
89 (struct inferior): Add stop_soon member.
90
91 * infrun.c (stop_soon): Delete.
92 (clear_proceed_status, start_remote)
93 (fetch_inferior_event, handle_inferior_event): Adjust.
94 (signal_stop_state): Don't check stop_soon here. Check in callers
95 instead.
96 (save_inferior_status, restore_inferior_status): Adjust.
97
98 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
99 signals to common code if starting up the inferior.
100
101 * inferior.h (struct inferior_info): Added stop_soon member.
102 * inferior.c (add_inferior) Clear stop_soon.
103
104 * mips-tdep.c (heuristic_proc_start): Adjust.
105 * nto-procfs.c (procfs_create_inferior): Adjust.
106 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
107 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
108 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
109 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
110
111 * win32-nat.c (do_initial_win32_stuff): Adjust.
112
113 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
114
115 2008-09-22 Pedro Alves <pedro@codesourcery.com>
116
117 Implement remote multi-process extensions.
118
119 * remote.c (struct remote_state): Add extended and
120 multi_process_aware fields.
121 (remote_multi_process_p): New.
122 (PACKET_vKill): New.
123 (record_currthread): Use thread_change_ptid. Notice new
124 inferiors.
125 (set_thread, remote_thread_alive): Use write_ptid.
126 (write_ptid, read_ptid): New.
127 (remote_current_thread, remote_threads_extra_info): Use them.
128 (remote_threads_info): Likewise. Detect new inferiors.
129 (remote_start_remote): Add inferior to inferior list.
130 (remote_multi_process_feature): New.
131 (remote_protocol_features): Add "multiprocess" feature.
132 (remote_query_supported): Pass "multiprocess+" as supported
133 features.
134 (remote_open_1): Clear multi_process_aware. Set extended
135 accordingly.
136 (remote_detach_1): Detach current process. Use extended packet
137 format for extended-remote multi-process. Detach process from the
138 inferior list. Only mourn after printing output.
139 (extended_remote_attach_1): Add process to the inferior list.
140 (remote_vcont_resume): Use write_ptid to pass the thread ids.
141 (remote_wait): Use read_ptid. Implement the extended
142 multi-process extension format of the 'W' and 'X' reply packets.
143 Remove exited inferiors from inferior list.
144 (remote_xfer_memory): Set general thread.
145 (remote_vkill): New.
146 (extended_remote_kill): New.
147 (remote_mourn_1): Discard all inferiors.
148 (select_new_thread_callback): New.
149 (extended_remote_mourn_1): If there are more processes to debug,
150 switch to a thread in another process, and don't pop the target.
151 (extended_remote_create_inferior_1): Add the new process to the
152 inferior list.
153 (remote_stopped_by_watchpoint): Indenting.
154 (remote_xfer_partial): Set the general thread.
155 (remote_pid_to_str): If the remote is multi-process aware, print
156 the process id as well as the thread id.
157 (remote_get_thread_local_address): Use write_ptid.
158 (init_extended_remote_ops): Register extended_remote_kill.
159 (_initialize_remote): Register new packets. Change
160 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
161 member to 42000.
162
163 * thread.c (thread_change_ptid): Also account for the inferior pid
164 changing.
165
166 * inferior.h (discard_all_inferiors): Declare.
167 * inferior.c (discard_all_inferiors): New.
168
169 2008-09-22 Pedro Alves <pedro@codesourcery.com>
170
171 * gnu-nat.c (gnu_attach): Add process to inferiors table.
172 (gnu_detach): Remove it.
173 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
174 table.
175 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
176 to inferior table accordingly.
177 (inf_ptrace_attach): Add new process to inferior table.
178 (inf_ptrace_detach): Remove it.
179 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
180 to inferior table accordingly.
181 (inf_ttrace_attach): Add process to inferior table.
182 (inf_ttrace_detach): Remove it.
183 * linux-fork.c (init_fork_list): Delete any left over inferior.
184 (linux_fork_mourn_inferior, detach_fork_command): Also delete
185 processes from inferior list.
186 * monitor.c (monitor_open): Add process to inferior list.
187 (monitor_close): Remove it.
188 * nto-procfs.c (procfs_attach): Add process to inferior list.
189 Find threads after pushing the target.
190 (procfs_detach): Remove process from inferior list.
191 (procfs_create_inferior): Add process to inferior list.
192 * procfs.c (procfs_detach): Remove process from inferior list.
193 (do_attach): Add process to inferior list.
194 * remote-sim.c (sim_create_inferior): Add process to inferior list.
195 (gdbsim_close): Remove it.
196 * target.c (generic_mourn_inferior): If inferior_ptid is not
197 null_ptid, remove the corresponding inferior from inferior list.
198 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
199 (win32_detach): Remove it.
200 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
201 to inferior list accordingly.
202 * fork-child.c (fork_inferior): Add process to inferior list.
203 * corelow.c (CORELOW_PID): Define.
204 (core_close): Remove core from inferior list.
205 (core_open): Add it.
206
207 2008-09-22 Pedro Alves <pedro@codesourcery.com>
208
209 * inferior.h: Forward declare struct ui_out.
210 Forward declare struct private_inferior.
211 (struct inferior): New.
212 (init_inferior_list, add_inferior, add_inferior_silent)
213 (delete_inferior, delete_inferior_silent, detach_inferior)
214 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
215 (valid_inferior_id, find_inferior_pid): New functions.
216 (inferior_callback_func): New typedef.
217 (iterate_over_inferiors, print_inferior, have_inferiors)
218 (current_inferior): New functions.
219 * inferior.c: New file.
220
221 * Makefile.in (SFILES): Add inferior.c.
222 (COMMON_OBS): Add inferior.o.
223
224 2008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
225
226 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
227 instead of determining symbol and line info directly.
228 * MAINTAINERS: Update my email address.
229
230 2008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
231
232 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
233 at the same address as a prologue marker. Do not skip an entire
234 function.
235
236 2008-09-22 Andrew Stubbs <ams@codesourcery.com>
237
238 * frame.c (get_frame_register_bytes): Comment improvments.
239
240 2008-09-22 Pedro Alves <pedro@codesourcery.com>
241
242 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
243 all-stop mode.
244
245 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
246
247 * MAINTAINERS: Update my email address.
248
249 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
250
251 * frame.c (get_frame_register_bytes): Detect bad debug info.
252
253 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
254
255 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
256 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
257 initialization ...
258 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
259 ...
260 (handle_inferior_event): ... here after the add_thread call together
261 with the local adjust_pc_after_break and reinit_frame_cache calls.
262
263 2008-09-16 David Daney <ddaney@avtrex.com>
264
265 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
266 all hardware bpstats.
267
268 2008-09-16 Joel Brobecker <brobecker@adacore.com>
269
270 * gstdint.h: Delete.
271
272 2008-09-15 Mark Kettenis <kettenis@gnu.org>
273
274 * infcall.c (generic_push_dummy_code): Remove.
275 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
276
277 2008-09-15 Doug Evans <dje@google.com>
278
279 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
280 (struct attribute): Ditto.
281
282 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
283
284 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
285 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
286
287 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
288 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
289 Correct arguments and improve comments.
290 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
291 disabled code.
292 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
293 point DBX register, change error to warning, and improve comments.
294
295 2008-09-14 Doug Evans <dje@google.com>
296
297 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
298
299 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
300
301 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
302
303 2008-09-13 Joel Brobecker <brobecker@adacore.com>
304
305 * defs.h (GCC_GENERATED_STDINT_H): Define.
306
307 2008-09-13 Tom Tromey <tromey@redhat.com>
308
309 * varobj.c (varobj_set_display_format): Use xfree.
310 * tracepoint.c (stringify_collection_list): Use xfree.
311 * remote-fileio.c (remote_fileio_reset): Use xfree.
312 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
313 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
314 asprintf.
315 * cp-support.c (mangled_name_to_comp): Use xfree.
316
317 2008-09-13 Joel Brobecker <brobecker@adacore.com>
318
319 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
320 the associated complete symbol is also in the list.
321 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
322 extracted out from ada_lookup_symbol_list.
323 (ada_lookup_symbol_list): Use them. Remove the search through
324 the minimal symbols.
325
326 2008-09-13 Joel Brobecker <brobecker@adacore.com>
327
328 * dwarf2read.c (add_partial_subprogram): New procedure.
329 (scan_partial_symbols): Use it.
330 (load_partial_dies): Read in children of subprogram and lexical
331 blocks for Ada compilation units.
332
333 2008-09-13 Tom Tromey <tromey@redhat.com>
334
335 * symfile.c (build_id_verify): Free 'found'.
336 (find_separate_debug_file): Use xfree, not free.
337
338 2008-09-12 Doug Evans <dje@google.com>
339
340 * corefile.c (write_memory): Remove unnecessary copying.
341
342 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
343 order of _initialize_* fns.
344
345 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
346 first_die_offset. All uses updated.
347 Delete unused members cu_head_ptr, next.
348 Move members base_known, base_address to ...
349 (dwarf2_cu) ... here. All uses updated.
350
351 2008-09-12 Pedro Alves <pedro@codesourcery.com>
352
353 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
354 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
355
356 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
357
358 * fork-child.c (startup_inferior): Use target_wait and target_resume
359 directly instead of calling wait_for_inferior / resume.
360
361 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
362 or init_wait_for_inferior.
363 (run_command_1): Call init_wait_for_inferior.
364
365 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
366
367 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
368 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
369 builtin_type_int, builtin_type_long, builtin_type_signed_char,
370 builtin_type_unsigned_char, builtin_type_unsigned_short,
371 builtin_type_unsigned_int, builtin_type_unsigned_long,
372 builtin_type_float, builtin_type_double, builtin_type_long_double,
373 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
374 builtin_type_bool, builtin_type_long_long,
375 builtin_type_unsigned_long_long): Remove macros.
376
377 (builtin_type_f_character, builtin_type_f_integer,
378 builtin_type_f_integer_s2, builtin_type_f_logical,
379 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
380 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
381 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
382 builtin_type_f_complex_s32): Likewise.
383
384 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
385 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
386
387 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
388 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
389
390 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
391 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
392
393 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
394
395 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
396 target_gdbarch instead of builtin_type_void_data_ptr.
397 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
398 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
399 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
400 open_symbol_file_object): Likewise.
401 * nto-tdep.c (LM_ADDR): Likewise.
402
403 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
404
405 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
406 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
407 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
408
409 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
410
411 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
412 and its associated types to perform pointer conversion.
413 (procfs_can_use_hw_breakpoint): Likewise.
414 (procfs_auxv_parse): Remove unused variable.
415
416 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
417
418 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
419 instead of builtin_type_void_data_ptr.
420 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
421
422 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
423
424 * expprint.c (print_subexp_standard): Compare against builtin type
425 associated with exp->gdbarch instead of builtin_type_char.
426
427 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
428 extract values of arbitrary logical type. Handle arbitrary
429 complex types.
430
431 * printcmd.c (float_type_from_length): New function.
432 (print_scalar_formatted, printf_command): Use it.
433
434 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
435
436 * valops.c: Include "objfiles.h" and "symtab.h".
437 (find_function_in_inferior): New argument OBJF_P. Use it to return
438 objfile where function is defined. Use per-objfile arch types
439 instead of builtin_type_ to define default return type.
440
441 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
442 architecture to define inferior call argument types.
443 * gcore.c (derive_heap_segment): Likewise.
444 * objc-lang.c (value_nsstring): Likewise.
445 * scm-lang.c (scm_lookup_name): Likewise.
446 * scm-valprint.c (scm_inferior_print): Likewise.
447 * valops.c (value_allocate_space_in_inferior): Likewise.
448
449 * eval.c (evaluate_subexp_standard): Update calls.
450 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
451
452 * linux-fork.c: Include "objfiles.h".
453 * scm-lang.c: Include "objfiles.h".
454 * scm-valprint.c: Include "objfiles.h".
455
456 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
457
458 * gdbarch.sh (name_of_malloc): Remove.
459 * gdbarch.c, gdbarch.h: Re-generate.
460 * valops.c (value_allocate_space_in_inferior): Do not call
461 gdbarch_name_of_malloc.
462
463 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
464
465 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
466 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
467 (value_bit_index): Use extract_unsigned_integer
468 instead of unpack_long to read single byte.
469
470 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
471
472 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
473 associates types instead of builtin_type_ macros.
474 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
475 (call_function_by_hand): Use per-architecture "int" type as
476 fall-back if find_function_addr returns NULL VALUE_TYPE.
477 Update call to value_arg_coerce.
478
479 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
480
481 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
482 (cplus_make_method_ptr): Add TYPE parameter.
483 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
484 on to current_cp_abi.method_ptr_size callback.
485 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
486 current_cp_abi.make_method_ptr callback.
487
488 * gdbtypes.c (lookup_methodptr_type): Pass target type
489 argument to cplus_method_ptr_size.
490 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
491 (value_struct_elt_for_reference): Likewise.
492
493 * gnu-v3-abi.c (get_class_arch): New function.
494 (vtable_address_point_offset): Add GDBARCH parameter. Use it
495 instead of current_gdbarch. Update all callers.
496 (gnuv3_get_vtable): Likewise.
497 (gnuv3_get_virtual_fn): Likewise.
498 (gnuv3_decode_method_ptr): Likewise.
499 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
500 Use it instead of current_gdbarch.
501 (gnuv3_virtual_fn_field): Likewise.
502 (gnuv3_baseclass_offset): Likewise.
503 (gnuv3_print_method_ptr): Likewise.
504 (gnuv3_method_ptr_to_value): Likewise.
505 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
506 class architecture. Use architecture types instead of builtin types.
507 (gnuv3_make_method_ptr): Likewise.
508
509 * cp-valprint.c (cp_print_class_member): Expect pointer type
510 instead of class type. Use its length when extracting value.
511 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
512
513 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
514
515 * stack.c (return_command): Use frame architecture to determine
516 default integer return type.
517
518 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
519 to determine pointer types.
520 (f77_get_dynamic_upperbound): Likewise.
521
522 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
523 (resolve_msgsend): Use architecture of current frame to determine
524 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
525 (resolve_msgsend_stret, resolve_msgsend_super,
526 resolve_msgsend_super_stret): Likewise.
527
528 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
529
530 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
531 instead of builtin_type_ macros.
532 * amd64-tdep.c (amd64_register_type): Likewise.
533 (amd64_get_longjmp_target): Likewise.
534 * arm-tdep.c (arm_register_type): Likewise.
535 * avr-tdep.c (avr_register_type): Likewise.
536 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
537 * frv-tdep.c (frv_register_type): Likewise.
538 * h8300-tdep.c (h8300_register_type): Likewise.
539 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
540 hppa_skip_trampoline_code): Likewise.
541 * i386-tdep.c (i386_register_type): Likewise.
542 (i386_unwind_pc, i386_sse_type): Likewise.
543 * ia64-tdep.c (ia64_register_type): Likewise.
544 * m32r-tdep.c (m32r_register_type): Likewise.
545 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
546 * m88k-tdep.c (m88k_register_type): Likewise.
547 * mep-tdep.c (mep_register_type): Likewise.
548 * mips-tdep.c (mips_pseudo_register_type): Likewise.
549 * mn10300-tdep.c (mn10300_register_type): Likewise.
550 * mt-tdep.c (mt_copro_register_type): Likewise.
551 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
552 (rs6000_convert_register_p, rs6000_register_to_value,
553 rs6000_value_to_register): Likewise.
554 * s390-tdep.c (s390_register_type): Likewise.
555 * sh64-tdep.c (sh64_register_type): Likewise.
556 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
557 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
558 sh_sh4_build_float_register_type, sh_sh4_register_type,
559 sh_default_register_type): Likewise.
560 * sparc64-tdep.c (sparc64_register_type): Likewise.
561 * sparc-tdep.c (sparc32_register_type): Likewise.
562 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
563 * v850-tdep.c (v850_register_type): Likewise.
564 * vax-tdep.c (vax_register_type): Likewise.
565 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
566 xtensa_push_dummy_call): Likewise.
567
568 * std-regs.c (value_of_builtin_frame_fp_reg,
569 value_of_builtin_frame_pc_reg): Likewise.
570 * target-descriptions.c (tdesc_register_type): Likewise.
571
572 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
573
574 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
575 instead of builtin_type_int as default unspecified integral type.
576 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
577 assign_component, to_fixed_range_type): Likewise.
578 * ada-typeprint.c (print_range, print_range_bound,
579 print_range_type_named): Likewise.
580 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
581 * eval.c (evaluate_subexp_standard): Likewise.
582 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
583 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
584 build_gdb_vtable_type): Likewise.
585 * jv-lang.c (java_array_type): Likewise.
586 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
587 * m2-valprint.c (m2_print_long_set): Likewise.
588 * parse.c (follow_types): Likewise.
589 * p-typeprint.c (pascal_type_print_base): Likewise.
590 * valops.c (value_one, value_array, value_string,
591 value_bitstring): Likewise.
592 * value.c (allocate_repeat_value, value_from_string): Likewise.
593 * varobj.c (c_describe_child): Likewise.
594 * mt-tdep.c (mt_register_type): Likewise.
595 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
596 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
597
598 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
599
600 * defs.h (struct gdbarch): Add forward declaration.
601 (set_next_address): Add GDBARCH argument.
602 * printcmd.c (set_next_address): Use it to find pointer type.
603 * breakpoint.c (breakpoint_1): Update call.
604 * source.c (line_info): Likewise.
605 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
606
607 * breakpoint.c (set_breakpoint_count): Use platform-neutral
608 types for internal variable values.
609 * infrun.c (handle_inferior_event): Likewise.
610 * source.c (forward_search_command, reverse_search_command): Likewise.
611 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
612 set_tracepoint_num, set_traceframe_context): Likewise.
613
614 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
615
616 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
617 and builtin_true_unsigned_char.
618 (builtin_type_true_char): Remove macro, add extern declaration.
619 (builtin_type_true_unsigned_char): Add extern declaration.
620 * gdbtypes.c (builtin_type_true_char): New global variable.
621 (builtin_type_true_unsigned_char): Likewise.
622 (_initialize_gdbtypes): Initialize them.
623 (gdbtypes_post_init): Do not initialize builtin_true_char
624 and builtin_true_unsigned_char members of struct builtin_type.
625
626 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
627 use builtin_type_true_unsigned_char instead.
628
629 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
630 instead of builtin_type_char for internal string.
631
632 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
633
634 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
635 (builtin_type_f_void): Remove macro.
636 * gdbtypes.c (builtin_type_void): New global variable.
637 (_initialize_gdbtypes): Initialize it.
638
639 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
640 lookup_pointer_type or lookup_function_type on builtin_type_void.
641 * printcmd.c (set_next_address): Likewise.
642 * objc-lang.c (value_nsstring): Likewise.
643 * mt-tdep.c (mt_copro_register_type): Likewise.
644 * xtensa-tdep.c (xtensa_register_type): Likewise.
645
646 * symfile.c (syms_from_objfile): Remove special handling
647 of builtin_type_void and builtin_type_char.
648
649 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
650
651 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
652 of builtin_type_ macros when handling OP_OBJC_ operations.
653 * objc-lang.c (print_object_command): Likewise.
654
655 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
656
657 * ada-valprint.c: Include "objfiles.h".
658 (ada_val_print_1): Use the gdbarch associated with the objfile whether
659 a System.Address type is defined to retrieve the proper pointer type
660 to use to print it.
661
662 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
663
664 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
665 result type instead of builtin_type_int.
666 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
667 (ada_value_subscript): Update call to value_pos_atr.
668 (ada_value_ptr_subscript): Likewise.
669 (ada_evaluate_subexp): Likewise.
670
671 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
672
673 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
674 (cast_from_fixed_to_double): Rename to ...
675 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
676 of builtin_type_double.
677 (ada_value_cast): Use cast_from_fixed instead of casting result
678 of cast_from_fixed_to_double.
679 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
680
681 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
682
683 * valops.c (value_ind): No longer allow dereferencing an
684 integer type.
685 * eval.c (evaluate_subexp_standard): Handle deferencing an
686 integer type here.
687 * ada-lang.c (ada_evaluate_subexp): Likewise.
688
689 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
690
691 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
692 a reference type, pass the reference type directly to unpack_pointer.
693 * c-valprint.c (c_val_print): Likewise.
694 * f-valprint.c (f_val_print): Likewise.
695 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
696 * p-valprint.c (pascal_val_print): Likewise.
697
698 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
699
700 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
701 to construct the EVAL_SKIP dummy return value.
702 * ada-lang.c (ada_evaluate_subexp): Likewise.
703 * jv-lang.c (evaluate_subexp_java): Likewise.
704 * m2-lang.c (evaluate_subexp_modula2): Likewise.
705 * scm-lang.c (evaluate_exp): Likewise.
706
707 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
708
709 * value.h (coerce_enum, coerce_number): Remove prototypes.
710 * value.c (coerce_enum, coerce_number): Remove.
711 * valarith.c (value_x_binop): Do not call coerce_enum.
712 (value_x_unop): Likewise.
713 (value_logical_not): Call coerce_array instead of coerce_number.
714
715 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
716
717 * ax-gdb.c: Include "language.h".
718 (gen_frame_args_address): Add GDBARCH parameter; use it
719 instead of current_gdbarch.
720 (gen_frame_locals_address): Likewise.
721 (gen_var_ref): Add GDBARCH parameter. Update calls to
722 gen_frame_args_address and gen_frame_locals_address. Use
723 pointer type from gdbarch.
724 (gen_usual_unary): Add EXP parameter. Use integer type
725 from exp->gdbarch.
726 (gen_usual_arithmetic): Likewise.
727 (gen_integral_promotions): Likewise.
728 (gen_add, gen_sub): Remove.
729 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
730 (gen_logical_not): Use passed-in boolean result type
731 instead of builtin_type_int.
732 (gen_complement): Do not call gen_usual_unary or
733 gen_integral_promotions.
734 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
735 (gen_repeat): Add EXP parameter. Update call to gen_expr.
736 Use builtin_type_int32 as internal range type.
737 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
738 as result type. Update call to gen_expr.
739 (gen_expr): Add EXP parameter. Update calls to gen_expr,
740 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
741 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
742 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
743 Use exp->gdbarch instead of current_gdbarch.
744 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
745
746 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
747
748 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
749 and unop_promote before calling value_binop et. al.
750 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
751 and unop_promote before calling value_binop et. al.
752
753 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
754 (value_pos): Do not call unop_promote.
755 (value_neg, value_complement): Likewise.
756
757 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
758
759 * value.h (unop_promote, binop_promote): Add prototypes.
760 * eval.c (unop_promote, binop_promote): New functions.
761 * valarith.c (unop_result_type, binop_result_type): Remove.
762 (value_binop): Call binop_promote or unop_promote.
763 Inline remaining parts of binop_result_type. Remove special
764 code to truncate integer values for unsigned operations.
765 (value_pos): Call unop_promote. Inline remaining parts of
766 unop_result_type.
767 (value_neg, value_complement): Likewise.
768
769 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
770
771 * value.h (value_add, value_sub): Remove.
772 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
773 * valarith.c (value_add, value_sub): Remove.
774 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
775 (find_size_for_pointer_math): Add assertion. Update comment.
776 (value_binop): Update comment.
777
778 * eval.c (ptrmath_type_p): New function.
779 (evaluate_subexp_standard): Replace value_add and value_sub
780 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
781 Use builtin_type_uint8 instead of builtin_type_char to hold
782 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
783 * valarith.c (value_subscript): Replace value_add by
784 value_ptradd. Replace value_sub by value_binop.
785 * ada-lang.c (ada_value_ptr_subscript): Likewise.
786 (ada_tag_name_2): Replace value_add by value_ptradd.
787 (ada_evaluate_subexp): Replace value_add and value_sub by
788 value_binop.
789 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
790 by value_ptradd.
791 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
792 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
793
794 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
795
796 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
797 the expression architecture instead of builtin_type_int as the
798 sizeof return type.
799
800 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
801
802 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
803 a type parameter as expression element.
804 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
805 type as expression element.
806 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
807 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
808
809 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
810
811 * language.h (struct language_arch_info): New members
812 bool_type_default and bool_type_symbol.
813 (lang_bool_type): Remove prototype.
814 (LA_BOOL_TYPE): Remove macro.
815 (language_bool_type): Add prototype.
816 * language.c (lang_bool_type): Remove.
817 (language_bool_type): New function.
818
819 * value.h (value_in): Change return value to int.
820 * value.c (value_in): Return int instead of struct value *.
821
822 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
823 of using LA_BOOL_TYPE. Update call to value_in.
824 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
825 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
826
827 * language.c (unknown_language_arch_info): Set bool_type_default member
828 of struct language_arch_info.
829 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
830 bool_type_default members of struct language_arch_info.
831 * c-lang.c (c_language_arch_info): Set bool_type_default member
832 of struct language_arch_info.
833 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
834 members of struct language_arch_info.
835 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
836 bool_type_default members of struct language_arch_info.
837 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
838 bool_type_default members of struct language_arch_info.
839 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
840 bool_type_default members of struct language_arch_info.
841 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
842 bool_type_default members of struct language_arch_info.
843
844 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
845
846 * jv-lang.c (enum java_primitive_types): New type.
847 (java_language_arch_info): New function.
848 (java_language): Use it instead of c_language_arch_info.
849
850 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
851
852 * value.h (value_bitstring_subscript): New prototype.
853 * valarith.h (value_bitstring_subscript): New function.
854 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
855 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
856 instead of value_subscript to handle TYPE_CODE_BITSTRING.
857
858 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
859
860 * expression.h (struct expression): New member GDBARCH.
861 * parse.c (parse_exp_in_context): Initialize it.
862 * parser-def.h (parse_gdbarch, parse_language): New macros.
863
864 * ada-exp.y (parse_type): New macro.
865 Replace builtin_type_ macros by using parse_type.
866 Replace current_language by parse_language.
867 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
868 Replace builtin_type_ macros.
869
870 * c-exp.y (parse_type): New macro.
871 Replace builtin_type_ macros by using parse_type.
872 (parse_number): Replace current_gdbarch by parse_gdbarch.
873 (yylex): Replace current_language by parse_language.
874
875 * f-exp.y (parse_type, parse_f_type): New macros.
876 Replace builtin_type_ macros by using parse_{f_,}type.
877 (parse_number): Replace current_gdbarch by parse_gdbarch.
878 (yylex): Replace current_language by parse_language.
879
880 * jv-exp.y (parse_type): New macro.
881 (parse_number): Replace builtin_type_ macros by using parse_type.
882
883 * m2-exp.y (parse_type, parse_m2_type): New macros.
884 Replace builtin_type_ macros by using parse_{m2_,}type.
885
886 * objc-exp.y (parse_type): New macro.
887 Replace builtin_type_ macros by using parse_type.
888 (parse_number): Replace current_gdbarch by parse_gdbarch.
889 (yylex): Replace current_language by parse_language.
890
891 * p-exp.y (parse_type): New macro.
892 Replace builtin_type_ macros by using parse_type.
893 (parse_number): Replace current_gdbarch by parse_gdbarch.
894 (yylex): Replace current_language by parse_language.
895
896 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
897
898 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
899 and DATA_SYMBOL_TYPE arguments.
900 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
901 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
902 (write_dollar_variable): Update call.
903
904 * ada-exp.y (write_var_or_type): Update call.
905 * c-exp.y: Likewise.
906 * f-exp.y: Likewise.
907 * jv-exp.y: Likewise.
908 * m2-exp.y: Likewise.
909 * objc-exp.y: Likewise.
910 * p-exp.y: Likewise.
911
912 2008-09-10 Joel Brobecker <brobecker@adacore.com>
913
914 * ada-lang.c (ada_parent_type): Add handling of the case where
915 the _parent field is a pointer and/or has a parallel XVS type.
916 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
917 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
918 the type of the tag instead of doing forcing an EVAL_NORMAL
919 expression evaluation.
920
921 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
922 Joel Brobecker <brobecker@adacore.com>
923
924 * ada-lang.c (is_digits_suffix): New function.
925 (is_dot_digits_suffix): Remove.
926 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
927 before looking up in symbol table, and do not use wild matches on them.
928 (wild_match): Reimplement for speed and to allow matching of operator
929 symbols.
930 (is_valid_name_for_wild_match): Return zero for names that do not
931 follow the GNAT encoding.
932
933 (is_name_suffix): Fix typo in comment.
934 (to_record_with_fixed_variant_part): Ditto.
935
936 2008-09-10 Pedro Alves <pedro@codesourcery.com>
937
938 * Makefile.in (gnu-nat.o): New rule.
939
940 2008-09-10 Joel Brobecker <brobecker@adacore.com>
941
942 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
943 archecture-neutral builtin_type_int32 instead of builtin_type_int.
944
945 2008-09-10 Joel Brobecker <brobecker@adacore.com>
946
947 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
948 Add special handling for pointer types.
949
950 2008-09-10 Pedro Alves <pedro@codesourcery.com>
951
952 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
953 right scope level.
954 (inf_ttrace_resume, inf_ttrace_wait): Typos.
955
956 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
957
958 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
959 of builtin_type_int.
960 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
961 instead of builtin_type_int.
962
963 2008-09-09 Pedro Alves <pedro@codesourcery.com>
964
965 * infrun.c (normal_stop): Run hook-stop last.
966
967 2008-09-09 Pedro Alves <pedro@codesourcery.com>
968
969 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
970 (init_gnu_ops): Don't register it.
971
972 2008-09-09 Pedro Alves <pedro@codesourcery.com>
973
974 * gnu-nat.c (gnu_attach): Push target before fetching the list of
975 threads.
976
977 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
978
979 * valops.c (value_cast_structs): Return NULL for failure.
980 (value_cast): Handle NULL from value_cast_structs.
981 (value_fetch_lazy): Call check_typedef. Remove unused variable.
982
983 2008-09-08 Pedro Alves <pedro@codesourcery.com>
984
985 * inferior.h (context_switch_to): Delete.
986 * infrun.c (context_switch): Don't save and load infrun state.
987 (context_switch_to): Delete.
988
989 * infcmd.c (proceed_thread_callback): Replace context_switch_to
990 calls by switch_to_thread calls.
991
992 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
993 * thread.c (main_thread_state, main_thread_executing): Delete.
994 (inferior_thread): Delete references to them.
995 (add_thread_silent): Fix case where we're adding a thread with the
996 same ptid as an exited thread. Remove references to
997 context-switching.
998 (load_infrun_state, save_infrun_state): Delete.
999 (thread_alive, is_thread_state, any_running, is_executing)
1000 (set_executing): Remove the special handling for targets that
1001 don't register any thread.
1002 (restore_current_thread, thread_apply_all_command)
1003 (do_captured_thread_select): Unconditionally call
1004 switch_to_thread.
1005
1006 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
1007 Call switch_to_thread instead of context_switch_to.
1008
1009 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1010
1011 Remove global continuations in favour of a per-thread
1012 continuations.
1013
1014 * gdbthread.h (struct thread_info): Add comments around
1015 continuations and intermediate_continuations.
1016 (save_infrun_state, load_infrun_state): Delete continuations and
1017 intermediate_continuations arguments.
1018 * infrun.c (context_switch): Don't context-switch the continuations.
1019 * thread.c (clear_thread_inferior_resources): Discard all
1020 continuations of the thread we're clearing.
1021 (save_infrun_state, load_infrun_state): Delete continuations and
1022 intermediate_continuations arguments, and the code referencing
1023 them.
1024 * utils.c: Include "gdbthread.h".
1025 (cmd_continuation, intermediate_continuation): Delete.
1026 (add_continuation): Add thread_info* argument. Install the
1027 continuation on it.
1028 (restore_thread_cleanup): New.
1029 (do_all_continuations_ptid, do_all_continuations_thread_callback):
1030 New.
1031 (do_all_continuations): Reimplement.
1032 (discard_all_continuations_thread_callback,
1033 discard_all_continuations_thread): New.
1034 (discard_all_continuations): Reimplement.
1035 (add_intermediate_continuation): Add thread_info* argument.
1036 Install the continuation on it.
1037 (do_all_intermediate_continuations_thread_callback)
1038 (do_all_intermediate_continuations_thread): New.
1039 (do_all_intermediate_continuations): Reimplement.
1040 (discard_all_intermediate_continuations_thread_callback): New.
1041 (discard_all_intermediate_continuations_thread): New.
1042 (discard_all_intermediate_continuations): Reimplement.
1043
1044 * breakpoint.c (until_break_command): Install the continuation on
1045 the current thread.
1046
1047 * defs.h (cmd_continuation, intermediate_continuation): Delete.
1048 (struct thread_info): Forward declare.
1049 (add_continuation, add_intermediate_continuation): Add
1050 thread_info* argument.
1051 (do_all_continuations_thread, discard_all_continuations_thread)
1052 (do_all_intermediate_continuations_thread)
1053 (discard_all_intermediate_continuations_thread): Declare.
1054 * inf-loop.c (inferior_event_handler): In non-stop only run
1055 continuations on the thread that stopped. In all-stop, run
1056 continuations on all threads.
1057 * infcmd.c (step_once, finish_command): Adjust.
1058
1059 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1060
1061 Remove the global stop_step in favour of a per-thread
1062 stop_step.
1063
1064 * inferior.h (stop_step): Delete.
1065
1066 * gdbthread.h (struct thread_info): Add comments to stop_step.
1067 (save_infrun_state, load_infrun_state): Remove stop_step argument.
1068 * thread.c (load_infrun_state, save_infrun_state): Remove
1069 stop_step argument, and references to it.
1070
1071 * infrun.c (clear_proceed_status): Clear stop_step.
1072 (fetch_inferior_event): Adjust.
1073 (context_switch): Don't context-switch stop_step.
1074 (handle_inferior_event): Adjust.
1075 (normal_stop): Adjust.
1076 (save_inferior_status, restore_inferior_status): Adjust.
1077
1078 * infcmd.c (stop_step): Delete.
1079 (step_1, step_1_continuation, step_once, until_next_command):
1080 Adjust.
1081
1082 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1083
1084 Remove the global step_multi in favour of a per-thread
1085 step_multi.
1086
1087 * inferior.h (step_multi): Delete.
1088 * gdbthread.h (struct thread_info): Add comments around
1089 step_multi.
1090 (save_infrun_state, load_infrun_state): Remove step_multi
1091 parameter.
1092 * thread.c (load_infrun_state, save_infrun_state): Remove
1093 step_multi argument, and references to it.
1094 * infcmd.c (step_multi): Delete.
1095 (step_1): Adjust.
1096 (step_1_continuation, until_next_command): Adjust.
1097 * infrun.c (fetch_inferior_event): Adjust.
1098 (context_switch): Don't context-switch step_multi.
1099 (print_stop_reason, normal_stop): Adjust.
1100
1101 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1102
1103 Remove the global stop_signal in favour of a per-thread
1104 stop_signal.
1105
1106 * inferior.h (stop_signal): Delete.
1107 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
1108 stop_signal argument.
1109 * thread.c (load_infrun_state, save_infrun_state): Remove
1110 stop_signal argument. Don't reference it.
1111
1112 * infcmd.c (stop_signal): Delete.
1113 (program_info): Adjust.
1114 * infrun.c (resume): Clear stop_signal.
1115 (proceed): Adjust. Pass the last stop_signal to the thread we're
1116 resuming.
1117 (context_switch): Don't context-switch stop_signal.
1118 (handle_inferior_event, keep_going): Adjust.
1119 (save_inferior_status, restore_inferior_status): Adjust.
1120
1121 * fbsd-nat.c: Include "gdbthread.h".
1122 (find_signalled_thread, find_stop_signal): New.
1123 (fbsd_make_corefile_notes): Use it.
1124 * fork-child.c (startup_inferior): Adjust.
1125
1126 * linux-nat.c (get_pending_status): Adjust.
1127 (linux_nat_do_thread_registers): Adjust.
1128 (find_signalled_thread, find_stop_signal): New.
1129 (linux_nat_do_thread_registers): Add stop_signal parameter.
1130 (struct linux_nat_corefile_thread_data): Add stop_signal member.
1131 (linux_nat_corefile_thread_callback): Pass stop_signal.
1132 (linux_nat_do_registers): Delete.
1133 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
1134 there's always a thread.
1135
1136 * procfs.c (find_signalled_thread, find_stop_signal): New.
1137 (find_stop_signal): New.
1138 (procfs_do_thread_registers): Add stop_signal parameter.
1139 (struct procfs_corefile_thread_data): Add stop_signal member.
1140 (procfs_corefile_thread_callback): Pass args->stop_signal.
1141 (procfs_make_note_section): Find the last stop_signal.
1142
1143 * solib-irix.c: Include gdbthread.h.
1144 (irix_solib_create_inferior_hook): Adjust.
1145 * solib-osf.c: Include gdbthread.h.
1146 (osf_solib_create_inferior_hook): Adjust.
1147 * solib-sunos.c: Include gdbthread.h.
1148 (sunos_solib_create_inferior_hook): Adjust.
1149 * solib-svr4.c: Include gdbthread.h.
1150 (svr4_solib_create_inferior_hook): Adjust.
1151
1152 * win32-nat.c (do_initial_win32_stuff): Adjust.
1153
1154 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1155
1156 * gdbthread.h (struct thread_info): Add comments around
1157 proceed_to_finish.
1158 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
1159 argument.
1160 * thread.c (load_infrun_state, save_infrun_state): Delete
1161 proceed_to_finish argument and references to it.
1162
1163 * infcall.c (call_function_by_hand): Adjust.
1164 * infcmd.c (finish_command): Adjust.
1165 * infrun.c (proceed_to_finish): Delete.
1166 (clear_proceed_status): Adjust.
1167 (context_switch): Don't context-switch proceed_to_finish.
1168 (normal_stop, save_inferior_status, restore_inferior_status):
1169 Adjust.
1170
1171 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1172
1173 * inferior.h (stop_bpstat): Delete.
1174
1175 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
1176
1177 * breakpoint.c (bpstat_do_actions): Rename to ...
1178 (bpstat_do_actions_1): ... this. Make static. Change return type
1179 to int. Return true if a breakpoint proceeded.
1180 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
1181 (delete_breakpoint): Don't reference the global stop_bpstat; it's
1182 gone.
1183
1184 * gdbthread.h (struct thread_info): Add stop_bpstat.
1185 (save_infrun_state, load_infrun_state): Remove stop_bpstat
1186 argument.
1187 * thread.c (load_infrun_state, save_infrun_state): Remove
1188 stop_bpstat argument, and the code referencing it.
1189
1190 * infcall.c: Include "gdbthread.h".
1191 (call_function_by_hand): Adjust.
1192 * exceptions.c: Include "gdbthread.h".
1193 (throw_exception): Adjust.
1194 * infcmd.c (stop_bpstat): Delete.
1195 (continue_command): In all-stop, set the ignore count on the
1196 thread that reported the stop. In non-stop, set it on the current
1197 thread.
1198 (finish_command_continuation): Adjust.
1199 (program_info): Adjust.
1200 * infrun.c (clear_proceed_status): Adjust.
1201 (context_switch): Don't context-switch stop_bpstat.
1202 (handle_inferior_event): Adjust.
1203 (normal_stop): Adjust.
1204 (save_inferior_status, restore_inferior_status): Adjust.
1205
1206 * inf-loop.c (inferior_event_handler): Remove parameter to
1207 bpstat_do_actions call.
1208 * top.c (command_loop): Remove parameter to bpstat_do_actions
1209 call. Call it unconditionally.
1210 * event-top.c (command_handler): Ditto.
1211 * python/python.c (execute_gdb_command): Ditto.
1212
1213 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1214
1215 * inferior.h (step_over_calls): Delete.
1216
1217 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
1218 step_over_calls argument.
1219 * thread.c (save_infrun_state, load_infrun_state): Remove
1220 step_over_calls argument. Adjust.
1221
1222 * infcmd.c (step_over_calls): Delete.
1223 (step_1): Adjust.
1224 * infrun.c (clear_proceed_status): Adjust.
1225 (context_switch): Don't context-switch step_over_calls.
1226 (handle_inferior_event, save_inferior_status)
1227 (restore_inferior_status): Adjust.
1228
1229 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1230
1231 Remove context switching in favour of accessing thread_info fields
1232 directly.
1233
1234 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
1235 Delete.
1236 (struct thread_stepping_state): Delete.
1237 (gtss, tss): Delete.
1238 (follow_inferior_reset_breakpoints, follow_exec)
1239 (resume, clear_proceed_status): Adjust.
1240 (prev_pc): Delete.
1241 (proceed, start_remote, init_wait_for_inferior): Adjust.
1242 (struct execution_control_state): Add event_thread member.
1243 (delete_step_resume_breakpoint_callback)
1244 (delete_step_thread_step_resume_breakpoint)
1245 (delete_step_thread_step_resume_breakpoint_cleanup)
1246 (delete_step_thread_step_resume_breakpoint): New.
1247 (wait_for_inferior, init_execution_control_state): Use
1248 delete_step_thread_step_resume_breakpoint_cleanup.
1249 (wait_for_inferior): Set the event_thread.
1250 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
1251 with delete_step_thread_step_resume_breakpoint.
1252 (init_thread_stepping_state): Change parameter type to
1253 thread_info. Adjust.
1254 (context_switch): Don't context switch prev_pc,
1255 stepping_over_breakpoint, step_resume_breakpoint,
1256 step_range_start, step_range_end, step_frame_id,
1257 tss->stepping_over_breakpoint,
1258 tss->stepping_through_solib_after_catch,
1259 tss->stepping_through_solib_catchpoints, tss->current_line, or
1260 tss->current_symtab.
1261 (adjust_pc_after_break, handle_inferior_event)
1262 (currently_stepping, step_into_function)
1263 (insert_step_resume_breakpoint_at_sal)
1264 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
1265 (clear_stepping_state): New.
1266 (normal_stop): Adjust.
1267 (save_inferior_status, restore_inferior_status): Adjust.
1268
1269 * gdbthread.h (struct thread_info): Comments describing the
1270 members moved here. Add step_after_step_resume_breakpoint.
1271 (delete_step_resume_breakpoint): Add thread_info argument.
1272 (save_infrun_state, load_infrun_state): Remove prev_pc,
1273 trap_expected, step_resume_breakpoint, step_range_start,
1274 step_range_end, step_frame_id, another_trap,
1275 stepping_through_solib_after_catch,
1276 stepping_through_solib_catchpoints, current_line and
1277 current_symtab function arguments.
1278 (inferior_thread): Declare.
1279
1280 * thread.c (inferior_thread): New.
1281 (delete_step_resume_breakpoint): Add a thread_info parameter and
1282 rewrite.
1283 (load_infrun_state, save_infrun_state): Remove prev_pc,
1284 trap_expected, step_resume_breakpoint, step_range_start,
1285 step_range_end, step_frame_id, stepping_over_breakpoint,
1286 stepping_through_solib_after_catch,
1287 stepping_through_solib_catchpoints, current_line and
1288 current_symtab args. Remove code referencing them.
1289
1290 * infcmd.c (step_range_start, step_range_end, step_frame_id):
1291 Delete.
1292 (step_1, step_once, until_next_command): Adjust.
1293
1294 * inferior.h (step_range_start, step_range_end, step_frame_id):
1295 Delete.
1296
1297 * linux-nat.c (linux_child_follow_fork): If following the child,
1298 move the step state to it. Adjust.
1299 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
1300 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1301
1302 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1303
1304 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
1305 thread.
1306
1307 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1308
1309 * corelow.c (add_to_thread_list): If this is the first time we
1310 hear about thread info, update inferior_ptid.
1311 (core_open): Clear the thread list and set inferior_ptid before
1312 acknowledging a new inferior. Find threads before fetching
1313 register info. Give an upper target layer a chance to find and
1314 claim new threads. Print core generation and stop signal info
1315 after finding new threads.
1316 (get_core_register_section): Look at the lwp member of
1317 inferior_ptid for detecting if we have threads info, instead of
1318 the pid member.
1319 (core_pid_to_str): New.
1320 (init_core_ops): Register core_pid_to_str.
1321
1322 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1323
1324 * spu-linux-nat.c (spu_child_post_startup_inferior)
1325 (spu_child_post_attach): Don't add the main thread here.
1326
1327 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1328
1329 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1330
1331 * gnu-nat.c (inf_validate_procs): If this is the first time we're
1332 seeing a thread id, extend the main thread's ptid. If we still
1333 have pending execs, don't be verbose about new threads.
1334 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
1335 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
1336 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
1337 Adjust.
1338
1339 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1340
1341 * procfs.c (to_attach): Create a procinfo for the current lwp.
1342 Add it to gdb's thread list.
1343 (procfs_fetch_registers, procfs_store_registers): Assume there's
1344 always an lwp.
1345 (procfs_wait): Don't add the main thread here.
1346 (procfs_init_inferior): Create a procinfo for the main lwp here.
1347 Change main thread's ptid with thread_change_ptid.
1348 (procfs_notice_thread): Check for exited threads.
1349 (procfs_corefile_thread_callback): Remove check for the main
1350 process.
1351 (procfs_make_note_section): Assume there is always a thread.
1352
1353 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
1354 attaching. Change the main thread ptid with thread_change_ptid.
1355 (sol_thread_detach): Clear sol_thread_active.
1356 (sol_thread_wait): Check for exited threads.
1357 (sol_thread_create_inferior): Clear sol_thread_active before
1358 creating a new inferior. Change the main thread ptid with
1359 thread_change_ptid.
1360 (sol_thread_mourn_inferior): Clear sol_thread_active.
1361 (sol_find_new_threads_callback): Check for exited threads.
1362
1363 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1364
1365 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
1366 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
1367 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
1368 process, and return TARGET_WAITKIND_IGNORE.
1369
1370 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1371
1372 * inf-ttrace.c: Include <signal.h>
1373 (inf_ttrace_delete_dead_threads_callback): New.
1374 (inf_ttrace_resume_lwp): New.
1375 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
1376 delete dying threads until they are really dead.
1377 (inf_ttrace_wait): After stopping the whole process, delete any
1378 dying thread that is really dead by now.
1379 (inf_ttrace_thread_alive): Return 1.
1380 (inf_ttrace_extra_thread_info): New.
1381 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
1382
1383 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1384
1385 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
1386 of the child fork.
1387 (inf_ttrace_attach): Add the main thread.
1388 (inf_ttrace_resume_callback): Check for exited threads. Adjust
1389 for always a thread.
1390 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
1391 using thread_change_ptid, and set its private data. Don't add the
1392 main thread here.
1393 (inf_ttrace_pid_to_str): Adjust.
1394
1395 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1396
1397 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
1398 thread_change_ptid. Check for exited threads.
1399 (bsd_uthread_find_new_threads): Check for exited threads.
1400
1401 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1402
1403 * inf-ptrace.c: Include "gdbthread.h".
1404 (inf_ptrace_attach): Add the main thread here.
1405 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
1406 Decorate the main thread id with the lwp id.
1407
1408 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1409
1410 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
1411 thread_change_ptid. Don't add or mark the main thread as running
1412 and executing here.
1413 * fork-child.c (fork_inferior): Add the main thread here.
1414
1415 2008-09-08 Jerome Guitton <guitton@adacore.com>
1416
1417 * rs6000-tdep.c (rs6000_fetch_instruction)
1418 (rs6000_skip_stack_check): New functions.
1419 (skip_prologue): Skip stack check sequence.
1420
1421 2008-09-08 David Daney <ddaney@avtrex.com>
1422
1423 * dummy-frame.h (frame.h): Include it.
1424 (struct frame_id): Remove declaration.
1425
1426 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1427
1428 * spu-tdep.c (spu_push_dummy_code): New function.
1429 (spu_gdbarch_init): Install it.
1430
1431 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1432
1433 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
1434 instead of paddr_nz.
1435 * gdbarch.c: Regenerate.
1436
1437 * target.c (target_xfer_partial, debug_print_register): Use
1438 core_addr_to_string_nz instead of paddr_nz.
1439
1440 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1441
1442 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
1443 *before* calling gdbarch_init_osabi.
1444 (rs6000_aix_init_osabi): Disable displaced stepping.
1445
1446 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1447
1448 * target.c (update_current_target): Do not inherit to_open
1449 or to_close.
1450 (pop_target): Call target_close on target_stack instead
1451 of current_target.
1452 (pop_all_targets_above): Likewise.
1453
1454 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1455
1456 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
1457 (gnuv3_print_method_ptr): Use it.
1458 (gnuv3_method_ptr_to_value): Likewise.
1459
1460 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1461
1462 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
1463 register_area callback function.
1464 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
1465 Use it instead of current_gdbarch.
1466 * nto-procfs.c (procfs_store_registers): Update call.
1467
1468 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1469
1470 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
1471 regcache architecture instead of current_gdbarch.
1472
1473 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1474
1475 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
1476 (check_for_saved): Use it instead of current_gdbarch.
1477 (is_arg_spill): Add gdbarch paramter. Use it instead
1478 of current_gdbarch.
1479 (mep_analyze_prologue): Add gdbarch parameter. Pass it
1480 to is_arg_spill and check_for_saved.
1481 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
1482
1483 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1484
1485 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
1486 instead of current_gdbarch.
1487
1488 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1489
1490 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
1491 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
1492 Use it instead of current_gdbarch.
1493 (m68kbsd_supply_fpregset): Update call.
1494 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1495 (m68kbsd_collect_fpregset): Likewise.
1496
1497 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1498
1499 * cris-tdep.c (cris_version, cris_mode): Remove.
1500 (crisv32_single_step_through_delay): Use tdep->cris_mode.
1501 (cris_breakpoint_from_pc): Likewise.
1502 (cris_frame_unwind_cache): Use tdep->cris_version.
1503 (crisv32_scan_prologue): Likewise.
1504 (cris_spec_reg_applicable): Add gdbarch argument.
1505 Use tdep->cris_version.
1506 (cris_register_size, cris_special_register_name): Update calls.
1507 (cris_special_register_name): Add gdbarch argument.
1508 (cris_register_name, crisv32_register_name): Update calls.
1509
1510 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1511
1512 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
1513 instead of current_gdbarch.
1514
1515 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
1516 (sh64_gdbarch_init): Install print_insn_sh64 directly.
1517 * sh-tdep.c (gdb_print_insn_sh): Remove.
1518 (sh_gdbarch_init): Install print_insn_sh directly.
1519
1520 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
1521 from current_gdbarch.
1522 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
1523 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
1524 depending on mips_abi.
1525
1526 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1527
1528 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
1529 (smash_text_address): Likewise.
1530 * gdbarch.c, gdbarch.h: Regenerate.
1531
1532 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
1533 * arch-utils.h (core_addr_identity): Likewise.
1534 * arm-tdep.c (arm_addr_bits_remove): Likewise.
1535 (arm_smash_text_address): Likewise.
1536 * hppa-tdep.c (hppa_smash_text_address): Likewise.
1537 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
1538 * s390-tdep.c (s390_addr_bits_remove): Likewise.
1539
1540 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
1541 Use it instead of current_gdbarch.
1542
1543 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
1544 arm_dwarf2_prev_register): Update calls.
1545 * m88k-tdep.c (m88k_unwind_pc): Update call.
1546
1547 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1548
1549 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
1550 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
1551 Call gdbarch_integer_to_address directly instead of converting
1552 to value and back. Update comment.
1553 (execute_stack_op): Update call site.
1554 * dwarf2loc.c (find_location_expression): Likewise.
1555 (locexpr_describe_location): Update
1556
1557 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
1558 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
1559 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
1560 (dwarf2_loc_desc_needs_frame): Likewise.
1561
1562 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1563
1564 * breakpoint.h (struct bp_location): Change type of section
1565 member to "struct obj_section *".
1566 * tracepoint.h (struct tracepoint): Likewise.
1567 * symtab.h (struct general_symbol_info): Replace bfd_section
1568 member with obj_section.
1569 (struct symtab_and_line): Change type of section member to
1570 "struct obj_section *".
1571 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
1572 (SYMBOL_OBJ_SECTION): ... this.
1573
1574 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
1575 section as obj_section instead of bfd_section.
1576
1577 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
1578 directly instead of looking of obj_section from bfd_section.
1579
1580 * objfiles.h (find_pc_sect_section): Remove.
1581 * objfiles.c (find_pc_sect_section): Remove.
1582 (find_pc_section): Inline find_pc_sect_section code.
1583
1584 * symfile.h (find_pc_overlay): Return struct obj_section *.
1585 (find_pc_mapped_section): Likewise.
1586 (section_is_overlay, section_is_mapped): Change type of section
1587 argument to struct obj_section *.
1588 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
1589 (overlay_mapped_address, overlay_unmapped_address): Likewise.
1590 (symbol_overlayed_address): Likewise.
1591 * symtab.h (symbol_overlayed_address): Likewise.
1592 * symfile.c (overlay_is_mapped): Remove.
1593 (section_is_mapped): Inline overlay_is_mapped code. Update.
1594 (overlay_invalidate_all): Update.
1595 (section_is_overlay): Change section argument to type
1596 "struct obj_section *". Use bfd_ methods.
1597 (pc_in_unmapped_range): Likewise. Handle relocated sections.
1598 (pc_in_mapped_range): Likewise. Handle relocated sections.
1599 (sections_overlap): Likewise.
1600 (overlay_unmapped_address): Likewise.
1601 (overlay_mapped_address): Likewise.
1602 (symbol_overlayed_address): Likewise.
1603 (find_pc_overlay): Return struct obj_section *.
1604 (find_pc_mapped_section): Likewise.
1605 (list_overlays_command): Update.
1606 (map_overlay_command, unmap_overlay_command): Update.
1607 (simple_overlay_update): Update.
1608
1609 * block.h (blockvector_for_pc_sect): Change section argument
1610 to type "struct obj_section *".
1611 (block_for_pc_sect): Likewise.
1612 * block.c (blockvector_for_pc_sect): Change section argument
1613 to type "struct obj_section *".
1614 (block_for_pc_sect): Likewise.
1615 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
1616 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
1617 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
1618 (matching_bfd_sections): Rename to ...
1619 (matching_obj_sections): ... this. Update argument types.
1620 * blockframe.c (find_pc_sect_function): Likewise.
1621 * breakpoint.c (describe_other_breakpoints): Likewise.
1622 (breakpoint_has_pc, check_duplicates_for): Likewise.
1623 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
1624 (lookup_minimal_symbol_by_pc_section): Likewise.
1625 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
1626 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
1627 find_pc_sect_line, find_function_start_pc): Likewise.
1628 (matching_bfd_sections): Rename to ...
1629 (matching_obj_sections): ... this. Update argument types.
1630
1631 * blockframe.c (find_pc_partial_function): Update to section
1632 type changes. No longer call find_pc_sect_section.
1633 (cache_pc_function_section): Change to type "struct obj_section *".
1634 * breakpoint.c (resolve_sal_pc): Update to section type changes.
1635 * exec.c (xfer_memory): Likewise.
1636 * findvar.c (read_var_value): Likewise.
1637 * infcmd.c (jump_command): Likewise.
1638 * linespec.c (minsym_found): Likewise.
1639 * maint.c (maintenance_translate_address): Likewise.
1640 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
1641 (lookup_solib_trampoline_symbol_by_pc): Likewise.
1642 * parse.c (write_exp_msymbol): Likewise.
1643 * printcmd.c (build_address_symbolic): Likewise.
1644 (address_info, sym_info): Likewise.
1645 * symmisc.c (dump_msymbols, print_symbol): Likewise.
1646 * symtab.c (fixup_section): Likewise.
1647 (fixup_symbol_section, fixup_psymbol_section): Likewise.
1648 (find_pc_line, find_function_start_sal): Likewise.
1649 * target.c (memory_xfer_partial): Likewise.
1650 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
1651 * spu-tdep.c (spu_overlay_update): Likewise.
1652
1653 2008-09-04 Doug Evans <dje@google.com>
1654
1655 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
1656 Change argument of pulongest from CORE_ADDR to ULONGEST.
1657 All callers updated.
1658 * utils.c (plongest): Renamed from paddr_d.
1659 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
1660 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
1661 `CORE_ADDR addr' arg of error message.
1662
1663 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
1664
1665 * ser-tcp.c (ser_tcp_send_break): New function.
1666 (_initialize_ser_tcp): Use ser_tcp_send_break.
1667 * ser-tcp.h (ser_tcp_send_break): New prototype.
1668
1669 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1670
1671 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
1672 when allocating stack frame for inferior call.
1673
1674 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1675
1676 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
1677 SP or return address if we failed to find a valid frame.
1678
1679 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
1680
1681 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
1682 non-permanent breakpoints.
1683 (bpstat_stop_status): Change enable_state to bp_disabled only for
1684 non-permanent breakpoints.
1685 (bp_loc_is_permanent): New function.
1686 (create_breakpoint): Check if the location points to a permanent
1687 breakpoint and if it does, make breakpoint permanent.
1688 (update_breakpoint_locations): Make sure new locations of permanent
1689 breakpoints are properly initialized.
1690 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
1691 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
1692
1693 2008-09-02 Pedro Alves <pedro@codesourcery.com>
1694
1695 * breakpoint.c (insert_breakpoints, update_global_location_list):
1696 Check breakpoints_always_inserted_mode instead of
1697 always_inserted_mode directly.
1698
1699 2008-09-02 Andreas Schwab <schwab@suse.de>
1700
1701 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
1702
1703 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1704
1705 Stay compatible after the GCC PR fortran/29635 fix.
1706 * dwarf2read.c (process_die <DW_TAG_imported_module>)
1707 (process_die <DW_TAG_imported_module>): Do not assert anything about
1708 these unsupported tags.
1709
1710 2008-08-29 Tom Tromey <tromey@redhat.com>
1711
1712 * maint.c (_initialize_maint_cmds): Fix typo.
1713
1714 2008-08-29 Tom Tromey <tromey@redhat.com>
1715
1716 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
1717 obstack.
1718
1719 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1720
1721 * remote.c: Include "gdb_stat.h".
1722
1723 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1724
1725 * dummy-frame.h (dummy_frame_pop): Add prototype.
1726 * dummy-frame.c: Include "observer.h".
1727 (dummy_frame_push): Do not check for stale frames.
1728 (dummy_frame_pop): New function.
1729 (cleanup_dummy_frames): New function.
1730 (_initialize_dummy_frame): Install it as inferior_created observer.
1731
1732 * frame.h (struct frame_id): Update comments.
1733 (frame_id_inner): Remove prototype.
1734 * frame.c (frame_id_inner): Make static. Add comments.
1735 (frame_find_by_id): Update frame_id_inner safety net check to avoid
1736 false positives for targets using non-contiguous stack ranges.
1737 (get_prev_frame_1): Update frame_id_inner safety net check.
1738 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
1739
1740 * stack.c (return_command): Directly pop the selected frame.
1741 * infrun.c (handle_inferior_event): Remove dead code.
1742 * i386-tdep.c (i386_push_dummy_call): Update comment.
1743
1744 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1745
1746 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
1747 breakpoint from shared library.
1748
1749 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1750
1751 * solib-svr4.c (read_program_header): New function.
1752 (scan_dyntag_auxv): New function.
1753 (elf_locate_base): Use it if scan_dyntag fails.
1754 (find_program_interpreter): New function.
1755 (enable_break): Use it instead of .interp section.
1756
1757 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1758
1759 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
1760 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
1761 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
1762 remote_bfd_open): New functions.
1763 (remote_hostio_send_command): Fail safely if remote connection
1764 is not set up.
1765
1766 * solist.h (solib_open): Remove prototype.
1767 (solib_bfd_open): Add prototype.
1768 * solib.c: Include "remote.h".
1769 (solib_open): Remove, replace by ...
1770 (solib_bfd_open): ... this new function. Handle remote BFDs.
1771 (solib_map_sections): Replace solib_open by solib_bfd_open.
1772 * solib-frv.c: Include "exceptions.h".
1773 (enable_break2): Replace solib_open by solib_bfd_open.
1774 * solib-svr4.c: Include "exceptions.h".
1775 (enable_break): Replace solib_open by solib_bfd_open.
1776
1777 * symfile.c: Include "remote.h".
1778 (build_id_verify): Handle remote BFDs.
1779 (separate_debug_file_exists): Use BFD to access file. Handle
1780 remote BFDs.
1781 (symfile_bfd_open): Handle remote BFDs.
1782 (reread_symbols): Handle remote BFDs.
1783
1784 * NEWS: Mention "remote:" argument prefix to "set sysroot".
1785
1786 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1787
1788 * gdbarch.sh (target_gdbarch): New global variable.
1789 (deprecated_current_gdbarch_select_hack): Set it.
1790 * gdbarch.c, gdbarch.h: Regenerate.
1791
1792 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
1793 of current_gdbarch.
1794 * target-descriptions.c (target_find_description): Likewise.
1795 * arm-tdep.c (arm_update_current_architecture): Likewise.
1796 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
1797 arm_show_force_mode): Likewise.
1798 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
1799 show_mips_abi): Likewise.
1800 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
1801
1802 * target.c (target_translate_tls_address): Use target_gdbarch
1803 instead of current_gdbarch.
1804 * remote.c (struct packet_reg): Likewise.
1805 (get_remote_arch_state, packet_reg_from_regnum,
1806 packet_reg_from_pnum, remote_check_symbols, remote_wait,
1807 remote_address_masked, remote_insert_breakpoint,
1808 remote_insert_hw_breakpoint, remote_read_description): Likewise.
1809 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1810 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
1811 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
1812
1813 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
1814 solib_add, info_sharedlibrary_command, solib_address,
1815 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
1816 solib_global_lookup): Likewise.
1817 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
1818 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
1819 Likewise.
1820 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
1821 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
1822 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
1823 Likewise.
1824 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
1825 nto_truncate_ptr): Likewise.
1826 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
1827
1828 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
1829
1830 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
1831 (ppc_linux_vmx_regset_sections): New structure.
1832 (ppc_linux_fp_regset_sections): New structure.
1833 (ppc_linux_init_abi): Select core-file regset based on target
1834 features.
1835
1836 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1837
1838 * target.c (debug_print_register): Use regcache_raw_collect
1839 instead of regcache_cooked_read. Only handle raw registers.
1840
1841 2008-08-25 Pedro Alves <pedro@codesourcery.com>
1842
1843 * cp-name-parser.y: Include config.h before system headers.
1844
1845 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
1846
1847 * m88k-tdep.c: Update for unwinder changes.
1848
1849 2008-08-24 Tom Tromey <tromey@redhat.com>
1850
1851 * s390-tdep.c (s390_address_class_type_flags): Use
1852 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
1853 (s390_address_class_type_flags_to_name): Likewise.
1854 (s390_address_class_name_to_type_flags): Likewise.
1855
1856 2008-08-24 Tom Tromey <tromey@redhat.com>
1857
1858 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
1859 TYPE_FLAGS.
1860 * features/rs6000/powerpc-vsx32l.c
1861 (initialize_tdesc_powerpc_vsx32l): Update.
1862 * features/rs6000/powerpc-vsx32.c
1863 (initialize_tdesc_powerpc_vsx32): Update.
1864 * features/rs6000/powerpc-vsx64.c
1865 (initialize_tdesc_powerpc_vsx64): Update.
1866 * features/rs6000/powerpc-vsx64l.c
1867 (initialize_tdesc_powerpc_vsx64l): Update.
1868 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
1869 TYPE_VECTOR, not TYPE_FLAGS.
1870
1871 2008-08-24 Tom Tromey <tromey@redhat.com>
1872
1873 * xml-tdesc.c (tdesc_end_union): Update.
1874 * stabsread.c (define_symbol): Update.
1875 (read_type): Update.
1876 (read_struct_type): Update.
1877 (read_enum_type): Update.
1878 * spu-tdep.c (spu_builtin_type_vec128): Update.
1879 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
1880 (sh_push_dummy_call_nofpu): Update.
1881 * mdebugread.c (parse_symbol): Update.
1882 (parse_symbol): Update.
1883 (parse_symbol): Update.
1884 (upgrade_type): Update.
1885 * jv-lang.c (java_lookup_class): Update.
1886 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
1887 * i386-tdep.c (i386_mmx_type): Update.
1888 (i386_sse_type): Update.
1889 * gdbtypes.h (enum type_flag_value): New enum.
1890 (enum type_instance_flag_value): New enum.
1891 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
1892 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
1893 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
1894 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
1895 TYPE_FLAG_NOTTEXT): Now enum constants.
1896 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
1897 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
1898 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
1899 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
1900 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
1901 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
1902 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
1903 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
1904 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
1905 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
1906 TYPE_NOTTEXT): Update.
1907 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
1908 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
1909 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
1910 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
1911 TYPE_ADDRESS_CLASS_ALL): Update.
1912 (struct main_type) <flags>: Remove.
1913 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
1914 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
1915 flag_vector, flag_stub_supported, flag_nottext,
1916 flag_fixed_instance>: New fields.
1917 <nfields, vptr_fieldno>: Move earlier.
1918 (TYPE_FLAGS): Remove.
1919 * gdbtypes.c (make_pointer_type): Update.
1920 (address_space_name_to_int): Update.
1921 (address_space_int_to_name): Update.
1922 (make_type_with_address_space): Update.
1923 (make_cv_type): Update.
1924 (create_range_type): Update.
1925 (get_discrete_bounds): Update.
1926 (create_set_type): Update.
1927 (make_vector_type): Update.
1928 (smash_to_method_type): Update.
1929 (check_typedef): Update.
1930 (check_stub_method): Update.
1931 (init_type): Individually assign flag fields.
1932 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
1933 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
1934 (copy_type_recursive): Copy the entire main type. Don't use
1935 TYPE_FLAGS.
1936 * features/rs6000/powerpc-altivec64l.c
1937 (initialize_tdesc_powerpc_altivec64l): Update.
1938 * features/rs6000/powerpc-altivec64.c
1939 (initialize_tdesc_powerpc_altivec64): Update.
1940 * features/rs6000/powerpc-altivec32l.c
1941 (initialize_tdesc_powerpc_altivec32l): Update.
1942 * features/rs6000/powerpc-altivec32.c
1943 (initialize_tdesc_powerpc_altivec32): Update.
1944 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
1945 Update.
1946 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
1947 Update.
1948 * dwarf2read.c (read_structure_type): Update.
1949 (read_enumeration_type): Likewise.
1950 (process_enumeration_scope): Likewise.
1951 (read_tag_pointer_type): Likewise.
1952 (read_subroutine_type): Likewise.
1953 (read_subroutine_type): Likewise.
1954 (read_base_type): Likewise.
1955 * coffread.c (coff_read_enum_type): Update.
1956 * ada-valprint.c (adjust_type_signedness): Update.
1957 * ada-typeprint.c (print_record_field_types): Update.
1958 * ada-lang.c (packed_array_type): Update.
1959 (empty_record): Don't reset TYPE_FLAGS.
1960 (ada_template_to_fixed_record_type_1): Update.
1961 (ada_template_to_fixed_record_type_1): Likewise.
1962 (template_to_static_fixed_type): Likewise.
1963 (to_record_with_fixed_variant_part): Likewise.
1964 (to_fixed_record_type): Likewise.
1965 (to_fixed_array_type): Likewise.
1966 (to_static_fixed_type): Likewise.
1967
1968 2008-08-23 Jim Blandy <jimb@redhat.com>
1969
1970 PR macros/607:
1971 * symmisc.c (print_symbol_bcache_statistics): Include statistics
1972 for the macro bcache.
1973
1974 2008-08-23 Tom Tromey <tromey@redhat.com>
1975
1976 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
1977 (argc): Now 31 bits.
1978
1979 2008-08-22 Tom Tromey <tromey@redhat.com>
1980
1981 * NEWS: Move macro entries back under "New commands".
1982
1983 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1984
1985 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
1986 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
1987 (create_overlay_event_breakpoint): Loop over all objfiles to install
1988 multiple instances of the overlay event breakpoint if present.
1989
1990 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1991
1992 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
1993 (info_spu_event_command): Command only supported on SPU architecture.
1994 (info_spu_signal_command): Likewise.
1995 (info_spu_mailbox_command): Likewise.
1996 (info_spu_dma_command): Likewise.
1997 (info_spu_proxydma_command): Likewise.
1998
1999 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2000
2001 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
2002 if the thread has already exited.
2003
2004 2008-08-22 Pedro Alves <pedro@codesourcery.com>
2005
2006 * infrun.c (proceed): Move back setting previous_inferior_ptid
2007 from here ...
2008 (wait_for_inferior): ... to here.
2009 (fetch_inferior_event): ... and here.
2010
2011 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2012
2013 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
2014 (deprecated_current_gdbarch_select_hack): Call registers_changed
2015 instead of reinit_frame_cache.
2016 * gdbarch.c: Regenerate.
2017
2018 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2019
2020 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
2021
2022 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2023
2024 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
2025
2026 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2027
2028 * findvar.c (locate_var_value): Do not call get_frame_arch
2029 with a NULL frame argument.
2030
2031 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2032
2033 * frame.h (frame_map_regnum_to_name): Remove prototype.
2034 (frame_map_name_to_regnum): Remove prototype.
2035 * frame.c (frame_map_regnum_to_name): Remove.
2036 (frame_map_name_to_regnum): Remove.
2037 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
2038 instead of frame_map_regnum_to_name.
2039 * ax-gdb.c: Include "user-regs.h".
2040 (gen_expr): Use user_reg_map_name_to_regnum instead of
2041 frame_map_name_to_regnum.
2042 * eval.c: Include "user-regs.h".
2043 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
2044 instead of frame_map_name_to_regnum.
2045 * infcmd.c (registers_info): Likewise.
2046 * parse.c: Include "user-regs.h".
2047 (write_dollar_variable): Use user_reg_map_name_to_regnum
2048 instead of frame_map_name_to_regnum.
2049 * tracepoint.c: Include "user-regs.h".
2050 (encode_actions): Use user_reg_map_name_to_regnum
2051 instead of frame_map_name_to_regnum.
2052 * valops.c: Include "user-regs.h".
2053 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
2054 of frame_map_regnum_to_name.
2055
2056 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2057
2058 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
2059 and manually relocate .opd contents from BFD instead of reading
2060 them from target memory.
2061
2062 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2063
2064 * dwarf2read.c (processing_current_prefix): Delete static
2065 variable.
2066 (process_full_comp_unit): Do not set processing_current_prefix.
2067 (dwarf2_full_name): New function.
2068 (read_func_scope): Do not set processing_current_prefix. Use
2069 determine_prefix.
2070 (read_structure_type): Do not set processing_current_prefix. Remove
2071 unused inner cleanup.
2072 (process_structure_scope): Do not set processing_current_prefix.
2073 (read_enumeration_type): Use dwarf2_full_name.
2074 (determine_class_name): Return a const char *. Put the result
2075 on the objfile obstack. Use dwarf2_full_name.
2076 (read_namespace_type): New function.
2077 (read_namespace): Do not create the type here. Use
2078 determine_prefix.
2079 (read_typedef): Use dwarf2_full_name. Do not pass the name
2080 to init_type.
2081 (read_base_type): Do not pass the name to init_type. Handle
2082 TYPE_FLAG_NOSIGN.
2083 (read_unspecified_type): Do not pass the name to init_type.
2084 (new_symbol): Use dwarf2_full_name instead of
2085 processing_current_prefix.
2086 (read_type_die): Do not set processing_current_prefix. Handle
2087 DW_TAG_namespace.
2088 (determine_prefix): Handle specifications. Return the result
2089 on the objfile obstack. Handle unions correctly.
2090
2091 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2092
2093 * buildsym.c (add_symbol_to_list): Do not call
2094 cp_scan_for_anonymous_namespaces here.
2095 (finish_block): Do not call cp_set_block_scope here.
2096 * cp-namespace.c (processing_has_namespace_info)
2097 (processing_current_prefix): Delete.
2098 (cp_initialize_namespace): Do not initialize
2099 processing_has_namespace_info.
2100 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
2101 not check processing_has_namespace_info.
2102 (cp_set_block_scope): Take prefix and namespace info flag as
2103 arguments. Honor namespaces regardless of a demangled name.
2104 * cp-support.h (processing_has_namespace_info)
2105 (processing_current_prefix): Delete declarations.
2106 (cp_set_block_scope): Update prototype.
2107 * dwarf2read.c (processing_has_namespace_info)
2108 (processing_current_prefix): New static variables.
2109 (read_file_scope): Initialize processing_has_namespace_info.
2110 (read_func_scope): Call cp_set_block_scope for C++.
2111 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
2112 * symtab.c (symbol_demangled_name): Accept a const argument.
2113 * symtab.h (symbol_demangled_name): Update prototype.
2114
2115 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2116
2117 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
2118 * blockframe.c (find_pc_partial_function): Likewise.
2119 * buildsym.c (find_symbol_in_list): Likewise.
2120 * c-valprint.c (c_val_print): Likewise.
2121 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
2122 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
2123 * cp-support.c (cp_remove_params): Renamed from remove_params and
2124 made global.
2125 (overload_list_add_symbol): Update call to remove_params.
2126 * cp-support.h (cp_remove_params): Declare.
2127 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
2128 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
2129 * expprint.c (dump_subexp_body_standard): Likewise.
2130 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
2131 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
2132 for messages.
2133 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
2134 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
2135 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2136 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
2137 symbols and SYMBOL_PRINT_NAME for messages.
2138 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2139 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
2140 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
2141 SYMBOL_SET_LINKAGE_NAME.
2142 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
2143 * minsyms.c (add_minsym_to_demangled_hash_table): Use
2144 SYMBOL_SEARCH_NAME.
2145 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
2146 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
2147 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
2148 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
2149 (address_info): Use SYMBOL_PRINT_NAME for messages and
2150 SYMBOL_LINKAGE_NAME for lookups.
2151 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
2152 * stabsread.c (patch_block_stabs, define_symbol)
2153 (read_type, read_enum_type, common_block_end)
2154 (cleanup_undefined_types_1, scan_file_globals): Use
2155 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
2156 and SYMBOL_PRINT_NAME.
2157 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
2158 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
2159 cp_remove_params instead of cplus_demangle.
2160 (print_block_frame_labels, print_frame_arg_vars): Use
2161 SYMBOL_LINKAGE_NAME.
2162 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
2163 SYMBOL_LINKAGE_NAME.
2164 (dump_symtab_1, print_symbol, print_partial_symbols)
2165 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
2166 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
2167 (SYMBOL_SET_LINKAGE_NAME): New.
2168 (SYMBOL_SET_NAMES): Add a comment.
2169 * tracepoint.c (set_traceframe_context, validate_actionline)
2170 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
2171 lookups and SYMBOL_PRINT_NAME for output.
2172 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
2173 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2174
2175 2008-08-21 Pedro Alves <pedro@codesourcery.com>
2176
2177 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
2178 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
2179 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
2180 obj_section_addr and obj_section_endaddr.
2181 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
2182 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2183 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
2184 (find_extant_func_descr): Likewise.
2185 * solib-frv.c (frv_relocate_main_executable): Use
2186 obj_section_addr.
2187 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
2188 obj_section_addr and obj_section_endaddr.
2189
2190 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
2191
2192 * NEWS: Amplify last entry on boolean types in Ada.
2193
2194 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2195
2196 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
2197 Make the dwarf2_cu * parameter output as well as input. Update it if
2198 we follow a reference to another CU.
2199 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
2200 (die_type, die_containing_type): Update calls to changed functions.
2201 Use the returned CU along with the returned DIE.
2202 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
2203
2204 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2205
2206 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
2207 in the DIEs here.
2208 (process_queue): Do not read in the DIEs here.
2209 (psymtab_to_symtab_1): Update call to queue_comp_unit.
2210 (read_full_die): Do not call queue_comp_unit from here.
2211 (maybe_queue_comp_unit): New function.
2212 (follow_die_ref): Use it.
2213
2214 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2215
2216 * dwarf2read.c (struct attribute): Move earlier.
2217 (struct die_info): Change attrs to a trailing array.
2218 (dwarf_alloc_die): Take the number of attributes. Allocate space
2219 for them.
2220 (read_full_die): Update call to dwarf_alloc_die. Do not manually
2221 allocate attributes.
2222
2223 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2224
2225 * dwarf2read.c (REF_HASH_SIZE): Delete.
2226 (struct dwarf2_cu): Replace die_ref_table with die_hash.
2227 (struct die_info): Remove next_ref.
2228 (store_in_ref_table): Remove offset argument. Rewrite to use
2229 htab_find_slot_with_hash.
2230 (die_hash, die_eq): New.
2231 (read_comp_unit): Allocate the die_hash.
2232 (read_die_and_children): Update call to store_die_ref.
2233 (follow_die_ref): Rewrite to use htab_find_with_hash.
2234
2235 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2236
2237 * dwarf2read.c (free_die_list, copy_die): Delete.
2238 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
2239 on the obstack.
2240 (read_full_die): Update call to dwarf_alloc_die. Allocate
2241 attributes on the CU obstack.
2242 (free_one_comp_unit): Do not call free_die_list.
2243
2244 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2245
2246 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
2247 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
2248 sibling list.
2249 (read_full_die): Do not allocate DIEs for abbrev 0.
2250 (follow_die_ref): Correct error message.
2251
2252 2008-08-20 Pedro Alves <pedro@codesourcery.com>
2253
2254 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
2255 there are no symbols loaded, instead of throwing a generic error.
2256 (decode_variable): Likewise.
2257
2258 2008-08-20 Pedro Alves <pedro@codesourcery.com>
2259
2260 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
2261 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
2262 macros.
2263 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
2264 and offset. Use size_t instead of unsigned long.
2265 (build_objfile_section_table): Use size_t instead of unsigned
2266 long.
2267 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
2268 gone.
2269 (find_pc_sect_section): Use obj_section_addr and
2270 obj_section_endaddr.
2271 * symfile.c (symfile.c): Remove code that maps sections
2272 offsets in "addr" to the object's sections.
2273 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
2274 * gcore.c (gcore_create_callback): Use obj_section_addr and
2275 obj_section_endaddr.
2276 * maint.c (print_objfile_section_info): Likewise.
2277 * printcmd.c (sym_info): Use obj_section_addr and
2278 obj_section_endaddr.
2279 * symtab.c (fixup_section): Likewise.
2280
2281 2008-08-20 Mark Kettenis <kettenis@gnu.org>
2282
2283 * sparc-tdep.c: Make some comments catch up with reality.
2284
2285 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
2286
2287 * NEWS: Mention 'set target-async'
2288
2289 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
2290
2291 * infrun.c (resume): If the thread is placed to the deferred step
2292 queue, mark it as running.
2293
2294 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
2295
2296 Make sure target supports non-stop.
2297 * infcmd.c (run_command_1, attach_command): If non-stop mode
2298 is requested, verify the target supports it.
2299 * linux-nat.c (linux_nat_supports_non_stop): New.
2300 (linux_nat_add_target): Register the above.
2301 * target.c (find_default_supports_non_stop)
2302 (target_supports_non_stop): New.
2303 (init_dummy_target): Register find_default_supports_non_stop.
2304 * target.h (struct target_ops): New field to_supports_non_stop.
2305 (target_supports_non_stop): New.
2306
2307 2008-08-19 Pedro Alves <pedro@codesourcery.com>
2308 Vladimir Prus <vladimir@codesourcery.com>
2309
2310 * target.c (target_async_permitted, target_async_permitted_1)
2311 (set_maintenance_target_async_permitted)
2312 (show_maintenance_target_async_permitted): New.
2313 (initialize_targets): Register 'set target-async'.
2314 * target.h (target_async_permitted): Declare.
2315 * linux-nat.c (linux_nat_async_enabled)
2316 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
2317 (show_maintenance_linux_async_permitted): Remove.
2318 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
2319 (get_pending_events, linux_nat_async): Use target_async_permitted.
2320 (linux_nat_set_async_mode): Remove, moving the only used bits
2321 into...
2322 (linux_nat_setup_async): This.
2323 (_initialize_linux_nat): Do not register 'maint set linux-async'.
2324 Use linux_nat_setup_async.
2325 * remote.c (remote_async_permitted, remote_async_permitted_set)
2326 (set_maintenance_remote_async_permitted)
2327 (show_maintenance_remote_async_permitted): Remove.
2328 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
2329 (remote_is_async_p): Use target_async_permitted.
2330 (_initialize_remote): Don't register 'main set remote-async'.
2331 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
2332 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
2333 * mi/mi-main.c (mi_cmd_list_target_features): New.
2334
2335 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
2336
2337 * target.c (maybe_kill_then_attach)
2338 (maybe_kill_then_create_inferior): Remove.
2339 (update_current_target): Do not default to_attach,
2340 to_create_inferiour, to_is_async_p.
2341
2342 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
2343
2344 Changes for supporting boolean types in debugging data.
2345 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
2346 API to return LONGEST values rather than struct values.
2347 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
2348 and discrete_type_high_bound.
2349 (to_fixed_range_type): Create a range type in cases where
2350 argument is base type and its limits are representable as ints.
2351 (ada_is_modular_type): Correct so that base type must be integral.
2352 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
2353 keywords when they appear alone, since we are phasing out
2354 direct representation of these identifiers in debugging data.
2355 * ada-exp.y: Define 'true' and 'false' as primaries.
2356 (type_boolean): New function.
2357 (type_int,type_long,type_long_long,type_floattype_double)
2358 (type_long_double): Remove uses of current_gdbarch for consistency
2359 with type_boolean.
2360 (write_int): Change comment to indicate that it might write boolean
2361 constant as well.
2362 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
2363 type, since will no longer be represented as enumerated type in
2364 debugging data.
2365 * ada-valprint.c (print_optional_low_bound): Handle boolean case
2366 as well.
2367 * NEWS: Note support boolean types.
2368
2369 2008-08-18 Pedro Alves <pedro@codesourcery.com>
2370
2371 * bsd-uthread.c (bsd_uthread_close): New.
2372 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
2373 target.
2374 (bsd_uthread_solib_loaded): Fix typo.
2375 (bsd_uthread_target): Register bsd_uthread_close.
2376
2377 2008-08-18 Pedro Alves <pedro@codesourcery.com>
2378
2379 * corelow.c (core_open): Assume there was no upper layer left
2380 behind from a previous inferior.
2381 * target.c (pop_all_targets): Rename to ...
2382 (pop_all_targets_above): ... this. Add a target stratum
2383 parameter. Use it instead of hardcoding the dummy_stratum.
2384 (pop_all_targets): New, defer to pop_all_targets_above.
2385 (target_preopen): Use pop_all_targets_above.
2386 * target.h (pop_all_targets_above): Declare.
2387
2388 2008-08-18 Pedro Alves <pedro@codesourcery.com>
2389
2390 * gdbthread.h (thread_change_ptid): Declare.
2391 * infrun.c (infrun_thread_ptid_changed): New.
2392 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
2393 thread_ptid_changed observer.
2394 * regcache.c (regcache_thread_ptid_changed): New.
2395 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
2396 thread_ptid_changed observer.
2397 * thread.c (thread_change_ptid): New.
2398
2399 2008-08-18 Tom Tromey <tromey@redhat.com>
2400
2401 * symfile.c (reread_symbols): Update.
2402 * solib-sunos.c (allocate_rt_common_objfile): Update.
2403 * objfiles.c (allocate_objfile): Update.
2404 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
2405 Remove.
2406
2407 2008-08-18 Tom Tromey <tromey@redhat.com>
2408
2409 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
2410 obstack.
2411
2412 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
2413
2414 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
2415 lr_register.
2416 (rs6000_in_function_epilogue_p): Check for bctr.
2417 (skip_prologue): Initialize lr_register. Set lr_reg to a register
2418 number. Set gpr_mask and used_bl. Continue scanning while some
2419 expected registers are not saved. Set lr_register if LR is not
2420 stored.
2421 (rs6000_frame_cache): Handle gpr_mask and lr_register.
2422
2423 2008-08-17 Tom Tromey <tromey@redhat.com>
2424
2425 PR gdb/1535:
2426 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
2427 (ep_find_event_name_end): Remove.
2428 (catch_fork_temporary, catch_vfork_temporary,
2429 catch_fork_permanent, catch_vfork_permanent): New constants.
2430 (catch_vfork, catch_fork): Remove.
2431 (catch_fork_command_1): Add 'command' argument. Remove
2432 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
2433 all cases.
2434 (catch_exec_command_1): Add 'command' argument; remove
2435 'tempflag'. Handle NULL 'arg'.
2436 (catch_load_command_1): Likewise.
2437 (catch_unload_command_1): Likewise.
2438 (catch_ada_exception_command): Likewise.
2439 (catch_assert_command): Likewise.
2440 (catch_catch_command): New function.
2441 (catch_throw_command): Likewise.
2442 (catch_command_1): Remove.
2443 (catch_command): Just call error.
2444 (tcatch_command): Likewise.
2445 (catch_cmdlist): New global.
2446 (tcatch_cmdlist): Likewise.
2447 (add_catch_command): New function.
2448 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
2449 commands. Create all catch sub-commands.
2450
2451 2008-08-17 Pedro Alves <pedro@codesourcery.com>
2452
2453 * gdbthread.h: Add comments.
2454 * stack.c (get_selected_block): Return 0 on an exited thread.
2455 * top.c (execute_command): Check for is_stopped, not !is_running.
2456 * event-top.c (command_handler): Likewise.
2457
2458 2008-08-16 Pedro Alves <pedro@codesourcery.com>
2459
2460 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
2461 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
2462 (mi_cmd_exec_finish): Remove "return".
2463
2464 2008-08-16 Pedro Alves <pedro@codesourcery.com>
2465
2466 * target.h (pop_all_targets): Declare.
2467 * target.c (pop_all_targets): New.
2468 * top.c (quit_target): Pop all targets instead of just closing the
2469 current.
2470
2471 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
2472 Thiago Jung Bauermann <bauerman@br.ibm.com>
2473
2474 * cli-script.c (read_next_line): Add parse_commands argument.
2475 (recurse_read_control_structure): Adapt to new read_next_line
2476 signature.
2477 (read_command_lines): Add parse_commands argument.
2478 (define_command): Adapt to new read_command_lines signature.
2479 (document_command): Likewise.
2480 * breakpoint.c (commands_command): Likewise.
2481 * defs.h (read_command_lines): Adjust function prototype.
2482
2483 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
2484
2485 * ada-lang.c (pos_atr): Account for the possibility that the
2486 argument may be a reference.
2487
2488 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
2489
2490 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
2491 ('F' format) for @FIX names generated by the loader, retaining only
2492 the minimal symbols (and no partial symbol tables) for these names.
2493 Fixes warning messages about symbols that are found in partial
2494 symbol tables, but not full symbol tables.
2495
2496 2008-08-16 Pedro Alves <pedro@codesourcery.com>
2497
2498 * infrun.c (fetch_inferior_event): Only call normal_stop if not
2499 stopping quietly.
2500
2501 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
2502
2503 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
2504 Include "features/rs6000/powerpc-vsx64.c".
2505 (ppc_supply_vsxregset): New function.
2506 (ppc_collect_vsxregset): New function.
2507 (IS_VSX_PSEUDOREG): New macro.
2508 (IS_EFP_PSEUDOREG): New macro.
2509 (vsx_register_p): New function.
2510 (ppc_vsx_support_p): New function.
2511 (rs6000_builtin_type_vec128): New function.
2512 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
2513 correct names for VSX registers and EFPR registers.
2514 (rs6000_pseudo_register_type): Return correct types for VSX
2515 and EFPR registers.
2516 (rs6000_pseudo_register_reggroup_p): Return correct group for
2517 VSX and EFPR registers.
2518 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
2519 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
2520 (vsx_pseudo_register_read): New function.
2521 (vsx_pseudo_register_write): New function.
2522 (efpr_pseudo_register_read): New function.
2523 (efpr_pseudo_register_write): New function.
2524 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
2525 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
2526 (rs6000_gdbarch_init): Declare have_vsx.
2527 Initialize new upper half VSX registers.
2528 Initialize VSX-related and EFPR-related pseudo-registers variables.
2529 Adjust the number of pseudo registers accordingly.
2530
2531 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
2532 and SIZEOF_VSRREGS.
2533 (gdb_vsxregset_t): New type.
2534 (have_ptrace_getsetvsxregs): New variable.
2535 (fetch_vsx_register): New function.
2536 (fetch_register): Handle VSX registers.
2537 (fetch_vsx_registers): New function.
2538 (fetch_ppc_registers): Handle VSX registers.
2539 (store_ppc_registers): Handle VSX registers.
2540 (store_vsx_register): New function.
2541 (store_register): Handle VSX registers.
2542 (store_vsx_registers): New function.
2543 (ppc_linux_read_description): Handle VSX-enabled inferiors.
2544 (gdb_vsxregset_t): New type.
2545 (supply_vsxregset): New function.
2546 (fill_vsxregset): New function.
2547
2548 * ppc-tdep.h (vsx_register_p): New prototype.
2549 (vsx_support_p): New prototype.
2550 (ppc_vsr0_regnum): New variable.
2551 (ppc_vsr0_upper_regnum): Likewise.
2552 (ppc_efpr0_regnum): Likewise.
2553 (ppc_builtin_type_vec128): New type.
2554 (ppc_num_vsrs): New constant.
2555 (ppc_num_vshrs): New constant.
2556 (ppc_num_efprs): Likewise.
2557 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
2558 (ppc_supply_vsxregset): New prototype.
2559 (ppc_collect_vsxregset): New prototype.
2560
2561 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
2562 Include "features/rs6000/powerpc-vsx64l.c".
2563 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
2564 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
2565 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
2566 (ppc_linux_regset_from_core_section): Handle VSX core section.
2567 (ppc_linux_core_read_description): Support VSX-enabled core files.
2568
2569 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
2570 Declare tdesc_powerpc_vsx64l
2571
2572 * corelow.c (get_core_register_section): Support VSX-enabled
2573 core files.
2574
2575 * features/rs6000/power-vsx.xml: New VSX descriptions.
2576 * features/rs6000/powerpc-vsx32.xml: New file.
2577 * features/rs6000/powerpc-vsx32l.xml: New file.
2578 * features/rs6000/powerpc-vsx64.xml: New file.
2579 * features/rs6000/powerpc-vsx64l.xml: New file.
2580 * features/rs6000/powerpc-vsx32.c: New file (generated).
2581 * features/rs6000/powerpc-vsx32l.c: New file (generated).
2582 * features/rs6000/powerpc-vsx64.c: New file (generated).
2583 * features/rs6000/powerpc-vsx64l.c: New file (generated).
2584 * features/Makefile: Updated with new descriptions.
2585 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
2586 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
2587
2588 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
2589
2590 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
2591 call linux_target twice.
2592
2593 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
2594
2595 * nto-tdep.c (lm_info): Updated struct lm_info definition from
2596 solib-svr4.c
2597 (LM_ADDR): Use l_addr if available; if not, use link map and set
2598 l_addr.
2599
2600 2008-08-14 Tom Tromey <tromey@redhat.com>
2601
2602 * macrocmd.c (macro_define_command): Check for NULL argument.
2603 (macro_undef_command): Likewise.
2604
2605 2008-08-14 Pedro Alves <pedro@codesourcery.com>
2606
2607 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
2608
2609 2008-08-13 Pedro Alves <pedro@codesourcery.com>
2610
2611 * breakpoint.c (always_inserted_auto, always_inserted_on)
2612 (always_inserted_off, always_inserted_enums): New.
2613 (always_inserted_mode): Change type to char* and point to
2614 always_inserted_auto.
2615 (show_always_inserted_mode): In auto mode, also show the current
2616 effect of the option.
2617 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
2618 (_initialize_breakpoint): Make the "set breakpoints
2619 always-inserted" command an enum command. Extend help to describe
2620 the auto mode.
2621
2622 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
2623
2624 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
2625 query valid) bit. Ignore bits outside the condition field.
2626 (info_spu_proxydma_command): Ignore bits outside the field.
2627
2628 2008-08-12 Michael Snyder <msnyder@vmware.com>
2629
2630 * MAINTAINERS: Update my email address.
2631
2632 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
2633
2634 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
2635
2636 2008-08-12 Pedro Alves <pedro@codesourcery.com>
2637
2638 Add no-ack mode to the remote protocol --- optionally stop ACKing
2639 packets and responses when we have a reliable communication
2640 medium.
2641
2642 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
2643
2644 * remote.c (struct remote_state): Add noack_mode field.
2645 (PACKET_QStartNoAckMode): New.
2646 (remote_start_remote): Don't any outstanding packet here.
2647 (remote_open_1): Clear noack_mode. Ack any outstanding packet
2648 here. Activate noack mode if requested.
2649 (remote_protocol_features): Add QStartNoAckMode.
2650 (remote_open_1):
2651 (putpkt_binary): Don't send ack in noack mode.
2652 (read_frame): Don't recompute the checksum in noack mode.
2653 (getpkt_sane): Skip sending ack if in noack mode.
2654 (_initialize_remote): Add set/show remote noack mode.
2655 * NEWS: Note the new features.
2656
2657 2008-08-11 Kevin Buettner <kevinb@redhat.com>
2658
2659 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
2660 New macros.
2661 (rs6000_skip_main_prologue): New function.
2662 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
2663
2664 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
2665
2666 * MAINTAINERS (Write After Approval): Add self.
2667
2668 2008-08-11 Stan Shebs <stan@codesourcery.com>
2669
2670 ARM BE8 support.
2671 * disasm.c (gdb_disassemble_info): Set endian_code.
2672 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
2673 * gdbarch.h, gdbarch.c: Regenerate.
2674 * arch-utils.c (initialize_current_architecture): Set the
2675 default byte_order_for_code.
2676 (gdbarch_info_init): Ditto.
2677 (gdbarch_info_fill): Ditto.
2678 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
2679 (thumb_analyze_prologue): Swap halfword if code endianness is
2680 different from general endianness.
2681 (arm_skip_prologue): Similarly.
2682 (arm_scan_prologue): Ditto.
2683 (thumb_get_next_pc): Ditto.
2684 (arm_get_next_pc): Ditto.
2685 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
2686 choose correct endianness for breakpoints.
2687
2688 2008-08-10 Pedro Alves <pedro@codesourcery.com>
2689
2690 * bsd-kvm.c: Include "gdbthread.h".
2691 (bsd_kvm_ptid): New.
2692 (bsd_kvm_open): Add a main thread.
2693 (bsd_kvm_close): Delete it.
2694 (bsd_kvm_thread_alive): New.
2695 (bsd_kvm_pid_to_str): New.
2696 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
2697 bsd_kvm_pid_to_str.
2698 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
2699
2700 2008-08-09 Pedro Alves <pedro@codesourcery.com>
2701
2702 * buildsym.c (start_subfile): Properly cast sentinel in concat
2703 call.
2704 * cp-name-parser.y: Include "config.h".
2705 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
2706 concat call.
2707 * gdb_select.h: Include sys/time.h if sys/select.h is not
2708 available.
2709
2710 2008-08-09 Pedro Alves <pedro@codesourcery.com>
2711
2712 * go32-nat.c: Include "gdbthread.h".
2713 (go32_stop, go32_kill_inferior): Delete the main thread.
2714 (go32_create_inferior): Add it.
2715 (go32_thread_alive, go32_pid_to_str): New.
2716 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
2717
2718 2008-08-09 Pedro Alves <pedro@codesourcery.com>
2719
2720 * go32-nat.c (fetch_register, store_register): Pass the regcache
2721 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
2722 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
2723 (struct seg_descr, struct seg_descr): pack the whole struct
2724 instead of each member individually.
2725
2726 2008-08-09 Andreas Schwab <schwab@suse.de>
2727
2728 * python/python.c (_initialize_python): Use unabbreviated commands
2729 in prefix name.
2730
2731 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
2732
2733 * Makefile.in (stamp-h): Also create .deps.
2734
2735 2008-08-09 Tom Tromey <tromey@redhat.com>
2736
2737 * Makefile.in (generated_files): Add GNULIB_H.
2738
2739 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2740
2741 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
2742 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
2743 Revise comment.
2744 (pa64_current_sos): Remove map private warning warning.
2745 * solib-som.c: Include string.h and sys/utsname.h.
2746 (get_hpux_major_release): New function.
2747 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
2748 about shared library private mapping on HP-UX 11 and later. Only force
2749 private mapping of shared libraries on HP-UX 10 and earlier.
2750 (link_map_start): Delete warning.
2751
2752 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
2753 H.J. Lu <hongjiu.lu@intel.com>
2754 Mark Kettenis <kettenis@gnu.org>
2755
2756 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
2757 (amd64_init_frame_cache): Initialize saved_sp_reg.
2758 (amd64_analyze_stack_align): New.
2759 (amd64_analyze_prologue): Call it.
2760 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
2761 %rip to 8 when halfway aligning the stack.
2762
2763 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
2764 AMD64_R14_REGNUM.
2765
2766 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
2767 saved_sp_reg.
2768 (i386_alloc_frame_cache): Remove stack_align. Initialize
2769 saved_sp_reg to -1.
2770 (i386_analyze_stack_align): Rewrite.
2771 (i386_frame_cache): Use saved_sp_reg if it is valid.
2772
2773 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
2774
2775 * target.c: Include "solib.h".
2776 (target_pre_inferior): Call no_shared_libraries.
2777 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
2778 or clear_solib.
2779 (attach_command): Do not call clear_solib.
2780
2781 2008-08-09 Mark Kettenis <kettenis@gnu.org>
2782
2783 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
2784 the %eip register.
2785
2786 2008-08-08 Tom Tromey <tromey@redhat.com>
2787
2788 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
2789 POSTCOMPILE.
2790 (python-utils.o): Likewise.
2791
2792 2008-08-08 Andreas Schwab <schwab@suse.de>
2793
2794 * corefile.c (_initialize_core): Remove spurious paren from set
2795 gnutarget doc string.
2796
2797 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
2798
2799 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
2800 Define PPC_FEATURE_BOOKE.
2801 (ppc_linux_get_hwcap): New function.
2802 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
2803 4-bytes alignment restrictions.
2804 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
2805 positioning of the read/write flags.
2806 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
2807 4-bytes alignment.
2808
2809 2008-08-08 Pedro Alves <pedro@codesourcery.com>
2810
2811 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2812
2813 * win32-nat.c (win32_add_thread): Change thread argument type to
2814 ptid_t. Adjust.
2815 (win32_add_thread): Adjust.
2816 (win32_delete_thread): Change thread argument type to ptid_t.
2817 Adjust.
2818 (win32_fetch_inferior_registers, win32_store_inferior_registers)
2819 (win32_resume, get_win32_debug_event, get_win32_debug_event)
2820 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
2821 (init_win32_ops): Put to_magic last.
2822 (win32_win32_thread_alive): Adjust.
2823
2824 2008-08-08 Pedro Alves <pedro@codesourcery.com>
2825
2826 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
2827 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
2828
2829 2008-08-08 Pedro Alves <pedro@codesourcery.com>
2830
2831 * remote-m32r-sdi.c: Include "gdbthread.h".
2832 (remote_m32r_ptid): New.
2833 (m32r_close): Delete the main thread.
2834 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
2835 main thread.
2836 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
2837 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
2838
2839 2008-08-07 Tom Tromey <tromey@redhat.com>
2840 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2841
2842 * aclocal.m4, configure: Rebuild.
2843 * configure.in: Call ZW_CREATE_DEPDIR,
2844 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
2845 (MAKE, GMAKE): New substs.
2846 * acinclude.m4: Include depstand.m4.
2847 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
2848 COMPILE, POSTCOMPILE, depcomp): New variables.
2849 Remove all _h variables.
2850 Remove many .o targets.
2851 ($(srcdir)/copying.c): avoid backslash-newline after comment
2852 sign (@maintainer_mode_true@).
2853 (HFILES_NO_SRCDIR): Regenerate.
2854 (generated_files): New variable.
2855 (all_gdbtk_cflags): Likewise.
2856 (.c.o): Rewrote.
2857 (init.o, version.o, copying.o): Remove.
2858 (distclean): Remove DEPDIR.
2859 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
2860 printcmd.o, procfs.o, v850ice.o): Rewrite.
2861 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
2862 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
2863 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
2864 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
2865 gdbtk-wrapper.o): Likewise.
2866 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
2867 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
2868 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
2869 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
2870 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
2871 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
2872 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
2873 tui-wingeneral.o, tui-winsource.o): Likewise.
2874 (all_object_files): New variable.
2875 ($(all_object_files)): New target.
2876 Include dependency files, when using GNU Make.
2877
2878 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
2879
2880 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
2881 the valid bit set. Ensure display order respects partial
2882 order defined by dependency bits.
2883
2884 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2885
2886 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
2887 setup.
2888
2889 2008-08-06 Mark Kettenis <kettenis@gnu.org>
2890
2891 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
2892 OpenBSD 4.3.
2893
2894 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
2895 Tom Tromey <tromey@redhat.com>
2896 Thiago Jung Bauermann <bauerman@br.ibm.com>
2897 Doug Evans <dje@google.com>
2898
2899 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
2900 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
2901 PYTHON_CFLAGS): New.
2902 (python_h, python_internal_h): New.
2903 (cli-script.o): Depend on python.h
2904 (python.o, python-utils.o): New.
2905 * cli/cli-script.c (print_command_lines): Handle python_control.
2906 (execute_control_command): Handle python_control.
2907 (execute_control_command_untraced): New function.
2908 (while_command): Call execute_control_command_untraced.
2909 (if_command): Likewise.
2910 (get_command_line): Remove static attribute.
2911 (read_next_line): Handle "python".
2912 (recurse_read_control_structure): Handle python_control.
2913 (read_command_lines): Handle python_control.
2914 Include python.h.
2915 * cli/cli-script.h (get_command_line): Add prototype.
2916 (execute_control_command_untraced): Likewise.
2917 * configure.ac: Add --with-python.
2918 * defs.h (enum command_control_type) <python_control>: New
2919 constant.
2920 * python/python-internal.h: New file.
2921 * python/python.c: New file.
2922 * python/python.h: New file.
2923 * python/python-utils.c: New file.
2924 * NEWS: Mention Python scripting support and its new commands.
2925
2926 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2927
2928 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
2929
2930 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
2931
2932 * MAINTAINERS (Write After Approval): Add self.
2933
2934 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
2935
2936 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
2937 (insert_breakpoint_locations): Likewise.
2938
2939 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
2940
2941 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
2942 breakpoint.
2943 (set_longjmp_breakpoint): Likewise.
2944
2945 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2946
2947 PR build/2490
2948 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
2949 defined.
2950
2951 2008-08-05 Tom Tromey <tromey@redhat.com>
2952
2953 * bcache.c (deprecated_bcache_added): Initialize obstack.
2954 (bcache_xmalloc): Don't initialize obstack.
2955 (bcache_xfree): Conditionally free obstack.
2956 (bcache_memory_used): Update.
2957
2958 2008-08-05 Tom Tromey <tromey@redhat.com>
2959
2960 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
2961 bcache_full.
2962 (append_psymbol_to_list): Accept a const pointer.
2963 (add_psymbol_to_list): Fix const correctness.
2964 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
2965 (bcache_full): Declare.
2966 * bcache.c (bcache_data, deprecated_bcache): Remove.
2967 (bcache): Use bcache_full.
2968 (bcache_full): Rename from deprecated_bcache_added. Change return
2969 type.
2970
2971 2008-08-04 Stan Shebs <stan@codesourcery.com>
2972
2973 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
2974 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
2975 (enable_break): Remove test of BKPT_AT_SYMBOL.
2976
2977 2008-08-02 Keith Seitz <keiths@redhat.com>
2978
2979 * acinclude.m4: Include ../config/tcl.m4 to pick up
2980 standard Tcl configury bits.
2981 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
2982 * configure.ac: Don't check if ../itcl exists when building
2983 gdbtk. It could be installed.
2984 Rewrite gdbtk configury to allow for using system-supplied
2985 Tcl and Tk. Gdbtk no longer requires build-time access to
2986 itcl and itk.
2987 * Makefile.in: Remove everything related to itcl and itk.
2988 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
2989 configure.ac.
2990 Remove v850ice.o build rule.
2991 (ALL_TCL_CFLAGS): New convenience defintion. Change all
2992 gdbtk sources to use it.
2993 * configure: Regenerate.
2994
2995 2008-07-31 Stan Shebs <stan@codesourcery.com>
2996
2997 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
2998
2999 2008-07-30 Stan Shebs <stan@codesourcery.com>
3000
3001 * objfiles.c (TARGET_KEEP_SECTION): Remove.
3002 (add_to_objfile_sections): Remove use.
3003
3004 2008-07-29 Tom Tromey <tromey@redhat.com>
3005
3006 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
3007 (lookup_cmd_composition): Likewise.
3008
3009 2008-07-29 Tom Tromey <tromey@redhat.com>
3010
3011 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
3012 dead code. Fix indentation.
3013
3014 2008-07-29 Stan Shebs <stan@codesourcery.com>
3015
3016 * main.c (captured_main): Remove long-unused #if 0 blocks.
3017
3018 2008-07-28 Tom Tromey <tromey@redhat.com>
3019
3020 * annotate.h (deprecated_annotate_starting_hook): Remove.
3021 (deprecated_annotate_stopped_hook): Remove.
3022 (deprecated_annotate_exited_hook): Remove.
3023 * Makefile.in (annotate.o): Depend on observer_h.
3024 * top.c (deprecated_delete_breakpoint_hook): Remove.
3025 (deprecated_create_breakpoint_hook): Likewise.
3026 (deprecated_modify_breakpoint_hook): Likewise.
3027 * interps.c (clear_interpreter_hooks): Update for removed hooks.
3028 * breakpoint.c (mention): Don't call removed hook.
3029 (delete_breakpoint): Likewise.
3030 (disable_breakpoint): Likewise.
3031 (do_enable_breakpoint): Likewise.
3032 * annotate.c: Include observer.h.
3033 (breakpoint_changed): Change type of argument.
3034 (_initialize_annotate): Register observers.
3035 (deprecated_annotate_starting_hook): Remove.
3036 (deprecated_annotate_stopped_hook): Remove.
3037 (deprecated_annotate_exited_hook): Remove.
3038 (annotate_starting): Update for hook removal.
3039 (annotate_stopped): Likewise.
3040 (annotate_exited): Likewise.
3041 * defs.h (deprecated_delete_breakpoint_hook): Remove.
3042 (deprecated_create_breakpoint_hook): Likewise.
3043 (deprecated_modify_breakpoint_hook): Likewise.
3044
3045 2008-07-28 Tom Tromey <tromey@redhat.com>
3046
3047 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
3048
3049 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3050
3051 * configure.ac: Check for the GNU/Linux ptrace signature.
3052 * configure: Regenerated.
3053
3054 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3055
3056 * linux-nat.c (resume_callback): Add more debugging output.
3057 (linux_nat_has_pending_sigint): New function, based on
3058 linux_nat_has_pending.
3059 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
3060 (stop_wait_callback): Remove flush_mask handling. Honor
3061 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
3062 to recursive calls.
3063 (linux_nat_has_pending, flush_callback): Remove.
3064 (linux_nat_filter_event): Check for ignore_sigint.
3065 (linux_nat_wait): Remove flush_mask support and call to
3066 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
3067 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
3068
3069 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3070
3071 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
3072 report events from resumed threads.
3073
3074 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3075
3076 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
3077 (mips_linux_init_abi): Set tdep->syscall_next_pc.
3078 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
3079 mips-tdep.h.
3080 (mips32_next_pc): Handle the syscall instruction.
3081 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
3082 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
3083
3084 2008-07-26 Tom Tromey <tromey@redhat.com>
3085
3086 PR gdb/1158:
3087 * valops.c (value_struct_elt): Treat function-valued field as a
3088 static method.
3089
3090 2008-07-26 Tom Tromey <tromey@redhat.com>
3091
3092 PR gdb/1136:
3093 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
3094 longer tokens first.
3095
3096 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
3097
3098 Kill cmd_async_ok.
3099 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
3100 (get_cmd_async_ok): Remove.
3101 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
3102 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
3103 * infcmd.c (_initialize_infcmd): Likewise.
3104 * thread.c (_initialize_thread): Likewise.
3105
3106 2008-07-25 Joseph Myers <joseph@codesourcery.com>
3107
3108 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
3109 128-bit long doubles in even-odd pairs of FPRs. Do not
3110 right-align float arguments for big-endian.
3111 (mips_n32n64_return_value): Apply return value convention for
3112 structs containing one or two floating-point values to soft-float
3113 as well as hard-float. Handle 128-bit long doubles in such
3114 structs.
3115 (mips_o32_push_dummy_call): Only skip one integer register for a
3116 float argument passed in an FPR.
3117
3118 2008-07-25 Tom Tromey <tromey@redhat.com>
3119
3120 * tui/tui-hooks.c: Include observer.h.
3121 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
3122 Remove.
3123 (tui_bp_created_observer, tui_bp_deleted_observer,
3124 tui_bp_modified_observer): New globals.
3125 (tui_install_hooks): Use observers, not events.
3126 (tui_remove_hooks): Likewise.
3127 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
3128 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
3129 globals.
3130 (breakpoint_notify): Check mi_can_breakpoint_notify.
3131 (breakpoint_hooks): Remove.
3132 (mi_cmd_break_insert): Attach observers. Don't use events.
3133 * tracepoint.c: Include observer.h, not gdb-events.h.
3134 (tracepoint_operation, trace_pass_command): Notify observer.
3135 * interps.c: Don't include gdb-events.h.
3136 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
3137 * gdbarch.c: Rebuild.
3138 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
3139 (deprecated_current_gdbarch_select_hack): Notify observer.
3140 * breakpoint.h: Don't include gdb-events.h.
3141 * breakpoint.c: Don't include gdb-events.h.
3142 (condition_command): Notify observer.
3143 (commands_command): Likewise.
3144 (commands_from_control_command): Likewise.
3145 (mention, delete_breakpoint, set_ignore_count): Likewise.
3146 (disable_breakpoint, do_enable_breakpoint): Likewise.
3147 * Makefile.in (gdb_events_h): Remove.
3148 (breakpoint_h): Update.
3149 (COMMON_OBS): Remove gdb-events.o.
3150 (gdb-events.o): Remove.
3151 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
3152 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
3153 * gdb-events.c: Remove.
3154 * gdb-events.h: Remove.
3155 * gdb-events.sh: Remove.
3156
3157 2008-07-24 Pedro Alves <pedro@codesourcery.com>
3158
3159 * remote.c (remote_threads_extra_info): Don't query the remote
3160 server about info on the internally added main thread.
3161
3162 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
3163
3164 * nto-procfs.c (procfs_attach): Populate initial thread list.
3165 (procfs_wait): Return new pid, built from the inferior status.
3166
3167 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
3168
3169 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
3170 * configure: Regenerate.
3171
3172 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
3173
3174 * nto-procfs.c (procfs_xfer_memory): Changed signature.
3175 (procfs_resume): Workaround for dereferencing type-punned pointer
3176 warning.
3177 * nto-tdep.c (nto_parse_redirection): Change signature to be const
3178 correct.
3179 * nto-tdep.h (nto_parse_redirection): Likewise.
3180
3181 2008-07-21 Stan Shebs <stan@codesourcery.com>
3182
3183 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
3184 * gdbarch.sh: Adjust comment to refer to
3185 in_solib_dynsym_resolve_code().
3186 * gdbarch.h, gdbarch.c: Update.
3187 * solib-osf.c: Ditto.
3188 * infrun.c: Ditto.
3189 (handle_inferior_event): Use in_solib_dynsym_resolve_code
3190 unconditionally.
3191 * config/mips/nm-irix5.h: Remove undef of
3192 IN_SOLIB_DYNSYM_RESOLVE_CODE.
3193
3194 2008-07-21 Tom Tromey <tromey@redhat.com>
3195
3196 * symfile.c (reread_symbols): Don't pass argument to observer.
3197 * exec.c (exec_file_attach): Don't pass argument to observer.
3198 * ada-lang.c (ada_executable_changed_observer): Remove argument.
3199 * symtab.c (symtab_observer_executable_changed): Remove argument.
3200 * observer.sh: Handle functions with no arguments.
3201
3202 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
3203 Chris Demetriou <cgd@google.com>
3204
3205 * elfread.c (elf_symfile_segments): Fix the check that each loadable
3206 section fits within an ELF segment to handle ELF segments that hit
3207 the end of the address space.
3208
3209 2008-07-20 Chris Demetriou <cgd@google.com>
3210
3211 * MAINTAINERS (Write After Approval): Add self.
3212
3213 2008-07-18 Tom Tromey <tromey@redhat.com>
3214
3215 PR gdb/855:
3216 * NEWS: Add entry for macro commands.
3217 * Makefile.in (macrocmd.o): Add gdb_string.h.
3218 * macroscope.h (user_macro_scope): Declare.
3219 (default_macro_scope): Update documentation.
3220 (macro_user_macros): Declare.
3221 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
3222 Use user_macro_scope.
3223 (null_macro_lookup): Remove.
3224 * macrotab.h (macro_callback_fn): Declare.
3225 (macro_for_each): Likewise.
3226 (macro_allow_redefinitions): Likewise.
3227 * macrotab.c (foreach_macro): New function
3228 (macro_for_each): Likewise.
3229 (struct macro_table) <redef_ok>: New field.
3230 (macro_allow_redefinitions): New function.
3231 (new_macro_table): Update.
3232 (macro_define_function): Likewise.
3233 (macro_define_object): Likewise.
3234 * macroscope.c (user_macro_scope): New function.
3235 (default_macro_scope): Use it.
3236 (macro_user_macros): New global.
3237 (standard_macro_lookup): Look in macro_user_macros.
3238 (_initialize_macroscope): New function.
3239 * macroexp.h (macro_is_whitespace, macro_is_digit,
3240 macro_is_identifier_nondigit): Declare.
3241 * macroexp.c (macro_is_whitespace): Rename. No longer static.
3242 (macro_is_digit): Likewise.
3243 (macro_is_identifier_nondigit): Likewise.
3244 (get_identifier): Update.
3245 (get_pp_number): Likewise.
3246 (get_token): Likewise.
3247 * macrocmd.c (skip_ws): New function.
3248 (extract_identifier): Likewise.
3249 (free_macro_definition_ptr): Likewise.
3250 (user_macros): Remove.
3251 (macro_define_command): Implement.
3252 (_initialize_macrocmd): Update.
3253 (macro_undef_command): Implement.
3254 (print_one_macro): New function.
3255 (macro_list_command): Implement.
3256
3257 2008-07-18 Joseph Myers <joseph@codesourcery.com>
3258
3259 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
3260 in BFD ELF check.
3261 * configure: Regenerate.
3262
3263 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3264
3265 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
3266
3267 2008-07-15 Andreas Schwab <schwab@suse.de>
3268
3269 * valops.c (value_cast_pointers): Follow typedefs when checking
3270 result of coercion.
3271
3272 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3273
3274 * block.c (block_function): Renamed to ...
3275 (block_linkage_function): ... this. All callers changed.
3276 * block.h (block_function): Renamed to ...
3277 (block_linkage_function): ... this.
3278
3279 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3280
3281 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
3282
3283 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3284
3285 * frame.c (frame_sp_unwind): Delete.
3286 (get_frame_sp): Do not use it.
3287 * frame.h (frame_sp_unwind): Delete prototype.
3288
3289 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3290
3291 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
3292
3293 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3294
3295 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
3296 * frame.c (frame_unwind_address_in_block): Delete.
3297 (get_frame_address_in_block): Do not use it. Check the type
3298 of the next frame first.
3299 (frame_cleanup_after_sniffer): Update comment.
3300 * frame.h (frame_unwind_address_in_block): Delete prototype.
3301 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
3302
3303 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3304
3305 * frame.c (frame_func_unwind): Delete.
3306 (get_frame_func): Do not use it.
3307 * frame.h (frame_func_unwind): Delete prototype.
3308 * hppa-tdep.c (hppa_frame_cache): Update comment.
3309 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
3310
3311 2008-07-14 Stan Shebs <stan@codesourcery.com>
3312
3313 * remote-sim.c (init_gdbsim_ops): Remove
3314 TARGET_REDEFINE_DEFAULT_OPS.
3315
3316 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3317
3318 * findvar.c (read_var_value): Remove unused variable.
3319
3320 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
3321
3322 * infrun.c (handle_inferior_event): Tag threads as stopped
3323 before inserting breakpoints.
3324
3325 2008-07-15 Hui Zhu <teawater@gmail.com>
3326
3327 * MAINTAINERS: Added myself to section Write After Approval.
3328
3329 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
3330
3331 PR gdb/2477
3332 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
3333
3334 2008-07-14 Pedro Alves <pedro@codesourcery.com>
3335
3336 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
3337 (i386_dicos_push_dummy_code): New.
3338 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
3339 Register i386_dicos_push_dummy_code.
3340
3341 2008-07-14 Markus Deuling <deuling@de.ibm.com>
3342
3343 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
3344 (mips_n32n64_push_dummy_call, mips_o64_return_value)
3345 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
3346
3347 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
3348 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
3349 (mips_n32n64_fp_arg_chunk_p): Update caller.
3350
3351 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
3352 (mips_n32n64_push_dummy_call): Update caller.
3353
3354 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
3355 current_gdbarch.
3356 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3357 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
3358
3359
3360 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
3361 current_gdbarch.
3362 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
3363 (mips_o64_push_dummy_call): Update caller.
3364
3365 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
3366 (fp_register_arg_p, mips_dump_tdep): Update caller.
3367
3368 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
3369 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
3370
3371 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
3372 current_gdbarch.
3373 (mips32_scan_prologue): Update caller.
3374
3375 (heuristic_proc_start): Add gdbarch as parameter. Replace
3376 current_gdbarch.
3377 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
3378
3379 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
3380 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
3381 the current architecture. Update call to getregs_supplies.
3382 (getregs_supplies): Add gdbarch as parameter and replace
3383 current_gdbarch.
3384
3385 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
3386 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
3387 NBSD_MIPS_JB_ELEMENT_SIZE.
3388 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
3389 replace current_gdbarch.
3390
3391 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
3392 current_gdbarch.
3393 (mips_fetch_registers, mips_store_registers): Update call
3394 to mips_map_regno.
3395 (mips_load): Use get_regcache_arch to get at the current_architecture
3396 and replace current_gdbarch.
3397
3398 2008-07-13 Pedro Alves <pedro@codesourcery.com>
3399
3400 * thread.c (restore_selected_frame): On fail to restore, select
3401 the innermost frame, and don't crash when warning the user.
3402
3403 2008-07-13 Hui Zhu <teawater@gmail.com>
3404
3405 * symtab.c (expand_line_sal): Fix a memory leak.
3406
3407 2008-07-13 Pedro Alves <pedro@codesourcery.com>
3408
3409 * utils.c (struct continuation): Define as inheriting struct
3410 cleanup.
3411 (add_continuation, do_all_continuations)
3412 (discard_all_continuations, add_intermediate_continuation)
3413 (do_all_intermediate_continuations)
3414 (discard_all_intermediate_continuations): Adjust.
3415
3416 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
3417
3418 Skip varobj in running threads.
3419 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
3420 thread is not stopped, skip the varobj.
3421 * Makefile.in: Update dependencies.
3422
3423 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
3424
3425 Enable all commands while inferiour is running
3426 * mi/mi-main.c (mi_cmd_execute): Don't check if
3427 inferiour is executing.
3428
3429 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
3430
3431 Allow all CLI command even if target is executing.
3432 * gdb/top.c (execute_command_1): Don't check if the inferiour
3433 is running.
3434
3435 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
3436
3437 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
3438 Fix printing of frame, when frame is wrong.
3439
3440 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3441
3442 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
3443 backchain is unreadable.
3444
3445 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3446
3447 * spu-linux-nat.c: Include "gdbthread.h".
3448 (spu_child_post_startup_inferior): Register main thread.
3449 (spu_child_post_attach): Likewise.
3450 * Makefile.in (spu-linux-nat.o): Update dependencies.
3451
3452 2008-07-12 Pedro Alves <pedro@codesourcery.com>
3453
3454 Rewrite continuations internals on top of cleanups and plug
3455 continuation arguments leaks.
3456
3457 * defs.h (struct continuation): Make it opaque.
3458 (add_continuation, add_intermediate_continuation): Drop the int
3459 argument of the continuation hook argument. Add
3460 continuation_free_args argument.
3461 (do_all_continuations, do_all_intermediate_continuations): Drop
3462 the error_p argument.
3463
3464 * utils.c (add_continuation): Drop the int argument of the
3465 continuation hook argument. Add continuation_free_args argument.
3466 Reimplement on top of cleanups.
3467 (do_all_continuations): Drop error argument. Reimplement on top
3468 of cleanups.
3469 (discard_all_continuations): Reimplement on top of cleanups.
3470 (add_intermediate_continuation): Drop the int argument of the
3471 continuation hook argument. Add continuation_free_args argument.
3472 Reimplement on top of cleanups.
3473 (do_all_intermediate_continuations): Drop error argument.
3474 Reimplement on top of cleanups.
3475 (discard_all_intermediate_continuations): Reimplement on top of
3476 cleanups.
3477
3478 * breakpoint.c (until_break_command_continuation): Drop error
3479 argument. Add xfree as continuation argument deleter.
3480
3481 * inf-loop.c (inferior_event_handler): On error, discard all
3482 continuations. Adjust to new do_all_intermediate_continuations
3483 and do_all_continuations interfaces.
3484
3485 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
3486 Pass xfree as continuation argument deleter.
3487 (finish_command_continuation): Drop error_p argument. Adjust.
3488 (finish_command_continuation_free_arg): New.
3489 (finish_command): Pass finish_command_continuation_free_arg as
3490 continuation argument deleter. Adjust to new do_all_continuations
3491 interfaces.
3492 (attach_command_continuation): Drop error_p argument.
3493 (attach_command_continuation_free_args): New.
3494 (attach_command): Pass attach_command_continuation_free_args as
3495 continuation argument deleter.
3496
3497 * interps.c (interp_set): Adjust to new do_all_continuations
3498 interfaces.
3499
3500 * event-top.c (stdin_event_handler): In error, also discard the
3501 intermediate continuations.
3502
3503 2008-07-12 Pedro Alves <pedro@codesourcery.com>
3504
3505 Replace struct continuation_args by void* and per command structs.
3506
3507 * top.c (execute_command): Remove unused arg1 and arg2 locals.
3508
3509 * breakpoint.c (struct until_break_command_continuation_args):
3510 New.
3511 (until_break_command_continuation): Take a void* instead of a
3512 continuations_arg. Adjust.
3513 (until_break_command): Adjust to use struct
3514 until_break_command_continuation_args instead of struct
3515 continuation_arg.
3516
3517 * infcmd.c (struct step_1_continuation_args): New.
3518 (step_1_continuation): Take a void* instead of a
3519 continuations_arg. Adjust to use struct step_1_continuation_args.
3520 (step_once): Adjust to use struct step_1_continuation_args.
3521
3522 (struct finish_command_continuation_args): New.
3523 (finish_command_continuation): Take a void* instead of a
3524 continuations_arg. Adjust to use struct
3525 finish_command_continuation_args.
3526 (finish_command): Adjust to use struct
3527 finish_command_continuation_args.
3528 (struct attach_command_continuation_args): New.
3529 (attach_command_continuation): Take a void* instead of a
3530 continuations_arg. Adjust to use struct
3531 attach_command_continuation_args.
3532 (attach_command): Adjust to use struct
3533 attach_command_continuation_args.
3534
3535 * defs.h (struct continuation_arg): Delete.
3536 (struct continuation): Replace the struct continuation_arg*
3537 parameter of continuation_hook by a void*. Replace "arg_list"
3538 member by a new "args" member with void* type.
3539 (add_continuation, add_intermediate_continuation): Replace struct
3540 continuation_arg type usages by void* usages.
3541
3542 * utils.c (add_continuation, do_all_continuations)
3543 (add_intermediate_continuation)
3544 (do_all_intermediate_continuations): Replace struct
3545 continuation_arg type usages by void* usages. Pass "args" instead
3546 of "arg_list".
3547
3548 2008-07-12 Pedro Alves <pedro@codesourcery.com>
3549
3550 * infrun.c (struct thread_stepping_state): Delete sal member.
3551 (init_thread_stepping_state): Add local sal. Use it instead of
3552 tss->sal.
3553 (handle_inferior_event): New local stop_pc_sal. Use it instead of
3554 tss->sal.
3555 (step_into_function): Add local stop_func_sal. Use it instead of
3556 tss->sal.
3557
3558 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
3559
3560 Implement -exec-continue/-exec-interrupt --all.
3561 * infcmd.c (continue_1): New, extracted from
3562 (continue_command): ...here.
3563 (interrupt_target_1): New, extracted from
3564 (interrupt_target_command): ...here.
3565 * inferior.h (continue_1, interrupt_target_1): New.
3566 * mi/mi-main.c (mi_cmd_exec_continue)
3567 (mi_cmd_exec_interrupt): Handle --all.
3568
3569 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
3570
3571 Implement --thread and --frame.
3572 * gdbthread.h (find_thread_id): Declare.
3573 * thread.c (find_thread_id): Make non-static.
3574 * mi/mi-main.c (mi_cmd_execute): Switch to the right
3575 thread and frame, if necessary.
3576 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
3577 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
3578
3579 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
3580
3581 * infrun.c (resume): Discard cleanups on early exit path.
3582
3583 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
3584
3585 * infrun.c (normal_stop): For MI, report which threads
3586 were stopped.
3587
3588 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
3589
3590 Report thread state in -thread-info output.
3591 * thread.c (print_thread_info): Add new field "state".
3592
3593 2008-07-11 Pedro Alves <pedro@codesourcery.com>
3594
3595 * infrun.c (handle_inferior_event): Also ignore a
3596 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
3597
3598 2008-07-11 Tom Tromey <tromey@redhat.com>
3599
3600 * completer.c (complete_line_internal): New function, from
3601 complete_line. Add 'for_help' parameter.
3602 (complete_line): Use it.
3603 (command_completer): Move later. Rewrite.
3604
3605 2008-07-11 Pedro Alves <pedro@codesourcery.com>
3606
3607 * thread.c (thread_apply_command): Move making the cleanup out of
3608 the loop.
3609
3610 2008-07-11 Pedro Alves <pedro@codesourcery.com>
3611
3612 Exited threads.
3613
3614 * thread.c (enum thread_state): New.
3615 (thread_state main_thread_running): Delete, in favor of...
3616 (thread_state main_thread_state): ... this. Update throughout.
3617 (clear_thread_inferior_resources): New, split from free_thread.
3618 (free_thread): Call clear_thread_inferior_resources.
3619 (init_thread_list): Set main thread to stopped state.
3620 (add_thread_silent): Take care of PTID reuses.
3621 (delete_thread): If deleting inferior_ptid or a thread with
3622 refcount > 0, mark it as exited, but still keep it in the list.
3623 Only notify of thread exits, if we haven't done so yet.
3624 (iterate_over_threads): Make it safe to delete threads while
3625 iterating over them.
3626 (do_captured_list_thread_ids): Don't account for exited threads.
3627 (thread_alive): Check for the THREAD_EXITED state, and don't set
3628 ptid to -1 on exited threads.
3629 (set_running): Update to account for extra possible states.
3630 (is_thread_state): New.
3631 (is_stopped, is_exited): New.
3632 (is_running): Implement in terms of is_thread_state.
3633 (any_running): Update.
3634 (print_thread_info): Update. Account for exited threads. Don't
3635 warn about missed frame restoring here, its done in the cleanup.
3636 (switch_to_thread): Don't read from a thread that has gone.
3637 (restore_current_thread): In non-stop mode, do a full context
3638 switch.
3639 (restore_selected_frame): Add a frame_level argument. Rewrite.
3640 (struct current_thread_cleanup): Add selected_frame_level and
3641 was_stopped members.
3642 (do_restore_current_thread_cleanup): Check if thread was stopped
3643 and still is, and if the target has registers, stack and memory
3644 before restoring the selected frame. Don't delete the cleanup
3645 argument here.
3646 (restore_current_thread_cleanup_dtor): New.
3647 (make_cleanup_restore_current_thread): Remove all arguments.
3648 Rewrite.
3649 (thread_apply_all_command): Update. Prune threads.
3650 (thread_apply_command): Update.
3651 (thread_command): Account for currently selected exited thread.
3652 (do_captured_thread_select): Check for a running thread. Prune
3653 threads.
3654 (_initialize_thread): Make "info threads", "thread", "thread
3655 apply", and "thread apply all" appliable without a selected thread.
3656 * gdbthread.h (struct thread_info): Replace running_ by state_.
3657 Add refcount.
3658 (is_exited, is_stopped): Declare.
3659 (make_cleanup_restore_current_thread): Remove all arguments.
3660 * infrun.c: Include "event-top.h".
3661 (fetch_inferior_event): In non-stop mode, restore selected thread
3662 and frame after handling the event and running breakpoint
3663 commands. Display GDB prompt if needed.
3664 (normal_stop): In non-stop mode, don't print thread switching
3665 notice.
3666 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
3667 (get_cmd_no_selected_thread_ok): New.
3668 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
3669 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
3670 Declare.
3671 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
3672 no-selected-thread ok.
3673 * top.c (execute_command): Check for non no-selected-thread-ok
3674 commands.
3675 * linux-nat.c (struct saved_ptids, threads_to_delete)
3676 (record_dead_thread, prune_lwps): Delete.
3677 (exit_lwp): Unconditionally delete thread.
3678 (linux_nat_resume): Remove prune_lwps call.
3679 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
3680 of is_running. Adjust to make_cleanup_restore_current_thread
3681 interface change.
3682 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
3683 selected thread has exited.
3684 * inf-loop.c (inferior_event_handler): Don't display the prompt
3685 here.
3686 * varobj.c (c_value_of_root): Update.
3687 * defs.h (make_cleanup_dtor): Declare.
3688 * utils.c (make_cleanup_dtor): New.
3689
3690 * Makefile.in (infrun.o): Depend on $(event_top_h).
3691
3692 2008-07-11 Pedro Alves <pedro@codesourcery.com>
3693
3694 Add "continue -a" and "interrupt -a" options for non-stop mode.
3695
3696 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
3697 (continue_command): Add "-a" option.
3698 (interrupt_target_command): Add "-a" option.
3699 (_initialize_infcmd): Add extend help of continue and interrupt
3700 command to mention the new "-a" option. Mark "continue" async ok.
3701
3702 2008-07-10 Doug Evans <dje@google.com>
3703
3704 Add "set print symbol-loading on|off".
3705 * NEWS: Document new option.
3706 * symfile.h (print_symbol_loading): Declare.
3707 * symfile.c (print_symbol_loading): New global.
3708 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
3709 from ..." if print_symbol_loading.
3710 (_initialize_symfile): Add set/show print symbol-loading.
3711 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
3712 if print_symbol_loading.
3713
3714 2008-07-10 Pedro Alves <pedro@codesourcery.com>
3715
3716 Non-stop linux native.
3717
3718 * linux-nat.c (linux_test_for_tracefork): Block events while we're
3719 here.
3720 (get_pending_status): Implement non-stop mode.
3721 (linux_nat_detach): Stop threads before detaching.
3722 (linux_nat_resume): In non-stop mode, always resume only a single
3723 PTID.
3724 (linux_handle_extended_wait): On a clone event, in non-stop mode,
3725 add new lwp to GDB's thread table, and mark as running, executing
3726 and stopped appropriately.
3727 (linux_nat_filter_event): Don't assume there are other running
3728 threads when a thread exits.
3729 (linux_nat_wait): Mark the main thread as running and executing.
3730 In non-stop mode, don't stop all lwps.
3731 (linux_nat_kill): Stop lwps before killing them.
3732 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
3733 alive.
3734 (send_sigint_callback): New.
3735 (linux_nat_stop): New.
3736 (linux_nat_add_target): Set to_stop to linux_nat_stop.
3737
3738 * linux-nat.h (thread_db_attach_lwp): Declare.
3739
3740 * linux-thread-db.c (thread_get_info_callback): Check for new
3741 threads if we have none.
3742 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
3743 stopped lwp. Check for new threads if we have none.
3744 (thread_db_attach_lwp): New.
3745 (thread_db_init): Set proc_handle.pid to inferior_ptid.
3746 (check_event): Set proc_handle.pid to the stopped lwp.
3747 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
3748 lwp available, bail out if there is none.
3749
3750 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
3751 PTRACE_KILL.
3752
3753 2008-07-10 Kevin Buettner <kevinb@redhat.com>
3754
3755 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
3756 `current_pc' from CORE_ADDR to ULONGEST.
3757
3758 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
3759 gdbsim_stop().
3760
3761 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3762
3763 * NEWS (New commands): Mention "set disable-randomization".
3764 * configure.ac: Add check for HAVE_PERSONALITY and
3765 HAVE_DECL_ADDR_NO_RANDOMIZE.
3766 * configure, config.in: Regenerate.
3767 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
3768 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
3769 ADDR_NO_RANDOMIZE.
3770 (disable_randomization, show_disable_randomization)
3771 (set_disable_randomization): New.
3772 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
3773 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
3774 variable DISABLE_RANDOMIZATION.
3775 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
3776 DISABLE_RANDOMIZATION.
3777
3778 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3779
3780 Adjust all targets to new target_stop interface.
3781
3782 * gnu-nat.c (gnu_stop): Add ptid argument.
3783 * go32-nat.c (go32_stop): Add ptid argument.
3784 (go32_create_inferior): Pass inferior_ptid to go32_stop.
3785 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
3786 * monitor.c (monitor_stop): Add ptid argument.
3787 (monitor_open): Pass inferior_ptid to monitor_stop.
3788 (monitor_interrupt): Pass inferior_ptid to target_stop.
3789 (monitor_stop): Add ptid argument.
3790 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
3791 (procfs_create_inferior): Add ptid argument.
3792 * procfs.c (procfs_stop): Add ptid argument.
3793 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
3794 * remote-sim.c (gdbsim_stop): Add ptid argument.
3795 * sol-thread.c (sol_thread_stop): Add ptid argument.
3796 * win32-nat.c (win32_stop): Add ptid argument.
3797
3798 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3799
3800 Non-stop inferior control.
3801
3802 * infrun.c (resume): In non-stop mode, always resume just one
3803 thread.
3804 (proceed): Don't call prepare_to_proceed in non-stop mode.
3805 (fetch_inferior_event): In non-stop mode, switch context before
3806 handling the event.
3807 (error_is_running, ensure_not_running): New.
3808 (handle_inferior_event): In non-stop mode: Mark only the event
3809 thread as stopped. Require that the target module manages adding
3810 threads to the thread list. Assert that there isn't a
3811 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
3812 (normal_stop): Only mark not-running if inferior hasn't exited.
3813 In non-stop mode, only mark the event thread.
3814
3815 * thread.c:Include "cli/cli-decode.h".
3816 (print_thread_info): Don't read from a running thread.
3817 Output "(running)" if thread is running.
3818 (switch_to_thread): Don't read stop_pc if thread is executing.
3819 (do_restore_current_thread_cleanup): Don't write to a running
3820 thread.
3821 (thread_apply_all_command): Don't read from a running thread. In
3822 non-stop mode, do a full context-switch instead of just switching
3823 threads.
3824 (thread_apply_command): In non-stop mode, do a full context-switch
3825 instead of just switching threads.
3826 (do_captured_thread_select): Likewise. Inform user if selected
3827 thread is running.
3828 (_initialize_thread): Mark "info threads" and "thread" and
3829 async_ok.
3830
3831 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
3832 unregister the target from the event loop.
3833
3834 * infcmd.c (continue_command, step_1, jump_command)
3835 (signal_command): Ensure the selected thread isn't running.
3836 (interrupt_target_command): In non-stop mode, interrupt only the
3837 selected thread.
3838
3839 * inferior.h (error_is_running, ensure_not_running): Declare.
3840
3841 * target.h (struct target_ops): Add ptid argument to the to_stop
3842 member.
3843 (target_stop): Add ptid_t argument.
3844
3845 * target.c (update_current_target): Add ptid argument to to_stop's
3846 type.
3847 (debug_to_stop): Add ptid_t argument.
3848 (debug_to_rcmd): Set to_stop_ptid.
3849
3850 * remote.c (remote_stop): Add ptid_t argument.
3851 (async_remote_interrupt): Add inferior_ptid to target_stop.
3852 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
3853
3854 * Makefile.in (thread.o): Depend on $(cli_decode_h).
3855
3856 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3857
3858 Don't rely on ecs->wait_for_more.
3859
3860 * infrun.c (proceed): Clear the stepping state, set
3861 previous_inferior_ptid and clear infwait state.
3862 (wait_for_inferior): Don't clear the stepping state, set
3863 previous_inferior_ptid, or clear the infwait state here.
3864 (fetch_inferior_event): Don't clear the stepping state, set
3865 previous_inferior_ptid, or clear the infwait state here. Don't
3866 condition on wait_for_more.
3867
3868 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3869
3870 Refactor infrun a bit.
3871
3872 * infrun.c (currently_stepping): Take a struct
3873 thread_stepping_state instead of an execution_control_state.
3874 (struct thread_stepping_state): New, split from
3875 execution_control_state.
3876 (gtss, tss): New globals.
3877 (proceed): Clear the stepping state, set previous_inferior_ptid
3878 and clear infwait state.
3879 (init_wait_for_inferior): Clear the stepping state,
3880 previous_inferior_ptid and infwait state.
3881 (waiton_ptid, infwait_state): New, split from
3882 execution_control_state.
3883 (struct execution_control_state): Members that persist through
3884 events moved out to either struct thred_stepping_state or made
3885 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
3886 (wait_for_inferior, fetch_inferior_event): Use local
3887 execution_control_state. Update to execution_control_state split.
3888 (init_execution_control_state): Adjust.
3889 (init_thread_stepping_state): New, extracted from
3890 init_execution_control_state.
3891 (context_switch): Take a ptid instead of an
3892 execution_control_state.
3893 (context_switch_to): Adjust.
3894 (adjust_pc_after_break): Adjust.
3895 (init_infwait_state): New.
3896 (handle_inferior_event): Adjust.
3897
3898 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3899 Vladimir Prus <vladimir@codesourcery.com>
3900
3901 Per-thread commands.
3902
3903 * gdbthread.h: Remove unneeded forward declarations.
3904 Include "inferior.h".
3905 (struct thread_info): Add continuations,
3906 intermediate_continuations, proceed_to_finish, step_over_calls,
3907 stop_step, step_multi and stop_signal members.
3908 (save_infrun_state): Add continuations,
3909 intermediate_continuations, proceed_to_finish, step_over_calls,
3910 stop_step, step_multi, stop_signal and stop_bpstat parameters.
3911 (load_infrun_state): Add continuations,
3912 intermediate_continuations, proceed_to_finish, step_over_calls,
3913 stop_step, step_multi, stop_signal and stop_bpstat parameters.
3914
3915 * thread.c (load_infrun_state): In non-stop mode, load
3916 continuations, intermediate_continuations, proceed_to_finish,
3917 step_over_calls, stop_step, step_multi and stop_signal.
3918 (save_infrun_state): Store continuations,
3919 intermediate_continuations, proceed_to_finish, step_over_calls,
3920 stop_step, step_multi, stop_signal and stop_bpstat.
3921 (save_infrun_state): Store continuations,
3922 intermediate_continuations, proceed_to_finish, step_over_calls,
3923 stop_step, step_multi, stop_signal and stop_bpstat.
3924 (free_thread): Clear The thread's stop_bpstat.
3925
3926 * inferior.h (context_switch_to): Declare.
3927
3928 * infrun.c (ecss): New global.
3929 (context_switch): Context switch continuations,
3930 intermediate_continuations, proceed_to_finish, step_over_calls,
3931 stop_step, step_multi, stop_signal and stop_bpstat.
3932 (wait_for_inferior): Use global ecss.
3933 (async_ecss, async_ecs): Delete.
3934 (fetch_inferior_event): Use global ecss.
3935 (context_switch_to): New.
3936
3937 * top.c (execute_command): In non-stop, only check if the current
3938 thread is running, in all-stop, check if there's any thread
3939 running.
3940
3941 * breakpoint.c (bpstat_remove_breakpoint): New.
3942 (bpstat_remove_breakpoint_callback): New.
3943 (delete_breakpoint): Clear the stop_bpstats of all threads.
3944
3945 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
3946 current thread is running, in all-stop, check if there's any
3947 thread running.
3948
3949 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
3950
3951 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3952
3953 Add non_stop global.
3954
3955 * inferior.h (non_stop): Declare.
3956 * infrun.c (non_stop, non_stop_1): New.
3957 (set_non_stop, show_non_stop): New.
3958 (_initialize_infrun): Add "set/show non-stop" command.
3959
3960 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3961
3962 Adjust fork/vfork/exec to pass ptids around.
3963
3964 * target.h (struct target_waitstatus): Store related_pid as a ptid.
3965 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
3966 Take a ptid_t.
3967 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
3968 type to ptid.
3969 * breakpoint.c (print_it_typical, bpstat_check_location)
3970 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
3971 (create_fork_vfork_event_catchpoint): Adjust.
3972 * infrun.c (fork_event): Change parent_pid and child_pid types to
3973 ptid.
3974 (follow_exec, inferior_has_forked, inferior_has_vforked)
3975 (inferior_has_execd): Take a ptid_t and don't trim it.
3976 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
3977 * linux-nat.c (linux_child_follow_fork): Adjust.
3978 * inf-ptrace.c (inf_ptrace_wait): Adjust.
3979 * inf-ttrace.c (inf_ttrace_wait): Adjust.
3980 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
3981
3982 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3983
3984 Add "executing" property to threads.
3985
3986 * inferior.h (target_executing): Delete.
3987 * gdbthread.h (struct thread_info): Add executing_ field.
3988 (set_executing, is_executing): New.
3989 * thread.c (main_thread_executing): New.
3990 (init_thread_list): Clear it and also main_thread_running.
3991 (is_running): Return false if target has no execution.
3992 (any_running, is_executing, set_executing): New.
3993
3994 * top.c: Include "gdbthread.h".
3995 (target_executing): Delete.
3996 (execute_command): Replace target_executing check by any_running.
3997 * event-top.c: Include "gdbthread.h".
3998 (display_gdb_prompt, command_handler): Replace target_executing by
3999 is_running.
4000 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
4001 here. Replace target_executing by is_running.
4002 * infrun.c (handle_inferior_event): Mark all threads as
4003 not-executing.
4004 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
4005 here.
4006 * stack.c (get_selected_block): Return null if inferior is
4007 executing.
4008 * target.c (target_resume): Mark resumed ptid as executing.
4009 * breakpoint.c (until_break_command): Replace target_executing
4010 check by is_executing.
4011 * remote.c (remote_async_resume): Don't mark inferior as executing
4012 here.
4013 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
4014 by any_running.
4015
4016 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
4017 (mi_execute_async_cli_command): Replace target_executing by
4018 is_running.
4019
4020 * frame.c (get_current_frame): Error out if the current thread is
4021 executing.
4022 (has_stack_frames): New.
4023 (get_selected_frame, deprecated_safe_get_selected_frame): Check
4024 has_stack_frames.
4025
4026 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
4027 $(gdbthread_h).
4028
4029 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4030
4031 * symfile.c (load_command): Reopen the exec file and reread
4032 symbols before anything else.
4033
4034 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4035
4036 * remote-sim.c: Include gdbthread.h.
4037 (remote_sim_ptid): New global.
4038 (gdbsim_create_inferior): Silently add the main task to GDB's
4039 thread list.
4040 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
4041 task from GDB's thread list.
4042 (gdbsim_resume): Adjust to use remote_sim_ptid.
4043 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
4044 (init_gdbsim_ops): Register gdbsim_thread_alive and
4045 gdbsim_pid_to_str.
4046 (_initialize_remote_sim): Initialize remote_sim_ptid.
4047 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
4048
4049 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4050
4051 * monitor (monitor_ptid): New global.
4052 (monitor_open): Silently add the main task to GDB's thread list.
4053 (monitor_close, monitor_mourn_inferior): Silently delete the main
4054 task from GDB's thread list.
4055 (monitor_thread_alive, monitor_pid_to_str): New.
4056 (init_base_monitor_ops): Register monitor_thread_alive and
4057 monitor_pid_to_str.
4058 (_initialize_remote_monitors): Initialize monitor_ptid.
4059
4060 * gdbthread.h (delete_thread_silent): Declare.
4061 * thread.c (delete_thread): Rename to ...
4062 (delete_thread_1): ... this. Add "silent" parameter. If silent,
4063 don't do exit notifications.
4064 (delete_thread, delete_thread_silent): New, as wrappers to
4065 delete_thread_1.
4066
4067 2008-07-08 Pedro Alves <pedro@codesourcery.com>
4068
4069 * breakpoint.c (update_global_location_list): Add boolean
4070 "should_insert" argument. Only insert locations if caller told it
4071 too.
4072 (update_global_location_list_nothrow): Add boolean "should_insert"
4073 argument. Pass it to update_global_location_list.
4074 (insert_breakpoints, create_longjmp_breakpoint)
4075 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
4076 (create_thread_event_breakpoint, create_solib_event_breakpoint)
4077 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
4078 (enable_watchpoints_after_interactive_call_stop)
4079 (set_momentary_breakpoint, create_breakpoints)
4080 (break_command_really, watch_command_1)
4081 (create_ada_exception_breakpoint, update_breakpoint_locations)
4082 (do_enable_breakpoint, enable_command): Pass true to
4083 update_global_location_list.
4084 (bpstat_stop_status, disable_overlay_breakpoints)
4085 (disable_watchpoints_before_interactive_call_start)
4086 (delete_breakpoint, disable_breakpoint, disable_command): Pass
4087 false to update_global_location_list.
4088 (update_breakpoints_after_exec): Don't temporarily disable
4089 always-inserted mode.
4090
4091 2008-07-08 Pedro Alves <pedro@codesourcery.com>
4092
4093 * breakpoint.c (mark_breakpoints_out): Make public.
4094 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
4095 here. Update comment.
4096 * breakpoint.h (mark_breakpoints_out): Declare.
4097
4098 * linux-nat.c (linux_handle_extended_wait): On
4099 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
4100 * inf-ttrace.c (inf_ttrace_wait): Likewise.
4101
4102 2008-07-08 Pedro Alves <pedro@codesourcery.com>
4103
4104 * infrun.c (follow_exec): Reset shared libraries before adding the
4105 main exec file.
4106
4107 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4108
4109 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
4110
4111 2008-07-07 Pedro Alves <pedro@codesourcery.com>
4112
4113 * i386-dicos-tdep.c: Include "inferior.h".
4114 (i386_dicos_frame_align): New.
4115 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
4116 dummy location ON_STACK.
4117 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
4118
4119 2008-07-07 Joel Brobecker <brobecker@adacore.com>
4120
4121 * gstdint.h: New file.
4122
4123 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
4124
4125 * mi/mi-interp.c (mi_on_resume): Don't try to report
4126 resumed thread it the thread list is empty.
4127
4128 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
4129
4130 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
4131 completer for set to filename_completer.
4132
4133 NEWS: Mention it.
4134
4135 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
4136
4137 Implement -target-attach.
4138 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
4139
4140 2008-06-21 Hui Zhu <teawater@gmail.com>
4141
4142 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
4143
4144 2008-07-03 Pedro Alves <pedro@codesourcery.com>
4145
4146 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
4147 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
4148
4149 * target.h (struct target_ops): Add to_attach_no_wait member.
4150 (target_attach_no_wait): New.
4151 * target.c (update_current_target): Inherit to_attach_no_wait.
4152
4153 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
4154 target_attach_no_wait runtime check.
4155
4156 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
4157 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
4158 win32_ops.
4159
4160 2008-07-03 Pedro Alves <pedro@codesourcery.com>
4161
4162 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
4163 on debug_displaced being set.
4164
4165 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
4166
4167 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
4168 directly instead of get_frame_id.
4169
4170 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
4171
4172 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
4173 (deal_with_atomic_sequence): Update BC masks.
4174 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
4175 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
4176
4177 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
4178
4179 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
4180 register, not the previous frame's.
4181
4182 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
4183
4184 * source.c (select_source_symtab): Make sure we skip namespace
4185 symtabs when showing cpp source code.
4186
4187 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
4188
4189 * MAINTAINERS (Authorized committers): Fix my email address.
4190
4191 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
4192
4193 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
4194 -target-download and -target-select via CLI, so that
4195 the quoting rules are the same as they were (unfortunately)
4196 in all prior gdb releases.
4197 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
4198 (mi_cmd_target_download, mi_cmd_target_select): Remove.
4199 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
4200 (mi_cmd_target_download, mi_cmd_target_select): Remove.
4201 (mi_cmd_execute): Set current_token even for commands
4202 routed via CLI.
4203
4204 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
4205
4206 * alphafbsd-tdep.c: Update for unwinder changes.
4207 * alpha-linux-tdep.c: Likewise.
4208 * alphanbsd-tdep.c: Likewise.
4209 * alphaobsd-tdep.c: Likewise.
4210 * avr-tdep.c: Likewise.
4211 * cris-tdep.c: Likewise.
4212 * frv-linux-tdep.c: Likewise.
4213 * frv-tdep.c: Likewise.
4214 * h8300-tdep.c: Likewise.
4215 * hppa-linux-tdep.c: Likewise.
4216 * iq2000-tdep.c: Likewise.
4217 * m32c-tdep.c: Likewise.
4218 * m32r-linux-tdep.c: Likewise.
4219 * m32r-tdep.c: Likewise.
4220 * m68hc11-tdep.c: Likewise.
4221 * mep-tdep.c: Likewise.
4222 * mn10300-tdep.c: Likewise.
4223 * mt-tdep.c: Likewise.
4224 * score-tdep.c: Likewise.
4225 * sh64-tdep.c: Likewise.
4226 * sh-tdep.c: Likewise.
4227 * sparc64fbsd-tdep.c: Likewise.
4228 * sparc64nbsd-tdep.c: Likewise.
4229 * sparc64obsd-tdep.c: Likewise.
4230 * v850-tdep.c: Likewise.
4231 * vaxobsd-tdep.c: Likewise.
4232 * vax-tdep.c: Likewise.
4233 * xstormy16-tdep.c: Likewise.
4234
4235 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
4236
4237 * mi/mi-main.c (enum captured_mi_execute_command_actions)
4238 (captured_mi_execute_command_args): Remove.
4239 (captured_mi_execute_command): Cast the closure to mi_parse
4240 pointer, not to captured_mi_execute_command_args, and don't
4241 set the action field thereof.
4242 (mi_execute_command): Pass struct mi_parse, not
4243 captured_mi_execute_command_args to captured_mi_execute_command.
4244 (mi_execute_command): Remove (dead) code for suppressing
4245 printing prompt.
4246
4247 2008-06-28 Pedro Alves <pedro@codesourcery.com>
4248
4249 * linux-nat.c (enum sigchld_state): New.
4250 (linux_nat_async_events_state): Renamed from
4251 linux_nat_async_events_enabled.
4252 (linux_nat_event_pipe_push, my_waitpid): Adjust.
4253 (sigchld_default_action): New.
4254 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
4255 unconditionally.
4256 (linux_nat_create_inferior): Set events state to sigchld_default
4257 state.
4258 (linux_nat_resume): Adjust.
4259 (linux_nat_wait): Call linux_nat_async_events unconditionally.
4260 (sigchld_handler): Adjust.
4261 (linux_nat_async_mask): Don't set SIGCHLD actions here.
4262 (get_pending_events): Adjust.
4263 (linux_nat_async_events): Rewrite to handle enum sigchld_state
4264 instead of a boolean.
4265 (linux_nat_async): Adjust.
4266 (_initialize_linux_nat): Capture default SIGCHLD action into
4267 sigchld_default_action.
4268
4269 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
4270
4271 * breakpoint.c (moribund_locations): New.
4272 (bpstat_stop_status): Process moribund locations.
4273 (update_global_location_list): Add removed
4274 locations to moribund_locations.
4275 (breakpoint_retire_moribund): New.
4276 * breakpoint.h (struct bp_location): New field
4277 events_till_retirement.
4278 (breakpoint_retire_moribund): Declare.
4279 * thread.c (thread_count): New.
4280 * infrun.c (handle_inferior_event): Call
4281 breakpoint_retire_moribund.
4282 * gdbthread.h (thread_count): Declare.
4283
4284 2008-06-27 Joseph Myers <joseph@codesourcery.com>
4285
4286 * dfp.c (decimal_convert): Call match_endianness before and after
4287 conversion.
4288
4289 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
4290
4291 * remote.c (remote_insert_breakpoint): Ensure that if Z0
4292 unsupported and we fall back to memory_insert_breakpoint, we
4293 use the unmodified requested address.
4294
4295 2008-06-27 Joel Brobecker <brobecker@adacore.com>
4296
4297 * dwarf2read.c (read_attribute_value): Issue a complaint when
4298 adjusting size attribute values of 0xffffffff as zero.
4299
4300 2008-06-27 Joseph Myers <joseph@codesourcery.com>
4301
4302 * i386-tdep.c (i386_16_byte_align_p): New.
4303 (i386_push_dummy_call): Determine stack space required for
4304 arguments going forwards allowing for 16-byte alignment, then push
4305 arguments going forwards.
4306
4307 2008-06-27 Pedro Alves <pedro@codesourcery.com>
4308
4309 * infrun.c (start_remote): Don't clear thread list here.
4310 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
4311 list here.
4312 * remote.c (record_currthread): Upgrade the main thread and its
4313 entry in the thread list if this is the first time we hear about
4314 threads.
4315 (remote_thread_alive): Consider magic_null_ptid or a ptid without
4316 a tid member always alive.
4317 (remote_find_new_threads): Don't update the main thread here.
4318 (remote_start_remote): Clear thread list here. Always add the
4319 main thread.
4320 (extended_remote_attach_1): Add the main thread here.
4321 (extended_remote_mourn_1): Re-add the main thread here.
4322 (extended_remote_create_inferior_1): Add a main thread.
4323
4324 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
4325
4326 2008-06-27 Pedro Alves <pedro@codesourcery.com>
4327
4328 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4329
4330 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
4331 globals.
4332 (general_thread, continue_thread): Change type to ptid_t.
4333 (record_currthread): Take a ptid_t parameter instead of an
4334 integer.
4335 (MAGIC_NULL_PID): Delete.
4336 (set_thread): Take a ptid_t parameter and adjust.
4337 (set_general_thread, set_continue_thread): New.
4338 (remote_thread_alive, remote_newthread_step)
4339 (remote_current_thread, remote_find_new_threads)
4340 (remote_threads_info, remote_start_remote, remote_vcont_resume)
4341 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
4342 (threadalive_test, remote_pid_to_str)
4343 (remote_get_thread_local_address): Adjust.
4344 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
4345 and any_thread_ptid.
4346
4347 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4348
4349 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
4350 * configure: Regenerated.
4351
4352 2008-06-26 Joel Brobecker <brobecker@adacore.com>
4353
4354 * dwarf2read.c (read_attribute_value): Treat size attribute
4355 values of 0xffffffff as if the attribute value was zero.
4356
4357 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
4358
4359 * linux-nat.c: Add description of overall logic.
4360
4361 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
4362
4363 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
4364 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
4365 all dependencies on $(gdb_stdint_h).
4366 (distclean): Do not delete gdb_stdint.h.
4367 * acinclude.m4: Do not use stdint.m4.
4368 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
4369 uintptr_t, and gdb_stdint.h.
4370 * defs.h: Include <stdint.h>.
4371 * gdb_thread_db.h: Assume stdint.h is already included.
4372 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
4373 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
4374 include gdb_stdint.h.
4375 * configure, config.in: Regenerate.
4376
4377 2008-06-26 Joseph Myers <joseph@codesourcery.com>
4378
4379 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
4380 decimal floating-point values in GPRs for soft-float.
4381 (do_ppc_sysv_return_value): Handle returning decimal
4382 floating-point values in GPRs for soft-float.
4383
4384 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
4385
4386 * target.c (target_read_until_error): New.
4387 * target.h (target_read_until_error): Declare.
4388 * mi/mi-main.c (mi_cmd_data_read_memory): Use
4389 target_read_until_error.
4390
4391 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4392
4393 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
4394 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
4395 after the DECFLOAT detection to fix a memory leak. Remove the
4396 redundant NUM initialization. Protect the DECFLOAT detection memory
4397 access before the P block. Restore the P memory content for the
4398 DECFLOAT detection.
4399
4400 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
4401
4402 Kill the return value for all MI command functions.
4403 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
4404 (mi_cmd_argv_ftype): Change return type to void.
4405
4406 * mi/mi-main.c: Adjust all function that implement
4407 MI commands to return nothing.
4408 (struct captured_mi_execute_command_actions):
4409 Remove the rc field.
4410 (mi_cmd_execute): Return nothing.
4411 (mi_execute_async_cli_command): Return nothing.
4412 (mi_cmd_exec_interrupt): Don't print ^done here.
4413 (mi_cmd_target_select): Don't print ^connected here.
4414 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
4415 Special-case -target-select and output ^connected, not ^done.
4416
4417 * mi/mi-cmd-break.c: Adjust.
4418 * mi/mi-cmd-disas.c: Adjust.
4419 * mi/mi-cmd-env.c: Adjust.
4420 * mi/mi-cmd-file.c: Adjust.
4421 * mi/mi-cmd-stack.c: Adjust.
4422 * mi/mi-cmd-target.c: Adjust.
4423 * mi/mi-cmd-var.c: Adjust.
4424 * mi/mi-interp.c: Adjust.
4425 * mi/mi-symbol-cmds.c: Adjust.
4426
4427 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
4428
4429 Emit ^running via observer.
4430 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
4431 ^running here.
4432 (mi_on_resume): Print ^running if not previously output.
4433 * mi/mi-main.c (running_result_record_printed): New.
4434 (captured_mi_execute_command): Reset
4435 running_result_record_printed. Use running_result_record_printed
4436 to decide if we should skip ^done.
4437 (mi_execute_async_cli_command): Don't print ^running here.
4438 * mi/mi-main.h (current_token, running_result_record_printed):
4439 Declare.
4440
4441 2008-06-24 Michael Snyder <msnyder@specifix.com>
4442
4443 * infrun.c (_initialize_infrun): White space and typo fix.
4444
4445 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
4446
4447 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
4448 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
4449 when first loading DLL with "dll" command.
4450
4451 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4452
4453 * gnu-nat.c (proc_string): Use capital T for "Thread".
4454
4455 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4456
4457 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
4458
4459 2008-06-18 Joel Brobecker <brobecker@adacore.com>
4460
4461 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
4462 the target cannot run.
4463
4464 2008-06-18 Joel Brobecker <brobecker@adacore.com>
4465
4466 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
4467 we're attaching to a running process.
4468
4469 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
4470
4471 * win32-nat.c (handle_load_dll): Give dll name and load address
4472 if debug_events is on.
4473 (handle_unload_dll): Likewise.
4474
4475 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
4476
4477 Don't suppress *running when doing finish.
4478 * infcall.c (call_function_by_hand): Set both
4479 suppress_resume_observer and suppress_stop_observer.
4480 * infcmd.c (suppress_run_stop_observers): Split into...
4481 (suppress_resume_observer, suppress_stop_observer): ...those.
4482 (finish_command_continuation): Clear suppress_stop_observer.
4483 (finish_command): Set suppress_stop_observer.
4484 * inferior.h (suppress_run_stop_observers): Split into...
4485 (suppress_resume_observer, suppress_stop_observer): ...those.
4486 * infrun.c (normal_stop): Check for suppress_stop_observer.
4487 * thread.c (set_running): Check for suppress_resume_observer.
4488
4489 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
4490 Pierre Muller <muller@ics.u-strasbg.fr>
4491
4492 * gdbarch.sh (gdbarch_skip_main_prologue): New.
4493 * gdbarch.h, gdbarch.c: Regenerate.
4494 * i386-tdep.h (i386_skip_main_prologue): Declare.
4495 * i386-tdep.c (i386_skip_main_prologue): New.
4496 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4497 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
4498 * symtab.c (find_function_start_sal): When pc points at the "main"
4499 function, call gdbarch_skip_main_prologue.
4500
4501 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
4502
4503 * value.c (value_primitive_field): Fetch lazy register values.
4504
4505 2008-06-11 Pedro Alves <pedro@codesourcery.com>
4506
4507 * NEWS: Mention support removal of undocumented S AA p PID stop
4508 reply packet.
4509
4510 * remote.c (remote_wait): Remove undocumented S AA p PID support.
4511
4512 2008-06-10 Stan Shebs <stan@codesourcery.com>
4513
4514 * MAINTAINERS: Update my affiliation and address.
4515
4516 2008-06-10 Andreas Schwab <schwab@suse.de>
4517
4518 * top.c (print_gdb_version): Don't print final newline.
4519
4520 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
4521
4522 Implement *running.
4523 * Makefile.in: Update dependencies.
4524 * gdbthread.h (struct thread_info): New field
4525 running_.
4526 (set_running, is_running): New.
4527 * thread.c (set_running, is_running): New.
4528 * inferior.h (suppress_normal_stop_observer): Rename to...
4529 (suppress_run_stop_observers): ..this.
4530 * infcmd.c (suppress_normal_stop_observer): Rename to...
4531 (suppress_run_stop_observers): ..this.
4532 (finish_command_continuation, finish_command): Adjust.
4533 * infcall.c (call_function_by_hand): Adjust.
4534 * infrun.c (normal_stop): Call set_running.
4535 * target.c (target_resume): New. Call set_running.
4536 * target.h (target_resume): Convert from macro to
4537 a function.
4538
4539 * mi/mi-interp.c (mi_on_resume): New.
4540 (mi_interpreter_init): Register mi_on_resume.
4541
4542 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
4543
4544 Use observers to report stop events in MI.
4545 * mi/mi-interp.c (mi_on_normal_stop): New.
4546 (mi_interpreter_init): Register mi_on_normal_stop.
4547 (mi_interpreter_exec_continuation): Remove.
4548 (mi_cmd_interpreter_exec): Don't register the above.
4549 * mi/mi-main.c (captured_mi_execute_command): Don't care
4550 about sync_execution.
4551 (mi_execute_async_cli_command): Don't install continuation. Don't
4552 print *stopped.
4553 (mi_exec_async_cli_cmd_continuation): Remove.
4554
4555 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
4556
4557 Suppress normal stop observer when it's problematic.
4558 * inferior.h (suppress_normal_stop_observer): New.
4559 * infcall.c (call_function_by_hand): Disable stop events when
4560 doing function calls.
4561 * infmcd.c (suppress_normal_stop_observer): New.
4562 (finish_command_continuation): Call normal_stop observer
4563 explicitly.
4564 (finish_command): Disable stop events inside proceed.
4565 * infrun.c (normal_stop): Don't call normal stop observer if
4566 suppressed of if multi-step is in progress.
4567
4568 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
4569
4570 Remove stale code.
4571 * infrun.c (finish_command): Don't pass cleanup
4572 to continuation.
4573 (finish_command_continuation): Don't grab cleanup from
4574 the passed data, as we don't use, and cannot, use it anyway.
4575
4576 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
4577
4578 Introduce common cleanup for restoring integers.
4579 * defs.h (make_cleanup_restore_integer): New declaration.
4580 (struct cleanup): New field free_arg.
4581 (make_my_cleanup_2): New.
4582 * utils.c (restore_integer_closure, restore_integer)
4583 (make_cleanup_restore_integer): New.
4584 (make_my_cleanup): Initialize the free_arg field and
4585 renamed to make_my_cleanup_2.
4586 (do_my_cleanups): Call free_arg.
4587 (discard_cleanups): Call free_arg.
4588 * breakpoint.c (restore_always_inserted_mode): Remove.
4589 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
4590
4591 2008-06-09 Doug Evans <dje@google.com>
4592
4593 * remote.c (remote_wait): Include beginning of malformed packet
4594 in error output.
4595
4596 2008-06-09 Tom Tromey <tromey@redhat.com>
4597
4598 * completer.c (complete_line): Don't special-case
4599 expression_completer.
4600 (expression_completer): Only pass last word to
4601 location_completer.
4602 * c-exp.y (yylex): Check 'token', not 'operator'.
4603
4604 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
4605
4606 * configure.ac (build_warnings): Add -Wno-format for mingw.
4607 * configure: Regenerated.
4608
4609 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4610
4611 * NEWS: Make indentation consistent. Move exec tracing entry out
4612 of remote packet list.
4613
4614 2008-06-06 Tom Tromey <tromey@redhat.com>
4615
4616 * value.h (evaluate_subexpression_type, extract_field_op):
4617 Declare.
4618 * printcmd.c (_initialize_printcmd): Use expression_completer for
4619 'p', 'inspect', 'call'.
4620 * parser-defs.h (parse_field_expression): Declare.
4621 * parse.c: Include exceptions.h.
4622 (in_parse_field, expout_last_struct): New globals.
4623 (mark_struct_expression): New function.
4624 (prefixify_expression): Return int.
4625 (prefixify_subexp): Return int. Use expout_last_struct.
4626 (parse_exp_1): Update.
4627 (parse_exp_in_context): Add 'out_subexp' argument. Handle
4628 in_parse_field.
4629 (parse_field_expression): New function.
4630 * expression.h (parse_field_expression): Declare.
4631 (in_parse_field): Likewise.
4632 * eval.c (evaluate_subexpression_type): New function.
4633 (extract_field_op): Likewise.
4634 * completer.h (expression_completer): Declare.
4635 * completer.c (expression_completer): New function.
4636 (count_struct_fields, add_struct_fields): New functions.
4637 * c-exp.y (yyparse): Redefine.
4638 (COMPLETE): New token.
4639 (exp): New productions.
4640 (saw_name_at_eof, last_was_structop): New globals.
4641 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
4642 (c_parse): New function.
4643 * breakpoint.c (_initialize_breakpoint): Use expression_completer
4644 for watch, awatch, and rwatch.
4645 * Makefile.in (parse.o): Depend on exceptions_h.
4646
4647 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4648
4649 PR gdb/1147
4650 * gdb/valopts.c (find_overload_match): Handle references
4651 to pointers.
4652
4653 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
4654
4655 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
4656 account the bitsize of the 'from' operand.
4657
4658 2008-06-06 Pedro Alves <pedro@codesourcery.com>
4659
4660 * annotate.h (annotate_thread_changed): Declare.
4661
4662 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
4663
4664 * annotate.c (annotate_thread_changed): New function.
4665 * thread.c (thread_command) : Use it.
4666 * infrun.c (normal_stop): Use it.
4667
4668 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
4669 Nathan Sidwell <nathan@codesourcery.com>
4670 Joseph Myers <joseph@codesourcery.com>
4671
4672 * acinclude.m4: Include ../config/acx.m4.
4673 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
4674 * configure, config.in: Regenerate.
4675 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
4676 address.
4677 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
4678
4679 2008-06-05 Pedro Alves <pedro@codesourcery.com>
4680
4681 Replace 'target async' by 'maintenance set remote-async' and
4682 'target remote' combination.
4683
4684 * remote.c (remote_async_wait): Merge into remote_wait, and
4685 remove.
4686 (remote_async_permitted, remote_async_permitted_set): New
4687 variables.
4688 (set_maintenance_remote_async_permitted)
4689 (show_maintenance_remote_async_permitted): New functions.
4690 (remote_async_ops, extended_async_remote_ops): Delete.
4691 (remote_async_open, extended_remote_async_open): Delete.
4692 (remote_open_1): Drop async_p parameter. Update callers. Replace
4693 async_p with remote_async_permitted checks.
4694 (extended_async_remote_attach): Delete.
4695 (remote_resume, remote_async_resume): Merge and leave remote_resume.
4696 (remote_async_terminal_inferior): Rename to...
4697 (remote_terminal_inferior): ... this, and add
4698 remote_async_termitted check.
4699 (remote_async_terminal_ours): Rename to...
4700 (remote_terminal_ours): ... this, and add remote_async_termitted
4701 check.
4702 (remote_wait, remote_async_wait): Merge and leave remote_wait
4703 only.
4704 (remote_kill, remote_async_kill): Merge and leave remote_kill
4705 only.
4706 (remote_async_mourn, extended_async_remote_mourn): Delete.
4707 (extended_remote_create_inferior_1): Drop async_p parameter.
4708 Update callers. Always use extended_remote_ops.
4709 (extended_remote_async_create_inferior): Delete.
4710 (remote_return_zero): Delete.
4711 (init_remote_ops): Register remote_can_async_p, remote_async,
4712 remote_async_mask, remote_terminal_inferior and
4713 remote_terminal_ours.
4714 (remote_can_async_p, remote_is_async_p): Check for
4715 remote_async_permitted.
4716 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
4717 (set_remote_cmd): Don't add async and extended-async targets.
4718 (_initialize_remote): Add set/show remote-async maintenance
4719 commands.
4720
4721 2008-06-05 Pedro Alves <pedro@codesourcery.com>
4722
4723 * remote.c (kill_kludge): Delete.
4724 (remote_wait, remote_async_wait): Don't set it.
4725 (remote_kill, remote_async_kill): Don't do anything with it.
4726
4727 2008-06-05 Pedro Alves <pedro@codesourcery.com>
4728
4729 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
4730
4731 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
4732
4733 * bcache.c (bcache_data): Call deprecated_bcache_added function.
4734 (deprecated_bcache_added): New function name. Body of function
4735 bcache_data is used here with the addition of 'added' argument.
4736 * bcache.h (deprecated_bcache_added): New function.
4737 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
4738 work from add_psymbol_to_list - initialises partial symbol and stashes
4739 it in objfile's cache.
4740 (append_psymbol_to_list): New helper function, takes other part of
4741 work from add_psymbol_to_list - adds partial symbol to the given list.
4742 (add_psymbol_to_list): Call helper functions instead of doing work
4743 here. If adding to global list, do not duplicate partial symbols in the
4744 partial symtab.
4745
4746 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
4747
4748 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
4749 'exception caught|thrown' message.
4750
4751 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4752
4753 * Makefile.in: Update dependencies.
4754 * dwarf2expr.c: New include "gdb_assert.h".
4755 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
4756 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
4757 (execute_stack_op): Error out on too large RECURSION_DEPTH.
4758 Increase/decrease RECURSION_DEPTH around the function.
4759
4760 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4761
4762 * remote.c (get_offsets): Handle a single segment.
4763 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
4764 than segments.
4765
4766 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
4767
4768 * solib-svr4.c (struct lm_info): Add lm_addr.
4769 (main_lm_addr): New.
4770 (svr4_default_sos): Set lm_addr.
4771 (svr4_current_sos): Set lm_addr and main_lm_addr.
4772 (svr4_fetch_objfile_link_map): Rewrite.
4773 (svr4_clear_solib): Clear main_lm_addr.
4774
4775 2008-06-03 Michael Snyder <msnyder@redhat.com>
4776 Joseph Myers <joseph@codesourcery.com>
4777
4778 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
4779 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
4780
4781 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
4782
4783 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
4784
4785 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
4786
4787 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
4788
4789 2008-06-01 Joel Brobecker <brobecker@adacore.com>
4790
4791 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
4792 treat pointers in data space as function descriptors if the
4793 target address is also in the data space.
4794
4795 2008-05-30 Joel Brobecker <brobecker@adacore.com>
4796
4797 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
4798 the trad-frame register value for the SP register.
4799
4800 2008-05-29 Mark Kettenis <kettenis@gnu.org>
4801
4802 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
4803
4804 2008-05-28 Joel Brobecker <brobecker@adacore.com>
4805
4806 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
4807 that identifies function descriptors outside of the .opd section.
4808
4809 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
4810
4811 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
4812 temporary catchpoints. In MI add missing fields 'reason', 'disp',
4813 'bkptno'.
4814 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
4815 catchpoints.
4816 (handle_gnu_v3_exceptions): Use tempflag.
4817
4818 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
4819
4820 Refactor varobj_update interface.
4821 * varobj.c (varobj_update): Report changes as vector. Also
4822 return not just a list of varobj, but a list of special structures
4823 that tell what exactly has changed.
4824 * varobj.h (enum varobj_update_error): Rename to
4825 varobj_scope_status.
4826 (struct varobj_update_result_t): New.
4827 (varobj_update): Adjust prototype.
4828 * mi/mi-cmd-var.c: Adjust for changes.
4829
4830 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
4831
4832 * varobj.c (varobj_update): Fix comment typo.
4833 Fix indentation.
4834
4835 2008-05-26 Joel Brobecker <brobecker@adacore.com>
4836
4837 Set the symtab field of symbols read from ECOFF debugging entries.
4838 * mdebugread.c (add_symbol): Add new parameter symtab.
4839 (parse_symbol): Update calls to add_symbol throughout.
4840
4841 2008-05-27 Andreas Schwab <schwab@suse.de>
4842
4843 * symtab.h (enum address_class): Remove LOC_REGPARM and
4844 LOC_COMPUTED_ARG.
4845 (struct symbol): Add is_argument.
4846 (SYMBOL_IS_ARGUMENT): Define.
4847
4848 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
4849 * buildsym.c (finish_block): Likewise.
4850 * stack.c (print_frame_args, print_block_frame_locals)
4851 (print_frame_arg_vars): Likewise.
4852 * symtab.c (lookup_block_symbol): Likewise.
4853 * tracepoint.c (add_local_symbols): Likewise.
4854 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4855
4856 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
4857 * dwarf2read.c (new_symbol): Likewise.
4858 * mdebugread.c (parse_symbol): Likewise.
4859 * stabsread.c (define_symbol): Likewise.
4860
4861 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
4862 and LOC_COMPUTED_ARG.
4863 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4864 * ax-gdb.c (gen_var_ref): Likewise.
4865 * eval.c (evaluate_subexp_for_address): Likewise.
4866 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4867 * m2-exp.y (yylex): Likewise.
4868 * printcmd.c (address_info): Likewise.
4869 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4870 * tracepoint.c (collect_symbol, scope_info): Likewise.
4871
4872 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4873
4874 * gdbarch.sh: Added new gdbarch struct
4875 core_regset_sections.
4876 * gdbarch.c: Refreshed.
4877 * gdbarch.h: Refreshed.
4878 * regset.h (core_regset_section): Declared.
4879 * linux-nat.c (linux_nat_do_thread_registers): Added
4880 support for the new gdbarch struct core_regset_sections.
4881 * utils.c (host_address_to_string): New function.
4882 * defs.h (host_address_to_string): New prototype.
4883 * i386-linux-tdep.c (i386_regset_rections): New register
4884 sections list for i386.
4885 (i386_linux_init_abi): Initialized new gdbarch struct
4886 core_regset_sections.
4887 * Makefile.in: Updated to reflect dependency changes.
4888 * ppc-linux-tdep.c (ppc_regset_sections): Register
4889 sections list for ppc.
4890 (ppc_linux_init_abi): Initialized new gdbarch struct
4891 core_regset_sections
4892
4893 2008-05-24 Andreas Schwab <schwab@suse.de>
4894
4895 * linespec.c (decode_objc): Save current language around call to
4896 get_selected_block.
4897
4898 2008-05-23 Joel Brobecker <brobecker@adacore.com>
4899
4900 * valprint.h (get_array_bounds): Renames get_array_low_bound.
4901 * valprint.c (get_array_bounds): Renames get_array_low_bound.
4902 Return the proper bound value if the array index type is an
4903 enumerated type. Compute the high bound if requested.
4904 (val_print_array_elements): Handle the case when the array
4905 element has a null size.
4906 * ada-valprint.c (print_optional_low_bound): Add handling
4907 for empty arrays or arrays of zero-size elements.
4908 (ada_val_print_array): New function, extracted out from
4909 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
4910 handle empty arrays and arrays of zero-size elements.
4911 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
4912 code by call to ada_val_print_array.
4913 (ada_value_print): Remove handling of null array. The handling
4914 was incomplete and is now better handled by ada_val_print_array.
4915
4916 2008-05-23 Markus Deuling <deuling@de.ibm.com>
4917
4918 * annotate.c (annotate_source, annotate_frame_begin): Replace
4919 deprecated_print_address_numeric with paddress.
4920 * cli/cli-cmds.c (list_command, edit_command): Likewise.
4921 * tui/tui-stack.c (tui_make_status_line): Likewise.
4922
4923 * defs.h (deprecated_print_address_numeric): Remove.
4924 * printcmd.c (deprecated_print_address_numeric): Remove.
4925 * maint.c (maint_print_section_info): Fix comment.
4926
4927 2008-05-23 Markus Deuling <deuling@de.ibm.com>
4928
4929 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
4930 print_binary_chars, print_char_chars): Add byte_order parameter and
4931 replace gdbarch_byte_order.
4932 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
4933 expressions and remove them. Remove unused TWO_TO_FOURTH.
4934 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
4935 endianness. Update call to print_hex_chars.
4936 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
4937 print_binary_chars, print_char_chars): Add byte_order parameter.
4938 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
4939 get at the endianness. Update print_*_char calls to use byte_order.
4940
4941 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4942
4943 * symtab.h (struct symbol): Make "aux_value" member a void pointer
4944 instead of a union.
4945 (SYMBOL_LOCATION_BATON): Update.
4946
4947 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4948
4949 * symtab.h (enum address_class): Remove LOC_BASEREG and
4950 LOC_BASEREG_ARG.
4951 (struct symbol): Remove "basereg" member of "aux_value" union.
4952 (SYMBOL_BASEREG): Remove.
4953
4954 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
4955 or LOC_BASEREG_ARG.
4956 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4957 (ada_add_block_symbols): Likewise.
4958 * ax-gdb.c (gen_var_ref): Likewise.
4959 * buildsym.c (finish_block): Likewise.
4960 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4961 * m2-exp.y (yylex): Likewise.
4962 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4963 * printcmd.c (address_info): Likewise.
4964 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
4965 (print_frame_arg_vars): Likewise.
4966 * symmisc.c (print_symbol): Likewise.
4967 * symtab.c (lookup_block_symbol): Likewise.
4968 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
4969 (scope_info): Likewise.
4970
4971 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4972
4973 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
4974
4975 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
4976 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4977 (ada_add_block_symbols): Likewise.
4978 * ax-gdb.c (gen_var_ref): Likewise.
4979 * buildsyms.c (finish_block): Likewise.
4980 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4981 * m2-exp.y (yylex): Likewise.
4982 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4983 * printcmd.c (address_info): Likewise.
4984 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
4985 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4986 * symtab.c (lookup_block_symbol): Likewise.
4987 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
4988 (scope_info): Likewise.
4989
4990 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4991
4992 * symtab.h (enum address_class): Remove LOC_INDIRECT and
4993 LOC_HP_THREAD_LOCAL_STATIC.
4994
4995 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
4996 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
4997 (read_var_value): Likewise.
4998 * buildsym.c (finish_block): Likewise.
4999 * objfiles.c (objfile_relocate): Likewise.
5000 * printcmd.c (address_info): Likewise.
5001 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5002 * tracepoint.c (scope_info): Likewise.
5003
5004 2008-05-21 Markus Deuling <deuling@de.ibm.com>
5005 Maxim Grigoriev <maxim2405@gmail.com>
5006
5007 * xtensa-tdep.c (xtensa_read_register): Remove.
5008 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
5009 argument litbase to call0_frame_cache().
5010 (call0_track_op, call0_analyze_prologue)
5011 (call0_frame_cache): Use extra argument litbase.
5012
5013 2008-05-21 Joel Brobecker <brobecker@adacore.com>
5014
5015 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
5016
5017 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
5018
5019 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
5020
5021 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
5022
5023 * alpha-mdebug-tdep.c: Include "trad-frame.h".
5024 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
5025 struct trad_frame_saved_reg *.
5026 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
5027 trad_frame_alloc_saved_regs. Update accesses. Record previous
5028 value of SP as being vfp.
5029 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
5030 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
5031
5032 2008-05-21 Markus Deuling <deuling@de.ibm.com>
5033
5034 * score-tdep.c (score_print_insn): Get the current endianess from
5035 disassemble_info instead of gdbarch_byte_order.
5036
5037 2008-05-21 Pedro Alves <pedro@codesourcery.com>
5038
5039 * frame.c (get_prev_frame_1): Build frame id before setting
5040 this_frame->prev_p, not after.
5041
5042 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
5043
5044 * annotate.c (annotate_new_thread): New function for new-thread
5045 annotation.
5046 * annotate.h: (annotate_new_thread): New extern.
5047 * thread.c (add_thread_with_info): Use it.
5048 * Makefile.in (thread.o): Add dependency on annotate.h.
5049
5050 2008-05-20 Joel Brobecker <brobecker@adacore.com>
5051
5052 * win32-nat.c (win32_wait): Block the control-c event while
5053 waiting for a debug event.
5054
5055 2008-05-19 Pedro Alves <pedro@codesourcery.com>
5056
5057 * symtab.h (lookup_symbol_in_language): Update comment.
5058 * symtab.c (lookup_symbol_aux_block): Update comment.
5059 * ada-lang.c (ada_lookup_symbol_list): Update comment.
5060
5061 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
5062
5063 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
5064 (lookup_symbol): Likewise.
5065 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
5066 (lookup_symbol): Likewise.
5067 (search_symbols): Update.
5068
5069 * linespec.c (find_methods, collect_methods): Update.
5070 (add_matching_methods, add_constructors): Update.
5071 (decode_compound, decode_dollar, decode_variable): Update.
5072 (lookup_prefix_sym): Update.
5073
5074 (symbol_found): Remove SYM_SYMTAB parameter.
5075 Use SYMBOL_SYMTAB (sym) instead.
5076
5077 * gdbtypes.c (lookup_typename): Update.
5078 (lookup_struct, lookup_union, lookup_enum): Update.
5079 (lookup_template_type): Update.
5080 (check_typedef): Update.
5081 * language.c (lang_bool_type): Update.
5082 * mdebugread.c (parse_procedure): Update.
5083 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5084 * parse.c (write_dollar_variable): Update.
5085 * printcmd.c (address_info): Update.
5086 * source.c (select_source_symtab): Update.
5087 * stack.c (print_frame_args, print_frame_arg_vars): Update.
5088 * valops.c (find_function_in_inferior): Update.
5089 (value_struct_elt_for_reference): Update.
5090 * value.c (value_static_field, value_fn_field): Update.
5091
5092 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5093 * arm-tdep.c (arm_skip_prologue): Update.
5094 * mt-tdep.c (mt_skip_prologue): Update.
5095 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
5096
5097 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
5098 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
5099 (add_defn_to_vec): Likewise.
5100 (ada_add_block_symbols): Likewise.
5101 (lookup_cached_symbol, cache_symbol): Likewise.
5102 (standard_lookup): Update.
5103 (ada_lookup_symbol_list): Update.
5104
5105 * c-valprint.c (c_val_print): Update.
5106 * cp-support.c (cp_lookup_rtti_type): Update.
5107 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
5108 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
5109 * p-valprint.c (pascal_val_print): Update.
5110 * scm-lang.c (scm_lookup_name): Update.
5111
5112 * c-exp.y: Update.
5113 * f-exp.y: Update.
5114 * jv-exp.y: Update.
5115 * m2-exp.y: Update.
5116 * objc-exp.y: Update.
5117 * p-exp.y: Update.
5118
5119 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
5120
5121 * language.h (struct language_defn): Remove SYMTAB parameter from
5122 la_lookup_symbol_nonlocal callback function pointer.
5123
5124 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
5125 (ada_lookup_encoded_symbol): Likewise.
5126 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
5127 Always call fixup_symbol_section.
5128 (ada_lookup_symbol): Remove SYMTAB parameter.
5129 (ada_lookup_symbol_nonlocal): Likewise.
5130 * ada-exp.y (write_object_renaming): Update.
5131 (find_primitive_type): Likewise.
5132
5133 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
5134 (cp_lookup_symbol_namespace): Likewise.
5135 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
5136 (lookup_symbol_file): Likewise.
5137 (lookup_possible_namespace_symbol): Likewise.
5138 (cp_lookup_symbol_nonlocal): Likewise.
5139 (cp_lookup_symbol_namespace): Likewise.
5140 (cp_lookup_nested_type): Update.
5141
5142 * scm-valprint.c (scm_inferior_print): Update.
5143 * valops.c (value_maybe_namespace_elt): Update.
5144
5145 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
5146 lookup_lib_global_symbol callback function pointer.
5147 (solib_global_lookup): Remove SYMTAB parameter.
5148 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
5149 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5150
5151 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
5152 (lookup_symbol_static): Likewise.
5153 (lookup_symbol_global): Likewise.
5154 (lookup_symbol_aux_block): Likewise.
5155 (lookup_global_symbol_from_objfile): Likewise.
5156 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
5157 (lookup_symbol_aux_local): Likewise.
5158 (lookup_symbol_aux_block): Likewise.
5159 (lookup_symbol_aux_symtabs): Likewise.
5160 (lookup_symbol_aux_psymtabs): Likewise.
5161 (lookup_global_symbol_from_objfile): Likewise.
5162 (basic_lookup_symbol_nonlocal): Likewise.
5163 (lookup_symbol_static): Likewise.
5164 (lookup_symbol_global): Likewise.
5165
5166 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
5167
5168 2008-05-17 Pedro Alves <pedro@codesourcery.com>
5169
5170 * remote.c (init_extended_remote_ops): Fix typo.
5171
5172 2008-05-16 Pedro Alves <pedro@codesourcery.com>
5173
5174 * NEWS: Mention new DICOS x86 target configuration.
5175
5176 2008-05-16 Pedro Alves <pedro@codesourcery.com>
5177 Ulrich Weigand <uweigand@de.ibm.com>
5178
5179 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
5180 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
5181
5182 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
5183 use it instead of ginfo->value.address. Look up minimal symbol by
5184 address and name. Assume OBJFILE is non-NULL.
5185 (fixup_symbol_section): Ensure we always have an objfile to look
5186 into. Extract and pass to fixup_section the symbol's address that
5187 will match the minimal symbol's address.
5188 (fixup_psymbol_section): Likewise.
5189
5190 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
5191 overlays and the addrmap returned the wrong section.
5192
5193 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
5194 calling fixup_symbol_section.
5195
5196 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
5197
5198 * minsyms.c: Include "target.h".
5199 (find_solib_trampoline_target): Handle minimal symbols pointing
5200 to function descriptors as well.
5201 * Makefile.in (minsyms.o): Update dependencies.
5202
5203 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
5204 (ppc64_standard_linkage1): ... this. Fix optional instructions.
5205 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
5206 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
5207 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
5208 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
5209 (ppc64_standard_linkage_target): Rename to ...
5210 (ppc64_standard_linkage1_target): ... this.
5211 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
5212 (ppc64_skip_trampoline_code): Support three variants of standard
5213 linkage stubs. Call find_solib_trampoline_target to handle
5214 glink stubs.
5215
5216 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
5217
5218 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
5219 ppc64_sysv_abi_adjust_breakpoint_address.
5220 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
5221 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
5222
5223 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
5224
5225 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
5226 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
5227 of ppc_linux_skip_trampoline_code.
5228
5229 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
5230
5231 * gdbarch.sh: Delete dwarf_reg_to_regnum.
5232 * gdbarch.c, gdbarch.h: Regenerated.
5233 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
5234 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
5235 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
5236
5237 2008-05-15 Pedro Alves <pedro@codesourcery.com>
5238
5239 * linux-nat.c (trap_ptid): Delete.
5240 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
5241 Adjust.
5242 * linux-thread-db.c (thread_db_wait): Adjust.
5243
5244 2008-05-15 Joel Brobecker <brobecker@adacore.com>
5245
5246 * linespec.c (decode_line_1): Fix a couple of comments.
5247
5248 2008-05-15 Alan Modra <amodra@bigpond.net.au>
5249
5250 * dbxread.c: Formatting.
5251 (INTERNALIZE_SYMBOL): Init n_other.
5252 (set_namestring): Take pointer to nlist arg rather than struct
5253 copy. Update all callers.
5254
5255 2008-05-15 Andreas Schwab <schwab@suse.de>
5256
5257 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
5258 (dwarf2read.o): Add $(addrmap_h).
5259
5260 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
5261
5262 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
5263 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
5264 to handle ppc32 PLT entries.
5265 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
5266 only on ppc64.
5267
5268 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5269
5270 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
5271 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
5272 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
5273 (lookup_minimal_symbol_by_pc_section): Use
5274 lookup_minimal_symbol_by_pc_section_1.
5275 (lookup_solib_trampoline_symbol_by_pc): Likewise.
5276
5277 2008-05-13 Joel Brobecker <brobecker@adacore.com>
5278
5279 * findcmd.c: Add #include "gdb_stdint.h".
5280 * Makefile.in (findcmd.o): Update dependencies.
5281
5282 2008-05-11 David S. Miller <davem@davemloft.net>
5283
5284 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
5285 long double size override, Linux does use 128-bit now.
5286
5287 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
5288 (sparc_linux_write_pc): New function.
5289 (sparc32_linux_init_abi): Register it.
5290 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
5291 (sparc64_linux_write_pc): New function.
5292 (sparc64_linux_init_abi): Register it.
5293
5294 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
5295 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
5296
5297 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5298
5299 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
5300 and info.tdep_info before calling gdbarch_init_osabi.
5301
5302 2008-05-09 Joel Brobecker <brobecker@adacore.com>
5303
5304 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
5305 the type of the right hand side of the assignment to the type
5306 of the left hand side if the left hand side is a convenience
5307 variable.
5308
5309 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
5310
5311 * NEWS: Mention gdbserver bi-arch capability.
5312
5313 2008-05-09 Doug Evans <dje@google.com>
5314
5315 New "find" command.
5316 * NEWS: Document find command and qSearch:memory packet.
5317 * Makefile.in (SFILES): Add findcmd.c.
5318 (COMMON_OBJS): Add findcmd.o.
5319 (findcmd.o): New rule.
5320 * findcmd.c: New file.
5321 * target.h (target_ops): New member to_search_memory.
5322 (simple_search_memory): Declare.
5323 (target_search_memory): Declare.
5324 * target.c (simple_search_memory): New fn.
5325 (target_search_memory): New fn.
5326 * remote.c (PACKET_qSearch_memory): New packet kind.
5327 (remote_search_memory): New fn.
5328 (init_remote_ops): Init to_search_memory.
5329 (init_extended_remote_ops): Ditto.
5330 (_initialize_remote): Add qSearch:memory packet config command.
5331
5332 2008-05-09 Eli Zaretskii <eliz@gnu.org>
5333
5334 * thread.c (_initialize_thread): Don't use commas and periods in
5335 first line of doc string of "set/show print thread-events".
5336
5337 2008-05-08 Joel Brobecker <brobecker@adacore.com>
5338
5339 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
5340 Update for unwinder changes.
5341
5342 2008-05-08 Joel Brobecker <brobecker@adacore.com>
5343
5344 * frame.c (get_frame_base_address, get_frame_locals_address)
5345 (get_frame_args_address): Pass the correct frame when calling
5346 frame_base_find_by_frame.
5347
5348 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5349
5350 * remote.c (extended_remote_attach_1): Call target_find_description.
5351
5352 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
5353
5354 * remote.c (extended_remote_create_inferior_1): Clean up
5355 before marking the target running.
5356
5357 2008-05-08 Joel Brobecker <brobecker@adacore.com>
5358
5359 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
5360 changes.
5361
5362 2008-05-07 Joel Brobecker <brobecker@adacore.com>
5363
5364 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
5365 sparc64-sol2-tdep.c: Update for unwinder changes.
5366
5367 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
5368
5369 * cp-support.c (mangled_name_to_comp): Initialize storage.
5370 (unqualified_name_from_comp): Likewise.
5371
5372 2008-05-07 Jie Zhang <jie.zhang@analog.com>
5373
5374 * remote.c (remote_insert_breakpoint): Call get_remote_state
5375 after gdbarch_breakpoint_from_pc is called.
5376 (remote_insert_hw_breakpoint): Likewise.
5377
5378 2008-05-06 Joel Brobecker <brobecker@adacore.com>
5379
5380 * valprint.c (val_print): Add new language parameter and use it
5381 instead of using the current_language. Update calls to val_print
5382 throughout.
5383 (common_val_print): Add new langauge parameter and pass it to
5384 val_print.
5385 * value.h (struct language_defn): Add opaque declaration.
5386 (val_print, common_val_print): Update declarations.
5387 * stack.c (print_frame_args): Update call to common_val_print
5388 using the appropriate language.
5389 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5390 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
5391 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
5392 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
5393 #include "language.h" if necessary.
5394 Update calls to val_print and common_val_print.
5395 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
5396 Update dependencies.
5397
5398 2008-05-06 Joel Brobecker <brobecker@adacore.com>
5399
5400 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
5401 pointing inside a non-executable section as function descriptors.
5402
5403 2008-05-06 Pedro Alves <pedro@codesourcery.com>
5404
5405 * inf-loop.c (inferior_event_handler): Run all continuations and
5406 print any language change before running the breakpoint commands.
5407
5408 2008-05-06 Joel Brobecker <brobecker@adacore.com>
5409
5410 * frame-unwind.c (frame_unwind_got_bytes): New function.
5411 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
5412 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
5413 for unwinder changes.
5414
5415 2008-05-05 Doug Evans <dje@google.com>
5416
5417 * NEWS: Mention new /m modifier for disassemble command.
5418 * cli/cli-cmds.c (print_disassembly): New function.
5419 (disassemble_current_function): New function
5420 (disassemble_command): Recognize /m modifier, print mixed
5421 source+assembly.
5422 (init_cli_cmds): Update disassemble help text.
5423
5424 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
5425
5426 * xtensa-tdep.c: Update for unwinder changes.
5427
5428 2008-05-05 Andreas Schwab <schwab@suse.de>
5429
5430 Update m68k port for unwinder changes.
5431 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
5432 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
5433 (m68k_frame_unwind): Use default_frame_sniffer.
5434 (m68k_frame_sniffer): Remove.
5435 (m68k_frame_base_address): Expect this_frame.
5436 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
5437 this_frame.
5438 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
5439 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
5440 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
5441 parameter instead of pc value.
5442 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
5443 Expect this_frame.
5444 (m68k_linux_sigtramp_frame_this_id)
5445 (m68k_linux_sigtramp_frame_prev_register)
5446 (m68k_linux_sigtramp_frame_sniffer): Update signature.
5447 (m68k_linux_sigtramp_frame_unwind): Use
5448 m68k_linux_sigtramp_frame_sniffer.
5449 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
5450
5451 * m68klinux-nat.c (store_register): Fix typo.
5452
5453 2008-05-05 Pedro Alves <pedro@codesourcery.com>
5454
5455 * infcmd.c (step_1): Put thread id on the stack to avoid possible
5456 NULL dereferencing.
5457
5458 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
5459
5460 * symfile.c (reread_symbols): Update objfile's entry point.
5461
5462 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
5463 Joel Brobecker <brobecker@adacore.com>
5464
5465 * ada-lang.c: Update throughout to use symbol_matches_domain
5466 instead of matching the symbol domain explictly.
5467 * dwarf2read.c (add_partial_symbol): Do not add new psym for
5468 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5469 class as typedefs. See lookup_partial_symbol function.
5470 (new_symbol): Similar to add_partial_symbol, do not create
5471 symbol for the typedef. See lookup_block_symbol.
5472 * symtab.c (symbol_matches_domain): New function, takes care
5473 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
5474 (lookup_partial_symbol): Use symbol_matches_domain to see if the
5475 found psym domain matches the given domain.
5476 (lookup_block_symbol): Likewise.
5477
5478 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
5479
5480 * top.c (command_line_handler_continuation): Remove.
5481 (execute_command): Do not install the above.
5482
5483 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
5484
5485 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
5486 and catch all exceptions from it.
5487 * top.c (command_line_handler_continuation): Don't
5488 call bpstat_do_action here.
5489
5490 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
5491
5492 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
5493 (struct die_info): Remove type.
5494 (read_type_die, read_typedef, read_base_type, read_subrange_type)
5495 (read_structure_type, read_enumeration_type, read_array_type)
5496 (read_tag_pointer_type, read_tag_ptr_to_member_type)
5497 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
5498 (read_tag_string_type, read_subroutine_type, read_set_type)
5499 (read_unspecified_type): Delete prototypes. Remove check for
5500 already-loaded type. Return the new type.
5501 (set_die_type): Return the new type.
5502 (reset_die_and_siblings_types): Delete.
5503 (load_comp_unit, load_full_comp_unit): Set type_hash.
5504 (process_queue): Remove call to reset_die_and_siblings_types.
5505 (process_die): Do not read most types here. Use read_type_die
5506 for others.
5507 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
5508 (quirk_gcc_member_function_pointer): Return the new type.
5509 (process_structure_scope, process_enumeration_scope): Use
5510 get_die_type and read the DIE's type.
5511 (read_full_die): Do not initialize die->type.
5512 (tag_type_to_type): Use read_type_die.
5513 (read_type_die): Check for already defined types. Return the
5514 type.
5515 (determine_prefix): Use get_die_type.
5516 (set_die_type): Return the type.
5517 (get_die_type): Take a CU argument. Check for no type_hash.
5518
5519 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
5520
5521 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
5522 locals.
5523
5524 2008-05-04 Pedro Alves <pedro@codesourcery.com>
5525
5526 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
5527 and bp_longjmp_resume breakpoints.
5528 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
5529 meaningful.
5530 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
5531 breakpoints. Create bp_longjmp breakpoints as momentary
5532 breakpoints.
5533 (enable_longjmp_breakpoint): Delete.
5534 (set_longjmp_breakpoint): New.
5535 (disable_longjmp_breakpoint): Delete.
5536 (delete_longjmp_breakpoint): New.
5537 (set_longjmp_resume_breakpoint): Delete.
5538 (set_momentary_breakpoint_at_pc): New.
5539 (breakpoint_re_set_one): Don't delete bp_longjmp and
5540 bp_longjmp_resume breakpoints.
5541 (breakpoint_re_set): Don't create longjmp and longjmp-resume
5542 breakpoints.
5543
5544 * infrun.c (step_resume_breakpoint): Add comment.
5545 (struct execution_control_state): Delete handling_longjmp member.
5546 (init_execution_control_state). Don't clear handling_longjmp.
5547 (context_switch): Don't context switch handling_longjmp.
5548 (handle_inferior_event): If handling a bp_longjmp breakpoint,
5549 create a bp_longjmp_resume breakpoint, and set it as current
5550 step_resume_breakpoint, then step over the longjmp breakpoint. If
5551 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
5552 breakpoint, delete the longjmp-resume breakpoint, and stop
5553 stepping.
5554 (currently_stepping): Remove handling_longjmp from expression.
5555 (insert_step_resume_breakpoint_at_sal): Update comment.
5556 (insert_longjmp_resume_breakpoint): New.
5557
5558 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
5559 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
5560 declarations.
5561 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
5562 (set_longjmp_resume_breakpoint): Delete declaration.
5563
5564 * gdbthread.h (save_infrun_state): Remove handling_longjmp
5565 parameter.
5566 (load_infrun_state): Delete *handling_longjmp parameter.
5567 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
5568 Update body.
5569 (load_infrun_state): Delete *handling_longjmp parameter. Update
5570 body.
5571
5572 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
5573 (delete_longjmp_breakpoint_cleanup): New.
5574 (step_1): Call set_longjmp_breakpoint instead of
5575 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
5576 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
5577 (step_1_continuation): Pass thread id in the continuation args to
5578 step_once.
5579 (step_once): Add thread parameter. Pass thread id the the
5580 continuation.
5581
5582 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5583
5584 Set CU BASE_ADDRESS already from partial DIEs.
5585 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
5586 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
5587 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
5588 from these variables if it was still unset.
5589
5590 * Makefile.in: Update dependencies.
5591 * dwarf2read.c: Include "addrmap.h"
5592 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
5593 (dwarf2_ranges_read): New prototype.
5594 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
5595 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
5596 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
5597 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
5598 comment for it. Add the found ranges to RANGES_PST. New variable
5599 BASEADDR, initialize it the common way.
5600 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
5601 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
5602 HAS_RANGES_OFFSET for the later processing.
5603 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
5604 * symtab.c: Include "addrmap.h"
5605 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
5606 Move the psymtab locator into ...
5607 (find_pc_sect_psymtab_closer): ... a new function.
5608
5609 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5610
5611 * arch-utils.c (gdbarch_update_p): Use default values for
5612 info.abfd and info.target_desc if they are NULL.
5613 (gdbarch_from_bfd): Remove assertion.
5614 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
5615 using the current target description.
5616 (gdbarch_info_fill): Do not use default values for info->abfd
5617 and info->target_desc.
5618
5619 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5620
5621 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
5622
5623 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5624
5625 * inferior.h (read_pc_pid, write_pc_pid): Remove.
5626 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
5627
5628 * regcache.c (read_pc_pid): Remove, replace by ...
5629 (regcache_read_pc): ... this function.
5630 (write_pc_pid): Remove, replace by ...
5631 (regcache_write_pc): ... this function.
5632 (read_pc, write_pc): Update.
5633
5634 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
5635 write_pc_pid by regcache_read_pc and regcache_write_pc.
5636 (displaced_step_fixup): Likewise.
5637 (resume): Likewise. Use regcache arch instead of current_gdbarch.
5638 (prepare_to_proceed): Likewise.
5639 (proceed): Likewise.
5640 (adjust_pc_after_break): Likewise.
5641 (handle_inferior_event): Likewise.
5642
5643 * linux-nat.c (cancel_breakpoint): Likewise.
5644 * linux-thread-db.c (check_event): Likewise.
5645 * aix-thread.c (aix_thread_wait): Likewise.
5646 * tracepoint.c (trace_dump_command): Likewise.
5647
5648 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5649
5650 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
5651 SYMBOL_LOCATION_BATON.
5652
5653 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
5654
5655 * target.h (struct target_ops): New field to_auxv_parse.
5656 * auxv.c (default_auxv_parse): New, renamed from previous
5657 target_auxv_parse.
5658 (target_auxv_parse): Try to call target method. Fallback to
5659 default_auxv_parse if not found.
5660 * procfs.c (procfs_auxv_parse): New.
5661 (init_procfs_ops): On Solaris, in 64-bit mode, install
5662 procfs_auxv_parse.
5663
5664 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
5665
5666 * symfile.c (add_symbol_file_command): Use paddress rather than
5667 hex_string to print the address.
5668
5669 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5670
5671 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
5672 return the null frame ID to terminate the backtrace.
5673
5674 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5675
5676 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
5677 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
5678 (SIG_FRAME_PC_OFFSET): Likewise.
5679 (SIG_FRAME_LR_OFFSET): Likewise.
5680 (SIG_FRAME_FP_OFFSET): Likewise.
5681 (rs6000_push_dummy_call): Likewise.
5682 (rs6000_return_value): Likewise.
5683 (rs6000_convert_from_func_ptr_addr): Likewise.
5684 (branch_dest, rs6000_software_single_step): Likewise.
5685 (deal_with_atomic_sequence): Rename to ...
5686 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
5687 Do not call branch_dest; inline required parts of that function.
5688 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
5689 with SYMBOL_LINKAGE_NAME.
5690 (struct reg, regsize): Delete.
5691 (read_memory_addr): Delete; inline into callers.
5692 (rs6000_skip_prologue): Move after skip_prologue.
5693 (skip_prologue): Remove prototype.
5694 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
5695 initialization as if this variable were true. Do not install
5696 ppc64_sysv_abi_adjust_breakpoint_address.
5697
5698 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
5699 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
5700 and "breakpoint.h".
5701 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
5702 (SIG_FRAME_PC_OFFSET): Likewise.
5703 (SIG_FRAME_LR_OFFSET): Likewise.
5704 (SIG_FRAME_FP_OFFSET): Likewise.
5705 (rs6000_push_dummy_call): Likewise.
5706 (rs6000_return_value): Likewise.
5707 (rs6000_convert_from_func_ptr_addr): Likewise.
5708 (branch_dest, rs6000_software_single_step): Likewise. Replace
5709 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
5710 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
5711 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
5712 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
5713 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
5714
5715 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
5716 (AIX_TEXT_SEGMENT_BASE): New macro.
5717 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
5718 by AIX_TEXT_SEGMENT_BASE.
5719
5720 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
5721 (struct gdbarch_tdep): Remove text_segment_base member.
5722 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
5723 ppc64_sysv_abi_adjust_breakpoint_address.
5724
5725 * Makefile.in (rs6000-tdep.o): Update dependencies.
5726 (rs6000-aix-tdep.o): Likewise.
5727
5728 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
5729 Thiago Jung Bauermann <bauerman@br.ibm.com>
5730
5731 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
5732 * doublest.c (convert_typed_floating): Fix typo in comment.
5733 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5734 * frame-unwind.h (frame_sniffer_ftype): Likewise.
5735 * frame.c (frame_unwind_address_in_block): Likewise.
5736 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
5737 * symtab.h (struct symbol): Likewise.
5738 * tramp-frame.h (struct trad_frame_cache): Likewise.
5739 * value.c (allocate_repeat_value): Likewise.
5740
5741 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5742
5743 * infrun.c (handle_inferior_event): Do not insert breakpoints at
5744 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
5745
5746 2008-05-03 Pedro Alves <pedro@codesourcery.com>
5747
5748 * parse.c (parse_exp_in_context): Don't override
5749 expression_context_pc if get_selected_block returned a valid
5750 block.
5751
5752 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
5753
5754 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
5755 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
5756 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
5757 Delete.
5758 * c-typeprint.c (c_type_print_base): Delete handling of template
5759 instantiations.
5760 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
5761 (METHOD_PTR_TO_VOFFSET): Delete.
5762 * defs.h (QUIT_FIXME): Delete.
5763 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
5764 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
5765 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
5766 ninstantiations, and instantiations.
5767 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
5768 (TYPE_FN_FIELD_INLINED): Delete.
5769 * srec.h (SREC_BINARY): Delete.
5770 * symtab.c (symbol_init_demangled_name): Delete.
5771 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
5772 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
5773 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
5774 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
5775 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
5776 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
5777 * target.h (enum thread_control_capabilities): Delete tc_switch.
5778 (target_can_switch_threads): Delete.
5779
5780 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
5781
5782 * Makefile.in (objfiles.o): Update.
5783 * exec.c (exec_set_section_address): Support p->addr != 0.
5784 * objfiles.c (objfile_relocate): Update exec_ops section
5785 addresses.
5786 * symfile.c (place_section): Move exec_set_section_address call...
5787 (default_symfile_offsets): ...to here.
5788
5789 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5790
5791 * Makefile.in (ppc_linux_tdep_h): New macro.
5792 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
5793 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
5794 (powerpc_e500l_c): Likewise.
5795 (ppc-linux-nat.o): Update dependencies.
5796 (ppc-linux-tdep.o): Update dependencies.
5797 (rs6000-tdep.o): Update dependencies.
5798
5799 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
5800 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
5801 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
5802 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
5803 (tdesc_powerpc_e500): Remove.
5804
5805 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
5806 and "features/rs6000/powerpc-altivec64.c".
5807 (ppc_supply_reg, ppc_collect_reg): Make global.
5808 (variants): Use tdesc_powerpc_32 for "powerpc" and
5809 tdesc_powerpc_altivec64 for "powerpc64".
5810 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
5811
5812 * ppc-linux-tdep.h: New file.
5813
5814 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
5815 Include "features/rs6000/powerpc-32l.c".
5816 Include "features/rs6000/powerpc-altivec32l.c".
5817 Include "features/rs6000/powerpc-64l.c".
5818 Include "features/rs6000/powerpc-altivec64l.c".
5819 Include "features/rs6000/powerpc-e500l.c".
5820 (ppc_linux_supply_gregset): New function.
5821 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
5822 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
5823 (ppc64_linux_gregset): Likewise.
5824 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
5825 (ppc_linux_trap_reg_p): New function.
5826 (ppc_linux_write_pc): New function.
5827 (ppc_linux_core_read_description): New function.
5828 (ppc_linux_init_abi): Install ppc_linux_write_pc and
5829 ppc_linux_core_read_description. Install orig_r3 and trap
5830 registers if present in the target description.
5831 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
5832
5833 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
5834 (PT_ORIG_R3, PT_TRAP): Define if necessary.
5835 (ppc_register_u_addr): Handle orig_r3 and trap registers.
5836 (fetch_ppc_registers): Likewise.
5837 (store_ppc_registers): Likewise.
5838 (store_register): Likewise.
5839 (ppc_linux_read_description): Check whether AltiVec is supported.
5840 Check whether inferior is 32-bit or 64-bit. Return the appropriate
5841 Linux target description.
5842
5843 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
5844 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
5845 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
5846 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
5847 rs6000/powerpc-e500. Update -expedite variables accordingly.
5848
5849 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
5850 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
5851 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
5852 * features/rs6000/powerpc-e500.c: Regenerate.
5853 * features/rs6000/powerpc-32.c: Regenerate.
5854 * features/rs6000/powerpc-64.c: Regenerate.
5855
5856 * features/rs6000/power-linux.xml: New file.
5857 * features/rs6000/power64-linux.xml: New file.
5858 * features/rs6000/powerpc-32l.xml: New file.
5859 * features/rs6000/powerpc-altivec32l.xml: New file.
5860 * features/rs6000/powerpc-64l.xml: New file.
5861 * features/rs6000/powerpc-altivec64l.xml: New file.
5862 * features/rs6000/powerpc-e500l.xml: New file.
5863 * features/rs6000/powerpc-32l.c: New (generated) file.
5864 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
5865 * features/rs6000/powerpc-64l.c: New (generated) file.
5866 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
5867 * features/rs6000/powerpc-e500l.xml: New (generated) file.
5868
5869 * regformats/reg-ppc.dat: Remove.
5870 * regformats/reg-ppc64.dat: Remove.
5871 * regformats/rs6000/powerpc-32.dat: Remove.
5872 * regformats/rs6000/powerpc-64.dat: Remove.
5873 * regformats/rs6000/powerpc-e500.dat: Remove.
5874 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
5875 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
5876 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
5877 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
5878 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
5879
5880 2008-05-03 Pedro Alves <pedro@codesourcery.com>
5881
5882 * thread.c (delete_thread): Call observer_notify_thread_exit.
5883 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
5884 thread_exit observer.
5885 (mi_thread_exit): New.
5886
5887 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5888
5889 * breakpoint.c (create_exception_catchpoint): Remove prototype
5890 for already deleted function.
5891 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
5892 * frame.h (show_stack_frame): Remove prototype.
5893 * stack.c (show_stack_frame): Remove empty, unused function.
5894 * source.c (symtab_to_fullname, print_source_lines): Small fix
5895 in comment.
5896 * value.c (show_values): Update comments to mention "show values"
5897 command instead of "info history".
5898
5899 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
5900
5901 * linespec.c: Include "target.h".
5902 (minsym_found): Handle minimal symbols pointing to function
5903 descriptors. Use find_function_start_pc.
5904 * minsyms.c (msymbol_objfile): New function.
5905 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
5906 to function descriptors.
5907 * symtab.c (fixup_section): Only use minimal symbol at the same
5908 address to determine section of a symbol.
5909 (find_function_start_pc): New function.
5910 (find_function_start_sal): Use it.
5911 * symtab.h (msymbol_objfile): Add prototype.
5912 (find_function_start_pc): Likewise.
5913 * value.c: Include "objfiles.h".
5914 (value_fn_field): Handle minimal symbols pointing to function
5915 descriptors.
5916 * Makefile.in (linespec.o): Update dependencies.
5917 (value.o): Likewise.
5918
5919 2008-05-02 Joel Brobecker <brobecker@adacore.com>
5920
5921 * ada-lang.c (unwrap_value): Handle the case where the "F" field
5922 inside a PAD type is a bitfield.
5923
5924 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
5925
5926 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
5927 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
5928 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
5929 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
5930 Allow typedefs when checking for function pointer arguments.
5931 Right-align small structs passed on the stack.
5932 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
5933 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
5934 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
5935
5936 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5937
5938 * Makefile.in (arm-tdep.o): Update.
5939 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
5940 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
5941 (arm_pc_is_thumb): Use mapping symbols.
5942 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
5943 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
5944 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
5945 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
5946 * gdbarch.sh: Add record_special_symbol.
5947 * gdbarch.c, gdbarch.h: Regenerated.
5948 * objfiles.c (struct objfile_data): Add cleanup member.
5949 (register_objfile_data_with_cleanup): New function, from
5950 register_objfile_data.
5951 (register_objfile_data): Use it.
5952 (objfile_free_data): Call clear_objfile_data.
5953 (clear_objfile_data): Call cleanup functions.
5954 * objfiles.h (register_objfile_data_with_cleanup): Declare.
5955
5956 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5957
5958 * objfiles.c (init_entry_point_info): Handle shared libraries.
5959
5960 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5961
5962 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
5963 lowest_pc.
5964
5965 2008-05-02 Jim Blandy <jimb@codesourcery.com>
5966 Pedro Alves <pedro@codesourcery.com>
5967
5968 Implement displaced stepping.
5969
5970 * gdbarch.sh (max_insn_length): New 'variable'.
5971 (displaced_step_copy, displaced_step_fixup)
5972 (displaced_step_free_closure, displaced_step_location): New
5973 functions.
5974 (struct displaced_step_closure): Add forward declaration.
5975 * gdbarch.c, gdbarch.h: Regenerated.
5976
5977 * arch-utils.c: #include "objfiles.h".
5978 (simple_displaced_step_copy_insn)
5979 (simple_displaced_step_free_closure)
5980 (displaced_step_at_entry_point): New functions.
5981 * arch-utils.h (simple_displaced_step_copy_insn)
5982 (simple_displaced_step_free_closure)
5983 (displaced_step_at_entry_point): New prototypes.
5984
5985 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
5986 (I386_MAX_MATCHED_INSN_LEN): ... this.
5987 (i386_absolute_jmp_p, i386_absolute_call_p)
5988 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
5989 (i386_displaced_step_fixup): New functions.
5990 (struct i386_insn, i386_match_insn): Update.
5991 (i386_gdbarch_init): Set gdbarch_max_insn_length.
5992 * i386-tdep.h (I386_MAX_INSN_LEN): New.
5993 (i386_displaced_step_fixup): New prototype.
5994 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
5995 Register gdbarch_displaced_step_copy,
5996 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
5997 and gdbarch_displaced_step_location functions.
5998
5999 * infrun.c (debug_displaced): New variable.
6000 (show_debug_displaced): New function.
6001 (struct displaced_step_request): New struct.
6002 (displaced_step_request_queue, displaced_step_ptid)
6003 (displaced_step_gdbarch, displaced_step_closure)
6004 (displaced_step_original, displaced_step_copy)
6005 (displaced_step_saved_copy, can_use_displaced_stepping): New
6006 variables.
6007 (show_can_use_displaced_stepping, use_displaced_stepping)
6008 (displaced_step_clear, cleanup_displaced_step_closure)
6009 (displaced_step_dump_bytes, displaced_step_prepare)
6010 (displaced_step_clear_cleanup, write_memory_ptid)
6011 (displaced_step_fixup): New functions.
6012 (resume): Call displaced_step_prepare.
6013 (proceed): Call read_pc once, and remember the value. If using
6014 displaced stepping, don't remove breakpoints.
6015 (handle_inferior_event): Call displaced_step_fixup. Add some
6016 debugging output. When we try to step over a breakpoint, but get
6017 a signal to deliver to the thread instead, ensure the step-resume
6018 breakpoint is actually inserted. If a thread hop is needed, and
6019 displaced stepping is enabled, don't remove breakpoints.
6020 (init_wait_for_inferior): Call displaced_step_clear.
6021 (_initialize_infrun): Add "set debug displaced" command. Add
6022 "maint set can-use-displaced-stepping" command. Clear
6023 displaced_step_ptid.
6024 * inferior.h (debug_displaced): Declare variable.
6025 (displaced_step_dump_bytes): Declare function.
6026
6027 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
6028 dependencies.
6029
6030 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6031
6032 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
6033 (arm_force_mode_string, arm_show_fallback_mode)
6034 (arm_show_force_mode): New.
6035 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
6036 arm_frame_is_thumb.
6037 (_initialize_arm_tdep): Add "set arm fallback-mode"
6038 and "set arm force-mode".
6039 * NEWS: Document new commands.
6040
6041 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
6042
6043 * main.h (batch_silent): Declare.
6044 * event-top.c: Include main.h.
6045 (gdb_setup_readline): Remove extern batch_silent declaration.
6046 * infrun.c (normal_stop): Don't print source location when running in
6047 --batch-silent mode.
6048 * Makefile.in (event-top.o): Add main.h dependency.
6049
6050 2008-05-02 Andreas Schwab <schwab@suse.de>
6051
6052 * target.h (struct target_ops): Add
6053 to_watchpoint_addr_within_range.
6054 (target_watchpoint_addr_within_range): New function.
6055 * target.c (update_current_target): Inherit
6056 to_watchpoint_addr_within_range, defaulting to
6057 default_watchpoint_addr_within_range.
6058 (default_watchpoint_addr_within_range): New function.
6059 (debug_to_watchpoint_addr_within_range): New function.
6060 (setup_target_debug): Set to_watchpoint_addr_within_range.
6061 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
6062 New function.
6063 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
6064 * breakpoint.c (watchpoints_triggered): Use
6065 target_watchpoint_addr_within_range.
6066
6067 2008-05-01 Pedro Alves <pedro@codesourcery.com>
6068
6069 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
6070 (i[34567]86-*-dicos*, x86_64-*-dicos*):
6071 Set gdb_osabi to GDB_OSABI_DICOS.
6072
6073 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
6074 * osabi.c (gdb_osabi_name): Add "DICOS".
6075
6076 * i386-dicos-tdep.c: New file.
6077
6078 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
6079 (ALLDEPFILES): Add i386-dicos-tdep.c.
6080 (i386-dicos-tdep.o): New rule.
6081
6082 2008-05-01 Pedro Alves <pedro@codesourcery.com>
6083
6084 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
6085 and register the fork's PTID as a thread.
6086
6087 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
6088
6089 PR gdb/1665
6090 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
6091 assign its value to the breakpoint created.
6092 (create_breakpoints): Add breakpoint_ops argument and pass it
6093 to create_breakpoint call.
6094 (break_command_really): Add breakpoint_ops argument and pass/assign
6095 appropriately.
6096 (break_command_1): Pass NULL as ops argument.
6097 (set_breakpoint): Pass NULL as ops argument.
6098 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
6099 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
6100 catch and throw catchpoints.
6101
6102 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
6103
6104 PR gdb/2343
6105 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
6106 translate signal numeric value from the target to GDB's enum
6107 target_signal.
6108 * gdbarch.c, gdbarch.h: Regenerated.
6109 * gdbarch.sh: Added two new functions target_signal_from_host and
6110 target_signal_to_host.
6111 * target.h (default_target_signal_from_host,
6112 default_target_signal_to_host): New functions - declarations.
6113 * signals/signals.c (struct gdbarch): New declaration.
6114 (default_target_signal_to_host, default_target_signal_from_host): New
6115 functions.
6116
6117 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
6118 Pedro Alves <pedro@codesourcery.com>
6119
6120 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
6121 Johnston <jjohnstn@redhat.com>.
6122
6123 * NEWS: Mention attach to stopped process fix.
6124 * infcmd.c (detach_command, disconnect_command): Discard the thread
6125 list.
6126 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
6127 attaching. Use signal_stop_state.
6128 (signal_stop_state): Check stop_soon.
6129 * linux-nat.c (kill_lwp): Declare earlier.
6130 (pid_is_stopped, linux_nat_post_attach_wait): New.
6131 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
6132 comments.
6133 (linux_nat_attach): Use linux_nat_post_attach_wait.
6134 (detach_callback, linux_nat_detach): Improve handling for signalled
6135 processes.
6136 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
6137 from the process ID.
6138 * Makefile.in (infcmd.o): Update.
6139
6140 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
6141
6142 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
6143 * arm-tdep.c (arm_frame_is_thumb): New.
6144 (arm_pc_is_thumb): Clarify comment.
6145 (thumb_analyze_prologue): Remove PC special case.
6146 (thumb_scan_prologue): Take a block_addr argument. Use it for
6147 find_pc_partial_function. Remove unused variables.
6148 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
6149 for find_pc_partial_function. Remove PC special case.
6150 (arm_prologue_prev_register): Add special handling for PC and CPSR.
6151 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
6152 (arm_get_next_pc): Use arm_frame_is_thumb.
6153 (arm_write_pc): Use CPSR_T instead of 0x20.
6154 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
6155 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
6156 (CPSR_T): Define.
6157 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
6158 DWARF2_FRAME_REG_FN.
6159 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
6160 DWARF2_FRAME_REG_FN.
6161 (struct dwarf2_frame_state_reg): Add FN to loc union.
6162
6163 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
6164
6165 * exec.c (print_section_info): Add missing '\n'.
6166
6167 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
6168
6169 * thread.c (add_thread): Move observer call to ...
6170 (add_thread_silent): ... here.
6171
6172 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
6173
6174 * rs6000-tdep.c: Update for unwinder changes.
6175 * ppcobsd-tdep.c: Likewise.
6176
6177 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
6178
6179 * s390-tdep.c: Update for unwinder changes.
6180
6181 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
6182
6183 * spu-tdep.c: Update for unwinder changes.
6184
6185 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6186
6187 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
6188 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
6189 sparc64-linux-tdep.c: Update for unwinder changes.
6190
6191 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6192
6193 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
6194 for unwinder changes.
6195 * mips-tdep.c: Likewise.
6196 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
6197 raw one.
6198
6199 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6200
6201 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
6202 unwinder changes.
6203
6204 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6205
6206 Update i386 and amd64 ports for unwinder changes.
6207
6208 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
6209 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
6210 (amd64_frame_unwind): Use default_frame_sniffer.
6211 (amd64_frame_sniffer): Delete.
6212 (amd64_sigtramp_frame_cache): Expect this_frame.
6213 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
6214 (amd64_sigtramp_frame_sniffer): Update signature.
6215 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
6216 (amd64_frame_base_address): Expect this_frame.
6217 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
6218 this_frame.
6219 (amd64_init_abi): Use set_gdbarch_dummy_id and
6220 frame_unwind_append_unwinder.
6221 * i386-tdep.c (i386_frame_cache): Expect this_frame.
6222 (i386_frame_this_id, i386_frame_prev_register): Update signature.
6223 (i386_frame_unwind): Use default_frame_sniffer.
6224 (i386_frame_sniffer): Delete.
6225 (i386_sigtramp_frame_cache): Expect this_frame.
6226 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
6227 (i386_sigtramp_frame_sniffer): Update signature.
6228 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
6229 (i386_frame_base_address): Update signature.
6230 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
6231 (i386_push_dummy_call): Update comment.
6232 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
6233 Expect this_frame.
6234 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
6235 and frame_unwind_append_unwinder.
6236 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
6237 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
6238 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
6239 i386nbsd-tdep.c: Update for unwinder changes.
6240
6241 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6242
6243 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
6244 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
6245 this_frame.
6246 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
6247 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
6248 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
6249 signature.
6250 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
6251 this_frame.
6252 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
6253 Update signature.
6254 * tramp-frame.h (struct tramp_frame): Update signature of init.
6255 * Makefile.in (trad-frame.o): Update.
6256
6257 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6258
6259 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
6260 (execute_stack_op): Put this_frame in the baton.
6261 (execute_cfa_program): Take this_frame.
6262 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
6263 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
6264 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
6265 (dwarf2_frame_this_id): Adjust to work on this_frame.
6266 (dwarf2_signal_frame_this_id): Delete.
6267 (dwarf2_frame_prev_register): Update signature. Use new frame
6268 unwind methods.
6269 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
6270 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
6271 dwarf2_frame_sniffer.
6272 (dwarf2_append_unwinders): New.
6273 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
6274 this_frame.
6275 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
6276 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
6277 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
6278 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
6279 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
6280 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
6281 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
6282 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
6283 (dwarf2_append_unwinders): Declare.
6284 (dwarf2_frame_base_sniffer): Update declaration.
6285 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
6286 this_frame.
6287
6288 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6289
6290 Convert frame unwinders to use the current frame and
6291 "struct value".
6292
6293 * frame.c (frame_debug): Make global.
6294 (get_frame_id): Pass this frame to unwinder routines.
6295 (frame_pc_unwind): Remove unused unwind->prev_pc support.
6296 (do_frame_register_read): Do not discard the return value of
6297 frame_register_read.
6298 (frame_register_unwind): Remove debug messages. Use
6299 frame_unwind_register_value.
6300 (frame_unwind_register_value, get_frame_register_value): New
6301 functions.
6302 (create_new_frame, get_frame_base_address, get_frame_locals_address)
6303 (get_frame_args_address, get_frame_type): Pass this frame to
6304 unwinder routines.
6305 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
6306 functions.
6307 * frame.h: Update comments.
6308 (frame_debug, frame_unwind_register_value, get_frame_register_value)
6309 (frame_prepare_for_sniffer): Declare.
6310 * frame-unwind.h: Update comments and parameter names.
6311 (default_frame_sniffer): Declare.
6312 (frame_prev_register_ftype): Return a struct value *.
6313 (struct frame_unwind): Remove prev_pc member.
6314 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
6315 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
6316 (frame_unwind_got_register, frame_unwind_got_memory)
6317 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
6318 * frame-base.h: Update comments and parameter names.
6319 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
6320 if necessary. Add debugging output.
6321 * sentinel-frame.c (sentinel_frame_prev_register)
6322 (sentinel_frame_this_id): Update for new signature.
6323 (sentinel_frame_prev_pc): Delete.
6324 (sentinel_frame_unwinder): Remove prev_pc.
6325 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
6326 prev_pc.
6327 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
6328 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
6329 (frame_unwind_append_sniffer): Delete.
6330 (frame_unwind_append_unwinder): New function.
6331 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
6332 from unwinders. Use frame_prepare_for_sniffer.
6333 (default_frame_sniffer, frame_unwind_got_optimized)
6334 (frame_unwind_got_register, frame_unwind_got_memory)
6335 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
6336 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
6337 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
6338 signature.
6339 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
6340 * gdbarch.c, gdbarch.c: Regenerated.
6341 * frame-base.c (default_frame_base_address)
6342 (default_frame_locals_address, default_frame_args_address): Update
6343 for new signature.
6344 (frame_base_find_by_frame): Pass this frame to unwinder routines.
6345 * infcall.c (call_function_by_hand): Update comments.
6346 * Makefile.in (frame-unwind.o): Update dependencies.
6347
6348 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6349
6350 * ada-lang.c (ada_value_primitive_packed_val): Only check
6351 value_lazy for memory lvals.
6352 * findvar.c (value_of_register_lazy): New function.
6353 (locate_var_value): Only check value_lazy for memory lvals.
6354 * valarith.c (value_subscripted_rvalue): Likewise.
6355 * valops.c (value_fetch_lazy): Handle both memory and register
6356 lvals.
6357 (search_struct_field, value_slice): Only check value_lazy for memory
6358 lvals.
6359 * value.c (struct value): Update comment for lazy.
6360 (value_primitive_field): Only check value_lazy for memory lvals.
6361 * value.h (value_lazy): Update comment.
6362 (value_of_register_lazy): Declare.
6363
6364 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6365
6366 * corefile.c (reopen_exec_file): Close any open files.
6367
6368 2008-04-29 Joel Brobecker <brobecker@adacore.com>
6369
6370 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
6371 show_memory_breakpoints to 1 while reading the instruction bundle.
6372
6373 2008-04-29 Joel Brobecker <brobecker@adacore.com>
6374
6375 * gdbarch.sh: Document the return_value method. Explain that
6376 the FUNCTYPE parameter might be NULL.
6377 * gdbarch.h: Regenerated.
6378 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
6379 type when calling using_struct_return, as this is unnecessary
6380 on this target.
6381
6382 2008-04-28 Joel Brobecker <brobecker@adacore.com>
6383
6384 * terminal.h (create_tty_session): Fix return type.
6385
6386 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
6387
6388 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
6389
6390 2008-04-26 Joel Brobecker <brobecker@adacore.com>
6391
6392 * breakpoint.c (condition_command, commands_from_control_command)
6393 (break_command_really): Minor reformatting.
6394
6395 2008-04-25 Pedro Alves <pedro@codesourcery.com>
6396
6397 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
6398
6399 2008-04-25 Pedro Alves <pedro@codesourcery.com>
6400
6401 * amd64-tdep.c (amd64_get_longjmp_target): New.
6402 (amd64_init_abi): Register amd64_get_longjmp_target as
6403 gdbarch_get_longjmp_target callback.
6404 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
6405
6406 2008-04-25 Pedro Alves <pedro@codesourcery.com>
6407
6408 * breakpoint.h (enum bpstat_what_main_action): Delete
6409 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
6410
6411 * breakpoint.c (clrs): Delete.
6412 (bpstat_what): Update table.
6413
6414 * infrun.c (handle_inferior_event): Remove
6415 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
6416
6417 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6418
6419 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
6420 Adjust all prototypes using mi_cmd_args_ftype to use
6421 mi_cmd_argv_ftype.
6422 (struct mi_cmd): Remove the args_func field.
6423 * mi/mi-cmds.c: Don't provide value for the args_func field.
6424 * mi/mi-main.c (mi_execute_async_cli_command)
6425 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
6426 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
6427 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
6428 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
6429 (mi_cmd_target_download): Adjust.
6430 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
6431 (mi_cmd_execute): Do not check for args_func.
6432 (mi_execute_async_cli_command): Adjust.
6433 * mi/mi-parse.c: Don't check for args_func.
6434
6435 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6436
6437 * breakpoint.c (bpstat_check_location)
6438 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
6439 New, extracted from bpstat_stop_status.
6440 (bpstat_stop_status): Use the above.
6441
6442 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6443
6444 * mi/mi-main.c (last_async_command): Rename to current_token.
6445 (previous_async_command): Remove.
6446 (mi_cmd_gdb_exit): Adjust.
6447 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
6448 (mi_cmd_target_select): Adjust.
6449 (mi_cmd_execute): Don't set previous_async_command. Free token
6450 here even in async mode.
6451 (mi_execute_async_cli_command): Adjust.
6452 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
6453 token.
6454 (mi_load_progress): Adjust.
6455
6456 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6457
6458 * infcmd.c (step_1_continuation): Always disable longjmp
6459 breakpoint if we're not going to do another step.
6460
6461 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6462
6463 exec_cleanup murder.
6464 * breakpoint.c (until_break_command_continuation): Add
6465 the 'error' parameter. Directly delete the breakoint as
6466 opposed to running cleanups.
6467 (until_break_command): Install continuation only
6468 after starting the target. Don't use exec cleanups,
6469 use ordinary cleanups. Discard cleanups is successfully
6470 started the target in async mode.
6471 (make_cleanup_delete_breakpoint): Remove.
6472 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
6473 declaration.
6474 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
6475 declarations.
6476 (struct continations): Add the 'error' parameter to the
6477 continuation_hook field.
6478 (add_continuation, do_all_continuations)
6479 (add_intermediate_continuation)
6480 (do_all_intermediate_continuations): Add the 'error' parameter.
6481 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
6482 * inf-loop.c (inferior_event_handler): Instead of calling
6483 discard_all_continuations, use do_all_continuations with 1 as
6484 'error' parameter. Pass 0 as 'error' parameter in existing uses
6485 of discard_all_continuations.
6486 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
6487 cleanups.
6488 (step_once): Install continuation only after resuming the target.
6489 (step_1_continuation): Disable longjmp breakpoint on error.
6490 (finish_command_continuation): Add the error parameter. Delete
6491 the finish breakpoint directly, do not use cleanups.
6492 (finish_command): Do not use exec_cleanups. Always setup
6493 continuation. For sync case, immediately run them.
6494 (attach_command_continuation): Add the error parameter.
6495 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
6496 remove step_resume_breakpoint -- adjust delete it directly.
6497 * interps.c (interp_set): Adjust call to do_all_continations.
6498 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
6499 do exec cleanups.
6500 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
6501 cleanups.
6502 (mi_cmd_execute): Do not use exec_cleanup.
6503 (mi_execute_async_cli_command): Simplify the string concatenation
6504 logic. Do no use exec cleanup.
6505 (mi_exec_async_cli_cmd_continuation): New parameter error.
6506 Free last_async_command.
6507 * top.c (command_line_handler_continuation): New parameter error.
6508 * utils.c (exec_cleanup_chain, make_exec_cleanup)
6509 (do_exec_cleanups): Remove.
6510 (add_continuation, do_all_continations)
6511 (add_intermediate_continuation)
6512 (do_all_intermediate_continuations): New parameter error.
6513
6514 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6515
6516 * breakpoint.h (bp_location_p): New typedef.
6517 Register a vector of bp_location_p.
6518 * breakpoint.c (always_inserted_mode)
6519 (show_always_inserted_mode): New.
6520 (unlink_locations_from_global_list): Remove.
6521 (update_global_location_list)
6522 (update_global_location_list_nothrow): New.
6523 (update_watchpoint): Don't free locations.
6524 (should_insert_location): New.
6525 (insert_bp_location): Use should_insert_location.
6526 (insert_breakpoint_locations): Copied from
6527 insert_breakpoints.
6528 (insert_breakpoint): Use insert_breakpoint_locations.
6529 (bpstat_stop_status): Call update_global_location_list
6530 when disabling breakpoint.
6531 (allocate_bp_location): Don't add to bp_location_chain.
6532 (set_raw_breakpoint)
6533 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
6534 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
6535 (enable_overlay_breakpoints, disable_overlay_breakpoints)
6536 (set_longjmp_resume_breakpoint)
6537 (enable_watchpoints_after_interactive_call_stop)
6538 (disable_watchpoints_before_interactive_call_start)
6539 (create_internal_breakpoint)
6540 (create_fork_vfork_event_catchpoint)
6541 (create_exec_event_catchpoint, set_momentary_breakpoint)
6542 (create_breakpoints, break_command_1, watch_command_1)
6543 (create_exception_catchpoint)
6544 (handle_gnu_v3_exceptions)
6545 (disable_breakpoint, breakpoint_re_set_one)
6546 (create_thread_event_breakpoint, create_solib_event_breakpoint)
6547 (create_ada_exception_breakpoint): : Don't call check_duplicates.
6548 Call update_global_location_list.
6549 (delete_breakpoint): Don't remove locations and don't
6550 try to reinsert them. Call update_global_location_list.
6551 (update_breakpoint_locations): Likewise.
6552 (restore_always_inserted_mode): New.
6553 (update_breakpoints_after_exec): Temporary disable
6554 always inserted mode.
6555 * Makefile.in: Update dependencies.
6556
6557 * infrun.c (proceed): Remove breakpoints while stepping
6558 over breakpoint.
6559 (handle_inferior_event): Don't remove or insert
6560 breakpoints.
6561 * linux-fork.c (checkpoint_command): Remove breakpoints
6562 before fork and insert after.
6563 (linux_fork_context): Remove breakpoints before switch
6564 and insert after.
6565 * target.c (target_disconnect, target_detach): Remove
6566 breakpoints from target.
6567
6568
6569 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6570
6571 * breakpoint.c (print_one_breakpoint_location): In MI
6572 mode, report the location string the breakpoint was
6573 originally created with.
6574
6575 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
6576
6577 * Makefile.in (xtensa-tdep.o): Update dependencies.
6578 * configure.tgt (xtensa*): Update dependencies.
6579 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
6580 Local variable areg renamed to arreg.
6581 (areg_number): New function.
6582 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
6583 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
6584 replaced by arreg_number.
6585 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
6586 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
6587 (xtensa_scan_prologue): New function.
6588 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
6589 when ENTRY instraction hasn't been executed yet. Get the frame pointer
6590 value based on prologue analysis. Fix the bugs preventing WS and
6591 AR4-AR7/A11 registers from getting right values for intermediate frames,
6592 whose registers have been already spilled.
6593 (xtensa_frame_prev_register): Fix WS register value. Use are_number
6594 and arreg_number appropriately.
6595 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
6596 svr4_ilp32_fetch_link_map_offsets.
6597
6598 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
6599
6600 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
6601 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
6602
6603 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
6604
6605 * acinclude.m4: Add override.m4.
6606 * configure: Regenerate.
6607
6608 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6609
6610 * ada-lang.c (get_selections): Variable PROMPT made non-const and
6611 initialized with a trailing space now. Use PROMPT_ARG of
6612 COMMAND_LINE_INPUT instead of printing it ourselves.
6613
6614 2008-04-22 Joel Brobecker <brobecker@adacore.com>
6615
6616 * NEWS: Document support for 64-bit core file.
6617
6618 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
6619
6620 * NEWS: Add information on calling convention and new SH CLI options.
6621
6622 * sh-tdep.c (sh_cc_gcc): New static string.
6623 (sh_cc_renesas): Ditto.
6624 (sh_cc_enum): New static string array.
6625 (sh_active_calling_convention): New static string pointer denoting
6626 active user chosen ABI.
6627 (sh_is_renesas_calling_convention): New function to return function
6628 specific ABI, or user choice if necessary.
6629 (sh_use_struct_convention): Rename first argument and turn around its
6630 meaning. Check for renesas ABI and return accordingly.
6631 (sh_use_struct_convention_nofpu): New function.
6632 (sh_next_flt_argreg): Get function type as third parameter. Check
6633 for renesas ABI and choose floating registers accordingly.
6634 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
6635 struct return slot accordingly.
6636 (sh_push_dummy_call_nofpu): Ditto.
6637 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
6638 Evaluate ABI and give to sh_use_struct_convention_nofpu.
6639 (sh_return_value_fpu): Evaluate ABI and give to
6640 sh_use_struct_convention.
6641 (show_sh_command): New function.
6642 (set_sh_command): Ditto.
6643 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
6644 CLI command.
6645
6646 * gdbarch.sh (return_value): Add func_type argument.
6647 * gdbarch.c: Regenerate.
6648 * gdbarch.h: Ditto.
6649 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
6650 val_type so as not to collide with value_type function. Call
6651 using_struct_return with additional function type argument.
6652 * infcall.c (call_function_by_hand): Call using_struct_return and
6653 gdbarch_return_value with additional function type argument.
6654 * infcmd.c (print_return_value): Take addition func_type argument.
6655 Call gdbarch_return_value with additional function type argument.
6656 (finish_command_continuation): Call print_return_value with additional
6657 function type argument.
6658 (finish_command): Ditto.
6659 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
6660 additional function type argument.
6661 * stack.c (return_command): Call using_struct_return and
6662 gdbarch_return_value with additional function type argument.
6663 * value.c (using_struct_return): Take additional function type argument.
6664 * value.h (using_struct_return): Accommodate declaration.
6665 * alpha-tdep.c (alpha_return_value): Add func_type argument.
6666 * amd64-tdep.c (amd64_return_value): Ditto.
6667 * arm-tdep.c (arm_return_value): Ditto.
6668 * avr-tdep.c (avr_return_value): Ditto.
6669 * cris-tdep.c (cris_return_value): Ditto.
6670 * frv-tdep.c (frv_return_value): Ditto.
6671 * h8300-tdep.c (h8300_return_value): Ditto.
6672 (h8300h_return_value): Ditto.
6673 * hppa-tdep.c (hppa32_return_value): Ditto.
6674 (hppa64_return_value): Ditto.
6675 * i386-tdep.c (i386_return_value): Ditto.
6676 * ia64-tdep.c (ia64_return_value): Ditto.
6677 * iq2000-tdep.c (iq2000_return_value): Ditto.
6678 * m32c-tdep.c (m32c_return_value): Ditto.
6679 * m32r-tdep.c (m32r_return_value): Ditto.
6680 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
6681 * m68k-tdep.c (m68k_return_value): Ditto.
6682 (m68k_svr4_return_value): Ditto.
6683 * m88k-tdep.c (m88k_return_value): Ditto.
6684 * mep-tdep.c (mep_return_value): Ditto.
6685 * mips-tdep.c (mips_eabi_return_value): Ditto.
6686 (mips_n32n64_return_value): Ditto.
6687 (mips_o32_return_value): Ditto.
6688 (mips_o64_return_value): Ditto.
6689 * mn10300-tdep.c (mn10300_return_value): Ditto.
6690 * mt-tdep.c (mt_return_value): Ditto.
6691 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
6692 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
6693 (ppc_sysv_abi_broken_return_value): Ditto.
6694 (ppc64_sysv_abi_return_value): Ditto.
6695 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
6696 (ppc_sysv_abi_broken_return_value): Ditto.
6697 (ppc64_sysv_abi_return_value): Ditto.
6698 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
6699 * rs6000-tdep.c (rs6000_return_value): Ditto.
6700 * s390-tdep.c (s390_return_value): Ditto.
6701 * score-tdep.c (score_return_value): Ditto.
6702 * sh-tdep.c (sh_return_value_nofpu): Ditto.
6703 (sh_return_value_fpu): Ditto.
6704 * sh64-tdep.c (sh64_return_value): Ditto.
6705 * sparc-tdep.c (sparc32_return_value): Ditto.
6706 * sparc64-tdep.c (sparc64_return_value): Ditto.
6707 * spu-tdep.c (spu_return_value): Ditto.
6708 * v850-tdep.c (v850_return_value): Ditto.
6709 * vax-tdep.c (vax_return_value): Ditto.
6710 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
6711 * xtensa-tdep.c (xtensa_return_value): Ditto.
6712
6713 * gdbtypes.h (struct type): Add calling_convention member.
6714 * dwarf2read.c (read_subroutine_type): Add calling convention read
6715 from DW_AT_calling_convention attribute to function type.
6716
6717 2008-04-22 Markus Deuling <deuling@de.ibm.com>
6718
6719 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
6720 multi_f77_subscript to support values from registers.
6721 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
6722 * value.h (value_subscripted_rvalue): Add prototype.
6723
6724 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
6725 Fix output.
6726 * f-valprint.c (f_val_print): Likewise.
6727
6728 2008-04-21 Craig Silverstein <csilvers@google.com>
6729
6730 * dwarf2read.c (zlib_decompress_section): Define abfd in the
6731 !HAVE_ZLIB_H case.
6732
6733 2008-04-21 Pedro Alves <pedro@codesourcery.com>
6734
6735 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
6736 section is not a code section.
6737
6738 2008-04-19 Craig Silverstein <csilvers@google.com>
6739
6740 * NEWS: Add information on compressed debug sections.
6741
6742 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
6743
6744 * mi/mi-cmd-var.c (varobj_update_one): Print new
6745 value for variable objects that changed type.
6746
6747 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
6748
6749 * varobj.c (varobj_invalidate): Don't touch floating
6750 varobjs.
6751
6752 2008-04-19 Mark Kettenis <kettenis@gnu.org>
6753
6754 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
6755 (multiple_symbols_cancel): Remove extra const.
6756 * symtab.h: Likewise.
6757
6758 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
6759
6760 * interps.c (top_level_interpreter): Rename static variable...
6761 (top_level_interpreter_ptr): ...to this.
6762 (top_level_interpreter): New function.
6763
6764 * interps.h: New extern for top_level_interpreter.
6765
6766 * linespec.c: Include interps.h and mi/mi-cmds.h.
6767 (decode_line_2): When using MI, always set all breakpoints in menu.
6768
6769 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
6770
6771 2008-04-18 Craig Silverstein <csilvers@google.com>
6772
6773 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
6774 * config.in, configure: Regenerate.
6775 * dwarf2read.c: Include zlib.h if present.
6776 Modified *_SECTION macros.
6777 (section_is_p): New.
6778 (dwarf2_locate_sections): Use section_is_p instead of strcmp
6779 (dwarf2_resize_section): New.
6780 to determine whether a given section has a given name.
6781 (zlib_decompress_section): New.
6782 (dwarf2_read_section): Read the compressed section if present
6783 in the binary.
6784 * MAINTAINERS: Added myself to section Write After Approval.
6785
6786 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
6787
6788 * defs.h (exec_set_section_offsets): Remove prototype.
6789 * exec.c (exec_set_section_offsets): Remove function.
6790
6791 2008-04-18 Joel Brobecker <brobecker@adacore.com>
6792
6793 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
6794 in the search for the matching symbol.
6795
6796 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
6797
6798 * breakpoint.c (update_watchpoint): Always reparse
6799 condition.
6800
6801 2008-04-17 Joel Brobecker <brobecker@adacore.com>
6802
6803 * breakpoint.c (print_one_breakpoint_location): Make sure to print
6804 the breakpoint address only once.
6805
6806 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
6807
6808 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
6809 rather than a hard-coded architecture, for xcoff executables.
6810
6811 2008-04-17 Doug Evans <dje@google.com>
6812
6813 * buildsym.c (watch_main_source_file_lossage): New fn.
6814 (end_symtab): Call it.
6815
6816 * source.c (find_and_open_source): Add some comments clarifying
6817 handling of FULLNAME argument. Make static. Remove pointless
6818 xstrdup/xfree.
6819
6820 2008-04-17 Pedro Alves <pedro@codesourcery.com>
6821
6822 * inf-loop.c (inferior_event_handler): Also run the intermediate
6823 continuations in the INF_EXEC_COMPLETE case.
6824
6825 2008-04-16 Tom Tromey <tromey@redhat.com>
6826
6827 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
6828 (set_cmd_async_ok, get_cmd_async_ok): Declare.
6829 * cli/cli-decode.c (set_cmd_async_ok): New function.
6830 (get_cmd_async_ok): New function.
6831 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
6832 "show" as async-ok.
6833 * top.c (execute_command): Use get_cmd_async_ok.
6834 * infcmd.c: Include cli/cli-decode.h.
6835 (_initialize_infcmd): Mark "interrupt" as async-ok.
6836 * Makefile.in (infcmd.o): Depend on cli_decode_h.
6837
6838 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
6839
6840 PR gdb/2445
6841 * exec.c: Correct "arch-utils.h" include.
6842
6843 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
6844
6845 PR gdb/2424
6846 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
6847 to allow printing to 'see' real reason of stop. This fixes PR 2424.
6848 * breakpoint.c (bpdisp_texst): New function. The function takes over
6849 the role of bpstats static array in print_one_breakpoint_location.
6850 (print_it_typical): Print "Temporary breakpoint" instead
6851 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
6852 protocols, print disp field.
6853 (print_one_breakpoint_location): Removed bpdisps static definition.
6854 Call new bpstat_text function to get value for 'disp' field.
6855 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
6856
6857 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
6858
6859 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
6860 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
6861 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
6862 * gnulib/Makefile.in: Regenerate.
6863
6864 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6865
6866 * Makefile.in (GNULIB_H): New. Trigger all-lib.
6867 (defs_h): Use $(GNULIB_H).
6868 (all-lib): Depend on gnulib/Makefile.
6869 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
6870 * config.in, gnulib/Makefile.in: Regenerated.
6871
6872 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6873
6874 * Makefile.in (LIBGNU, INCGNU): Define.
6875 (INTERNAL_CFLAGS_BASE): Add INCGNU.
6876 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
6877 (CLEANDIRS): New.
6878 ($(LIBGNU), all-lib): New rules.
6879 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
6880 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
6881 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
6882 * gnulib: New directory, from gnulib-tool.
6883 * configure, aclocal.m4: Regenerated.
6884
6885 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6886
6887 * linux-thread-db.c (have_threads_callback): Check thread->private.
6888
6889 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
6890 Vladimir Prus <vladimir@codesourcery.com>
6891
6892 Fix @-varobjs.
6893 * varobj.c (value_of_root): Update the expression for
6894 floating varobjs.
6895 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
6896 report that.
6897
6898 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
6899
6900 * mi/mi-cmd-var.c: Include "mi-getopt.h".
6901 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
6902 (mi_cmd_var_set_format): Use new mi_parse_format.
6903 (mi_cmd_var_evaluate_expression): Support for -f option to specify
6904 format.
6905 * Makefile.in (mi-cmd-var.o): Update dependencies.
6906
6907 * varobj.h (varobj_get_formatted_value): Declare.
6908 * varobj.c (my_value_of_variable): Added format parameter.
6909 (cplus_value_of_variable): Likewise.
6910 (java_value_of_variable): Likewise.
6911 (c_value_of_variable): Likewise. Evaluate expression based
6912 on format parameter.
6913 (struct language_specific): Add format parameter to function member
6914 *value_of_variable.
6915 (varobj_get_formatted_value): New.
6916 (varobj_get_value): Added format parameter to method call.
6917
6918 2008-04-08 Joel Brobecker <brobecker@adacore.com>
6919
6920 * stabsread.c (cleanup_undefined_types_noname): Manually set the
6921 instance flags of the undefined type before calling replace_type.
6922
6923 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
6924
6925 * target.h (enum strata): Remove the download_stratum.
6926
6927 2008-04-07 Doug Evans <dje@google.com>
6928
6929 * buildsym.h (last_source_file): Add dwarf info to comment.
6930 (last_source_start_addr): Ditto.
6931
6932 2008-04-07 Pedro Alves <pedro@codesourcery.com>
6933
6934 * alphanbsd-tdep.c: Include "target.h".
6935 * mn10300-tdep.c: Include "target.h".
6936 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
6937
6938 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
6939
6940 Fix breakpoint condition that use member variables.
6941 * valops.c (check_field): Remove.
6942 (check_field_in): Rename to check_field.
6943 (value_of_this): Use la_name_of_this.
6944 * value.h (check_field): Adjust prototype.
6945
6946 * language.h (la_value_of_this): Rename to la_name_of_this.
6947 * language.c (unknown_language_defn): Specify "this" for
6948 name_of_this.
6949 (auto_language_defn): Likewise.
6950 (local_language_defn): Likewise.
6951 * ada-lang.c (ada_language_defn): Adjust comment.
6952 * c-lang.c (c_language_defn): Adjust comment.
6953 (cplus_language_defn): Specify "this" for name_of_this.
6954 (asm_language_defn): Adjust comment.
6955 (minimal_language_defn): Adjust comment.
6956 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
6957 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
6958 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
6959 * objc-lang.c (objc_language_defn): Specify "self" for
6960 name_of_this.
6961 * p-lang.c (pascal_language_defn): Specify "this" for
6962 name_of_this.
6963 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
6964
6965 * symtab.c (lookup_symbol_aux): Lookup "this" in the
6966 proper scope, and check for field in type of "this", without
6967 trying to create a value.
6968
6969 2008-04-04 Pedro Alves <pedro@codesourcery.com>
6970
6971 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
6972 (mi_error_message): Delete declaration.
6973 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
6974 returning MI_CMD_ERROR.
6975 * mi/mi-main.c (mi_error_message): Delete.
6976 (mi_cmd_exec_interrupt):
6977 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6978 (mi_cmd_thread_info): Call error instead of returning
6979 MI_CMD_ERROR.
6980 (mi_cmd_data_list_register_values): Call error instead of
6981 returning MI_CMD_ERROR. Adapt to new get_register interface.
6982 (get_register): Change return typo to void. Call error instead of
6983 returning MI_CMD_ERROR.
6984 (mi_cmd_data_write_register_values): Call error instead of
6985 returning MI_CMD_ERROR.
6986 (mi_cmd_list_features): Return MI_CMD_DONE.
6987 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
6988 (mi_execute_command): Always print exceptions with -error.
6989
6990 2008-04-04 Joel Brobecker <brobecker@adacore.com>
6991
6992 * NEWS: Mention new commands set/show multiple-symbols.
6993
6994 2008-04-03 Joel Brobecker <brobecker@adacore.com>
6995
6996 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
6997 (multiple_symbols_cancel): New constants.
6998 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
6999 (multiple_symbols_select_mode): New function.
7000 (_initialize_symtab): Add new set/show multiple-symbols commands.
7001 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
7002 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
7003 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
7004 setting.
7005 * linespec.c (decode_line_2): Likewise.
7006
7007 2008-04-03 Doug Evans <dje@sebabeach.org>
7008
7009 * symtab.h (enum free_code): Delete free_contents, unused.
7010 * symmisc.c (free_symtab_block): Delete.
7011 (free_symtab, case free_code): Delete.
7012
7013 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7014
7015 * valops.c (value_cast_structs): New function. Cast related
7016 STRUCT types up/down and return cast value. The body of this
7017 function comes mostly from value_cast_pointers.
7018 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
7019 to value_cast_structs. Now value_cast_pointers needs only create
7020 appropriate reference after using value_cast_structs for actual
7021 casting.
7022 (value_cast): Handle references.
7023
7024 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
7025
7026 * MAINTAINERS: Added myself to section Write After Approval.
7027
7028 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7029
7030 * ia64-tdep.c (examine_prologue): Correct array access.
7031
7032 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
7033
7034 * cp-support.c (first_component_command): Return if no arguments.
7035
7036 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
7037
7038 * ser-mingw.c (ser_windows_open): Open requested name.
7039
7040 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
7041
7042 * MAINTAINERS: Added myself.
7043
7044 2008-03-28 Pedro Alves <pedro@codesourcery.com>
7045
7046 * target.c (find_default_run_target): Allow a NULL `do_mesg'
7047 parameter. If it is NULL, don't call error.
7048 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
7049 `do_mesg' parameter to find_default_run_target. If no target was
7050 found, return 0.
7051
7052 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
7053
7054 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
7055 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
7056 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
7057 Delete.
7058 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
7059
7060 2008-03-27 Joel Brobecker <brobecker@adacore.com>
7061
7062 GDB 6.8 released.
7063
7064 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
7065
7066 * features/Makefile (%.dat): Set xmltarget to the base filename
7067 of the XML source, without subdirectory.
7068 * regformats/rs6000/powerpc-32.dat: Regenerate.
7069 * regformats/rs6000/powerpc-64.dat: Regenerate.
7070 * regformats/rs6000/powerpc-e500.dat: Regenerate.
7071
7072 2008-03-27 Markus Deuling <deuling@de.ibm.com>
7073
7074 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
7075 objfile arch.
7076
7077 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
7078
7079 * mi/mi-main.c (enum captured_mi_execute_command_actions):
7080 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
7081
7082 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7083
7084 * objfiles.h (struct objfile): New GDBARCH member.
7085 (get_objfile_arch): Add prototype.
7086 * objfiles.c: Include "arch-utils.h".
7087 (allocate_objfile): Look up gdbarch associated with bfd.
7088 (get_objfile_arch): New function.
7089 * Makefile (objfiles.o): Update dependencies.
7090
7091 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
7092 by objfile arch.
7093 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
7094 by frame arch.
7095 (locexpr_describe_location): Replace current_gdbarch by
7096 objfile arch.
7097 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
7098 (dwarf2_add_field): Likewise.
7099 (read_tag_pointer_type): Likewise.
7100 (read_base_type): Likewise.
7101 (new_symbol): Likewise.
7102
7103 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
7104 (decode_base_type, decode_function_type): Likewise.
7105 (coff_read_struct_type, coff_read_enum_type): Likewise.
7106 (coff_symtab_read): Replace current_gdbarch by objfile arch.
7107 (decode_base_type): Likewise.
7108 (coff_read_enum_type): Likewise.
7109 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
7110 (coff_read_enum_type): Likewise.
7111
7112 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
7113 (end_psymtab): Likewise.
7114 (process_one_symbol): Likewise.
7115
7116 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
7117 (parse_procedure): Likewise.
7118 (parse_partial_symbols): Likewise.
7119
7120 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
7121
7122 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
7123 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
7124 built-in types.
7125 (read_range_type): Replace current_gdbarch by objfile arch. Replace
7126 static range_index_type by built-in type.
7127 (read_one_struct_field): Replace current_gdbarch by objfile arch.
7128 (read_enum_type): Likewise.
7129
7130 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
7131 objfile arch.
7132
7133 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
7134
7135 * varobj.h (varobj_floating_p): Declare.
7136 * varobj.c (varobj_floating_p): New.
7137 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
7138 '@' as the name, update all floating varobjs.
7139
7140 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
7141
7142 * varobj.c (struct varobj_root): Rename use_selected_frame to
7143 floating, and clarify the meaning.
7144 (varobj_create, varobj_update, new_root_variable): Adjust.
7145 (value_of_root): Don't use type_changed as in variable,
7146 adjust comment.
7147 (c_value_of_root): Adjust.
7148
7149 2008-03-25 Pedro Alves <pedro@codesourcery.com>
7150
7151 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
7152 gdb's thread list.
7153 (linux_nat_wait): Add main lwp to gdb's thread list.
7154 * linux-thread-db.c (find_new_threads_callback): Also attach to
7155 already listed threads which thread_db didn't know about yet.
7156
7157 2008-03-25 Pedro Alves <pedro@codesourcery.com>
7158
7159 * linux-nat.c (drain_queued_events): Fix comment typo.
7160 (linux_nat_attach): In async mode, don't rely on storing a pending
7161 status. Instead place the wait status on the pipe.
7162 (linux_nat_resume): Remove unreacheable shortcut code in async
7163 mode.
7164 (stop_wait_callback): In async mode, don't store pending status.
7165 Instead, cancel breakpoints or resend the signal appropriatelly.
7166 (cancel_breakpoint): New, refactored from
7167 cancel_breakpoints_callback.
7168 (cancel_breakpoints_callback): Call cancel_breakpoint.
7169 (pipe_to_local_event_queue): Remove special token processing.
7170 (linux_nat_wait): Issue an internal error if a pending status is
7171 found in async mode.
7172
7173 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7174
7175 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
7176
7177 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
7178 Vladimir Prus <vladimir@codesourcery.com>
7179
7180 * varobj.c (struct varobj_root): New component thread_id.
7181 (varobj_get_thread_id, check_scope): New functions.
7182 (c_value_of_root): Use check_scope. Switch to the
7183 proper thread if necessary.
7184
7185 * varobj.h (varobj_get_thread_id): New extern.
7186
7187 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
7188
7189 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
7190
7191 PR gdb/544
7192 * top.c: Revert 2008-03-21 changes.
7193
7194 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
7195
7196 * thread.c (make_cleanup_restore_current_thread): Make it
7197 globally visible.
7198 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7199 * varobj.c (varobj_update): Don't save/restore frame.
7200 (c_value_of_root): Save/restore thread and frame here,
7201 using make_cleanup_restore_current_thread.
7202 * Makefile.in: Update dependecies.
7203
7204 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
7205
7206 * varobj.c (struct varobj_root): Clarify
7207 comment on the frame field.
7208 (varobj_create): Don't set frame if we have no
7209 block.
7210
7211 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7212
7213 PR gdb/544
7214 Suggested by Jan Kratochvil:
7215 * top.c (gdb_rl_operate_and_get_next_completion): Call
7216 rl_redisplay_function.
7217 (gdb_rl_redisplay): New.
7218 (init_main): Set rl_redisplay_function.
7219
7220 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
7221
7222 * aix-thread.c (pdc_read_regs): Fix compiler warning.
7223 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
7224 (store_regs_kernel_thread): Likewise.
7225
7226 2008-03-21 Pedro Alves <pedro@codesourcery.com>
7227
7228 Linux native async support.
7229
7230 * target.h (struct target_ops): Delete to_async_mask_value and add
7231 to_async_mask.
7232 (target_is_async_p, target_async): Formatting.
7233 (target_async_mask_value): Delete.
7234 (target_async_mask): Delete function declaration, and add new
7235 target macro with the same name.
7236
7237 * target.c (update_current_target): Replace to_async_mask_value by
7238 to_async_mask. Default to_async_mask to return_one.
7239 (target_async_mask): Delete.
7240 (find_default_can_async_p, find_default_is_async_p): New.
7241 (init_dummy_target): register find_default_can_async_p and
7242 find_default_is_async_p on the dummy target.
7243
7244 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
7245 (debug_linux_nat_async): New global.
7246 (show_debug_linux_nat_async): New function.
7247 (linux_nat_async_enabled, linux_nat_async_mask_value)
7248 (linux_nat_event_pipe, linux_nat_num_queued_events)
7249 (linux_nat_async_events_enabled): New globals.
7250 (struct waitpid_result): New struct.
7251 (waitpid_queue): New global.
7252 (queued_waitpid, push_waitpid, drain_queued_events): New.
7253 (my_waitpid): Call queued_waitpid.
7254 (linux_child_follow_fork): Disable async events during the call.
7255 (blocked_mask): Delete.
7256 (sync_sigchld_action, async_sigchld_action): New globals.
7257 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
7258 async mode, block events during the call.
7259 (linux_nat_create_inferior): New.
7260 (linux_nat_attach): In sync mode, restore the mask states. In
7261 async mode, wake the event loop immediatelly.
7262 (detach_callback): Drain all queued events of the lwp we're
7263 detaching from.
7264 (linux_nat_detach): Block async mode, and drain events of the main
7265 process.
7266 (linux_nat_resume): If in async mode, mask async events during the
7267 call. If short circuiting, force event loop to wake up. If
7268 resuming, set target_executing, and register target events in the
7269 event loop.
7270 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
7271 (linux_nat_wait): In async mode, block events during the call.
7272 Only enable/disable passing SIGINT to the inferior in sync mode.
7273 Get events from local waitpid queue. If no interesting events was
7274 found, return to events loop. Reregister target events in the
7275 event loop on exit. In sync mode, no need to reblock SIGCHLD.
7276 (linux_nat_kill): Disable events on entry.
7277 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
7278 here. Detach async mode from the event loop if there are no more
7279 forks available, otherwise leave it on.
7280 (sigchld_handler): Assure this is called only in sync mode.
7281 (linux_async_permitted, linux_async_permitted_1): New globals.
7282 (set_maintenance_linux_async_permitted)
7283 (show_maintenance_linux_async_permitted): New functions.
7284 (linux_nat_is_async_p, linux_nat_can_async_p)
7285 (linux_nat_async_mask): New.
7286 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
7287 (get_pending_events, async_sigchld_handler): New.
7288 (linux_nat_async_events): New.
7289 (async_terminal_is_ours): New global.
7290 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
7291 (async_client_callback, async_client_context): New.
7292 (linux_nat_async_file_handler, linux_nat_async)
7293 (linux_nat_disable_async, linux_nat_enable_async): New.
7294 (linux_nat_add_target): Register linux_nat_create_inferior,
7295 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
7296 linux_nat_async_mask, linux_nat_terminal_inferior and
7297 linux_nat_terminal_ours.
7298 (_initialize_linux_nat): Remove local action variable, and update
7299 code that used it to use sync_sigchld_action. Add new
7300 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
7301 set/show command in the maintenance class. Add new "linux-async"
7302 maintenance set/show command. Block SIGCHLD by default. Setup
7303 async_sichld_action, and sync_sigchld_action. Install the default
7304 async mode.
7305 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
7306 the cancel signals.
7307
7308 * linux-thread-db.c (re_check_for_thread_db): New.
7309 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
7310 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
7311 (thread_db_async_mask): New.
7312 (init_thread_db_ops): Register thread_db_can_async_p,
7313 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
7314
7315 * remote.c (remote_async_mask_value): New.
7316 (remote_return_zero): New.
7317 (init_remote_ops): Register remote_return_zero as callbacks of
7318 to_can_async_p and to_is_async_p.
7319 (remote_can_async_p, remote_is_async_p, remote_async): Update to
7320 use remote_async_mask_value.
7321 (remote_async_mask): New.
7322 (init_remote_async_ops): Remove to_async_mask_value setting and
7323 register remote_async_mask as to_async_mask callback in
7324 remote_async_ops.
7325
7326 * Makefile.in (linux-nat.o): Update.
7327
7328 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7329
7330 * gdbthread.h (add_thread_with_info): New.
7331 * linux-thread-db.c: Add some documentation.
7332 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
7333 (struct private_thread_info): Remove th_valid and ti_valid.
7334 Replace ti with tid.
7335 (thread_get_info_callback): Do not add TID to the new ptid. Do
7336 not cache th or ti.
7337 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
7338 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
7339 new PTID.
7340 (attach_thread): Handle an already-existing thread. Use
7341 add_thread_with_info. Cache the th and tid.
7342 (detach_thread): Verify that private was set. Remove verbose
7343 argument and printing. Update caller.
7344 (thread_db_detach): Do not adjust inferior_ptid.
7345 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
7346 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
7347 (thread_db_wait): Do not use lwp_from_thread.
7348 (thread_db_pid_to_str): Use the cached TID.
7349 (thread_db_extra_thread_info): Check that private is set.
7350 (same_ptid_callback): Delete.
7351 (thread_db_get_thread_local_address): Do not use it or check
7352 is_thread. Check that private is set. Assume that the thread
7353 handle is already cached.
7354 (init_thread_db_ops): Remove to_resume and to_kill.
7355 * thread.c (add_thread_with_info): New.
7356 (add_thread): Use it.
7357 * linux-nat.c (find_thread_from_lwp): Delete.
7358 (exit_lwp): Do not use it. Check print_thread_events. Print before
7359 deleting the thread.
7360 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
7361 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
7362 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
7363 printf_unfiltered for thread exits.
7364 * procfs.c (procfs_wait): Likewise.
7365
7366 2008-03-21 Chris Demetriou <cgd@google.com>
7367
7368 * symtab.c (rbreak_command): Quote symbol name before passing
7369 it to break_command.
7370
7371 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7372
7373 * eval.c (evaluate_subexp_for_address): Clarify error message.
7374 Use value_must_coerce_to_target.
7375 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
7376 * valops.c (value_assign): Call value_coerce_to_target when
7377 assigning to anything but internalvars. Leave GDB-side arrays
7378 as arrays when assigning to internalvars.
7379 (value_must_coerce_to_target, value_coerce_to_target): New.
7380 (value_coerce_array, value_addr): Call value_coerce_to_target.
7381 (value_array): Create the array in GDB's memory instead of
7382 the inferior's.
7383 * value.h (value_must_coerce_to_target, value_coerce_to_target):
7384 Declare.
7385
7386 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7387
7388 * top.c (quit_confirm): Warn that we will kill the program.
7389
7390 2008-03-19 Pedro Alves <pedro@codesourcery.com>
7391
7392 * inflow.c (terminal_ours_1): Guard access to
7393 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
7394
7395 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7396 Jim Blandy <jimb@codesourcery.com>
7397 Daniel Jacobowitz <drow@false.org>
7398
7399 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
7400 (dwarf2_read_address): Update prototype.
7401
7402 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
7403 (signed_address_type): Likewise.
7404 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
7405 (execute_stack_op): Update calls to unsigned_address_type,
7406 signed_address_type and dwarf2_read_address. Fix implementation
7407 of DW_OP_deref_size.
7408
7409 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
7410 (dwarf2_per_cu_addr_size): Likewise.
7411 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
7412 (struct dwarf2_loclist_baton): Likewise.
7413
7414 * dwarf2loc.c (find_location_expression): Update calls to
7415 dwarf2_read_address. Use dwarf2_per_cu_objfile and
7416 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
7417 (locexpr_describe_location): Likewise.
7418 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
7419 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
7420 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
7421 to dwarf2_per_cu_addr_size (per_cu).
7422 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
7423 (loclist_read_variable): Likewise.
7424 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
7425
7426 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
7427 instead of baton->objfile.
7428 (dwarf2_per_cu_obfile): New function.
7429 (dwarf2_per_cu_addr_size): Likewise.
7430
7431 * dwarf2-frame.c (struct comp_unit): Move higher.
7432 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
7433 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
7434 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
7435 parameter by using fde->eh_frame_p. Use read_encoded_value
7436 to implement DW_CFA_set_loc.
7437 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
7438 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
7439 execute_stack_op and execute_cfa_program.
7440 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
7441 (size_of_encoded_value): Remove.
7442 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
7443 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
7444 (add_cie): Set cie->unit backlink.
7445 (decode_frame_entry_1): Set cie->addr_size. Update calls to
7446 read_encoded_value.
7447 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
7448
7449 2008-03-17 Markus Deuling <deuling@de.ibm.com>
7450
7451 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
7452 gdbarch_bfd_arch_info.
7453
7454 2008-03-17 Joel Brobecker <brobecker@adacore.com>
7455
7456 * aix-thread.c (pdc_read_regs): Minor reformatting.
7457
7458 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
7459
7460 * thread.c (print_thread_info): Don't insist
7461 on having current thread if there are no
7462 threads at all.
7463
7464 2008-03-17 Pedro Alves <pedro@codesourcery.com>
7465
7466 * infcmd.c (attach_command_post_wait)
7467 (attach_command_continuation): New.
7468 (attach_command): Support background async execution, and async
7469 execution in synchronous mode.
7470
7471 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7472
7473 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
7474 * symmisc.c (dump_symtab_1): Likewise.
7475 * wrapper.c (gdb_value_struct_elt): Likewise.
7476
7477 2008-03-17 Pedro Alves <pedro@codesourcery.com>
7478
7479 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
7480
7481 2008-03-17 Pedro Alves <pedro@codesourcery.com>
7482
7483 * linux-nat.c (linux_nat_filter_event): New, refactored from
7484 linux_nat_wait.
7485 (linux_nat_wait): Call linux_nat_filter_event.
7486
7487 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
7488
7489 * top.c (execute_command): Fix uninitialized variable error.
7490
7491 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
7492
7493 * Makefile.in (amd64nbsd-nat.o): New dependency.
7494 * amd64nbsd-nat.c: Include "nbsd-nat.h".
7495 (_initialize_amd64nbsd_nat): Update target vector to use
7496 nbsd_pid_to_exec_file.
7497 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
7498
7499 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
7500
7501 Remove ignoring leading exec events code.
7502 * fork-child.c (startup_inferior): Do not set
7503 inferior_ignoring_leading_exec_events.
7504 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
7505 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
7506 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
7507 (handle_inferior_event): Remove code for ignoring leading exec
7508 events.
7509 * target.c (update_current_target): Do not inherit, or default,
7510 to_reported_exec_events_per_exec_call.
7511 (debug_to_reported_exec_events_per_exec_call): Remove.
7512 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
7513 * target.h (target_reported_exec_events_per_exec_call): Remove.
7514 (struct target): Remove the to_reported_exec_events_per_exec_call
7515 field.
7516
7517 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
7518
7519 Implement -thread-info.
7520 * gdbthread.h (print_thread_info): Declare.
7521
7522 * thread.c (print_thread_info): New, extracted
7523 from info_threads_command and adjusted to
7524 work for CLI and MI.
7525 (info_threads_command): Use print_thread_info.
7526 * Makefile.in: Update dependencies.
7527
7528 * mi/mi-cmds.c (mi_cmds): Specify a handler
7529 for -thread-info.
7530 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
7531 * mi/mi-main.c (mi_cmd_thread_info): New.
7532 (mi_cmd_list_features): Include 'thread-info'.
7533
7534 2008-03-14 Kevin Buettner <kevinb@redhat.com>
7535
7536 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
7537 to decide whether to match instruction patterns using "sw" and "sd".
7538
7539 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7540
7541 * infcmd.c (jump_command): Postpone disabling stdin until after
7542 the possible query.
7543
7544 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7545
7546 * inflow.c (gdb_getpgrp): New.
7547 (gdb_has_a_terminal): Use get_getpgrp.
7548 (terminal_ours_1): If attach_flag is set, don't refetch
7549 inferior_process_group.
7550
7551 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7552
7553 * features/library-list.dtd: Allow "section" elements as children
7554 of "library". Add "section" element and describe its attributes.
7555
7556 * solib-target.c (struct lm_info): Add section_bases member.
7557 (library_list_start_segment): Error out if seen a section element.
7558 (library_list_start_section): New.
7559 (library_list_end_library): New.
7560 (solib_target_free_library_list): Free section_bases.
7561 (section_attributes): New.
7562 (library_children): Make "segment" optional. Add "section" child.
7563 (library_list_children): Register library_list_end_library.
7564 (solib_target_relocate_section_addresses): Handle section bases.
7565
7566 * NEWS: Mention new qXfer:libraries:read section offsets support.
7567
7568 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
7569
7570 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
7571 (make_exec_error_cleanup): Remove declarations.
7572 * utils.c (exec_error_cleanup_chain): Remove.
7573 (do_exec_error_cleanups, discard_exec_error_cleanups)
7574 (make_exec_error_cleanup): Remove.
7575 * event-loop.c (start_event_loop): Adjust call to
7576 async_enable_stdin.
7577 * event-top.c (async_enable_stdin): Remove the paramater dummy.
7578 (async_disable_stdin): Don't register async_enable_stdin via
7579 cleanup.
7580 * inf-loop.c (inferior_event_handler): Don't
7581 call do_exec_error_cleanups. Call async_enable_stdin instead.
7582 * event-loop.c (start_event_loop): Adjust call to
7583 async_enable_stdin.
7584 * tui/tui-interp.c (tui_command_loop): Adjust call to
7585 async_enable_stdin.
7586
7587 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
7588
7589 Async mode fixes.
7590 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
7591 * breakpoint.c (bpstat_do_actions): In async mode,
7592 don't jump to top expecting stop_bpstat to be already
7593 updated.
7594 * event-loop.c (start_event_loop): Call async_enable_stdin
7595 on exception.
7596 * event-top.c (async_enable_stdin): Do nothing if sync_execution
7597 is not set.
7598 (command_handler): Do not setup continuation here.
7599 (command_line_handler_continuation): Move to...
7600 * top.c (command_line_handler_continuation): ... here.
7601 (execute_command): In async mode, register continuation.
7602 Don't check frame's language in running in async mode.
7603 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
7604 * inf-loop.c (complete_execution): Inline into...
7605 (inferior_event_handler): ... here. Clear target_executing before
7606 doing any cleanups. Don't try to show prompt if the target was
7607 resumed.
7608 * infcmd.c (signal_command): Add support for async mode.
7609 (finish_command): Only add continuation if the target was
7610 successfully resumed.
7611 * remote.c (init_async_opts): Register to_get_thread_local_address
7612 handler.
7613 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
7614 with sync_execution.
7615 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
7616 on exception.
7617
7618 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7619
7620 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
7621 * exec.c (exec_bfd_mtime): Define.
7622 (exec_close): Clear it.
7623 (exec_file_attach): Set it.
7624 * gdbcore.h (exec_bfd_mtime): Declare.
7625 * source.c (find_source_lines): Do not use bfd_get_mtime.
7626
7627 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
7628
7629 * top.c (simplified_command_loop): Remove.
7630
7631 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
7632
7633 Remove unused remote.c hooks.
7634 * remote.c (deprecated_target_resume_hook)
7635 (deprecated_target_wait_loop_hook): Remove.
7636 (remote_resume): Do not call deprecated_target_resume_hook.
7637 (remote_wait): Do not call deprecated_target_wait_loop_hook.
7638 (remote_async_wait): Likewise.
7639
7640 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
7641
7642 Implement MI notification for new threads.
7643 * doc/observer.texi (new_thread): Document.
7644 * observer.sh: Forward declare struct thread_info.
7645 * thread.c (add_thread): Notify observer.
7646
7647 * interps.h (interp_init_ftype): New parameter
7648 top_level.
7649 (interp_set): Likewise.
7650 (top_level_interpreter_data): Declare.
7651 * interps.c (interp_set): New parameter top_level.
7652 Pass it to interpreter's init function. Remember
7653 top level interpreter.
7654 (interpreter_exec_cmd): Adjust.
7655 (top_level_interpreter_data): New.
7656 * main.c (captured_main): Pass 1 for top_level
7657 parameter of interp_set.
7658 * cli/cli-interp.c (cli_interpreter_init): New
7659 parameter top_level.
7660 * tui/tui-interp.c (tui_init): New parameter top_level.
7661
7662 * mi/mi-interp.c (mi_new_thread): New.
7663 (mi_interpreter_init): If top level, register
7664 observer for new threads.
7665
7666 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
7667
7668 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7669
7670 * top.c (execute_command): Disable break and stop
7671 commands in async mode.
7672
7673 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7674
7675 revert:
7676 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7677 * inf-loop.c (inferior_event_handler): Don't include remote.h.
7678 Call target_stop in the INF_QUIT_REQ case.
7679 * Makefile.in (inf-loop.o): Update.
7680
7681 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7682
7683 * inf-loop.c (inferior_event_handler): Don't include remote.h.
7684 Call target_stop in the INF_QUIT_REQ case.
7685 * Makefile.in (inf-loop.o): Update.
7686
7687 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7688
7689 * top.c (execute_command): Enable break, info and interrupt
7690 commands in async mode.
7691
7692 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
7693 Daniel Jacobowitz <dan@codesourcery.com>
7694
7695 * breakpoint.h (breakpoint_restore_shadows): New
7696 declaration.
7697 * breakpoint.c (breakpoint_restore_shadows): New.
7698 (read_memory_nobpt): Delete.
7699 * gdbcore.h (read_memory_nobpt): Delete declaration.
7700 * target.c (memory_xfer_partial): Call
7701 breakpoint_restore_shadows.
7702 (restore_show_memory_breakpoints)
7703 (make_show_memory_beakpoints_cleanup): New.
7704 (show_memory_breakpoints): New.
7705 * target.h (make_show_memory_beakpoints_cleanup): Declare.
7706 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
7707 Make sure we see memory breakpoints when checking if
7708 breakpoint is still there.
7709 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
7710 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
7711 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
7712 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
7713
7714 2008-03-12 Pedro Alves <pedro@codesourcery.com>
7715
7716 * thread.c (add_thread): Use printf_unfiltered to print.
7717
7718 2008-03-12 Joel Brobecker <brobecker@gnat.com>
7719
7720 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
7721 that is true only on x86-solaris and x86_64-solaris.
7722 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
7723 with proc_get_LDT_entry.
7724
7725 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7726
7727 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
7728 * config.in, configure: Regenerate.
7729 * fork-child.c (fork_inferior): Call create_tty_session.
7730 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
7731 (create_tty_session): New function.
7732 * terminal.h: Declare create_tty_session.
7733
7734 2008-03-12 Alan Modra <amodra@bigpond.net.au>
7735
7736 PR 5900
7737 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
7738 * mipsread.c: Include elf/internal.h.
7739 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
7740 to internal range.
7741
7742 2008-03-11 Markus Deuling <deuling@de.ibm.com>
7743
7744 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
7745 to get at the current architecture and at the target specific vector.
7746 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
7747 remove define of I387_ST0_REGNUM.
7748
7749 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
7750
7751 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
7752 get at the current architecture
7753 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
7754 parameter.
7755
7756 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
7757 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
7758
7759 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
7760 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
7761 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
7762
7763 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
7764 at the target specific vector.
7765
7766 (i386_get_longjmp_target): Use get_frame_arch to get at the current
7767 architecture. Use gdbarch_tdep to get at the target specific vector.
7768
7769 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
7770 update caller. Use gdbarch_tdep to get at the target specific vector.
7771
7772 (i386_register_to_value: Use get_frame_arch to get at the current
7773 architecture.
7774
7775 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
7776 parameter.
7777
7778 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
7779 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
7780 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
7781 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
7782
7783 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
7784 undef's.
7785
7786 (i387_convert_register_p, i387_register_to_value,
7787 i387_value_to_register): Update call for i386_fp_regnum_p.
7788
7789 * i387-tdep.h: Remove comment.
7790 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
7791 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
7792 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
7793 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
7794 I387_MXCSR_REGNUM): Add target specific vector as parameter.
7795
7796 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
7797
7798 * Makefile.in (fork-child.o): Update.
7799 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
7800 argument. Gather all gdbserver features together.
7801 * fork-child.c (exec_wrapper): New variable.
7802 (fork_inferior): Use it.
7803 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
7804 (unset_exec_wrapper_command, _initialize_fork_child): New.
7805
7806 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
7807
7808 * source.c (directory_command): Modify the determination of
7809 condition of terminal "from_tty".
7810
7811 2008-03-10 Matt Rice <ratmice@gmail.com>
7812
7813 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
7814
7815 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
7816
7817 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
7818 of the data passing to strtoulst function.
7819 (info_spu_signal_command): Likewise.
7820
7821 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
7822
7823 * mi/mi-interp.c (mi_command_loop): Remove
7824 commented-out code.
7825
7826 2008-03-07 Joel Brobecker <brobecker@adacore.com>
7827
7828 * remote.c (extended_remote_attach_1): Make local variable pid an int
7829 instead of a pid_t.
7830
7831 2008-03-07 Joel Brobecker <brobecker@adacore.com>
7832
7833 * solib-svr4.c (svr4_same_1): New function, originally extracted
7834 from svr4_same and expanded to handle the sparc64 case.
7835 (svr4_same): Move up and reimplement using svr4_same_1.
7836 (enable_break): Use svr4_same_1 to do shared library name comparisons.
7837
7838 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
7839
7840 * MAINTAINERS: Move self to Paper trail.
7841
7842 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
7843
7844 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
7845 * event-loop.c (call_async_signal_handler): New.
7846 * event-loop.h (call_async_signal_handler)
7847 (gdb_call_async_signal_handler): Declare.
7848 (mark_async_signal_handler): Add comments.
7849 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
7850 * mingw-hdep.c (sigint_event, sigint_handler): New.
7851 (gdb_select): Use them. Wait for the readline signal handler
7852 to finish.
7853 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
7854 * posix-hdep.c (gdb_call_async_signal_handler): New function.
7855 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
7856 New.
7857 (remote_fileio_ctrl_c_signal_handler): Use
7858 gdb_call_async_signal_handler.
7859 (initialize_remote_fileio): Initialize sigint_fileio_token.
7860 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
7861 not initialize tokens here.
7862 (handle_remote_sigint_twice): Likewise. Reinstall
7863 handle_remote_sigint.
7864 (async_remote_interrupt_twice): Just call interrupt_query.
7865 (cleanup_sigint_signal_handler): Do not delete tokens.
7866 (remote_interrupt, remote_interrupt_twice): Use
7867 gdb_call_async_signal_handler.
7868 (interrupt_query): Reinstall the default signal handler.
7869 (_initialize_remote): Initialize tokens here.
7870
7871 2008-03-04 Joel Brobecker <brobecker@adacore.com>
7872
7873 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
7874 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
7875 Change the type of the lr register to code_ptr.
7876 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
7877 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
7878 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
7879 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
7880 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
7881 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
7882 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
7883
7884 2008-03-03 James E. Wilson <wilson@tuliptree.org>
7885
7886 * MAINTAINERS: Update my email address.
7887
7888 2008-03-03 Keith Seitz <keiths@redhat.com>
7889
7890 From Dave Murphy <davem@devkitpro.org>:
7891 * configure.ac: Set tcl configdir to win under mingw.
7892 * configure: Regenerate.
7893
7894 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
7895
7896 * breakpoint.c (fetch_watchpoint_value): New function.
7897 (update_watchpoint): Set and clear val_valid. Use
7898 fetch_watchpoint_value. Handle unreadable values on the
7899 value chain. Correct check for user-requested array watchpoints.
7900 (breakpoint_init_inferior): Clear val_valid.
7901 (watchpoint_value_print): New function.
7902 (print_it_typical): Use it. Do not free or clear old_val. Print
7903 watchpoints even if old_val == NULL.
7904 (watchpoint_check): Use fetch_watchpoint_value. Check for values
7905 becoming readable or unreadable.
7906 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
7907 (do_enable_watchpoint): Likewise.
7908 * breakpoint.h (struct breakpoint): Update comment for val. Add
7909 val_valid.
7910 * NEWS: Mention watchpoints on inaccessible memory.
7911
7912 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
7913
7914 * Makefile.in (i386-nat.o): Update.
7915 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
7916 i386_use_watchpoints.
7917 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
7918 i386_use_watchpoints.
7919 * i386-nat.c (i386_stopped_data_address): Take two arguments.
7920 (i386_stopped_by_watchpoint): Update call.
7921 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
7922 * config/i386/nm-i386.h: Conditionalize definitions on
7923 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
7924 (i386_use_watchpoints): Declare.
7925 (i386_stopped_data_address): Update.
7926 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
7927 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
7928
7929 2008-02-29 Joel Brobecker <brobecker@adacore.com>
7930
7931 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
7932 * version.in: Bump version to 6.8.50.20080229-cvs.
7933
7934 2008-02-28 Markus Deuling <deuling@de.ibm.com>
7935
7936 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
7937 properly.
7938
7939 2008-02-28 Tom Tromey <tromey@redhat.com>
7940
7941 * infcmd.c (notice_args_read): Print result of get_inferior_args.
7942
7943 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7944
7945 * infcmd.c (kill_if_already_running): Make static. Use
7946 target_require_runnable.
7947 * target.c (target_require_runnable): New.
7948 * target.h (target_require_runnable): Declare.
7949
7950 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7951
7952 * frame.c (reinit_frame_cache): Only annotate if frames were
7953 previously valid.
7954
7955 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7956
7957 * regformats/reg-ppc.dat: Rename "ps" to "msr".
7958 * regformats/reg-ppc64.dat: Likewise.
7959
7960 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7961
7962 * features/Makefile (%.dat): Emit xmltarget statement.
7963
7964 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
7965 Generate code to set gdbserver_xmltarget in init_registers_${name}.
7966
7967 * regformats/arm-with-iwmmxt.dat: Regenerate.
7968 * regformats/mips64-linux.dat: Regenerate.
7969 * regformats/mips-linux.dat: Regenerate.
7970 * regformats/rs6000/powerpc-32.dat: Regenerate.
7971 * regformats/rs6000/powerpc-64.dat: Regenerate.
7972 * regformats/rs6000/powerpc-e500.dat: Regenerate.
7973
7974 * regformats/reg-arm.dat: Add xmlarch statement.
7975 * regformats/reg-i386.dat: Likewise.
7976 * regformats/reg-i386-linux.dat: Likewise.
7977 * regformats/reg-x86-64-linux.dat: Likewise.
7978 * regformats/reg-spu.dat: Likewise.
7979
7980 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7981
7982 * remote.c (remote_wait, remote_async_wait): Stop if we receive
7983 an error.
7984
7985 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7986
7987 * utils.c (debug_timestamp): New.
7988 (vfprintf_unfiltered): Print timestamps if requested.
7989 (show_debug_timestamp): New.
7990 (initialize_utils): Register "set debug timestamp".
7991 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
7992
7993 2008-02-27 Joel Brobecker <brobecker@adacore.com>
7994
7995 * breakpoint.c (skip_prologue_sal): New function.
7996 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
7997 computed from a line number.
7998
7999 2008-02-27 Joel Brobecker <brobecker@adacore.com>
8000
8001 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
8002 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8003 Set PC register type to "code_ptr".
8004 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8005 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8006 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8007 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8008 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8009 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8010 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
8011 Regenerate.
8012
8013 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
8014
8015 * regformats/regdat.sh: Rename init_registers function in
8016 generated file to init_registers_${name}.
8017
8018 * regformats/reg-crisv32.dat: Set "name" to crisv32.
8019 * regformats/reg-ppc64.dat: Set "name" to ppc64.
8020 * regformats/reg-s390x.dat: Set "name" to s390x.
8021
8022 2008-02-26 Greg Law <glaw@undo-software.com>
8023
8024 * regcache.c (registers_changed): Call reinit_frame_cache.
8025
8026 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8027
8028 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
8029 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
8030 and svr4_fetch_objfile_link_map.
8031 * Makefile.in (sh-linux-tdep.o): Update.
8032
8033 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
8034
8035 * amd64-tdep.c (amd64_classify): Add support for decimal float
8036 types.
8037 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
8038 use the struct return convention.
8039
8040 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
8041
8042 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
8043 to old format. Discard breakpoint address if shared library is
8044 unloaded.
8045 (breakpoint_1): Adjust formatting of table header accordingly.
8046
8047 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
8048
8049 * remote.c (remote_get_threadlist): If the response
8050 is empty, don't try to parse it.
8051
8052 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
8053
8054 Unbreak 'target async'.
8055 * serial.c (serial_async): Set the
8056 handler function before enabling async
8057 mode.
8058
8059 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
8060
8061 * solib-svr4.c (enable_break): Convert r_brk to a code address.
8062
8063 2008-02-21 Pedro Alves <pedro@codesourcery.com>
8064
8065 * remote.c (extended_remote_attach_1): Set attach_flag.
8066 (extended_remote_create_inferior_1): Clear attach_flag.
8067
8068 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8069
8070 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
8071 r_brk_offset.
8072 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
8073 * solib-svr4.c (solib_svr4_r_brk): New.
8074 (open_symbol_file_object, svr4_current_sos): Always check the
8075 debug base.
8076 (svr4_fetch_objfile_link_map): Do not set debug_base.
8077 (enable_break): Use r_brk if it is set.
8078 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
8079 (svr4_lp64_fetch_link_map_offsets): Likewise.
8080 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
8081
8082 2008-02-20 Markus Deuling <deuling@de.ibm.com>
8083 Mark Kettenis <kettenis@gnu.org>
8084
8085 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
8086 trad_frame_saved_reg.
8087 (trad-frame.h): New include.
8088
8089 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
8090 instead of frame_obstack_zalloc.
8091 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
8092
8093 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
8094
8095 2008-02-20 Markus Deuling <deuling@de.ibm.com>
8096
8097 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
8098 from disassemble_info instead of gdbarch_byte_order.
8099
8100 * mips-tdep.c (gdb_print_insn_mips): Likewise.
8101 * arm-tdep.c (gdb_print_insn_arm): Likewise.
8102
8103 2008-02-20 Markus Deuling <deuling@de.ibm.com>
8104
8105 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
8106 gdbarch as parameter.
8107
8108 * gdbarch.{c,h}: Regenerate.
8109
8110 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
8111 parameter.
8112 * mem-break.c (default_memory_insert_breakpoint)
8113 (default_memory_remove_breakpoint): Likewise.
8114 * target.h (default_memory_remove_breakpoint)
8115 (default_memory_insert_breakpoint): Likewise.
8116
8117 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
8118 parameter. Replace current_gdbarch by gdbarch.
8119 * m32r-tdep.c (m32r_memory_insert_breakpoint)
8120 (m32r_memory_remove_breakpoint): Likewise.
8121
8122 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
8123
8124 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
8125
8126 2008-02-19 Joel Brobecker <brobecker@adacore.com>
8127
8128 * NEWS: Add entry describing Add support improvements.
8129
8130 2008-02-18 Markus Deuling <deuling@de.ibm.com>
8131
8132 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
8133 M68K_FP0_REGNUM.
8134
8135 2008-02-18 Markus Deuling <deuling@de.ibm.com>
8136
8137 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
8138 register_offset_hack anymore.
8139
8140 * regcache.{c,h} (register_offset_hack): Remove.
8141
8142 2008-02-18 Markus Deuling <deuling@de.ibm.com>
8143
8144 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
8145
8146 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
8147 current_gdbarch by gdbarch.
8148 (hppa64_hpux_find_global_pointer): Likewise.
8149 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
8150 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
8151 find_global_pointer.
8152
8153 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
8154 parameter.
8155 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
8156
8157 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
8158 of gdbarch_num_regs.
8159
8160 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
8161 replace current_gdbarch by gdbarch.
8162 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
8163
8164 2008-02-18 Markus Deuling <deuling@de.ibm.com>
8165
8166 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
8167 and replace current_gdbarch by gdbarch.
8168
8169 (store_register): Update call for exec_one_dummy_insn.
8170 (fetch_register, store_register): Update call of regmap.
8171
8172 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
8173 parameter and replace current_gdbarch by gdbarch.
8174
8175 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
8176 the current architecture. Update call for getregs_supplies and
8177 getfpregs_supplies.
8178 (ppcnbsd_fetch_inferior_registers): Likewise.
8179
8180 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
8181 replace current_gdbarch by gdbarch.
8182 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
8183 get_regcache_arch to get at the current architecture. Update call for
8184 getfpregs_supplies.
8185
8186 2008-02-18 Markus Deuling <deuling@de.ibm.com>
8187
8188 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
8189 variables.
8190
8191 2008-02-15 Markus Deuling <deuling@de.ibm.com>
8192
8193 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
8194
8195 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
8196
8197 * NEWS: Mention pending breakpints in MI.
8198
8199 2008-02-14 Markus Deuling <deuling@de.ibm.com>
8200
8201 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
8202
8203 2008-02-13 Markus Deuling <deuling@de.ibm.com>
8204
8205 Add script to build and test GDB using enable-targets=all.
8206
8207 * gdb_buildall.sh: New file.
8208
8209 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
8210
8211 * NEWS (New native configurations): Xtensa GNU/Linux.
8212 (New targets): Xtensa GNU/Linux.
8213 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
8214 xtensa-linux-tdep.o
8215 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
8216 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
8217 * configure.tgt (xtensa*-*-linux*): New entry.
8218 * xtensa-config.c (xtensa_tdep): New variable.
8219 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
8220 (rmap): Change format based on new macro XTREG.
8221 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
8222 * xtensa-linux-nat.c: New.
8223 * xtensa-linux-tdep.c: New.
8224 * xtensa-xtregs.c: New.
8225 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
8226 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
8227 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
8228 (xtensa_register_t): New field coprocessor.
8229 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
8230 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
8231 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
8232 Update to handle privileged registers.
8233 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
8234 (xtensa_push_dummy_call): Set windowstart register correctly.
8235 (call0_analyze_prologue): Initialize xtensa_default_isa.
8236 (xtensa_derive_tdep): New.
8237 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
8238 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
8239 Call xtensa_derive_tdep().
8240 * config/xtensa/linux.mh: New.
8241 * regformats/reg-xtensa.dat: New.
8242
8243 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
8244
8245 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
8246 (filenames.h): New include.
8247 * Makefile.in (corelow.o): Add dependency for filenames.h.
8248
8249 2008-02-08 Doug Evans <dje@google.com>
8250
8251 * source.c (find_and_open_source): Always rewrite absolute filenames.
8252
8253 2008-02-07 Doug Evans <dje@google.com>
8254
8255 * breakpoint.c: #include "hashtab.h".
8256 (ambiguous_names_p): New fn.
8257 (update_breakpoint_locations): When restoring bp enable status, don't
8258 compare function names if any functions have same name.
8259 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
8260
8261 2008-02-07 Joel Brobecker <brobecker@adacore.com>
8262
8263 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
8264 instead of just a VEC*. Update use of SV.
8265 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
8266
8267 2007-02-07 Joel Brobecker <brobecker@adacore.com>
8268
8269 * NEWS: Put all new commands since gdb-6.7 together.
8270
8271 2007-02-07 Joel Brobecker <brobecker@adacore.com>
8272
8273 * ada-lang.c: #include "vec.h".
8274 (struct string_vector, new_string_vector, string_vector_append):
8275 Delete.
8276 (char_ptr): New typedef.
8277 (DEF_VEC_P (char_ptr)): New VEC type.
8278 (symbol_completion_add): Update profile to take the new VEC type
8279 instead of the old string_vector structure. Update code accordingly.
8280 (ada_make_symbol_completion_list): Use the new VEC type instead of
8281 the old string_vector structure, and update the code accordingly.
8282 * Makefile.in (ada-lang.o): Add dependency on vec.h.
8283
8284 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8285
8286 * p-exp.y: Set current_type in missing places.
8287 (leftdiv_is_integer): New static variable.
8288 Typecast right operand of BINOP_DIV to long_double if both operands
8289 are integers.
8290
8291 2008-02-06 Maciej W. Rozycki <macro@mips.com>
8292
8293 * remote-mips.c (set_breakpoint): Rename to...
8294 (mips_set_breakpoint): ... this.
8295 (clear_breakpoint): Rename to...
8296 (mips_clear_breakpoint): ... this.
8297 (common_breakpoint): Rename to...
8298 (mips_common_breakpoint): ... this.
8299 (check_lsi_error): Rename to...
8300 (mips_check_lsi_error): ... this.
8301
8302 2007-02-05 Joel Brobecker <brobecker@adacore.com>
8303
8304 * language.h (struct language_defn): Add new field
8305 la_make_symbol_completion_list.
8306 * symtab.c (default_make_symbol_completion_list): Renames
8307 make_symbol_completion_list.
8308 (make_symbol_completion_list): New function.
8309 * symtab.h (default_make_symbol_completion_list): Add declaration.
8310 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
8311 (auto_language, local_language): Likewise.
8312 * objc-lang.c (objc_language_defn): Likewise.
8313 * scm-lang.c (scm_language_defn): Likewise.
8314 * m2-lang.c (m2_language_defn): Likewise.
8315 * f-lang.c (f_language_defn): Likewise.
8316 * jv-lang.c (java_language_defn): Likewise.
8317 * p-lang.c (pascal_language_defn): Likewise.
8318 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
8319 (minimal_language_defn): Likewise.
8320 * ada-lang.c (struct string_vector): New structure.
8321 (new_string_vector, string_vector_append, ada_unqualified_name)
8322 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
8323 (ada_make_symbol_completion_list): New functions.
8324 (ada_language_defn): Set la_make_symbol_completion_list.
8325 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
8326 this function is static.
8327
8328 2008-02-05 Kevin Buettner <kevinb@redhat.com>
8329
8330 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
8331 to account for call site optimizations.
8332
8333 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
8334
8335 * tracepoint.c (read_actions): Handle end-of-text indicator
8336 in action list properly. (Committed by Jim Blandy)
8337
8338 2008-02-05 Jim Blandy <jimb@red-bean.com>
8339
8340 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
8341 pseudoregister, not an internal error.
8342 Reported by: Andrzej Zaborowski
8343
8344 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
8345
8346 * varobj.c (c_value_of_variable): Use xstrdup.
8347
8348 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
8349
8350 Update stored rendition of varobj value when format changes.
8351 * varobj.c (varobj_set_display_format): Recomputed
8352 print_value.
8353 (c_value_of_variable): Return print_value.
8354
8355 2008-02-03 Doug Evans <dje@google.com>
8356
8357 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
8358 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
8359 * valops.c (value_one): New function.
8360 * value.h (value_one): Declare.
8361
8362 Fix argument promotion for binary arithmetic ops for C.
8363 * valarith.c (unop_result_type): New fn.
8364 (binop_result_type): New fn.
8365 (value_binop): Move result type computation to binop_result_type.
8366 (value_pos, value_neg, value_complement): Move result type
8367 computation to unop_result_type.
8368
8369 PR 2384
8370 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
8371 Return basetype, fieldno if found. All callers updated.
8372 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
8373 objfile.
8374 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
8375 * symfile.h (fill_in_vptr_fieldno): Delete.
8376
8377 2008-02-02 Doug Evans <dje@google.com>
8378
8379 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
8380
8381 * typeprint.c (*): Whitespace cleanup.
8382
8383 2008-02-02 Mark Kettenis <kettenis@gnu.org>
8384 Luis Machado <luisgpm@br.ibm.com>
8385 Thiago Jung Bauermann <bauerman@br.ibm.com>
8386
8387 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
8388 don't fit into registerson the stack the way GCC does.
8389
8390 2008-02-01 Joel Brobecker <brobecker@adacore.com>
8391
8392 * symtab.c (symbol_set_names): Do not add an entry in the demangling
8393 hash table for Ada symbols. Just store the linkage name as is,
8394 and leave the demangled_name as NULL.
8395
8396 2007-02-01 Joel Brobecker <brobecker@adacore.com>
8397
8398 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
8399 in the global scope.
8400 (new_symbol): Likewise.
8401
8402 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
8403
8404 * breakpoint.c (break_command_1): Return void.
8405 (break_command_really): Return void. Rethrow
8406 exceptions instead of returning.
8407 (gdb_breakpoint): Remove the error_message parameter.
8408 Return void. Rename to set_breakpoint.
8409 * gdb.h (gdb_breakpoint): Rename and move to...
8410 * breakpoint.h (set_breakpoint): ...here.
8411 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
8412 event hooks even if exception is thrown. Adjust to
8413 gdb_breakpoint interface changes.
8414
8415
8416 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
8417
8418 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
8419 float in both first and second word in the doubleword, to support
8420 old and new ABIs.
8421
8422 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
8423
8424 Properly rethrow exception. This fixes errors
8425 about non-existent functions for -break-insert.
8426 * breakpoint.c (break_command_really): Use throw_exception
8427 for rethrowing. If rethrowing, don't print the exception.
8428
8429 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8430
8431 * NEWS: Mention Decimal Floating Point support.
8432
8433 2008-01-31 Joel Brobecker <brobecker@adacore.com>
8434
8435 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
8436 value type to builtin_type_void_func_ptr.
8437
8438 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
8439
8440 * s390-tdep.c (is_float_singleton, is_float_like,
8441 alignment_of, s390_return_value): Make checks for
8442 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
8443
8444 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
8445 Thiago Jung Bauermann <bauerman@br.ibm.com>
8446
8447 * infcmd.c (default_print_registers_info): Also print hex
8448 raw contents for TYPE_CODE_DECFLOAT registers.
8449 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
8450 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
8451 (rs6000_register_name): Add support for DFP pseudo-registers.
8452 (rs6000_pseudo_register_type): Likewise.
8453 rs6000_pseudo_register_reggroup_p): Likewise.
8454 (ppc_pseudo_register_read): New function.
8455 (ppc_pseudo_register_write): Likewise.
8456 (rs6000_pseudo_register_read): Likewise.
8457 (rs6000_pseudo_register_write): Likewise.
8458 (e500_pseudo_register_read): Move checks to
8459 rs6000_pseudo_register_read.
8460 (e500_pseudo_register_write): Move checks to
8461 rs6000_pseudo_register_write.
8462 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
8463 rs6000_pseudo_register_read and rs6000_pseudo_register_write
8464 in gdbarch if SPE or DFP is available. Adjust gdbarch's
8465 num_pseudo_regs to account for DFP pseudo regs.
8466
8467 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8468
8469 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
8470 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
8471 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
8472 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
8473 e500_pseudo_register_read, e500_pseudo_register_write): Use
8474 IS_SPE_PSEUDOREG macro.
8475 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
8476 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
8477 Remove initialization of tdep->ppc_ev31_regnum.
8478
8479 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
8480
8481 * printcmd.c (print_formatted): Handle references as for unformatted
8482 prints.
8483
8484 2008-01-30 Joel Brobecker <brobecker@adacore.com>
8485
8486 * eval.c (evaluate_subexp_standard): Add handling of user
8487 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
8488
8489 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
8490
8491 * eval.c (evaluate_subexp_standard): Support
8492 BINOP_INTDIV opcode.
8493
8494 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
8495
8496 * valarith.c (value_binop): Add floating-point BINOP_MIN and
8497 BINOP_MAX cases.
8498 For BINOP_EXP, use length and signedness of left operand only for
8499 result, as for shifts.
8500 For integral operands to BINOP_EXP, use new integer_pow and
8501 uinteger_pow functions so as to get full range of results.
8502 (integer_pow): New function.
8503 (uinteger_pow): New function.
8504
8505 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
8506
8507 Use vector for varobj_list_children interface.
8508 * gdb/varobj.c (varobj_list_children): Return vector
8509 of varobjs.
8510 * gdb/varobj.h (varobj_list_children): Adjust
8511 prototype.
8512 (varobj_p): Declare. Declare vector thereof.
8513 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
8514 for varobj_list_children change.
8515 * Makefile.in (varobj_h): Update dependencies.
8516
8517 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
8518
8519 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
8520 TYPE_CODE_DECFLOAT arguments.
8521 (ppc64_sysv_abi_push_dummy_call) Likewise.
8522 (get_decimal_float_return_value): New function.
8523 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
8524 values by calling get_decimal_float_return_value.
8525 (ppc64_sysv_abi_return_value): Likewise.
8526
8527 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
8528
8529 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
8530 for preprocessor macro information. Formatting changes.
8531
8532 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8533
8534 * remote.c (struct remote_state): Add cached_wait_status.
8535 (remote_exec_file): New variable.
8536 (PACKET_vAttach, PACKET_vRun): New constants.
8537 (extended_remote_restart): Do not query for status.
8538 (struct start_remote_args): New.
8539 (remote_start_remote): Take it as a second argument. Check
8540 whether the target is running. Issue an error for non-running
8541 non-extended targets. Cache the wait status. Set inferior_ptid
8542 here.
8543 (remote_open_1): Prompt to disconnect non-running targets. Make
8544 sure the target is marked running. Do not set inferior_ptid here.
8545 Update call to remote_start_remote. Do not call remote_check_symbols
8546 if the target is not running.
8547 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
8548 argument. Handle a non-running target.
8549 (remote_detach): Use it.
8550 (extended_remote_detach): New.
8551 (remote_disconnect): Fix typo. Use remoute_mourn_1.
8552 (extended_remote_attach_1, extended_remote_attach)
8553 (extended_async_remote_attach): New.
8554 (remote_vcont_resume): Remove unused variable.
8555 (remote_wait, remote_async_wait): Use any cached wait status.
8556 (putpkt_binary, getpkt): Clear any cached wait status.
8557 (extended_remoute_mourn_1): New.
8558 (extended_remote_mourn): Use it.
8559 (extended_async_remote_mourn, extended_remote_run): New.
8560 (extended_remote_create_inferior_1): New.
8561 (extended_remote_create_inferior): Use it.
8562 (extended_remote_async_create_inferior): Likewise.
8563 (remote_xfer_partial): Skip for non-executing targets.
8564 (init_extended_remote_ops): Set to_detach and to_attach.
8565 (init_extended_async_remote_ops): Likewise. Use
8566 extended_async_remote_mourn.
8567 (_initialize_remote): Register vAttach, vRun, and
8568 set remote exec-file.
8569 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
8570
8571 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8572
8573 * Makefile.in (symfile.o): Update.
8574 * NEWS: Mention exec tracing support.
8575 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
8576 exec events.
8577 * infcmd.c (kill_if_already_running, detach_command)
8578 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
8579 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
8580 (follow_exec): Do not check may_follow_exec. Do not mourn and push
8581 targets. Apply the sysroot path to the loaded executable. Use
8582 no_shared_libraries.
8583 * linux-nat.c (linux_child_follow_fork): Print fork following
8584 messages if verbose.
8585 (kill_wait_callback): Kill again before waiting a second time.
8586 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
8587 no_shared_libraries.
8588
8589 2008-01-29 Joel Brobecker <brobecker@adacore.com>
8590
8591 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
8592
8593 2008-01-29 Joel Brobecker <brobecker@adacore.com>
8594
8595 * nto-tdep.h: Remove #include "defs.h".
8596 * nto-tdep.c: Add #include "defs.h".
8597 * Makefile.in (nto_tdep_h): Update dependencies.
8598 (nto-tdep.o): Likewise.
8599
8600 2008-01-29 Joel Brobecker <brobecker@adacore.com>
8601
8602 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
8603 and use it.
8604 (proceed, start_remote): Update call to wait_for_inferior.
8605 * inferior.h (wait_for_inferior): Update declaration.
8606 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
8607 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
8608 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
8609 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
8610
8611 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
8612
8613 * varobj (adjust_value_for_child_access): Added checking for
8614 returned value from gdb_value_ind.
8615 (c_describe_child): Likewise.
8616 (cplus_describe_child): Fixed a typo.
8617
8618 2008-01-29 Jim Blandy <jimb@red-bean.com>
8619
8620 * MAINTAINERS: Update my info.
8621
8622 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
8623
8624 Use multiple locations for hardware watchpoints.
8625 This eliminates the need to traverse value chain, doing
8626 various checks, in three different places.
8627
8628 * breakpoint.h (struct bp_location): New fields
8629 lengths and watchpoint_type.
8630 (struct breakpoint): Remove the val_chain field.
8631 * breakpoint.c (is_hardware_watchpoint): New.
8632 (free_valchain): Remove.
8633 (update_watchpoint): New.
8634 (insert_bp_location): For hardware watchpoint, just
8635 directly insert it.
8636 (insert_breakpoints): Call update_watchpoint_locations
8637 on all watchpoints. If we have failed to insert
8638 any location of a hardware watchpoint, remove all inserted
8639 locations.
8640 (remove_breakpoint): For hardware watchpoints, directly
8641 remove location.
8642 (watchpoints_triggered): Iterate over locations.
8643 (bpstat_stop_status): Use only first location of
8644 a resource watchpoint.
8645 (delete_breakpoint): Don't call free_valchain.
8646 (print_one_breakpoint): Don't print all
8647 locations for watchpoints.
8648 (breakpoint_re_set_one): Use update_watchpoint for
8649 watchpoints.
8650
8651 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
8652
8653 Don't reset watchpoint block on solib load.
8654
8655 * breakpoint.c (insert_bp_location): For watchpoints,
8656 recompute condition.
8657 (breakpoint_re_set_one): Instead of recomputing value
8658 and condition for watchpoints, just reset value and
8659 let insert_breakpoints/insert_bp_location recompute it.
8660 Don't do anything about disabled watchpoint.
8661
8662 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
8663
8664 * valarith.c (value_binop): Handle unsigned integer
8665 division by zero.
8666
8667 2008-01-28 Kevin Buettner <kevinb@redhat.com>
8668
8669 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
8670 instruction pattern that appears frequently in position
8671 independent code. Fix bug in code which looks for "fmov" and
8672 backtracks if no "fmov" is found.
8673
8674 2008-01-28 Doug Evans <dje@google.com>
8675
8676 * dbxread.c (read_dbx_symtab): Fix indentation.
8677 Reformat comments to 80 columns.
8678 Move local var def closer to only use.
8679
8680 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8681
8682 * fork-child.c (SHELL_FILE): Remove #ifndef.
8683 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
8684
8685 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
8686
8687 * i386-tdep.c (i386_skip_noop): New function.
8688 (i386_analyze_prologue): Call i386_skip_noop function.
8689
8690 2008-01-24 Michael Snyder <msnyder@specifix.com>
8691
8692 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
8693 * win32-nat.c (win32_xfer_partial): Ditto.
8694 * target.c (default_xfer_partial): Minor whitespace adjustment.
8695
8696 2008-01-24 Pedro Alves <pedro@codesourcery.com>
8697
8698 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
8699 strip bit 1 even if pc doesn't point to thumb code.
8700
8701 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
8702
8703 * remote.c (remote_wait): Handle SIGINT between packets.
8704 (remote_async_wait): Likewise.
8705
8706 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
8707 Chris Demetriou <cgd@google.com>
8708
8709 * thread.c (add_thread_silent): Renamed
8710 from add_thread.
8711 (print_thread_events): New variable definition.
8712 (show_print_thread_events): New function.
8713 (_initialize_thread): Add "set print thread-events" and
8714 "show print thread-events" commands.
8715 (add_thread): Announce new thread.
8716 * gdbthread.h (add_thread_silent): Declare.
8717 (print_thread_events): New variable declaration.
8718 * inf-ttrace.c (inf_ttrace_wait): Don't
8719 inform about new thread, as add_thread is always
8720 called too, and will take care of that.
8721 * infrun.c (handle_inferior_event): Likewise.
8722 * procfs.c (procfs_wait): Likewise.
8723 * remote.c (remote_currthread): Likewise.
8724 * sol-thread.c (sol_thread_wait): Likewise.
8725 * win32-nat.c (get_win32_debug_event): Likewise.
8726 * linux-thread-db.c (attach_thread): Likewise.
8727 Remove the verbose parameter.
8728 (check_event): Make detach_thread be verbose
8729 only if print_thread_events is set.
8730 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
8731 about new thread. This is called only from
8732 linux-thread-db.c:attach_thread, which will take care.
8733 Remove the verbose parameter.
8734 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
8735
8736 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
8737
8738 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
8739
8740 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
8741
8742 * breakpoint.c (break_command_really): New parameter
8743 ignore_count.
8744 (break_command_1): Pass 0 as
8745 ignore_count to break_command_really.
8746 (gdb_breakpoint): Pass ignore_count to
8747 break_command_really.
8748
8749 2008-01-21 Kevin Buettner <kevinb@redhat.com>
8750
8751 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
8752 sigcontext struct via pointer.
8753 (struct sigframe comment): Update to show new field `psc'.
8754
8755 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
8756
8757 * infrun.c (handle_inferior_event): If
8758 we failed to remove breakpoints, error,
8759 don't try to increment PC by hand.
8760
8761 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
8762
8763 Add NetBSD/hppa target and host support.
8764
8765 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
8766 (hppabsd_gregset): Move to ...
8767 (hppabsd_regset_from_core_section): Rename
8768 hppaobsd_regset_from_core_section and move to ...
8769 (hppabsd_find_global_pointer): Update comment.
8770 (hppabsd_init_abi): Make global. Do not register
8771 hppabsd_regset_from_core_section.
8772 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
8773 move to ...
8774 (_initialize_hppabsd_tdep): Move to ...
8775 * hppaobsd-tdep.c: ... here. New file.
8776 * hppnbsd-tdep.c: New file.
8777 * hppnbsd-nat.c: New file.
8778 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
8779 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
8780 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
8781 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
8782 * configure.host (hppa*-*-netbsd*): New entry.
8783 * configure.tgt (hppa*-*-netbsd*): New entry.
8784 (hppa*-*-openbsd*): Update.
8785 * NEWS (New native configuration): Mention NetBSD/hppa.
8786 (New targets): Mention NetBSD/hppa.
8787
8788 2008-01-18 Markus Deuling <deuling@de.ibm.com>
8789
8790 * gdbarch.sh (function_list): Add new property bits_big_endian to
8791 gdbarch structure.
8792 * gdbarch.{c,h}: Regenerate.
8793
8794 * value.c (struct value): Replace BITS_BIG_ENDIAN by
8795 gdbarch_bits_big_endian (comment).
8796 (unpack_field_as_long, modify_field): Likewise.
8797 * value.h: Likewise (comment).
8798 * valops.c (value_slice): Likewise.
8799 * valarith.c (value_subscript, value_bit_index): Likewise.
8800 * gdbtypes.h (field): Likewise (comment).
8801 * eval.c (evaluate_subexp_standard): Likewise.
8802 * dwarf2read.c (dwarf2_add_field): Likewise.
8803 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
8804 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
8805
8806 * defs.h (BITS_BIG_ENDIAN): Remove.
8807
8808 2008-01-18 Markus Deuling <deuling@de.ibm.com>
8809
8810 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
8811 function calls.
8812 * m2-exp.y (yylex): Likewise.
8813 * objc-exp.y (yylex): Likewise.
8814
8815 * defs.h (DEPRECATED_STREQN): Remove.
8816
8817 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
8818
8819 * MAINTAINERS: Update my email address.
8820
8821 2008-01-17 Jim Blandy <jimb@codesourcery.com>
8822
8823 * README: Mention gdbserver/README.
8824
8825 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8826
8827 * valarith.c (value_binop): Handle BINOP_INTDIV
8828 for unsigned and signed integers.
8829
8830 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
8831
8832 * s390-tdep.c (s390_gdbarch_init): Set default long double
8833 type to 128-bit IEEE quad.
8834
8835 2008-01-17 Joel Brobecker <brobecker@adacore.com>
8836
8837 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
8838
8839 2008-01-16 Mark Kettenis <kettenis@gnu.org>
8840
8841 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
8842
8843 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
8844 * value.c: All callers changed.
8845
8846 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8847
8848 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
8849 DEPRECATED_STREQ by its expression.
8850 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
8851 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
8852 (scan_xcoff_symtab): Likewise.
8853 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
8854 * f-lang.c (find_common_for_function): Likewise.
8855 * objc-exp.y (parse_number): Likewise.
8856
8857 * defs.h (DEPRECATED_STREQ): Remove.
8858
8859 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8860
8861 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
8862 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
8863 get_frame_arch to get at the current_architecture. Update AM33_MODE
8864 call.
8865 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
8866 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
8867 architecture.
8868 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
8869
8870 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8871
8872 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
8873 parameter.
8874 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
8875
8876 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
8877 current_gdbarch by gdbarch. Update caller.
8878
8879 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
8880 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
8881 the current architecture. Update calls of
8882 amd64_native_gregset_supplies_p.
8883 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
8884 (amd64bsd_store_inferior_registers): Likewise.
8885
8886 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8887
8888 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
8889 Replace current_gdbarch by gdbarch. Update caller.
8890
8891 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8892
8893 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
8894 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
8895 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
8896 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
8897 (stabsect_build_psymtabs): Fix indentation.
8898
8899 2008-01-15 Michael Snyder <msnyder@specifix.com>
8900
8901 * corelow.c (core_xfer_partial): Comment, cut/paste error.
8902
8903 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8904
8905 * win32-nat.c (win32_create_inferior): Restore code calling
8906 CloseHandle on ProcessInformation structure.
8907
8908 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
8909
8910 * configure.ac: Check for void * as 3 argument of ptrace.
8911 * configure: regenerate.
8912
8913 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8914
8915 * alpha-tdep.c (alpha_heuristic_proc_start)
8916 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
8917 current_gdbarch by gdbarch.
8918
8919 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
8920 current architecture by frame_info. Update alpha_heuristic_proc_start
8921 call.
8922
8923 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
8924 get_frame_arch to get at the current architecture by frame_info. Update
8925 alpha_sigtramp_register_address call.
8926
8927 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
8928 current_gdbarch by gdbarch. Update caller.
8929 (convert_to_extended, convert_from_extended): Add endianess parameter
8930 for comparison. Update caller.
8931 (arm_extract_return_value, arm_store_return_value): Use
8932 get_regcache_arch to get at the current architecture.
8933
8934 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
8935 current_gdbarch by gdbarch. Update caller.
8936 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
8937 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
8938
8939 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
8940 gdbarch as parameter. Update caller.
8941 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
8942 current_gdbarch by gdbarch. Update caller.
8943
8944 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
8945 update caller. Replace current_gdbarch by gdbarch.
8946
8947 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
8948 the current architecture. Replace current_gdbarch by gdbarch.
8949 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
8950 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
8951 expression. Add gdbarch as parameter and replace current_gdbarch with
8952 it. Update caller.
8953 (M6811_TDEP): Remove.
8954 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
8955 architecture.
8956 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
8957 current_gdbarch by gdbarch. Update caller.
8958
8959 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
8960 update caller.
8961 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
8962 by gdbarch.
8963
8964 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
8965 caller. Relace current_gdbarch by gdbarch.
8966 (altivec_register_p, spe_register_p): Likewise.
8967 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
8968 parameter.
8969 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
8970 altivec_register_p and spe_register_p.
8971
8972 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
8973 caller. Replace current_gdbarch by gdbarch.
8974 (score_analyze_prologue): use get_frame_arch to get at the current
8975 architecture.
8976
8977 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
8978 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
8979 current_gdbarch by gdbarch. Update caller.
8980 (sparc_frame_cache): Use get_frame_arch to get at the current
8981 architecture.
8982 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
8983 sparc_analyze_prologue.
8984
8985 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
8986 parameter.
8987
8988 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8989
8990 * exec.c: #include "arch-utils.h"
8991 (print_section_info): Use gdbarch_from_bfd to get at the
8992 current architecture. Replace current_gdbarch. Fix indention. Replace
8993 deprecated_print_address_numeric by paddress.
8994 * Makefile.in (exec.o) Add dependency to arch-utils.h.
8995
8996 * valprint.c (val_print_string): Replace
8997 deprecated_print_address_numeric.
8998 * tracepoint.c (trace_mention, scope_info): Likewise.
8999 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
9000 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
9001 (maintenance_check_symtabs): Likewise.
9002 * symfile.c (list_overlays_command): Likewise.
9003 * stack.c (frame_info, print_block_frame_labels): Likewise.
9004 * printcmd.c (print_address, print_address_demangle)
9005 (address_info): Likewise.
9006 * corefile.c (memory_error): Likewise.
9007 * infcmd.c (jump_command): Likewise.
9008 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
9009 (mention, delete_breakpoint): Likewise.
9010 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
9011 * dwarf2read.c (dump_die): Likewise.
9012 * ada-valprint.c (ada_val_print_1): Likewise.
9013 * f-valprint.c (f_val_print): Likewise.
9014 * linux-fork.c (info_forks_command): Likewise.
9015 * m32r-com.c (m32r_load_section, m32r_load)
9016 (m32r_upload_command): Likewise.
9017
9018 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
9019
9020 2008-01-11 Markus Deuling <deuling@de.ibm.com>
9021
9022 * gdbarch.sh (skip_prologue): Add gdbarch
9023 as parameter.
9024 * gdbarch.{c,h}: Regenerate.
9025
9026 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
9027 * amd64-tdep.c (amd64_skip_prologue): Likewise.
9028 * avr-tdep.c (avr_skip_prologue): Likewise.
9029 * cris-tdep.c (cris_skip_prologue): Likewise.
9030 * frv-tdep.c (frv_skip_prologue): Likewise.
9031 * h8300-tdep.c (h8300_skip_prologue): Likewise.
9032 * hppa-tdep.c (hppa_skip_prologue): Likewise.
9033 * i386-tdep.c (i386_skip_prologue): Likewise.
9034 * ia64-tdep.c (ia64_skip_prologue): Likewise.
9035 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
9036 * m32r-tdep.c (m32r_skip_prologue): Likewise.
9037 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
9038 * m68k-tdep.c (m68k_skip_prologue): Likewise.
9039 * m88k-tdep.c (m88k_skip_prologue): Likewise.
9040 * mep-tdep.c (mep_skip_prologue): Likewise.
9041 * mips-tdep.c (mips_skip_prologue): Likewise.
9042 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
9043 * mt-tdep.c (mt_skip_prologue): Likewise.
9044 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
9045 * score-tdep.c (score_skip_prologue): Likewise.
9046 * sh64-tdep.c (sh64_skip_prologue): Likewise.
9047 * sh-tdep.c (sh_skip_prologue): Likewise.
9048 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
9049 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
9050 * spu-tdep.c (spu_skip_prologue): Likewise.
9051 * v850-tdep.c (v850_skip_prologue): Likewise.
9052 * vax-tdep.c (vax_skip_prologue): Likewise.
9053 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
9054 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
9055
9056 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
9057 current_gdbarch by gdbarch.
9058 * m32c-tdep.c (m32c_skip_prologue): Likewise.
9059 * s390-tdep.c (s390_skip_prologue): Likewise.
9060
9061 2008-01-10 Doug Evans <dje@google.com>
9062
9063 * defs.h (struct continuation_arg): Fix typo in comment.
9064 * target.c (target_translate_tls_address): Fix comment spelling error.
9065
9066 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
9067
9068 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
9069 (DOUBLEST_SCAN_FORMAT): Likewise.
9070 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
9071 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
9072 * c-exp.y (parse_number): Likewise.
9073 * jv-exp.y (parse_number): Likewise.
9074 * objc-exp.y (parse_number): Likewise.
9075 * p-exp.y (parse_number): Likewise.
9076
9077 2008-01-09 Joel Brobecker <brobecker@adacore.com>
9078
9079 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
9080 (check_typedef): Likewise.
9081
9082 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
9083
9084 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
9085 seen_double_big_d, treat the new H, D, and DD modifiers as length
9086 modifiers.
9087
9088 2008-01-08 Joel Brobecker <brobecker@adacore.com>
9089
9090 * dwarf2read.c (read_enumeration_type): Add comment.
9091
9092 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9093
9094 * config.in: Regenerate.
9095
9096 2008-01-08 Joel Brobecker <brobecker@adacore.com>
9097
9098 * ada-lang.c (ada_convert_actual): Renames convert_actual.
9099 Make non-static.
9100 (ada_convert_actuals): Delete.
9101 * ada-lang.h (ada_convert_actual): Add declaration.
9102 (ada_convert_actuals): Remove declaration.
9103 * infcall.c: #include "ada-lang.h".
9104 (value_arg_coerce): Add new parameter sp. Update function
9105 documetnation. Add handling of Ada function call parameters.
9106 * Makefile.in (infcall.o): Update dependencies.
9107
9108 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
9109
9110 * ada-lang.c (ensure_lval): Fix value lval kind.
9111 (convert_actual): Add handling for arguments passed by reference.
9112
9113 2008-01-08 Doug Evans <dje@google.com>
9114
9115 * dbxread.c (read_dbx_symtab): Fix indentation.
9116
9117 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9118
9119 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
9120 (valarith.o): Depend on dfp.h.
9121 (valops.o): Likewise.
9122 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
9123 (set_decnumber_context): New function.
9124 (decimal_check_errors): Likewise.
9125 (decimal_from_number): Likewise.
9126 (decimal_to_number): Likewise.
9127 (decimal_from_string): Use set_decnumber_context and
9128 decimal_check_errors.
9129 (decimal_from_integral): New function.
9130 (decimal_from_floating): Likewise.
9131 (decimal_to_double): Likewise.
9132 (promote_decimal): Likewise.
9133 (decimal_binop): Likewise.
9134 (decimal_is_zero): Likewise.
9135 (decimal_compare): Likewise.
9136 (decimal_convert): Likewise.
9137 * dfp.h (decimal_from_integral): New prototype.
9138 (decimal_from_floating): Likewise.
9139 (decimal_to_double): Likewise.
9140 (decimal_binop): Likewise.
9141 (decimal_is_zero): Likewise.
9142 (decimal_compare): Likewise.
9143 (decimal_convert): Likewise.
9144 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
9145 call to value_from_decfloat.
9146 * valarith.c: Include dfp.h.
9147 (value_args_as_decimal): New function.
9148 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
9149 (value_logical_not): Likewise.
9150 (value_equal): Likewise.
9151 (value_less): Likewise.
9152 (value_pos): Likewise.
9153 (value_neg): Formatting fix.
9154 * valops.c: Include dfp.h.
9155 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
9156 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
9157 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
9158 (value_from_decfloat): Remove expect_type argument.
9159 * value.h (value_from_decfloat): Update prototype.
9160
9161 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
9162
9163 Ignore change in name of dynamic linker during
9164 execution on Solaris. This also unbreaks pending breakpoints.
9165
9166 * solist.h (struct target_so_ops): New field same.
9167 * solib-svr4.c (svr4_same): New.
9168 (_initialize_svr4_solib): Register svr4_same.
9169 * solib.c (update_solib_list): Use ops->same, if available.
9170
9171 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
9172
9173 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
9174 when using MS-DOS paths.
9175
9176 2008-01-05 Pedro Alves <pedro@codesourcery.com>
9177
9178 * NEWS: Mention --pid and --core command line behaviour changes.
9179
9180 2008-01-05 Pedro Alves <pedro@codesourcery.com>
9181
9182 * main.c (captured_main): Remove 'count' varible and the
9183 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
9184 --pid options were issued simultaneously. If an explicit pid
9185 option was passed, don't fallback to core file. Detect extra
9186 arguments better in the presence of explicit pid or core
9187 arguments.
9188
9189 2008-01-05 Joel Brobecker <brobecker@adacore.com>
9190
9191 * ada-lang.c (ada_which_variant_applies): Correctly compute
9192 the value of the discriminant when the variant record is packed.
9193
9194 2008-01-04 Joel Brobecker <brobecker@adacore.com>
9195
9196 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
9197 that are used to differentiate homonyms.
9198
9199 2008-01-04 Jerome Guitton <guitton@adacore.com>
9200
9201 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
9202 when the type is an anonymous pointer type.
9203 (ada_check_typedef): Avoid a seg fault when the type is null.
9204 * ada-typeprint.c (print_array_type): Add support for pointer
9205 to packed arrays.
9206
9207 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
9208
9209 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
9210
9211 2008-01-04 Joel Brobecker <brobecker@adacore.com>
9212
9213 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
9214 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
9215
9216 2008-01-04 Joel Brobecker <brobecker@adacore.com>
9217
9218 * ada-exp.y (chop_separator): New function.
9219 (write_selectors): Rewrite to re-use chop_separator.
9220 (ada_nget_field_index, get_symbol_field_type): New functions.
9221 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
9222 expressions.
9223
9224 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
9225
9226 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
9227 of SYMBOL_VALUE when working with function symbols.
9228
9229 2008-01-03 Joel Brobecker <brobecker@adacore.com>
9230
9231 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
9232 expressions. These expressions do not need to be rewriten.
9233
9234 2008-01-03 Joel Brobecker <brobecker@adacore.com>
9235
9236 * dwarf2read.c (read_enumeration_type): Flag type as stub if
9237 the given die is a declaration.
9238
9239 2008-01-03 Joel Brobecker <brobecker@adacore.com>
9240
9241 * ada-lang.c (ada_array_bound_from_type): Make non-static.
9242 Handle properly the case when the index type is an enumerated type.
9243 Do not return the subtype of the bounds type, just return the
9244 bounds type directly - this is not needed and is more consistent
9245 with what we do for arrays when no XA parallel type exists.
9246
9247 2008-01-03 Joel Brobecker <brobecker@adacore.com>
9248
9249 * ada-lang.c (static_unwrap_type): Add forward declaration.
9250 (template_to_static_fixed_type): Fields of dynamic types sometimes
9251 also need to be unwrapped. Take this into account.
9252 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
9253 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
9254 * ada-typeprint.c (ada_print_type): Get the typename from
9255 the original type, not the base type.
9256
9257 2008-01-03 Jerome Guitton <guitton@adacore.com>
9258
9259 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
9260 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
9261 Update calls to ada_to_fixed_type.
9262 (ada_template_to_fixed_record_type_1): Ditto, but without looking
9263 for the tag.
9264 (ada_to_fixed_type): Add check_tag parameter; do not look for
9265 tag if null. When looking for a tag, use a fixed record type.
9266 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
9267 * ada-valprint.c (printable_val_type, ada_value_print): Update
9268 calls to ada_to_fixed_type.
9269
9270 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
9271
9272 * doublest.c (convert_floatformat_to_doublest): Call
9273 floatformat_to_doublest instead of floatformat_to_double and use
9274 DOUBLEST variables.
9275 (convert_doublest_to_floatformat): Call floatformat_from_doublest
9276 instead of floatformat_from_double and use DOUBLEST variables.
9277
9278 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
9279
9280 * MAINTAINERS (Write After Approval): Add self.
9281
9282 2008-01-03 Joel Brobecker <brobecker@adacore.com>
9283
9284 * symfile.c (set_initial_language): Make non-static.
9285 * symfile.h (set_initial_language): Add declaration.
9286 * language.c: #include "symfile.h".
9287 (set_language): Call set_initial_language if the frame language
9288 could not be determined.
9289
9290 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
9291
9292 * eval.c (evaluate_subexp_for_address): Provide frame address to
9293 locate_var_value only if it will be needed.
9294
9295 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9296
9297 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
9298
9299 2008-01-02 Joel Brobecker <brobecker@adacore.com>
9300
9301 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
9302 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
9303 This is needed to make sure that any other treatment applied
9304 to the resulting value does not fail for spurious reason,
9305 such as trying to take the address of this value.
9306
9307 2008-01-02 Joel Brobecker <brobecker@adacore.com>
9308
9309 * ada-lang.c (ada_value_equal): Dereference reference types when
9310 comparing arrays.
9311
9312 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
9313
9314 Updated copyright notices for most files.
9315
9316 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
9317
9318 * win32-nat.c (psapi_module_handle): Remove static.
9319 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
9320 return first module found if base_address is zero. Don't initialize
9321 psapi function pointers here. Convert to cygwin paths when
9322 appropriate.
9323 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
9324 executable name. Use get_module_name when that fails or when
9325 !__CYGWIN__.
9326 (_initialize_psapi): New function. Initialize psapi stuff before it is
9327 needed or issue a warning if it is not found. Move psapi_module_handle
9328 here.
9329
9330 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9331
9332 * ada-lang.c (ada_remove_trailing_digits): New function.
9333 (ada_remove_po_subprogram_suffix): New function.
9334 (ada_decode): Improve. Move the description of the algorithm
9335 directly inside the code, instead of in the function global
9336 description.
9337
9338 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9339
9340 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
9341 and always print the dereferenced value.
9342
9343 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9344
9345 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
9346 of the case where the first argument is a reference.
9347 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
9348
9349 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9350
9351 Implement support for Ada interface types.
9352
9353 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
9354 (ada_is_ignored_field): Ignore fields that are a dispatch table
9355 of a tagged type.
9356
9357 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9358
9359 * top.c (print_gdb_version): Update copyright year.
9360
9361 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9362
9363 * ChangeLog-2007: New ChangeLog rotation.
9364 * ChangeLog: Reset for 2008.
9365 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
9366 ChangeLog-2007.
9367
9368 For older changes see ChangeLog-2007.
9369 \f
9370 Local Variables:
9371 mode: change-log
9372 left-margin: 8
9373 fill-column: 74
9374 version-control: never
9375 coding: utf-8
9376 End:
This page took 0.259247 seconds and 4 git commands to generate.