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