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