]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
2010-08-18 Pedro Alves <pedro@codesourcery.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2
3 PR corefile/8210
4
5 * corelow.c (add_to_thread_list): Don't use
6 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
7 (get_core_register_section): Don't use
8 gdbarch_core_reg_section_encodes_pid.
9
10 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
11 * gdbarch.h, gdbarch.c: Regenerate.
12 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
13 gdbarch_core_reg_section_encodes_pid.
14 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
15 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
16 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
17
18 2010-08-18 Yao Qi <yao@codesourcery.com>
19
20 * MAINTAINERS : Add myself under Write After Approval.
21
22 2010-08-17 Tom Tromey <tromey@redhat.com>
23
24 * NEWS: Mention template parameter support.
25
26 2010-08-17 Pedro Alves <pedro@codesourcery.com>
27
28 PR breakpoints/11371
29
30 * breakpoint.c (decref_bp_location): Assert the reference count is
31 sane.
32
33 2010-08-17 Pedro Alves <pedro@codesourcery.com>
34
35 PR breakpoints/11371
36
37 * breakpoint.c (breakpoint_init_inferior): Decrement the
38 location's reference count instead of deleting right away.
39 (bpstat_free): Decrement the location's reference count. Make
40 static.
41 (bpstat_copy): Increment the location's reference count.
42 (bpstat_find_breakpoint): Adjust.
43 (bpstat_num): Adjust.
44 (print_it_typical): Adjust. Use the breakpoint pointer in the
45 bpstat instead of the location's owner.
46 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
47 Adjust to record the location's owner in the bpstat.
48 (watchpoint_check): Use the breakpoint pointer in the bpstat
49 instead of the location's owner.
50 (bpstat_check_breakpoint_conditions): Don't handle
51 bp_watchpoint_scope here. Use the breakpoint pointer in the
52 bpstat instead of the location's owner.
53 (bpstat_stop_status): Defer inferior function calls to after
54 building the bpstat list. Handle bp_watchpoint_scope here. Use
55 the breakpoint pointer in the bpstat instead of the location's
56 owner.
57 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
58 the location's owner.
59 (free_bp_location): Don't walk bpstats clearing locations.
60 (incref_bp_location): New.
61 (decref_bp_location): New.
62 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
63 instead of the location's owner.
64 (update_global_location_list): Clear the location's owner, and
65 decrement the location's reference count instead of deleting it
66 right away.
67 (breakpoint_retire_moribund): Decrement the location's reference
68 count instead of deleting it right away.
69 (bpstat_remove_bp_location): Delete.
70 (bpstat_remove_breakpoint): New.
71 (bpstat_remove_bp_location_callback): Delete.
72 (bpstat_remove_breakpoint_callback): New.
73 (delete_breakpoint): Iterate over all threads' stop_bpstat's
74 clearing references to the breakpoint that is being deleted.
75
76 * breakpoint.h (struct bp_location) <refc>: New field.
77 <owner>: Update comments.
78 (bpstat_free): Delete declaration.
79 (struct bpstats): Change the type of the breakpoint_at field to
80 struct breakpoint point, from struct bp_location pointer. Add new
81 field bp_location_at.
82
83 2010-08-16 Tom Tromey <tromey@redhat.com>
84
85 * NEWS: Fix typo.
86
87 2010-08-16 Tom Tromey <tromey@redhat.com>
88
89 * NEWS: Mention watch -location.
90
91 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
92
93 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
94 EXP_STRING_REPARSE to EXP_STRING.
95 (watch_command_1): Set also EXP_STRING_REPARSE.
96 (delete_breakpoint): Free also EXP_STRING_REPARSE.
97 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
98 Update comment for exp_string.
99
100 2010-08-16 Tom Tromey <tromey@redhat.com>
101
102 * value.c (release_value): Clear 'next' pointer.
103 * breakpoint.c (watch_command_1): Add 'just_location' argument.
104 (watch_command_wrapper): Update.
105 (watch_maybe_just_location): New function.
106 (watch_command): Update.
107 (rwatch_command_wrapper): Update.
108 (rwatch_command): Update.
109 (awatch_command_wrapper): Update.
110 (awatch_command): Update.
111 (check_for_argument): New function.
112 (_initialize_breakpoint): Update help text.
113
114 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
115
116 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
117 typedef'ed function types correctly.
118
119 2010-08-13 Tom Tromey <tromey@redhat.com>
120
121 * python/python-internal.h (gdbpy_get_hook_function): Don't
122 declare.
123
124 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
125
126 * cli-logging.c (logging_overwrite, logging_redirect): Make them
127 static.
128
129 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
130
131 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
132 the format strings to be compatible with Python 2.4.
133
134 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
135
136 Easier and more stubborn MI memory read commands.
137
138 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
139 and data-write-memory-bytes.
140 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
141 (mi_cmd_data_write_memory_bytes): New.
142 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
143 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
144 New.
145 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
146 * target.c (target_read_until_error): Remove.
147 (read_whatever_is_readable, free_memory_read_result_vector)
148 (read_memory_robust): New.
149 * target.h (target_read_until_error): Remove.
150 (struct memory_read_result, free_memory_read_result_vector)
151 (read_memory_robust): New.
152
153 2010-08-13 Hui Zhu <teawater@gmail.com>
154
155 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
156 (read_comp_unit): Initialize back_to.
157
158 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
159 Pedro Alves <pedro@codesourcery.com>
160
161 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
162 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
163 (struct partial_die_info) <has_template_arguments>: New field.
164 <num_attrs>: Change type to unsigned char.
165 <building_fullname>: New field.
166 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
167 allocate a CU if we don't have one already. Add a cleanup for the
168 CU.
169 (partial_die_full_name): Handle template arguments not in
170 DW_AT_name.
171 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
172 (load_full_comp_unit): Only allocate a CU if we don't have one
173 already.
174 (do_ui_file_peek_last): New.
175 (dwarf2_compute_name): Handle template parameters not in
176 DW_AT_name.
177 (read_comp_unit): Read and free abbrevs if not read yet.
178 (load_partial_dies): Handle template arguments not in DW_AT_name.
179 (find_partial_die): If we have a CU, but no a partial dies yet,
180 also read in the CU.
181 (dwarf2_const_value_attr): New, abstracted out from
182 dwarf2_const_value.
183 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
184 dwarf2_const_value_attr.
185 (determine_prefix): Detect and break loops created by RCVT's debug
186 info.
187 (maybe_queue_comp_unit): Bail out early if reading partial
188 symbols.
189 (follow_die_offset): Load full CU if we have no dies.
190 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
191 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
192
193 2010-08-11 Tom Tromey <tromey@redhat.com>
194 Phil Muldoon <pmuldoon@redhat.com>
195
196 * python/python.c (gdbpy_run_events): New function.
197 (gdbpy_post_event): Likewise.
198 (gdbpy_initialize_events): Likewise.
199 (_initialize_python): Call gdbpy_initialize_events.
200
201 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
202
203 * gdb/valarith.c (vector_binop): New function.
204 (scalar_binop): Likewise.
205 (value_binop): Call scalar_binop or vector_binop depending on the types.
206 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
207 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
208 to pointers.
209 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
210
211 2010-08-11 Brad Roberts <braddr@puremagic.com>
212
213 * d-lang.c (extract_identifiers): Handle multiple digits.
214
215 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
216
217 Code cleanup.
218 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
219 Rename to dummy_frame_unwind.
220 (dummy_frame_unwind): Remove.
221 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
222 * frame-unwind.c (frame_unwind_init): Use address of
223 dummy_frame_unwind and inline_frame_unwind.
224 * frame.c (create_sentinel_frame): Use address of
225 sentinel_frame_unwind.
226 * inline-frame.c (inline_frame_unwinder): Rename to
227 inline_frame_unwind.
228 (inline_frame_unwind): Remove.
229 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
230 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
231 sentinel_frame_unwind.
232 (sentinel_frame_unwind): Remove.
233 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
234 struct.
235
236 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
237
238 Code cleanup.
239 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
240 and returned value. New comment from frame-unwind.h.
241 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
242 Extend the comment.
243 * frame.c (get_frame_id, frame_unwind_register_value)
244 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
245 (get_frame_type, frame_unwind_arch): Do not use the return value of
246 frame_unwind_find_by_frame.
247
248 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
249 Thiago Jung Bauermann <bauerman@br.ibm.com>
250 Tom Tromey <tromey@redhat.com>
251
252 * python/python.c (gdbpy_solib_address): New function.
253 (gdbpy_decode_line): Likewise.
254
255 2010-08-10 Tom Tromey <tromey@redhat.com>
256
257 Revert gdb-add-index addition:
258 * Makefile.in (install-only): Don't install gdb-add-index.
259 * gdb-add-index.sh: Remove.
260
261 2010-08-09 Kevin Buettner <kevinb@redhat.com>
262
263 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
264 `target_has_execution' check with `to_has_memory' check.
265 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
266 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
267 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
268
269 2010-08-09 Kevin Buettner <kevinb@redhat.com>
270
271 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
272 (resume_siggnal, resume_step): Move these static globals...
273 (struct sim_inferior_data): ...into this new struct.
274 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
275 New static globals.
276 (gdb_callback, callbacks_initialized): Move these globals to
277 a point earlier in the file.
278 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
279 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
280 (gdbsim_close_inferior, gdbsim_resume_inferior)
281 (gdbsim_stop_inferior): New functions.
282 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
283 New constants.
284 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
285 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
286 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
287 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
288 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
289 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
290 new local variable `sim_data' in each of these functions. Use
291 `sim_data' to reference former globals `program_loaded',
292 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
293 `resume_step'.
294 (gdbsim_open): Remove local variable `argv'. Put results of call
295 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
296 make a cleanup for it. Free it though when a sim instance cannot
297 be obtained.
298 (gdbsim_close): Free sim_argv and null it out as appropriate.
299 Close sim instances in all inferiors.
300 (gdbsim_cntrl_c): Stop all inferiors.
301 (gdbsim_wait):
302 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
303
304 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
305
306 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
307 function after symbol construction is complete.
308 Do the same for template symbol addition to template_symbols list.
309
310 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
311
312 * symtab.c (symbol_get_demangled_name): Remove assertion and
313 return NULL when language_specific.cplus_specific is not initialized.
314 * stabsread.c (define_symbol): Set the name before calling
315 cp_scan_for_anonymous_namespaces.
316
317 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
318
319 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
320 SYMBOL_SET_LANGUAGE.
321 (symbol_init_language_specific): Renamed to symbol_set_language.
322 * symtab.c (symbol_init_language_specific): Removed redundant check
323 for language_cplus.
324 Renamed to symbol_set_language.
325 * stabsread.c (define_symbol): Updated.
326 (read_enum_type): Updated
327 * psymtab.c (add_psymbol_to_bcache): Updated.
328 * minsyms.c (install_minimal_symbols): Updated.
329 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
330 SYMBOL_LANGUAGE to set the language.
331 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
332 * mdebugread.c (new_symbol): Ditto.
333 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
334 * dwarf2read.c (new_symbol_full): Ditto.
335 * jv-lang.c (add_class_symbol): Ditto.
336
337 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
338
339 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
340 (make_cleanup_restore_page_info)
341 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
342 * gdbcmd.h (execute_command_to_string): New declaration.
343 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
344 (make_cleanup_restore_ui_file): Move to utils.c
345 (execute_gdb_command) <to_string>: Move ...
346 * top.c (execute_command_to_string): ... here. Call
347 set_batch_flag_and_make_cleanup_restore_page_info.
348 * utils.c (make_cleanup_restore_integer): New source file blank line.
349 (make_cleanup_restore_uinteger): New.
350 (struct restore_ui_file_closure, do_restore_ui_file)
351 (make_cleanup_restore_ui_file): Move here from python/python.c.
352 (init_page_info) <batch_flag>
353 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
354 (set_batch_flag_and_make_cleanup_restore_page_info): New.
355
356 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
357
358 * thread.c (add_thread_silent): Use null_ptid instead of
359 minus_one_ptid while getting rid of stale inferior_ptid.
360
361 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
362
363 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
364 Throughout, call read_encoded_value with ptr_size rather than addr_size.
365 (decode_frame_entry_1): Remove redundant setting of
366 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
367 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
368 on examined frame section. Add comment to explain why.
369 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
370 comment to explain usage.
371 * gdbarch.c: Regenerate.
372 * gdbarch.h: Regenerate.
373
374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
375
376 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
377
378 Code cleanup.
379 * varobj.c (varobj_create): Move variables fi, old_fi and block to
380 a more inner block.
381
382 2010-08-05 Pedro Alves <pedro@codesourcery.com>
383
384 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
385 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
386 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
387 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
388 linux-tdep.o to gdb_target_obs.
389
390 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
391
392 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
393 argument.
394
395 2010-08-05 Hui Zhu <teawater@gmail.com>
396
397 * mips-linux-tdep.c(regset.h): New include.
398 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
399 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
400 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
401 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
402 mips_linux_regset_from_core_section): New functions.
403 (fetch_core_registers, regset_core_fns): Deleted.
404 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
405 Deleted regset_core_fns.
406 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
407 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
408 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
409 and fpregset64.
410
411 2010-08-04 Pedro Alves <pedro@codesourcery.com>
412
413 * s390-tdep.c: Include linux-tdep.h.
414 (s390_gdbarch_init): Call linux_init_abi.
415
416 2010-08-04 Pedro Alves <pedro@codesourcery.com>
417
418 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
419 instead of printing "Thread" here.
420 * linux-tdep.c: Include inferior.h.
421 (linux_core_pid_to_str): New.
422 (linux_init_abi): New.
423 * linux-tdep.h (linux_init_abi): Declare.
424 * alpha-linux-tdep.c: Include linux-tdep.h.
425 (alpha_linux_init_abi): Call linux_init_abi.
426 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
427 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
428 * frv-linux-tdep.c: Include linux-tdep.h
429 (frv_linux_init_abi): Call linux_init_abi.
430 * hppa-linux-tdep.c: Include linux-tdep.h
431 (hppa_linux_init_abi): Call linux_init_abi.
432 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
433 * ia64-linux-tdep.c: Include linux-tdep.h.
434 (ia64_linux_init_abi): Call linux_init_abi.
435 * m32r-linux-tdep.c: Include linux-tdep.h.
436 (m32r_linux_init_abi): Call linux_init_abi.
437 * m68klinux-tdep.c: Include linux-tdep.h.
438 (m68k_linux_init_abi): Call linux_init_abi.
439 * microblaze-linux-tdep.c: Include linux-tdep.h.
440 (microblaze_linux_init_abi): Call linux_init_abi.
441 * mips-linux-tdep.c: Include linux-tdep.h.
442 (mips_linux_init_abi): Call linux_init_abi.
443 * mn10300-linux-tdep.c: Include linux-tdep.h.
444 (am33_linux_init_osabi): Call linux_init_abi. Rename the
445 'gdbinfo' parameter to 'info'.
446 * ppc-linux-tdep.c: Include linux-tdep.h.
447 (ppc_linux_init_abi): Call linux_init_abi.
448 * sh-linux-tdep.c: Include linux-tdep.h.
449 (sh_linux_init_abi): Call linux_init_abi.
450 * sparc-linux-tdep.c: Include linux-tdep.h.
451 (sparc32_linux_init_abi): Call linux_init_abi.
452 * sparc64-linux-tdep.c: Include linux-tdep.h.
453 (sparc64_linux_init_abi): Call linux_init_abi.
454 * xtensa-linux-tdep.c: Include linux-tdep.h.
455 (xtensa_linux_init_abi): Call linux_init_abi.
456 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
457 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
458 callback.
459
460 2010-08-03 Doug Evans <dje@google.com>
461
462 * breakpoint.c (bpdisp_text): Constify bpdisps.
463 * solib-svr4.c (solib_break_names): Constify.
464 (bkpt_names, main_name_list): Constify.
465 (match_main): Constify soname arg.
466 (bfd_lookup_symbol): Remove unnecessary forward decl.
467 Constify symname arg.
468 (enable_break): Constify bkpt_namep.
469 * symtab.c (search_symbols): Constify types, types2, types3, types4.
470 (symtab_symbol_info): Constify classnames.
471
472 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
473
474 * NEWS: Document Python value inferior function calls.
475
476 2010-08-02 Doug Evans <dje@google.com>
477
478 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
479
480 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
481
482 * linux-thread-db.c (libthread_db_debug): New variable.
483 (thread_db_find_new_threads_silently): Control verbosity with it.
484 (try_thread_db_load_1, try_thread_db_load): Likewise.
485 (find_new_threads_once): Likewise.
486 (_initialize_thread_db): Set/show it.
487
488 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
489
490 * common/signals.c (signals): Move the content to signals.def.
491 Include it. Remove the INDENT comments.
492
493 2010-07-30 Tom Tromey <tromey@redhat.com>
494
495 * Makefile.in (install-only): Install gdb-add-index.
496 * gdb-add-index.sh: New file.
497
498 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
499
500 * MAINTAINERS: Add myself for write after approval privileges.
501
502 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
503
504 * symfile.c (addr_section_name): New function.
505 (addrs_section_compar): Use it.
506 (addr_info_make_relative): Use it. Move variable sect_name into a more
507 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
508
509 2010-07-30 Tom Tromey <tromey@redhat.com>
510
511 * configure: Rebuild.
512 * configure.ac: Add missing case for Python 2.7.
513
514 2010-07-29 DJ Delorie <dj@redhat.com>
515
516 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
517 conditions.
518
519 2010-07-29 Pedro Alves <pedro@codesourcery.com>
520
521 * PROBLEMS: Remove mention of all problems.
522
523 2010-07-28 Pedro Alves <pedro@codesourcery.com>
524
525 PR build/11848
526 * configure.ac: Check for wresize.
527 * configure, config.in: Regenerate.
528 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
529 with HAVE_WRESIZE.
530
531 2010-07-28 Tom Tromey <tromey@redhat.com>
532
533 PR python/11060:
534 * python/py-type.c (typy_legacy_template_argument): New function,
535 extracted from typy_template_argument.
536 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
537 value when needed.
538
539 2010-07-28 Oleg Nesterov <oleg@redhat.com>
540
541 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
542
543 2010-07-27 Tom Tromey <tromey@redhat.com>
544
545 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
546
547 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
548
549 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
550 handling DW_AT_object_pointer, and workaround GCC PR 43053.
551
552 2010-07-28 Tom Tromey <tromey@redhat.com>
553
554 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
555
556 2010-07-28 Joel Brobecker <brobecker@adacore.com>
557
558 * remote.c (remote_download_tracepoint): Add missing gettext markup.
559 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
560
561 2010-07-28 Joel Brobecker <brobecker@adacore.com>
562
563 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
564 down, just before the block that parse the breakpoint addr_string.
565
566 2010-07-28 Tom Tromey <tromey@redhat.com>
567
568 PR c++/9946:
569 * symfile.c (reread_symbols): Clear template_symbols.
570 * symtab.h (struct symbol) <is_cplus_template_function>: New
571 field.
572 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
573 (struct template_symbol): New.
574 * symtab.c (lookup_symbol_aux_local): Use
575 cp_lookup_symbol_imports_or_template.
576 * objfiles.h (struct objfile) <template_symbols>: New field.
577 * objfiles.c (relocate_one_symbol): New function.
578 (objfile_relocate1): Use it. Relocate isolated symbols.
579 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
580 template_arguments>: New fields.
581 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
582 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
583 (TYPE_TEMPLATE_ARGUMENT): Likewise.
584 (lookup_typename): Update.
585 * gdbtypes.c (lookup_typename): Constify "block" argument.
586 * dwarf2read.c: Include vec.h.
587 (symbolp): New typedef.
588 (read_func_scope): Read template arguments. Allocate a
589 template_symbol when needed.
590 (read_structure_type): Read template arguments.
591 (new_symbol_full): New function, from new_symbol. Handle
592 DW_TAG_template_type_param and DW_TAG_template_value_param.
593 (new_symbol): Rewrite as wrapper.
594 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
595 * cp-namespace.c: Include language.h.
596 (search_symbol_list): New function.
597 (cp_lookup_symbol_imports_or_template): Likewise.
598
599 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
600
601 * tui/tui-win.c (make_visible_with_new_height): Resize and move
602 the command window to the new size and position.
603
604 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
605
606 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
607 coordinates.
608
609 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
610
611 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
612 after a detecting a resize.
613 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
614 call.
615
616 2010-07-28 Pedro Alves <pedro@codesourcery.com>
617
618 * configure.ac: Check for resize_term.
619 * configure, config.in: Regenerate.
620
621 2010-07-27 Joel Brobecker <brobecker@adacore.com>
622
623 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
624
625 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
626
627 * dwarf2read.c (read_string): Rename to ...
628 (read_direct_string): ... this.
629 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
630 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
631
632 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
633
634 * linux-nat.c (linux_nat_lp_status_is_event): New function.
635 (count_events_callback, select_event_lwp_callback)
636 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
637
638 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
639
640 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
641 (_initialize_ia64_linux_nat): Install it.
642 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
643 (linux_nat_set_status_is_event): New.
644 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
645 cancel_breakpoints_callback, linux_nat_filter_event)
646 (linux_nat_wait_1): Use linux_nat_status_is_event.
647 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
648
649 2010-07-27 Tom Tromey <tromey@redhat.com>
650
651 * NEWS: Mention labels, .gdb_index.
652
653 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
654
655 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
656 "start,+length" form of arguments.
657 * NEWS: Add "Changed commands" (disassemble) section for "Changes
658 since GDB 7.1"; and merge two separated paragraphs of disassemble
659 description in "Changes in GDB 7.0".
660
661 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
662
663 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
664 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
665 (fputs_maybe_filtered): Do not do filtering also on
666 ! INPUT_FROM_TERMINAL_P.
667
668 2010-07-27 Joel Brobecker <brobecker@adacore.com>
669
670 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
671 in warning message.
672
673 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
674
675 * python/py-value.c (valpy_call): New Function.
676
677 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
678
679 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
680 types_list_elements variables.
681
682 2010-07-26 Tom Tromey <tromey@redhat.com>
683
684 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
685 TLS with DW_OP_const4u or DW_OP_const8u.
686
687 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
688
689 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
690 VSX registers contents.
691
692 2010-07-26 Jerome Guitton <guitton@adacore.com>
693
694 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
695 its adress is null. Add comment to explain why.
696 (new_symbol): Ditto.
697
698 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
699
700 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
701 the host signal first.
702
703 2010-07-23 Tom Tromey <tromey@redhat.com>
704
705 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
706 type_comp_units>: New fields.
707 (dw2_get_cu): New function.
708 (create_cus_from_index): Remove unused argument.
709 (create_signatured_type_hash_from_index): New function.
710 (create_addrmap_from_index): Update.
711 (dwarf2_read_index): Handle version 2.
712 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
713 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
714 (dw2_print_stats, dw2_expand_all_symtabs)
715 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
716 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
717 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
718 (allocate_signatured_type_hash_table): New function.
719 (add_signatured_type_cu_to_list): Likewise.
720 (create_debug_types_hash_table): Use them. Set type_comp_units.
721 (read_signatured_type): Ensure section data is available.
722 (add_address_entry): Don't record empty ranges.
723 (struct signatured_type_index_data): New.
724 (write_one_signatured_type): New function.
725 (write_psymtabs_to_index): Write type CUs.
726 (save_gdb_index_command): Update comment.
727 (process_type_comp_unit): Move inititalization of
728 from_debug_types...
729 (create_debug_types_hash_table): ... here.
730
731 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
732
733 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
734 cleanup and generating of gdb script to it.
735 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
736 and terminal size. Convert $tmpfile to a series of -ex-es.
737
738 2010-07-23 Keith Seitz <keiths@redhat.com>
739
740 * symtab.c (basic_lookup_transparent_type): Call pre-expand
741 hook for STATIC_BLOCK types, too.
742
743 2010-07-23 Keith Seitz <keiths@redhat.com>
744
745 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
746 and vector definition.
747
748 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
749
750 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
751
752 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
753
754 * dwarf2read.c: Include completer.h.
755 (save_gdb_index_command): Use matching usage command name.
756 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
757 Set filename_completer for it.
758
759 2010-07-22 Tom Tromey <tromey@redhat.com>
760
761 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
762 type signature's per-CU data.
763
764 2010-07-22 Pedro Alves <pedro@codesourcery.com>
765
766 * NEWS: Mention target reported shared libraries support by
767 default.
768
769 2010-07-21 Pedro Alves <pedro@codesourcery.com>
770
771 PR symtab/11827
772
773 Revert:
774 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
775 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
776 and DW_TAG_volatile_type.
777 (new_symbol): Likewise.
778
779 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
780
781 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
782 function symbols before overload resolution.
783
784 2010-07-21 Pedro Alves <pedro@codesourcery.com>
785
786 * breakpoint.c (bptype_string): New, abstracted out from
787 print_one_breakpoint_location.
788 (print_one_breakpoint_location): Adjust.
789 (breakpoint_1): Adjust the type column width dynamically.
790
791 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
792
793 * symfile.c (find_separate_debug_file_by_debuglink): Remove
794 a gdb_assert call, new comment.
795
796 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
797
798 * linux-nat.c (linux_handle_extended_wait): Handle case when
799 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
800
801 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
802
803 Code cleanup.
804 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
805 linux_nat_wait_1. Use always LP->STATUS afterwards.
806
807 2010-07-20 Hui Zhu <teawater@gmail.com>
808
809 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
810 (inf_ptrace_attach): Ditto.
811
812 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
813
814 Make core files the process_stratum.
815 * corefile.c (core_target): New variable.
816 (core_file_command): Remove variable t, use core_target.
817 * corelow.c (core_ops): Make it static.
818 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
819 * defs.h (make_cleanup_unpush_target): New prototype.
820 * gdbarch.h: Regenerate.
821 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
822 * gdbcore.h (core_target): New declaration.
823 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
824 variables ops_already_pushed and back_to. Use push_target,
825 make_cleanup_unpush_target and discard_cleanups calls.
826 * record.c (record_open): Replace core_stratum by a core_bfd check.
827 * target.c (target_is_pushed): New function.
828 (find_core_target): Remove.
829 * target.h (enum strata) <core_stratum>: Remove.
830 (target_is_pushed): New declaration.
831 (find_core_target): Remove declaration.
832 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
833 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
834
835 2010-07-19 Hui Zhu <teawater@gmail.com>
836
837 * breakpoint.c (single_step_breakpoints_inserted): New
838 function.
839 * breakpoint.h (single_step_breakpoints_inserted): Extern.
840 * infrun.c (maybe_software_singlestep): Add check code.
841 * record.c (record_resume): Add code for software single step.
842 (record_wait): Ditto.
843
844 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
845
846 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
847 a more inner block. Remove its unused declaration initializer.
848
849 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
850
851 * NEWS: Mention support for the new ptrace interface and hardware
852 accelerated watchpoint conditions on powerpc-linux.
853
854 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
855
856 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
857 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
858 and host_address_to_string() and %s for pointers.
859 (debug_to_remove_breakpoint): Likewise.
860 (debug_to_region_ok_for_hw_watchpoint): Likewise.
861 (debug_to_can_accel_watchpoint_condition): Likewise.
862 (debug_to_stopped_data_address): Likewise.
863 (debug_to_watchpoint_addr_within_range): Likewise.
864 (debug_to_insert_hw_breakpoint): Likewise.
865 (debug_to_remove_hw_breakpoint): Likewise.
866 (debug_to_insert_watchpoint): Likewise.
867 (debug_to_remove_watchpoint): Likewise.
868
869 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
870
871 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
872 argument.
873 (cplus_specific): New struct.
874 * symtab.c (symbol_set_demangled_name): Updated.
875 Use cplus_specific for cplus symbols.
876 (symbol_get_demangled_name): Retrive the name from the cplus_specific
877 struct for cplus symbols.
878 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
879 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
880 * symtab.c (symbol_init_cplus_specific): New function.
881
882 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
883
884 * symtab.h (symbol_set_demangled_name): New function.
885 (symbol_get_demangled_name): New function.
886 * symtab.c (symbol_set_demangled_name): New function.
887 (symbol_get_demangled_name): New function.
888 (symbol_init_language_specific): Use demangled_name setter and getter.
889 (symbol_set_names): Ditto.
890 (symbol_natural_name): Ditto.
891 (symbol_demangled_name): Ditto.
892 * dwarf2read.c (new_symbol): Ditto.
893
894 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
895
896 * symtab.h: Renamed cplus_specific to mangled_lang.
897 * symtab.c (symbol_init_language_specific): Updated.
898 (symbol_set_names): Updated.
899 (symbol_natural_name): Updated.
900 (symbol_demangled_name): Updated.
901 * ada-lang.c (ada_decode_symbol): Updated.
902 * dwarf2read.c (new_symbol): Updated.
903
904 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
905
906 * valops.c (value_assign): Do not call to value_coerce_to_target.
907 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
908
909 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
910
911 * MAINTAINERS: Add myself for write after approval privileges.
912
913 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
914
915 * c-valprint.c (c_val_print): Add embedded_offset to address in
916 call to val_print_array_elements.
917
918 2010-07-13 Tom Tromey <tromey@redhat.com>
919
920 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
921
922 2010-07-13 Tom Tromey <tromey@redhat.com>
923
924 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
925 objfile.
926
927 2010-07-13 Tom Tromey <tromey@redhat.com>
928
929 * symfile.c (set_initial_language): Update.
930 (deduce_language_from_filename): Argument type now const.
931 * symtab.h (find_main_filename): Update.
932 (deduce_language_from_filename): Update.
933 * symtab.c (find_main_filename): Make result const.
934 * dwarf2read.c (dw2_find_symbol_file): Change return type.
935 * psymtab.c (find_symbol_file_from_partial): Change return type.
936 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
937 Make result const.
938
939 2010-07-13 Tom Tromey <tromey@redhat.com>
940
941 * breakpoint.c (save_cmdlist): No longer static.
942 * gdbcmd.h (save_cmdlist): Declare.
943 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
944 OBJF_READNOW on objfile if readnow_symbol_files.
945 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
946 (elf_sym_fns_gdb_index): New global.
947 * dwarf2read.c: Include exceptions.h.
948 (offset_type): New.
949 (struct mapped_index): New.
950 (dwarf2_per_cu_data_ptr): New typedef.
951 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
952 New fields.
953 (GDB_INDEX_SECTION): New define.
954 (struct dwarf2_per_cu_quick_data): New.
955 (struct dwarf2_per_cu_data) <objfile>: New field.
956 <psymtab>: Removed.
957 <v>: New field.
958 (byte_swap): New function.
959 (MAYBE_SWAP): New macro.
960 (INDEX_SUFFIX): New macro.
961 (dw2_do_instantiate_symtab): New function.
962 (dw2_instantiate_symtab): Likewise.
963 (create_cus_from_index): Likewise.
964 (create_addrmap_from_index): Likewise.
965 (mapped_index_string_hash): Likewise.
966 (find_slot_in_mapped_hash): Likewise.
967 (dwarf2_read_index): Likewise.
968 (dw2_setup): Likewise.
969 (dw2_require_line_header): Likewise.
970 (dw2_require_full_path): Likewise.
971 (dw2_find_last_source_symtab): Likewise.
972 (dw2_forget_cached_source_info): Likewise.
973 (dw2_lookup_symtab): Likewise.
974 (dw2_lookup_symbol): Likewise.
975 (dw2_do_expand_symtabs_matching): Likewise.
976 (dw2_pre_expand_symtabs_matching): Likewise.
977 (dw2_print_stats): Likewise.
978 (dw2_dump): Likewise.
979 (dw2_relocate): Likewise.
980 (dw2_expand_symtabs_for_function): Likewise.
981 (dw2_expand_all_symtabs): Likewise.
982 (dw2_expand_symtabs_with_filename): Likewise.
983 (dw2_find_symbol_file): Likewise.
984 (dw2_map_ada_symtabs): Likewise.
985 (dw2_expand_symtabs_matching): Likewise.
986 (dw2_find_pc_sect_symtab): Likewise.
987 (dw2_map_symbol_names): Likewise.
988 (dw2_map_symbol_filenames): Likewise.
989 (dw2_has_symbols): Likewise.
990 (dwarf2_gdb_index_functions): New global.
991 (dwarf2_initialize_objfile): New function.
992 (process_psymtab_comp_unit): Update.
993 (add_partial_subprogram): Likewise.
994 (dwarf2_psymtab_to_symtab): Likewise.
995 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
996 (process_full_comp_unit): Update.
997 (find_file_and_directory): New function.
998 (read_file_scope): Use find_file_and_directory.
999 (dwarf2_per_cu_objfile): Update.
1000 (dwarf2_per_cu_addr_size): Update.
1001 (dwarf2_per_cu_offset_size): Update.
1002 (dwarf2_free_objfile): Free the index, if needed.
1003 (dwarf2_per_objfile_free): Unmap the index, if needed.
1004 (struct strtab_entry): New.
1005 (hash_strtab_entry): New function.
1006 (eq_strtab_entry): Likewise.
1007 (create_strtab): Likewise.
1008 (add_string): Likewise.
1009 (struct symtab_index_entry): New.
1010 (struct mapped_symtab): New.
1011 (hash_symtab_entry): New function.
1012 (eq_symtab_entry): Likewise.
1013 (delete_symtab_entry): Likewise.
1014 (create_index_table): Likewise.
1015 (create_mapped_symtab): Likewise.
1016 (cleanup_mapped_symtab): Likewise.
1017 (find_slot): Likewise.
1018 (hash_expand): Likewise.
1019 (add_index_entry): Likewise.
1020 (add_indices_to_cpool): Likewise.
1021 (write_hash_table): Likewise.
1022 (add_address_entry): Likewise.
1023 (write_psymbols): Likewise.
1024 (write_obstack): Likewise.
1025 (unlink_if_set): Likewise.
1026 (write_psymtabs_to_index): Likewise.
1027 (save_gdb_index_command): Likewise.
1028 (_initialize_dwarf2_read): Install "save gdb-index"
1029 command.
1030 (create_all_comp_units): Initialize 'objfile' field of CU.
1031 (dwarf2_locate_sections): Check for .gdb_index.
1032 * psymtab.h (dwarf2_gdb_index_functions): Declare.
1033 * symfile.h (dwarf2_initialize_objfile): Declare.
1034
1035 2010-07-13 Tom Tromey <tromey@redhat.com>
1036
1037 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
1038 (basic_lookup_transparent_type): Likewise.
1039 * symfile.h (struct quick_symbol_functions)
1040 <pre_expand_symtabs_matching>: New field.
1041 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
1042 (psym_functions): Update.
1043
1044 2010-07-13 Tom Tromey <tromey@redhat.com>
1045
1046 PR breakpoints/8357:
1047 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
1048 * linespec.c (decode_line_1): Update comment. Call decode_label.
1049 (decode_label): New function.
1050 (symbol_found): Handle LOC_LABEL.
1051 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
1052 domain. Call add_symbol_to_list.
1053
1054 2010-07-13 Tom Tromey <tromey@redhat.com>
1055
1056 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
1057 * dwarf2loc.c (find_location_expression): Use
1058 dwarf2_per_cu_text_offset.
1059 (dwarf2_evaluate_loc_desc): Likewise.
1060 (dwarf2_loc_desc_needs_frame): Likewise.
1061 (compile_dwarf_to_ax): Likewise.
1062 (loclist_describe_location): Likewise.
1063 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
1064 (dwarf2_per_cu_objfile): Update comment.
1065
1066 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1067
1068 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
1069 * p-lang.c (pascal_printstr): Likewise.
1070
1071 2010-07-09 Tom Tromey <tromey@redhat.com>
1072
1073 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
1074 'hint' if it is NULL.
1075
1076 2010-07-09 Hui Zhu <teawater@gmail.com>
1077
1078 * source.c (print_source_lines_base): Add check for noprint.
1079
1080 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1081
1082 * python/python-config.py: Resync with Python 2.7 version of this
1083 script.
1084
1085 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1086
1087 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
1088
1089 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1090
1091 * NEWS: Create a new section for the next release branch.
1092 Rename the section of the current branch, now that it has
1093 been cut.
1094
1095 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1096
1097 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
1098 * version.in: Bump version to 7.2.50.20100707-cvs.
1099
1100 2010-07-07 Tom Tromey <tromey@redhat.com>
1101
1102 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
1103 LOC_COMPUTED symbol.
1104 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
1105 (dwarf2_loc_desc_needs_frame): Likewise.
1106 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
1107 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
1108 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
1109 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
1110 'offset' argument.
1111 (struct dwarf2_frame_cache) <text_offset>: New field.
1112 (dwarf2_frame_cache): Set new field.
1113 (dwarf2_frame_prev_register): Update.
1114 (dwarf2_frame_sniffer): Update.
1115 (dwarf2_frame_base_sniffer): Update.
1116 (dwarf2_frame_find_fde): Add 'out_offset' argument.
1117
1118 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1119 Thiago Jung Bauermann <bauerman@br.ibm.com>
1120
1121 Support for hw accelerated condition watchpoints in booke powerpc.
1122
1123 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
1124 and move to eval.c. Change callers.
1125 (insert_bp_location): Pass watchpoint condition in
1126 target_insert_watchpoint.
1127 (remove_breakpoint_1) Pass watchpoint condition in
1128 target_remove_watchpoint.
1129 (watchpoint_locations_match): Call
1130 target_can_accel_watchpoint_condition.
1131 * eval.c: Include wrapper.h.
1132 (fetch_subexp_value): Moved from breakpoint.c.
1133 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
1134 Formatting fix.
1135 (can_use_watchpoint_cond_accel): New function.
1136 (calculate_dvc): Likewise.
1137 (num_memory_accesses): Likewise.
1138 (check_condition): Likewise.
1139 (ppc_linux_can_accel_watchpoint_condition): Likewise
1140 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
1141 check_condition and calculate_dvc.
1142 (ppc_linux_remove_watchpoint): Likewise.
1143 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
1144 ppc_linux_can_accel_watchpoint_condition
1145 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
1146 condition.
1147 (debug_to_remove_watchpoint): Likewise.
1148 (debug_to_can_accel_watchpoint_condition): New function.
1149 (update_current_target): Set to_can_accel_watchpoint_condition.
1150 (setup_target_debug): Set to_can_accel_watchpoint_condition.
1151 * target.h: Add opaque declaration for struct expression.
1152 (struct target_ops) <to_insert_watchpoint>,
1153 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
1154 <to_can_accel_watchpoint_condition>: New member.
1155 condition. Update all callers and implementations.
1156 (target_can_accel_watchpoint_condition): New macro.
1157 * value.c (free_value_chain): New function.
1158 * value.h (fetch_subexp_value): New prototype.
1159 (free_value_chain): Likewise.
1160
1161 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
1162
1163 * linux-nat.c (linux_nat_do_thread_registers): Use section size
1164 from gdbarch_core_regset_sections also for .reg if present.
1165
1166 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
1167 section size for .reg.
1168 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1169 (ppc_linux_vmx_regset_sections): Likewise.
1170 (ppc_linux_fp_regset_sections): Likewise.
1171 (ppc64_linux_vsx_regset_sections): New variable.
1172 (ppc64_linux_vmx_regset_sections): Likewise.
1173 (ppc64_linux_fp_regset_sections): Likewise.
1174 (ppc_linux_init_abi): Install core_regset_section lists appropriate
1175 for current word size.
1176
1177 2010-07-06 Joel Brobecker <brobecker@adacore.com>
1178
1179 * server.c (myresume): Make static.
1180
1181 2010-07-06 Tom Tromey <tromey@redhat.com>
1182
1183 * configure, config.in: Rebuild.
1184 * configure.ac (HAVE_LIBPYTHON2_7): New define.
1185 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
1186
1187 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1188
1189 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
1190 "clear".
1191
1192 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
1193
1194 * gdbtypes.h (floatformats_ieee_half): Add declaration.
1195 * gdbtypes.c (floatformats_ieee_half): New variable.
1196 * doublest.c (floatformat_from_length): Set format to
1197 gdbarch_half_format if length matches.
1198 * gdbarch.sh (half_bit): New architecture method.
1199 (half_format): Likewise.
1200 * gdbarch.h: Regenerate.
1201 * gdbarch.c: Likewise.
1202
1203 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1204 Joel Brobecker <brobecker@adacore.com>
1205
1206 Fix re-run of PIE executable, PR shlibs/11776.
1207 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
1208 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
1209
1210 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1211 Joel Brobecker <brobecker@adacore.com>
1212
1213 * auxv.c (memory_xfer_auxv): Update attach comment.
1214 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
1215 svr4_relocate_main_executable.
1216 (svr4_solib_create_inferior_hook): Make the call to
1217 svr4_relocate_main_executable unconditional.
1218
1219 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1220 Joel Brobecker <brobecker@adacore.com>
1221
1222 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
1223
1224 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1225 Joel Brobecker <brobecker@adacore.com>
1226
1227 Fix attaching to PIEs prelinked on the disk after the process was
1228 started.
1229 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
1230 Verify it against bfd_get_arch_size. Try to match arbitrary
1231 displacement for the phdrs comparison.
1232
1233 2010-07-02 Tom Tromey <tromey@redhat.com>
1234
1235 PR exp/11780:
1236 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
1237 value as optimized-out.
1238
1239 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1240 Thiago Jung Bauermann <bauerman@br.ibm.com>
1241
1242 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
1243 represent?" question in comment. Change comment to a proper sentence.
1244
1245 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
1246
1247 * c-valprint.c (c_val_print): Fix printing of character vectors.
1248
1249 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1250
1251 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
1252 create_breakpoint prototype.
1253
1254 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1255
1256 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
1257 usefulness suggestion of multiple breakpoints at same location.
1258
1259 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1260
1261 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
1262
1263 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1264
1265 * dwarf2loc.c (locexpr_tracepoint_var_ref)
1266 (loclist_tracepoint_var_ref): Handle optimized out values.
1267
1268 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1269
1270 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
1271 unnecessary space in string.
1272 * filesystem.c (_initialize_filesystem): Ditto.
1273 * frame.c (_initialize_frame): Ditto.
1274 * infcmd.c (step_once): Ditto.
1275 * infrun.c (_initialize_infrun): Ditto.
1276 * linux-nat.c (linux_child_follow_fork): Ditto.
1277 * maint.c (maintenance_deprecate): Ditto.
1278 * memattr.c (_initialize_mem): Ditto.
1279 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1280 * monitor.c (monitor_open): Ditto.
1281 * procfs.c (procfs_xfer_memory): Ditto.
1282 * reverse.c (bookmarks_info): Ditto.
1283 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
1284 * stack.c (_initialize_stack): Ditto.
1285 * tracepoint.c (_initialize_tracepoint): Ditto.
1286 * xtensa-tdep.c (xtensa_supply_gregset,
1287 xtensa_regset_from_core_section): Ditto.
1288
1289 2010-07-01 Tom Tromey <tromey@redhat.com>
1290
1291 * value.h (struct lval_funcs) <check_any_valid>: Rename from
1292 check_all_valid.
1293 * value.c (value_entirely_optimized_out): Invert result. Update
1294 for new function name.
1295
1296 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1297
1298 Static tracepoints support.
1299
1300 * NEWS: Mention new support for static tracepoints.
1301 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
1302 qXfer:statictrace:read.
1303 (New features in the GDB remote stub, GDBserver): Mention static
1304 tracepoints support using an UST based backend.
1305 (New commands): Mention "info static-tracepoint-markers" and
1306 "strace".
1307 * breakpoint.c (is_marker_spec): New.
1308 (is_tracepoint): Handle static tracepoints.
1309 (validate_commands_for_breakpoint): Static tracepoints can't do
1310 while-stepping.
1311 (static_tracepoints_here): New.
1312 (bpstat_what): Handle static tracepoints.
1313 (print_one_breakpoint_location, allocate_bp_location, mention):
1314 Ditto.
1315 (create_breakpoint_sal): Ditto.
1316 (decode_static_tracepoint_spec): New.
1317 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
1318 `type_wanted'. Adjust. Handle static tracepoint marker
1319 locations.
1320 (break_command_1): Adjust.
1321 (update_static_tracepoint): New.
1322 (update_breakpoint_locations): Handle static tracepoints.
1323 (breakpoint_re_set_one): Handle static tracepoint marker
1324 locations.
1325 (disable_command, enable_command): Handle static tracepoints.
1326 (trace_command, ftrace_command): Adjust.
1327 (strace_command): New.
1328 (create_tracepoint_from_upload): Adjust.
1329 (save_breakpoints): Handle static tracepoints.
1330 (_initialize_breakpoint): Install the "strace" command.
1331 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
1332 (struct breakpoint): New fields static_trace_marker_id and
1333 static_trace_marker_id_idx.
1334 (breakpoints_here_p): Declare.
1335 (create_breakpoint): Adjust.
1336 (static_tracepoints_here): Declare.
1337 * remote.c (struct remote_state) <static_tracepoints>: New field.
1338 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
1339 (remote_static_tracepoint_marker_at): New.
1340 (remote_static_tracepoint_markers_by_strid): New.
1341 (remote_static_tracepoint_feature): New.
1342 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
1343 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
1344 (remote_supports_static_tracepoints): New.
1345 (remote_download_tracepoint): Download static tracepoints.
1346 (init_remote_ops): Install remote_static_tracepoint_marker_at and
1347 remote_static_tracepoint_markers_by_strid.
1348 (_initialize_remote): Install set|show remote static-tracepoints,
1349 and set|show remote read-sdata-object commands.
1350 * target.c (update_current_target): Inherit and default
1351 to_static_tracepoint_marker_at, and
1352 to_static_tracepoint_markers_by_strid.
1353 * target.h (static_tracepoint_marker): Forward declare.
1354 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
1355 (static_tracepoint_marker_p): New typedef.
1356 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
1357 (struct target_ops): New fields to_static_tracepoint_marker_at and
1358 to_static_tracepoint_markers_by_strid.
1359 (target_static_tracepoint_marker_at)
1360 (target_static_tracepoint_markers_by_strid): New.
1361 * tracepoint.c: Include source.h.
1362 (validate_actionline): Handle $_sdata.
1363 (struct collection_list): New field strace_data.
1364 (add_static_trace_data): New.
1365 (clear_collection_list): Clear strace_data.
1366 (stringify_collection_list): Account for a possible static trace
1367 data collection.
1368 (encode_actions_1): Encode an $_sdata collection.
1369 (parse_tracepoint_definition): Handle static tracepoints.
1370 (parse_static_tracepoint_marker_definition): New.
1371 (release_static_tracepoint_marker): New.
1372 (print_one_static_tracepoint_marker): New.
1373 (info_static_tracepoint_markers_command): New.
1374 (sdata_make_value): New.
1375 (_initialize_tracepoint): Create the $_sdata convenience variable.
1376 Add the "info static-tracepoint-markers" command.
1377 Mention $_sdata in the "collect" command's help output.
1378 * tracepoint.h (struct static_tracepoint_marker): New.
1379 (parse_static_tracepoint_marker_definition)
1380 (release_static_tracepoint_marker): Declare.
1381 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
1382 * python/py-breakpoint.c (bppy_new): Adjust.
1383
1384 2010-06-30 Joel Brobecker <brobecker@adacore.com>
1385
1386 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
1387 including Python.h.
1388
1389 2010-06-29 Doug Evans <dje@google.com>
1390
1391 PR gdb/11702
1392 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
1393 DW_AT_external is present.
1394
1395 PR gdb/11702
1396 * NEWS: Add entry.
1397 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
1398 create a symbol for the field and record the value.
1399 (new_symbol): Handle DW_TAG_member.
1400 * gdbtypes.c (field_is_static): Remove FIXME.
1401 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
1402 only ignore LOC_CONST symbols that are enums.
1403
1404 * dwarf2read.c: Remove trailing whitespace.
1405
1406 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
1407 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
1408 (struct main_type, field loc): Delete dwarf_block.
1409 (FIELD_DWARF_BLOCK): Delete.
1410 (SET_FIELD_DWARF_BLOCK): Delete.
1411 (TYPE_FIELD_DWARF_BLOCK): Delete.
1412 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
1413 Update.
1414
1415 2010-06-29 Hui Zhu <teawater@gmail.com>
1416
1417 * record.c (set_record_pic_cmdlist,
1418 show_record_pic_cmdlist): New variables.
1419 (set_record_pic_command,
1420 show_record_pic_command): New functions.
1421 (record_pic_function, record_pic_line, record_pic_enum,
1422 set_record_pic_type, record_pic_hide_nofunction,
1423 record_pic_hide_nosource, record_pic_hide_same): New variables.
1424 (record_pic_fputs): New function.
1425 (function_list, node_list, edge_list): New struct.
1426 (function_list, node_list, edge_list): New variables.
1427 (record_pic_cleanups, record_pic_node,
1428 record_pic_edge, cmd_record_pic): New functions.
1429 (_initialize_record): Add new commands for record pic.
1430
1431 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1432
1433 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
1434 ALLOCATE_CPLUS_STRUCT_TYPE.
1435
1436 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
1437 Tom Tromey <tromey@redhat.com>
1438 Thiago Jung Bauermann <bauerman@br.ibm.com>
1439
1440 * value.c (pack_unsigned_long): New function.
1441 (value_from_ulongest): New function.
1442 * value.h (value_from_ulongest): Declare.
1443 * python/python.c (_initialize_python): Call
1444 gdbpy_initialize_thread and gdbpy_initialize_inferior.
1445 * python/python-internal.h: Define thread_object.
1446 (gdbpy_inferiors, gdbpy_selected_thread)
1447 (frame_info_to_frame_object, create_thread_object)
1448 (find_thread_object, find_inferior_object)
1449 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
1450 (gdbpy_is_value_object, get_addr_from_python): Declare.
1451 * python/py-value.c (builtin_type_upylong): Define.
1452 (convert_value_from_python): Add logic for ulongest.
1453 (gdbpy_is_value_object): New function.
1454 * python/py-utils.c (get_addr_from_python): New function.
1455 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
1456 (gdbpy_selected_frame): Use PyObject over frame_info.
1457 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
1458 py-infthread.
1459 (SUBDIR_PYTHON_SRCS): Likewise.
1460 (py-inferior.o): New Rule.
1461 (py-infthread.o): New Rule.
1462 * python/py-inferior.c: New File.
1463 * python/py-infthread.c: New File.
1464
1465 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1466
1467 * c-typeprint.c (c_type_print_base): For no fields check include also
1468 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
1469 * dwarf2read.c (struct typedef_field_list)
1470 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
1471 (dwarf2_add_typedef): New.
1472 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
1473 Copy also FI.TYPEDEF_FIELD_LIST.
1474 * gdbtypes.h (struct typedef_field)
1475 (struct cplus_struct_type) <typedef_field, typedef_field_count>
1476 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
1477 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
1478
1479 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1480
1481 * cp-namespace.c (cp_lookup_nested_type): New variable
1482 concatenated_name. Turn the current return condition into a reverse
1483 one. Call also lookup_static_symbol_aux on the constructed qualified
1484 name.
1485 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
1486 other files into a called ...
1487 (lookup_static_symbol_aux): ... new function here.
1488 * symtab.h (lookup_static_symbol_aux): New prototype.
1489 * valops.c (value_maybe_namespace_elt): Call also
1490 lookup_static_symbol_aux if we failed otherwise.
1491
1492 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1493
1494 Fix PR c++/11703 and PR gdb/1448.
1495 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
1496 FIRST_ITER check.
1497
1498 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1499
1500 Fix modification of cplus_struct_default.
1501 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
1502 Call ALLOCATE_CPLUS_STRUCT_TYPE.
1503 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
1504
1505 2010-06-28 Joel Brobecker <brobecker@adacore.com>
1506
1507 * NEWS: Add entry announcing the python directory.
1508
1509 2010-06-28 Tom Tromey <tromey@redhat.com>
1510
1511 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
1512
1513 2010-06-28 Doug Evans <dje@google.com>
1514
1515 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
1516 All callers updated.
1517
1518 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1519
1520 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
1521 obstack_begin after each obstack_free.
1522
1523 2010-06-27 Doug Evans <dje@google.com>
1524
1525 * value.c (value_static_field): Use `switch' instead of `if'.
1526 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
1527
1528 * valops.c (search_struct_field): Fix typo in error message.
1529
1530 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
1531
1532 * dwarf2expr.c (execute_stack_op): Place preprocessor
1533 directives at the start of the source line.
1534
1535 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
1536
1537 * defs.h (make_command_stats_cleanup): Declare.
1538 (set_display_time): Declare.
1539 (set_display_space): Declare.
1540 * event-top.c (command_handler): Use make_command_stats_cleanup.
1541 * main.c (display_time, display_space): Move definitions to utils.c.
1542 (captured_main): Use make_command_stats_cleanup to get start-up
1543 statistics.
1544 Use set_display_time and set_display_space for processing OPT_STATISTICS
1545 case.
1546 * maint.c (maintenance_time_display): Use set_display_time.
1547 (maintenance_space_display): Use set_display_space.
1548 * top.c (execute_command): Remove obsolete 'maint time' code.
1549 (command_loop): Use make_command_stats_cleanup.
1550 * utils.c (struct cmd_stats): Structure for storing initial time
1551 and space usage.
1552 (display_time, display_space): Move definitions here from utils.c.
1553 (set_display_time): New function.
1554 (set_display_space): New function.
1555 (make_command_stats_cleanup): New function.
1556 (report_command_stats): New auxiliary function for
1557 make_command_stats_cleanup.
1558
1559 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1560
1561 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
1562 hosts where CORE_ADDR is long long.
1563
1564 2010-06-25 Tom Tromey <tromey@redhat.com>
1565
1566 PR python/10808:
1567 * python/python.c (execute_gdb_command): Add keywords. Accept
1568 "to_string" argument.
1569 (struct restore_ui_file_closure): New.
1570 (restore_ui_file): New function.
1571 (make_cleanup_restore_ui_file): Likewise.
1572 (GdbMethods) <execute>: Update.
1573
1574 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1575
1576 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
1577 during inferior call stack frame setup.
1578
1579 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
1580
1581 * solib-spu.c: Include "exception.h".
1582 (ocl_program_data_key): New variable.
1583 (append_ocl_sos): New function.
1584 (ocl_enable_break): Likewise.
1585 (spu_current_sos): Call append_ocl_sos.
1586 (spu_solib_loaded): Call ocl_enable_break.
1587 (_initialize_spu_solib): Register ocl_program_data_key.
1588
1589 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1590
1591 * cp-support.c (reset_directive_searched): New function.
1592 (make_symbol_overload_list_using): Prevent recursive calls.
1593
1594 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
1595
1596 * printcmd.c (print_variable_and_value): Print error message on
1597 caught exception.
1598
1599 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1600
1601 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
1602 of stack values.
1603 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
1604 "value" member.
1605 (dwarf_expr_push): Change input type to ULONGEST.
1606 (dwarf_expr_fetch): Change return type to ULONGEST.
1607 (dwarf_expr_fetch_address): Add prototype.
1608 (dwarf2_read_address): Remove prototype.
1609 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
1610 Truncate stack values to ctx->addr_size bytes.
1611 (dwarf_expr_fetch): Change return value to ULONGEST.
1612 (dwarf_expr_fetch_address): New function.
1613 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
1614 when appropriate. Update for struct dwarf_expr_piece changes.
1615 (dwarf2_read_address): Remove.
1616 (unsigned_address_type): Remove.
1617 (signed_address_type): Remove.
1618 (execute_stack_op): Use dwarf_expr_fetch_address instead of
1619 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
1620 values. Perform operations on ULONGEST instead of on GDB values,
1621 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
1622 values and DW_OP_deref results as unsigned integers.
1623 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
1624 changes.
1625 (write_pieced_value): Likewise.
1626 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
1627 dwarf_expr_fetch when appropriate.
1628 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
1629 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
1630 instead of dwarf_expr_fetch when appropriate.
1631
1632 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
1633
1634 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
1635
1636 2010-06-24 Joel Brobecker <brobecker@adacore.com>
1637
1638 * python/python.c (_initialize_python): Add new "constant"
1639 PYTHONDIR in gdb module. Insert this path at the head of
1640 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
1641 exec its __init__.py script if it exists in that directory.
1642
1643 2010-06-24 Kevin Buettner <kevinb@redhat.com>
1644
1645 * rx-tdep.c (RX_ACC_REGNUM): Define.
1646 (RX_NUM_REGS): Redefine to 26.
1647 (rx_register_name): Add register "acc". Change order of several
1648 registers. Change name of "vct" register to "fintv" to match RX
1649 documentation.
1650 (rx_register_type): Add case for RX_ACC_REGNUM.
1651
1652 2010-06-24 Tom Tromey <tromey@redhat.com>
1653
1654 * psymtab.c (lookup_partial_symbol): Mark definition as static.
1655
1656 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1657 Tom Tromey <tromey@redhat.com>
1658
1659 Fix GDB startup on readonly filesystem.
1660 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
1661
1662 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1663 Pedro Alves <pedro@codesourcery.com>
1664
1665 Fix PR 9436.
1666 * breakpoint.c (handle_jit_event): New function.
1667 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
1668 jit, err, table and bs_class. New variables shlib_event, jit_event,
1669 this_action and bptype. Change bs_class assignments to this_action
1670 assignments. new unhandled bptype internal error. Move here
1671 shlib_event and jit_event handling from handle_inferior_event.
1672 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
1673 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
1674 BPSTAT_WHAT_CHECK_JIT.
1675 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
1676 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
1677 (handle_inferior_event): Reinitialize frame and gdbarch after
1678 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
1679 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
1680 gdbarch when frame gets reinitialized.
1681
1682 2010-06-24 Hui Zhu <teawater@gmail.com>
1683
1684 * printcmd.c (ui_printf): New function.
1685 (printf_command): Call ui_printf.
1686 (_initialize_printcmd): New command "eval".
1687
1688 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
1689
1690 * infrun.c (handle_inferior_event): Handle presence of single-step
1691 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
1692 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
1693 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
1694 * breakpoint.c (detach_single_step_breakpoints): New function.
1695 (detach_breakpoints): Call it.
1696 (cancel_single_step_breakpoints): New function.
1697 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
1698
1699 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
1700 (spu_gdbarch_init): Install it.
1701
1702 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1703
1704 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
1705 * configure: Regenerate.
1706
1707 2010-06-22 Hui Zhu <teawater@gmail.com>
1708
1709 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
1710 (i386_process_record): Ditto.
1711 * record.c (record_memory_query): New variable.
1712 (_initialize_record): New command "set record memory-query".
1713 * record.h (record_memory_query): New extern.
1714
1715 2010-06-21 Doug Evans <dje@google.com>
1716
1717 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
1718 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
1719 (i386_syscall_p): Change type of lengthp to int.
1720 (i386_displaced_step_fixup): Handle kernels that run one past a
1721 syscall insn.
1722 * i386-linux-tdep.c (i386_linux_init_abi): Use
1723 i386_displaced_step_copy_insn instead of
1724 simple_displaced_step_copy_insn.
1725
1726 2010-06-21 Tom Tromey <tromey@redhat.com>
1727
1728 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
1729 (dwarf_type_encoding_name): Likewise.
1730
1731 2010-06-21 Tom Tromey <tromey@redhat.com>
1732
1733 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
1734 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
1735 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
1736 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
1737 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
1738 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
1739 * dwarf2read.c (tag_type_to_type): Create a new error type on
1740 failure.
1741 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
1742 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
1743
1744 2010-06-21 Michael Snyder <msnyder@vmware.com>
1745
1746 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
1747 not add_abbrev_prefix_cmd, for "enable breakpoints".
1748
1749 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
1750
1751 * dwarf2loc.c (find_location_expression): Add relocation offset
1752 to base-address-selection entry base addresses. Read addresses
1753 (and offsets) as signed/unsigned integers, depending on the
1754 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
1755 (loclist_describe_location): Likewise.
1756 (disassemble_dwarf_expression): Read DW_OP_addr operand as
1757 unsigned integer. Do not call dwarf2_read_address.
1758 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
1759
1760 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
1761
1762 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
1763 value instead of hard-coded SPU_LS_SIZE.
1764 (spu_software_single_step): Likewise.
1765 * spu-tdep.h (SPU_LS_SIZE): Remove.
1766
1767 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
1768
1769 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
1770 limit on local store memory accesses.
1771 * spu-linux-nat.c (spu_xfer_partial): Likewise.
1772 * spu-tdep.c (spu_lslr): Remove.
1773 (spu_pointer_to_address): Do not truncate addresses.
1774 (spu_integer_to_address): Likewise.
1775 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
1776 * spu-tdep.h: Add comments.
1777 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
1778 (SPU_OVERLAY_LMA): Define.
1779
1780 2010-06-18 Stan Shebs <stan@codesourcery.com>
1781
1782 * osdata.c (get_osdata): Warn separately if target does not report
1783 type list.
1784 (info_osdata_command): Allow empty type, report error if target
1785 does not return available types of OS data.
1786 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
1787 types if no annex supplied.
1788
1789 * thread.c (thread_id_make_value): Make a value representing the
1790 current thread.
1791 (_initialize_thread): Create $_thread.
1792
1793 2010-06-17 Joel Brobecker <brobecker@adacore.com>
1794
1795 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
1796 last local variable declaration. No real code change.
1797
1798 2010-06-17 Tom Tromey <tromey@redhat.com>
1799
1800 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
1801 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
1802 temporary obstack.
1803
1804 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
1805 Jan Kratochvil <jan.kratochvil@redhat.com>
1806
1807 * breakpoint.c: Include parser-defs.h.
1808 (watchpoint_exp_is_const): New function.
1809 (watch_command_1): Call watchpoint_exp_is_const to check
1810 if the expression is constant.
1811
1812 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
1813
1814 * configure.ac: Check for RDYNAMIC also for cross builds.
1815 * configure: Regenerate.
1816
1817 2010-06-15 Pedro Alves <pedro@codesourcery.com>
1818
1819 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1820 (SFILES): Remove solib-null.c, add solib-target.c.
1821 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
1822 (ALLDEPFILES): Remove solib-target.c.
1823 * solib-target.c (_initialize_solib_target): Set
1824 current_target_so_ops to solib_target_so_ops if not already set.
1825 * solib-null.c: Delete.
1826
1827 2010-06-14 Pedro Alves <pedro@codesourcery.com>
1828
1829 * NEWS: Mention GDBserver's JIT compilation of tracepoint
1830 bytecode.
1831
1832 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1833
1834 * cp-valprint.c (cp_print_static_field): Members of
1835 dont_print_stat_array_obstack are of type "struct type *".
1836 (_initialize_cp_valprint): Likewise.
1837
1838 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1839
1840 * frame.c (frame_register_unwind): Do not access contents
1841 of "optimized out" unwound register value.
1842
1843 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1844
1845 * ada-lang.h (ada_print_type): Make varstring const.
1846 * ada-typeprint.c (print_func_type): Make name const.
1847 (ada_print_type): Make varstring const.
1848 * c-lang.h (c_print_type): Make varstring const.
1849 * c-typeprint.c (c_print_type): Likewise.
1850 * f-lang.h (f_print_type): Likewise.
1851 * f-typeprint.c (f_print_type): Likewise.
1852 * jv-lang.h (java_print_type): Likewise.
1853 * jv-typeprint.c (java_print_type): Likewise.
1854 * language.c (unk_lang_print_type): Likewise.
1855 * language.h (struct language_defn) <la_print_type>: Likewise.
1856 * m2-lang.h (m2_print_type): Likewise.
1857 * m2-typeprint.c (m2_print_type): Likewise.
1858 * p-lang.h (pascal_print_type): Likewise.
1859 * p-typeprint.c (pascal_print_type): Likewise.
1860
1861 2010-06-11 Stan Shebs <stan@codesourcery.com>
1862
1863 Add per-operation permission flags.
1864
1865 * target.h (struct target_ops): New method to_set_permissions.
1866 (target_set_permissions): New macro.
1867 (target_insert_breakpoint): Change macro to function.
1868 (target_remove_breakpoint): Ditto.
1869 (target_stop): Ditto.
1870 (may_write_registers): Declare.
1871 (may_write_memory): Declare.
1872 (may_insert_breakpoints): Declare.
1873 (may_insert_tracepoints): Declare.
1874 (may_insert_fast_tracepoints): Declare.
1875 (may_stop): Declare.
1876 * target.c (may_write_registers, may_write_registers_1): New globals.
1877 (may_write_memory, may_write_memory_1): New globals.
1878 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
1879 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
1880 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
1881 globals.
1882 (may_stop, may_stop_1): New global.
1883 (target_xfer_partial): Test for write permission.
1884 (target_store_registers): Ditto.
1885 (target_insert_breakpoint): New function.
1886 (target_remove_breakpoint): New function.
1887 (target_stop): New function.
1888 (_initialize_targets): Add new set/show variables.
1889 (set_write_memory_permission): New function.
1890 (update_target_permissions): New function.
1891 (set_target_permissions): New function.
1892 (update_current_target): Default to_set_permissions.
1893 (_initialize_targets): Use new globals and setter function.
1894 * tracepoint.c (start_tracing): Test for permission.
1895 * inferior.h (update_observer_mode): Declare.
1896 * infrun.c (non_stop_1): Define earlier.
1897 (observer_mode, observer_mode_1): New globals.
1898 (set_observer_mode, show_observer_mode): New functions.
1899 (update_observer_mode): New function.
1900 (_initialize_infrun): Define "set observer" command.
1901 * remote.c (PACKET_QAllow): New optional packet.
1902 (remote_protocol_features): Add QAllow.
1903 (remote_set_permissions): New function.
1904 (remote_start_remote): Call it.
1905 (init_remote_ops): Add it to target vector.
1906 (_initialize_remote): Add config command for QAllow.
1907
1908 2010-06-11 Tom Tromey <tromey@redhat.com>
1909
1910 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
1911 DW_AT_vtable_elem_location even when GCC extension is seen.
1912
1913 2010-06-11 Tom Tromey <tromey@redhat.com>
1914
1915 PR gdb/9977, PR exp/11636:
1916 * value.h (value_offset): Update.
1917 (struct lval_funcs) <check_validity>: New field.
1918 <copy_closure>: Make argument const.
1919 (value_computed_closure): Update.
1920 (value_contents_for_printing): Declare.
1921 (value_bits_valid): Likewise.
1922 (val_print): Likewise.
1923 (set_value_component_location): Update.
1924 (value_entirely_optimized_out): Declare.
1925 * value.c (value_offset): Argument now const.
1926 (require_not_optimized_out): New function.
1927 (value_contents_for_printing): New function.
1928 (value_contents_all): Call require_not_optimized_out.
1929 (value_contents): Likewise.
1930 (value_bits_valid): New function.
1931 (value_computed_closure): Argument now const.
1932 (set_value_component_location): Make 'whole' argument const.
1933 (value_entirely_optimized_out): New function.
1934 (value_bitsize): Argument now 'const'.
1935 (value_bitpos): Likewise.
1936 (value_type): Likewise.
1937 * valprint.h (val_print_array_elements): Update.
1938 * valprint.c (val_print): Add 'val' argument. Use
1939 valprint_check_validity.
1940 (valprint_check_validity): New function.
1941 (value_check_printable): Use value_entirely_optimized_out.
1942 (common_val_print): Update.
1943 (value_print): Likewise.
1944 (val_print_array_elements): Add 'val' argument.
1945 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
1946 value_bits_valid. Reinit frame cache for lval_computed.
1947 * sh64-tdep.c (sh64_do_register): Update.
1948 * scm-valprint.c (scm_val_print): Add 'val' argument.
1949 * scm-lang.h (scm_val_print): Update.
1950 * python/python.h (apply_val_pretty_printer): Update.
1951 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
1952 argument. Call set_value_component_location.
1953 * printcmd.c (print_scalar_formatted): Update.
1954 * p-valprint.c (pascal_val_print): Add 'val' argument.
1955 (pascal_object_print_value_fields): Likewise.
1956 (pascal_object_print_value): Likewise.
1957 (pascal_object_print_static_field): Update.
1958 * p-lang.h (pascal_val_print): Update.
1959 (pascal_object_print_value_fields): Update.
1960 * mt-tdep.c (mt_registers_info): Update.
1961 * mi/mi-main.c (get_register): Update.
1962 (mi_cmd_data_evaluate_expression): Use common_val_print.
1963 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
1964 (m2_print_unbounded_array): Likewise.
1965 (m2_val_print): Likewise.
1966 * m2-lang.h (m2_val_print): Update.
1967 * language.h (struct language_defn) <la_val_print>: Add 'val'
1968 argument.
1969 (LA_VAL_PRINT): Likewise.
1970 * language.c (unk_lang_val_print): Add 'val' argument.
1971 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
1972 (java_val_print): Likewise.
1973 * jv-lang.h (java_val_print): Add 'val' argument.
1974 * infcmd.c (default_print_registers_info): Update.
1975 * f-valprint.c (f77_print_array_1): Add 'val' argument.
1976 (f77_print_array): Likewise.
1977 (f_val_print): Likewise.
1978 * f-lang.h (f_val_print): Add 'val' argument.
1979 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
1980 value_bitpos.
1981 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
1982 set_value_optimized_out.
1983 (write_pieced_value): Use value_bitsize and value_bitpos.
1984 <default>: Don't exit loop.
1985 (check_pieced_value_validity): New function.
1986 (pieced_value_funcs): Reference check_pieced_value_validity,
1987 check_pieced_value_invalid.
1988 (copy_pieced_value_closure): Update.
1989 (check_pieced_value_bits): New function.
1990 (check_pieced_value_invalid): New function.
1991 * d-valprint.c (dynamic_array_type): Add 'val' argument.
1992 (d_val_print): Likewise.
1993 * d-lang.h (d_val_print): Update.
1994 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
1995 (cp_print_value_fields_rtti): Likewise.
1996 (cp_print_value): Likewise.
1997 (cp_print_static_field): Update.
1998 * c-valprint.c (c_val_print): Add 'val' argument.
1999 (c_value_print): Update.
2000 * c-lang.h (c_val_print): Update.
2001 (cp_print_value_fields): Likewise.
2002 (cp_print_value_fields_rtti): Likewise.
2003 * ada-valprint.c (struct ada_val_print_args): Remove.
2004 (val_print_packed_array_elements): Add 'val' argument.
2005 (ada_val_print): Likewise. Rewrite.
2006 (ada_val_print_stub): Remove.
2007 (ada_val_print_array): Add 'val' argument.
2008 (ada_val_print_1): Likewise.
2009 (print_variant_part): Likewise.
2010 (ada_value_print): Update.
2011 (print_record): Add 'val' argument.
2012 (print_field_values): Likewise.
2013 * ada-lang.h (ada_val_print): Update.
2014
2015 2010-06-11 Tom Tromey <tromey@redhat.com>
2016
2017 * vec.h (VEC_cleanup): New macro.
2018 (DEF_VEC_ALLOC_FUNC_I): Update.
2019 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2020 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2021 * dwarf2loc.c (struct axs_var_loc): Remove.
2022 (unimplemented): New function.
2023 (translate_register): Likewise.
2024 (access_memory): Likewise.
2025 (compile_dwarf_to_ax): Likewise.
2026 (dwarf2_tracepoint_var_loc): Remove.
2027 (dwarf2_tracepoint_var_access): Likewise.
2028 (dwarf2_tracepoint_var_ref): Likewise.
2029 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
2030 (loclist_tracepoint_var_ref): Likewise.
2031 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
2032 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
2033 require_composition. No longer static.
2034 (execute_stack_op): Update.
2035 * ax-gdb.h (trace_kludge): Declare.
2036
2037 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2038
2039 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
2040 (should_be_inserted): Return zero also on NULL OWNER.
2041 (breakpoint_program_space_exit): New OWNER comment.
2042 (insert_breakpoint_locations): Extend comment for OWNER.
2043 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
2044 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
2045 New OWNER comment.
2046 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
2047 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
2048 (bpstat_check_location): New assert on OWNER.
2049 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
2050 and B initializations to the code block. New assert on them.
2051 (print_one_breakpoint_location): New OWNER comment.
2052 (watchpoint_locations_match): Assert on OWNER.
2053 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
2054 initializations to the code block. New assert on OWNER.
2055 (set_breakpoint_location_function): New assert on OWNER.
2056 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
2057 (bp_location_compare, update_global_location_list)
2058 (update_global_location_list): New OWNER comment.
2059
2060 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2061
2062 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
2063
2064 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2065
2066 * config/nm-linux.h (struct target_ops): Remove forward declaration.
2067 (lin_thread_get_thread_signals): Remove prototype.
2068 (GET_THREAD_SIGNALS): Remove.
2069 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
2070 * linux-thread-db.c (check_thread_signals): Directly call
2071 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
2072
2073 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2074
2075 * gregset.h (GDB_FPXREGSET_T): Remove.
2076 (gdb_fpxregset_t): Likewise.
2077 (supply_fpxregset): Remove prototype.
2078 (fill_fpxregset): Likewise.
2079 * i386-linux-nat.c (supply_fpxregset): Remove.
2080 (fill_fpxregset): Likewise.
2081 (fetch_fpxregs): Inline supply_fpxregset call.
2082 (store_fpxregs): Inline fill_fpxregset call.
2083
2084 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
2085 * config/i386/nm-linux.h: Remove file.
2086
2087 2010-06-09 Michael Snyder <msnyder@vmware.com>
2088
2089 * target.c (update_current_target): Fix spelling error in comment.
2090 (target_mourn_inferior): Fix spelling error in error message.
2091
2092 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
2093
2094 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
2095 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
2096
2097 2010-06-08 Michael Snyder <msnyder@vmware.com>
2098
2099 * remote.c (remote_close): Set inferior_ptid to null_ptid.
2100
2101 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2102
2103 * configure.ac <"${have_libpython}" != no>: New workaround of
2104 python#4434.
2105 * configure: Regenerate.
2106
2107 2010-06-08 Hui Zhu <teawater@gmail.com>
2108
2109 * record.c (record_wait): Move signal out of replay code.
2110
2111 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2112
2113 Fix PR 10640.
2114 * dwarf2-frame.c (no_dwarf_call): New function.
2115 (execute_stack_op): Set CTX->DWARF_CALL.
2116 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
2117 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
2118 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
2119 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
2120 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
2121 (needs_frame_dwarf_call): New function.
2122 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
2123 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
2124 Update the comment. Move variables die, offset and error call to ...
2125 (follow_die_ref): ... a new function.
2126 (dwarf2_fetch_die_location_block): New function.
2127 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
2128
2129 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2130
2131 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
2132 (dwarf_expr_tls_address): Use per_cu instead of objfile.
2133 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
2134 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
2135 this change.
2136 (struct needs_frame_baton): New field per_cu.
2137 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
2138 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2139
2140 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2141
2142 * cp-support.c (make_symbol_overload_list_namespace): Only search
2143 static and global blocks.
2144 (make_symbol_overload_list_block): New function.
2145 (make_symbol_overload_list): Separate namespace search from block
2146 search.
2147 (make_symbol_overload_list_qualified): Use
2148 make_symbol_overload_list_block.
2149
2150 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2151
2152 * value.h: Created oload_search_type enum.
2153 (find_overload_match): Use oload_search_type enum.
2154 * valops.c (find_overload_match): Support combined member and
2155 non-member search.
2156 * eval.c (evaluate_subexp_standard): Calls to
2157 find_overload_match now use oload_search_type enum.
2158 (oload_method_static): Verify index is a proper value.
2159 * valarith.c (value_user_defined_cpp_op): Search for and handle
2160 both member and non-member operators.
2161 (value_user_defined_cpp_op): New function.
2162 (value_user_defined_op): New function.
2163 (value_x_unop): Use value_user_defined_op.
2164 (value_x_binop): Ditto.
2165 * cp-support.c (make_symbol_overload_list_using): Added block
2166 iteration.
2167 Add check for namespace aliases and imported declarations.
2168
2169 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2170
2171 * breakpoint.h (owner): Extend the comment.
2172
2173 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2174
2175 Clear stale specific bp_location from former whole breakpoint.
2176 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
2177 code ...
2178 (free_bp_location): ... here. Rename there the called function to
2179 bpstat_remove_bp_location_callback.
2180 (bpstat_remove_breakpoint_callback): Rename to ...
2181 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
2182 to struct bp_location. Change the called function to
2183 bpstat_remove_bp_location. Create new declaration for the function.
2184 (bpstat_remove_breakpoint): Rename to ...
2185 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
2186 code for the new parameter type.
2187
2188 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
2189
2190 * README: Make version-agnostic.
2191
2192 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2193
2194 Fix duplicate types for single DIE.
2195 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
2196 set_die_type.
2197 (read_array_type): Remove type initialization. Recheck get_die_type
2198 after initial die_type. Move set_die_type before set_descriptive_type.
2199 (read_set_type): New variable domain_type. Recheck get_die_type after
2200 initial die_type. Move attr initialization later.
2201 (read_tag_pointer_type, read_tag_reference_type): New variable
2202 target_type. Recheck get_die_type after initial die_type.
2203 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
2204 die_type and die_containing_type.
2205 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
2206 Recheck get_die_type after initial die_type.
2207 (read_subrange_type): Recheck get_die_type after initial die_type.
2208 Move set_die_type before set_descriptive_type.
2209 (set_die_type): Extend the function comment. Call complaint if DIE has
2210 some type already set.
2211
2212 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
2213
2214 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
2215 for current naming of thread groups (iN, not N).
2216
2217 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2218
2219 * ada-lang.c (ada_operator_length): Constify `struct expression'.
2220 * parse.c (operator_length): Likewise.
2221 (operator_length_standard): Likewise.
2222 * parser-defs.h (operator_length): Likewise.
2223 (operator_length_standard): Likewise.
2224 (struct exp_descriptor <operator_length>): Likewise.
2225
2226 2010-06-04 Doug Evans <dje@google.com>
2227
2228 Add support for enabling/disabling individual pretty-printers.
2229 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
2230 * python/python-internal.h (gdbpy_enabled_cst): Declare.
2231 * python/python.c (gdbpy_enabled_cst): Define.
2232 (_initialize_python): Initialize gdbpy_enabled_cst.
2233 * NEWS: Add entry.
2234
2235 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2236
2237 * breakpoint.c (update_global_location_list): Fix comment typo.
2238
2239 2010-06-04 Hui Zhu <teawater@gmail.com>
2240
2241 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2242
2243 2010-06-03 Doug Evans <dje@google.com>
2244
2245 * configure.ac: Don't fail if python is unusable when
2246 configured with --with-python=auto.
2247 * configure: Regenerate.
2248
2249 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
2250
2251 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2252
2253 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
2254
2255 * valprint.h (get_array_bounds): Change low and high parameter types
2256 to LONGEST *.
2257 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
2258 compute bounds.
2259 (val_print_array_elements): Adapt to change above.
2260 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
2261 * p-valprint.c (pascal_val_print): Likewise.
2262
2263 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2264
2265 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
2266 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
2267 .F08.
2268
2269 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2270
2271 Support DW_TAG_module as separate namespaces.
2272 * dwarf2read.c (typename_concat): New parameter physname.
2273 (read_module_type): New function and declaration.
2274 (scan_partial_symbols): Scan also DW_TAG_module children.
2275 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
2276 to typename_concat backward compatible physname value 0.
2277 (partial_die_full_name, read_namespace_type): Pass to typename_concat
2278 backward compatible physname value 0.
2279 (add_partial_module, read_module): Remove FIXME comment.
2280 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
2281 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
2282 DIEs under DW_TAG_module.
2283 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
2284 DW_AT_MIPS_linkage_name first, extend it for language_fortran
2285 && physname and return there instead of just setting NAME. Extend
2286 the main block for language_fortran. Pass physname parameter to the
2287 typename_concat call.
2288 (read_import_statement, read_func_scope, get_scope_pc_bounds)
2289 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
2290 (new_symbol): Fill in cplus_specific.demangled_name if it is still
2291 missing from SYMBOL_SET_NAMES in the language_fortran case.
2292 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
2293 variables.
2294 (read_type_die) <DW_TAG_module>: New.
2295 (MAX_SEP_LEN): Increase to 7.
2296 (typename_concat): New parameter physname. New variable lead. Support
2297 also language_fortran.
2298 * f-exp.y (yylex): Consider : also as a symbol name character class.
2299 * f-lang.c: Include cp-support.h.
2300 (f_word_break_characters, f_make_symbol_completion_list): New functions.
2301 (f_language_defn): Use cp_lookup_symbol_nonlocal,
2302 f_word_break_characters and f_make_symbol_completion_list.
2303 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
2304 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
2305 * symtab.c (symbol_init_language_specific): Support language_fortran.
2306 (symbol_find_demangled_name): New comment on language_fortran.
2307 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
2308 for language_fortran.
2309 (lookup_symbol_aux_local): Check imports also for language_fortran.
2310 (default_make_symbol_completion_list): Rename to ...
2311 (default_make_symbol_completion_list_break_on): ... this name. New
2312 parameter break_on, use it.
2313 (default_make_symbol_completion_list): New stub.
2314 * symtab.h (default_make_symbol_completion_list_break_on): New
2315 prototype.
2316
2317 2010-06-02 Joel Brobecker <brobecker@adacore.com>
2318
2319 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
2320 to error.
2321
2322 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2323
2324 * dwarf2read.c (typename_concat): Add const to the variable sep.
2325
2326 2010-06-02 Tom Tromey <tromey@redhat.com>
2327
2328 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
2329 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
2330 type is const. Add 'def' argument. Add missing operators, remove
2331 unhandled ones.
2332 (decode_locdesc): Update.
2333 (dwarf2_always_disassemble): New global.
2334 (show_dwarf2_always_disassemble): New function.
2335 (_initialize_dwarf2_read): Add always-disassemble.
2336 (dwarf2_per_cu_offset_size): New function.
2337 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
2338 (piece_end_p): New function.
2339 (locexpr_describe_location_piece): Replace 'size' argument with
2340 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
2341 some constants. Remove errors.
2342 (disassemble_dwarf_expression): New function.
2343 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
2344 Add 'offset_size' argument.
2345 (loclist_describe_location): Change output formatting.
2346 * dwarf2expr.h (dwarf_stack_op_name): Declare.
2347
2348 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
2349
2350 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
2351 anonymous type case.
2352
2353 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
2354
2355 * dwarf2read.c (read_subrange_type): Handle missing base type
2356 according to Dwarf-2 specifications.
2357
2358 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
2359
2360 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
2361 BINOP_EXCL.
2362 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
2363 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
2364 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
2365 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
2366 UNOP_CHMAX, UNOP_CHMIN.
2367 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
2368 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
2369 UNOP_CHMIN>: Remove opcodes.
2370
2371 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
2372
2373 * dwarf2read.c (read_func_scope): Do not complain for
2374 external function if bounds are not found.
2375
2376 2010-06-01 Pedro Alves <pedro@codesourcery.com>
2377
2378 * NEWS: Mention gdbserver fast tracepoints support.
2379
2380 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
2381
2382 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
2383 New macros.
2384 (windows_set_console_info): New function.
2385 (windows_create_inferior): Call windows_set_console_info
2386 if NEW_CONSOLE is true.
2387 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
2388 (_initialize_loadable): Initialize GetConsoleFontSize and
2389 GetCurrentConsoleFont.
2390
2391 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2392
2393 * Makefile.in (RDYNAMIC): New.
2394 (SFILES): Add proc-service.list.
2395 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
2396 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
2397 * config/arm/linux.mh: Likewise.
2398 * config/i386/linux.mh: Likewise.
2399 * config/i386/linux64.mh: Likewise.
2400 * config/ia64/linux.mh: Likewise.
2401 * config/m32r/linux.mh: Likewise.
2402 * config/m68k/linux.mh: Likewise.
2403 * config/mips/linux.mh: Likewise.
2404 * config/pa/linux.mh: Likewise.
2405 * config/powerpc/linux.mh: Likewise.
2406 * config/powerpc/ppc64-linux.mh: Likewise.
2407 * config/s390/s390.mh: Likewise.
2408 * config/sparc/linux.mh: Likewise.
2409 * config/sparc/linux64.mh: Likewise.
2410 * config/xtensa/linux.mh: Likewise.
2411 * configure.ac: New RDYNAMIC on native host and GCC.
2412 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
2413 * configure: Regenerate.
2414 * proc-service.list: New.
2415
2416 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2417
2418 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
2419 CONTENT.
2420
2421 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2422
2423 * linux-nat.c (linux_nat_wait_1): Do not call
2424 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
2425 TARGET_WAITKIND_SIGNALLED.
2426
2427 2010-05-27 Joel Brobecker <brobecker@adacore.com>
2428
2429 * ada-lang.c (ada_inferior_data): New struct.
2430 (ada_inferior_data): New static global.
2431 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
2432 (ada_get_tsd_type): New functions.
2433 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
2434 to look the tsd type up.
2435 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
2436 event. Set ada_inferior_data.
2437
2438 2010-05-27 Pedro Alves <pedro@codesourcery.com>
2439
2440 * remote.c (unpack_varlen_hex): Remove forward declaration.
2441 (remote_console_output): Make static, and add forward declaration.
2442 * remote.h: Drop FIXME comment.
2443 (unpack_varlen_hex): Declare.
2444 (remote_console_output, remote_cisco_objfile_relocate)
2445 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
2446 Delete declarations.
2447 * tracepoint.c: Include "remote.h".
2448 (unpack_varlen_hex): Delete declaration.
2449
2450 2010-05-27 Tom Tromey <tromey@redhat.com>
2451
2452 * dwarf2loc.c (struct piece_closure) <refc>: New field.
2453 (allocate_piece_closure): Initialize refc.
2454 (copy_pieced_value_closure): Use refc.
2455 (free_pieced_value_closure): Likewise.
2456
2457 2010-05-27 Tom Tromey <tromey@redhat.com>
2458
2459 * arm-tdep.c (push_stack_item): 'contents' now const.
2460 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
2461 value_contents_writeable. Introduce new temporary.
2462
2463 2010-05-27 Tom Tromey <tromey@redhat.com>
2464
2465 * findcmd.c (parse_find_args): Use value_contents, not
2466 value_contents_raw.
2467
2468 2010-05-27 Tom Tromey <tromey@redhat.com>
2469
2470 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
2471 const. Use value_contents, not value_contents_writeable.
2472
2473 2010-05-27 Joel Brobecker <brobecker@adacore.com>
2474
2475 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
2476 by call to value_contents.
2477
2478 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
2479
2480 * MAINTAINERS: Add myself for write after approval privileges.
2481
2482 2010-05-26 Doug Evans <dje@google.com>
2483
2484 Allow python to find its files if moved from original location.
2485 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
2486 (GDB_AC_WITH_DIR): Call it.
2487 * configure.ac: Define WITH_PYTHON_PATH if we can find the
2488 python installation directory.
2489 * config.in: Regenerate.
2490 * configure: Regenerate.
2491 * defs.h (python_libdir): Declare.
2492 * main.c (python_libdir): Define.
2493 (captured_main): Initialize python_libdir.
2494 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
2495 call Py_SetProgramName to make sure python can find its libraries
2496 and modules.
2497
2498 * configure.ac: Try to use python's distutils to fetch compilation
2499 parameters.
2500 * configure: Regenerate.
2501 * python/python-config.py: New file.
2502
2503 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
2504
2505 * ser-tcp.c (net_open): Check error return from socket() call by its
2506 equality to -1 not by it being negative.
2507 (net_close): Likewise.
2508
2509 2010-05-26 Pedro Alves <pedro@codesourcery.com>
2510
2511 * NEWS: Mention the `qRelocInsn' feature.
2512 * gdbarch.sh (relocate_instruction): New.
2513 * amd64-tdep.c (rip_relative_offset): New.
2514 (append_insns): New.
2515 (amd64_relocate_instruction): New.
2516 (amd64_init_abi): Install it.
2517 * i386-tdep.c (append_insns): New.
2518 (i386_relocate_instruction): New.
2519 (i386_gdbarch_init): Install it.
2520 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
2521 * gdbarch.h, gdbarch.c: Regenerate.
2522
2523 2010-05-26 Tom Tromey <tromey@redhat.com>
2524
2525 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
2526 (struct dwarf2_loclist_baton) <data>: Likewise.
2527 * dwarf2loc.c (find_location_expression): Constify return type.
2528 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
2529 (dwarf2_loc_desc_needs_frame): Likewise.
2530 (loclist_read_variable): Constify.
2531 (loclist_describe_location): Likewise.
2532 (loclist_tracepoint_var_ref): Likewise.
2533
2534 2010-05-25 Tom Tromey <tromey@redhat.com>
2535
2536 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
2537 (dwarf_expr_frame_base_1): Likewise.
2538 (read_pieced_value): Update.
2539 (needs_frame_frame_base): Constify.
2540 (dwarf2_tracepoint_var_loc): Likewise.
2541 (dwarf2_tracepoint_var_access): Likewise.
2542 (locexpr_describe_location_piece): Likewise.
2543 (locexpr_describe_location_1): Likewise.
2544 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
2545 Constify.
2546 (data): Now const.
2547 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
2548 (dwarf_expr_eval, read_uleb128, read_sleb128)
2549 (dwarf2_read_address): Update.
2550 * dwarf2expr.c (dwarf_expr_eval): Constify.
2551 (read_uleb128): Likewise.
2552 (read_sleb128): Likewise.
2553 (dwarf2_read_address): Likewise.
2554 (require_composition): Likewise.
2555 (execute_stack_op): Likewise.
2556 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
2557 "const gdb_byte *".
2558 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
2559 Now const.
2560 (no_get_frame_base): Constify.
2561 (execute_stack_op): Likewise.
2562 (execute_cfa_program): Likewise.
2563 (read_encoded_value): Likewise.
2564
2565 2010-05-25 Doug Evans <dje@google.com>
2566
2567 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
2568
2569 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
2570 * event-loop.c: ... here.
2571 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
2572 `error' for clarity.
2573 (tui_getc): Pass correct value for `error' parameter to
2574 tui_readline_output.
2575
2576 Add python gdb.GdbError and gdb.string_to_argv.
2577 * NEWS: Document them.
2578 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
2579 the exception is gdb.GdbError. Print a second traceback if there's
2580 an error computing the error message.
2581 (gdbpy_string_to_argv): New function.
2582 * python/py-utils.c (gdbpy_obj_to_string): New function.
2583 (gdbpy_exception_to_string): New function.
2584 * python/python-internal.h (gdbpy_string_to_argv): Declare.
2585 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
2586 (gdbpy_gdberror_exc): Declare.
2587 * python/python.c (gdbpy_gdberror_exc): New global.
2588 (_initialize_python): Initialize gdbpy_gdberror_exc and create
2589 gdb.GdbError.
2590 (GdbMethods): Add string_to_argv.
2591
2592 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2593
2594 * windows-nat.c (display_selector): Call GetLastError to give better
2595 failure explanation.
2596
2597 2010-05-24 Pedro Alves <pedro@codesourcery.com>
2598
2599 * config.in: Regenerate.
2600
2601 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2602
2603 Code cleanup.
2604 * target.c (push_target): Return only void. Remove the return value
2605 comment.
2606 * target.h (push_target): Return only void.
2607
2608 2010-05-23 Pedro Alves <pedro@codesourcery.com>
2609
2610 Update gnulib from latest git.
2611 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2612
2613 * gnulib/memcmp.c: Removed.
2614 * gnulib/memchr.valgrind: New.
2615 * gnulib/stddef.in.h: New.
2616 * gnulib/Makefile.am: Updated.
2617 * gnulib/memchr.c: Updated.
2618 * gnulib/memmem.c: Updated.
2619 * gnulib/stdint.in.h: Updated.
2620 * gnulib/str-two-way.h: Updated.
2621 * gnulib/string.in.h: Updated.
2622 * gnulib/wchar.in.h: Updated.
2623
2624 * gnulib/extra/link-warning.h: Removed.
2625 * gnulib/extra/c++defs.h: New.
2626 * gnulib/extra/warn-on-use.h: New.
2627 * gnulib/extra/arg-nonnull.h: Updated.
2628
2629 * gnulib/m4/extensions.m4: Updated.
2630 * gnulib/m4/gnulib-cache.m4: Updated.
2631 * gnulib/m4/gnulib-common.m4: Updated.
2632 * gnulib/m4/gnulib-comp.m4: Updated.
2633 * gnulib/m4/gnulib-tool.m4: Updated.
2634 * gnulib/m4/include_next.m4: Updated.
2635 * gnulib/m4/longlong.m4: Updated.
2636 * gnulib/m4/memchr.m4: Updated.
2637 * gnulib/m4/memmem.m4: Updated.
2638 * gnulib/m4/stdint.m4: Updated.
2639 * gnulib/m4/string_h.m4: Updated.
2640 * gnulib/m4/memcmp.m4: Removed.
2641 * gnulib/m4/onceonly_2_57.m4: Removed.
2642 * gnulib/m4/00gnulib.m4: New.
2643 * gnulib/m4/mmap-anon.m4: New.
2644 * gnulib/m4/multiarch.m4: New.
2645 * gnulib/m4/onceonly.m4: New.
2646 * gnulib/m4/stddef_h.m4: New.
2647 * gnulib/m4/warn-on-use.m4: New.
2648 * gnulib/m4/wchar.m4: Removed.
2649 * gnulib/m4/wchar_h.m4: New.
2650 * gnulib/m4/wchar_t.m4: New.
2651 * gnulib/m4/wint_t.m4: New.
2652
2653 * aclocal.m4: Regenerate.
2654 * config.in: Likewise.
2655 * configure: Likewise.
2656 * gnulib/Makefile.in: Likewise.
2657
2658 2010-05-21 Tom Tromey <tromey@redhat.com>
2659
2660 * dwarf2loc.c (extract_bits_primitive): New function.
2661 (extract_bits): Likewise.
2662 (insert_bits): Likewise.
2663 (copy_bitwise): Likewise.
2664 (read_pieced_value): Do all operations in bits.
2665 (write_pieced_value): Likewise.
2666 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
2667 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
2668 Always use xrealloc to resize piece array.
2669 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
2670 <DW_OP_piece>: Update.
2671 <DW_OP_bit_piece>: New case.
2672
2673 2010-05-21 Tom Tromey <tromey@redhat.com>
2674
2675 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
2676 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
2677 * dwarf2expr.h (enum dwarf_value_location)
2678 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
2679 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
2680 (add_piece): Handle empty piece.
2681 (execute_stack_op) <DW_OP_piece>: Handle
2682 DWARF_VALUE_OPTIMIZED_OUT.
2683
2684 2010-05-21 Tom Tromey <tromey@redhat.com>
2685
2686 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
2687 evaluate_subexp, not evaluate_subexp_with_coercion.
2688
2689 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2690
2691 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2692 attribute.
2693
2694 2010-05-21 Tom Tromey <tromey@redhat.com>
2695
2696 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
2697 offset.
2698 (write_pieced_value): Likewise.
2699
2700 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2701
2702 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2703 and DW_TAG_volatile_type.
2704 (new_symbol): Likewise.
2705
2706 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
2707
2708 * p-valprint.c (pascal_val_print): Call get_array_bounds
2709 to obtain the number of elements in an array.
2710
2711 2010-05-19 Doug Evans <dje@google.com>
2712
2713 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
2714
2715 * python.c (source_python_script): Add comment.
2716 (source_python_script_for_objfile): Remove unnecessary call to
2717 gdbpy_print_stack.
2718
2719 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2720 Sergio Durigan Junior <sergiodj@redhat.com>
2721
2722 Code cleanup.
2723 * parse.c (exp_iterate): Use operator_length wrapper function.
2724
2725 2010-05-18 Michael Snyder <msnyder@vmware.com>
2726
2727 * ada-lang.c: White space.
2728 * ada-typeprint.c: White space.
2729 * ada-valprint.c: White space.
2730 * addrmap.c: White space.
2731 * auxv.c: White space.
2732 * ax-gdb.c: White space.
2733
2734 2010-05-18 Hui Zhu <teawater@gmail.com>
2735
2736 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
2737 for oldfp.
2738 (inferior_call_waitpid): Move make_cleanup out of check.
2739 Check the return of waitpid.
2740 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
2741
2742 2010-05-17 Michael Snyder <msnyder@vmware.com>
2743
2744 * tui/tui.c: White space.
2745 * tui/tui-data.c: White space.
2746 * tui/tui-disasm.c: White space.
2747 * tui/tui-file.c: White space.
2748 * tui/tui-interp.c: White space.
2749 * tui/tui-main.c: White space.
2750 * tui/tui-out.c: White space.
2751 * tui/tui-regs.c: White space.
2752 * tui/tui-source.c: White space.
2753 * tui/tui-stack.c: White space.
2754 * tui/tui-win.c: White space.
2755 * tui/tui-winsource.c: White space.
2756
2757 * procfs.c: White space.
2758
2759 * python/py-auto-load.c: White space.
2760 * python/py-block.c: White space.
2761 * python/py-breakpoint.c: White space.
2762 * python/py-cmd.c: White space.
2763 * python/py-function.c: White space.
2764 * python/py-lazy-string.c: White space.
2765 * python/py-objfile.c: White space.
2766 * python/py-param.c: White space.
2767 * python/py-prettyprint.c: White space.
2768 * python/py-progspace.c: White space.
2769 * python/py-symtab.c: White space.
2770 * python/python.c: White space.
2771 * python/py-type.c: White space.
2772 * python/py-utils.c: White space.
2773 * python/py-value.c: White space.
2774
2775 * mi/mi-cmd-break.c: White space.
2776 * mi/mi-cmd-env.c: White space.
2777 * mi/mi-cmds.c: White space.
2778 * mi/mi-cmd-stack.c: White space.
2779 * mi/mi-cmd-var.c: White space.
2780 * mi/mi-console.c: White space.
2781 * mi/mi-getopt.c: White space.
2782 * mi/mi-interp.c: White space.
2783 * mi/mi-main.c: White space.
2784 * mi/mi-out.c: White space.
2785 * mi/mi-parse.c: White space.
2786
2787 * cli/cli-cmds.c: White space.
2788 * cli/cli-decode.c: White space.
2789 * cli/cli-dump.c: White space.
2790 * cli/cli-interp.c: White space.
2791 * cli/cli-logging.c: White space.
2792 * cli/cli-script.c: White space.
2793 * cli/cli-setshow.c: White space.
2794
2795 * valarith.c: White space.
2796 * valops.c: White space.
2797 * valprint.c: White space.
2798 * value.c: White space.
2799 * varobj.c: White space.
2800 * xcoffread.c: White space.
2801 * xml-support.c: White space.
2802 * xml-tdesc.c: White space.
2803
2804 2010-05-17 Andreas Schwab <schwab@redhat.com>
2805
2806 PR gdb/11092
2807 * c-lang.c (c_printstr): Compute real length of NUL terminated
2808 string at first.
2809
2810 2010-05-17 Joel Brobecker <brobecker@adacore.com>
2811
2812 * parse.c (parse_exp_in_context): When block is not NULL, use
2813 its associated language to parse the expression instead of
2814 the current_language.
2815
2816 2010-05-17 Joel Brobecker <brobecker@adacore.com>
2817
2818 * jv-lang.c (java_lookup_class): Remove commented out code.
2819 (type_from_class): Likewise.
2820 (java_op_print_tab): Remove commented-out elements.
2821
2822 2010-05-17 Joel Brobecker <brobecker@adacore.com>
2823
2824 * ada-lang.c (to_fixed_range_type): The the raw index type as
2825 argument instead of the raw type name. Remove orig_type parameter.
2826 Update calls throughout.
2827 (ada_fixup_array_indexes_type): New function.
2828 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
2829 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
2830 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
2831 Remove name parameter.
2832 (print_array_type): Add call to ada_fixup_array_indexes_type.
2833 Update calls to print_range_type.
2834 (ada_print_type): Update calls to print_range_type.
2835
2836 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
2837
2838 * dwarf2read.c (read_set_type): Set type length if
2839 DW_AT_byte_size attribute is present.
2840
2841 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
2842
2843 * p-valprint.c (pascal_val_print): Handle set type if range limits
2844 are undefined but size is known.
2845
2846 2010-05-17 Pedro Alves <pedro@codesourcery.com>
2847
2848 * procfs.c: Reformat.
2849
2850 2010-05-16 Michael Snyder <msnyder@vmware.com>
2851
2852 * target.c: White space.
2853 * target-descriptions.c: White space.
2854 * target-memory.c: White space.
2855 * thread.c: White space.
2856 * top.c: White space.
2857 * tracepoint.c: White space.
2858 * trad-frame.c: White space.
2859 * tramp-frame.c: White space.
2860 * ui-file.c: White space.
2861 * ui-out.c: White space.
2862 * user-regs.c: White space.
2863 * utils.c: White space.
2864
2865 * scm-exp.c: White space.
2866 * scm-lang.c: White space.
2867 * scm-valprint.c: White space.
2868 * sentinel-frame.c: White space.
2869 * ser-base.c: White space.
2870 * ser-go32.c: White space.
2871 * serial.c: White space.
2872 * ser-mingw.c: White space.
2873 * ser-pipe.c: White space.
2874 * ser-tcp.c: White space.
2875 * ser-unix.c: White space.
2876 * solib.c: White space.
2877 * solib-darwin.c: White space.
2878 * solib-frv.c: White space.
2879 * solib-irix.c: White space.
2880 * solib-osf.c: White space.
2881 * solib-pa64.c: White space.
2882 * solib-som.c: White space.
2883 * solib-spu.c: White space.
2884 * solib-svr4.c: White space.
2885 * solib-target.c: White space.
2886 * source.c: White space.
2887 * stabsread.c: White space.
2888 * stack.c: White space.
2889 * std-regs.c: White space.
2890 * symfile.c: White space.
2891 * symmisc.c: White space.
2892 * symtab.c: White space.
2893
2894 2010-05-16 Michael Snyder <msnyder@vmware.com>
2895
2896 * source.c (_initialize_source): Add "rev" as an abbreviation
2897 for the "reverse-search" command.
2898
2899 2010-05-16 Michael Snyder <msnyder@vmware.com>
2900
2901 * record.c: White space.
2902 * regcache.c: White space.
2903 * reggroups.c: White space.
2904 * remote-fileio.c: White space.
2905 * remote-m32r-sdi.c: White space.
2906 * remote-mips.c: White space.
2907 * remote-sim.c: White space.
2908 * remote.c: White space.
2909 (process_g_packet): Remove orphan braces.
2910
2911 2010-05-15 Michael Snyder <msnyder@vmware.com>
2912
2913 * parse.c: White space.
2914 * p-lang.c: White space.
2915 * posix-hdep.c: White space.
2916 * printcmd.c: White space.
2917 * progspace.c: White space.
2918 * prologue-value.c: White space.
2919 * psymtab.c: White space.
2920 * p-typeprint.c: White space.
2921 * p-valprint.c: White space.
2922
2923 * objc-lang.c: White space.
2924 * objfiles.c: White space.
2925 * observer.c: White space.
2926 * osabi.c: White space.
2927 * osdata.c: White space.
2928
2929 * m2-lang.c: White space.
2930 * m2-valprint.c: White space.
2931 * macrocmd.c: White space.
2932 * macroexp.c: White space.
2933 * macroscope.c: White space.
2934 * macrotab.c: White space.
2935 * main.c: White space.
2936 * maint.c: White space.
2937 * mdebugread.c: White space.
2938 * memattr.c: White space.
2939 * minsyms.c: White space.
2940 * monitor.c: White space.
2941
2942 2010-05-14 Michael Snyder <msnyder@vmware.com>
2943
2944 * jv-lang.c: White space.
2945 * jv-typeprint.c: White space.
2946 * jv-valprint.c: White space.
2947 * language.c: White space.
2948 * libunwind-frame.c: White space.
2949 * linespec.c: White space.
2950 * linux-nat.c: White space.
2951 * linux-record.c: White space.
2952 * linux-thread-db.c: White space.
2953
2954 * infcall.c: White space.
2955 * inf-child.c: White space.
2956 * infcmd.c: White space.
2957 * inferior.c: White space.
2958 * inf-loop.c: White space.
2959 * inflow.c: White space.
2960 * inline-frame.c: White space.
2961 * interps.c: White space.
2962
2963 * gcore.c: White space.
2964 * gdb.c: White space.
2965 * gdbtypes.c: White space.
2966 * gnu-nat.c: White space.
2967 * gnu-v2-abi.c: White space.
2968 * gnu-v3-abi.c: White space.
2969
2970 * findcmd.c: White space.
2971 * findvar.c: White space.
2972 * fork-child.c: White space.
2973 * frame-base.c: White space.
2974 * frame.c: White space.
2975 * frame-unwind.c: White space.
2976 * f-valprint.c: White space.
2977
2978 * elfread.c: White space.
2979 * environ.c: White space.
2980 * eval.c: White space.
2981 * event-loop.c: White space.
2982 * event-top.c: White space.
2983 * exceptions.c: White space.
2984 * exec.c: White space.
2985 * expprint.c: White space.
2986
2987 * dbxread.c: White space.
2988 * dcache.c: White space.
2989 * disasm.c: White space.
2990 * doublest.c: White space.
2991 * dsrec.c: White space.
2992 * dummy-frame.c: White space.
2993 * dwarf2expr.c: White space.
2994 * dwarf2-frame.c: White space.
2995 * dwarf2loc.c: White space.
2996 * dwarf2read.c: White space.
2997
2998 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
2999
3000 PR python/11482
3001
3002 * python/py-value.c (valpy_hash): New function.
3003 (value_object_type): Register valpy_hash.
3004
3005 2010-05-14 Hui Zhu <teawater@gmail.com>
3006 Michael Snyder <msnyder@vmware.com>
3007
3008 * linux-fork.c (gdbthread.h): New include.
3009 (fork_info): Add parent_ptid.
3010 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
3011 functions.
3012 (delete_checkpoint_command): Call inferior_call_waitpid.
3013 (checkpoint_command): Set parent_ptid.
3014
3015 2010-05-13 Michael Snyder <msnyder@vmware.com>
3016
3017 * dictionary.c: Re-indent to GNU coding standard.
3018
3019 * charset.c: White space.
3020 * c-lang.c: White space.
3021 * cli-out.c: White space.
3022 * coffread.c: White space.
3023 * complaints.c: White space.
3024 * completer.c: White space.
3025 * corefile.c: White space.
3026 * corelow.c: White space.
3027 * cp-abi.c: White space.
3028 * cp-namespace.c: White space.
3029 * cp-support.c: White space.
3030 * cp-valprint.c: White space.
3031 * c-typeprint.c: White space.
3032 * c-valprint.c: White space.
3033 * blockframe.c: White space.
3034 * breakpoint.c: White space.
3035 * buildsym.c: White space.
3036 * blockframe.c: White space.
3037 * bcache.c: White space.
3038 * gdbarch.sh: White space, add blank lines.
3039 * arch-utils.c: Ditto.
3040 * gdbarch.c: Regenerate.
3041 * frame.c: White space, add blank lines.
3042 * stack.c: White space, add blank lines.
3043 (initialize_stack): Remove long-dead code.
3044
3045 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3046
3047 Code cleanup.
3048 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
3049 (locexpr_read_variable, loclist_read_variable): Update the callers.
3050
3051 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3052
3053 Code cleanup.
3054 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
3055 Remove check of NULL returned by tag_type_to_type.
3056 (die_containing_type): Remove variable type. Remove type_die variable
3057 initialization. Remove check of NULL returned by tag_type_to_type.
3058
3059 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3060
3061 PR exp/11530.
3062 * gdbtypes.c (lookup_struct_elt_type): Also lookup
3063 names of unnamed structures or unions.
3064
3065 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3066
3067 * procfs.c (proc_watchpoint_address): New function.
3068 (procfs_stopped_by_watchpoint): Remove useless check after
3069 find_procinfo_or_die call.
3070 (procfs_stopped_data_address): New function.
3071 (procfs_use_watchpoints): Register new watchpoint related function.
3072
3073 2010-05-11 Tom Tromey <tromey@redhat.com>
3074
3075 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
3076
3077 2010-05-10 Michael Snyder <msnyder@vmware.com>
3078
3079 * utils.c: White space cleanup.
3080
3081 2010-05-10 Tom Tromey <tromey@redhat.com>
3082
3083 * eval.c (ptrmath_type_p): Add 'lang' argument.
3084 (evaluate_subexp_standard): Update.
3085 (evaluate_subexp_with_coercion): Update.
3086 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
3087
3088 2010-05-10 Michael Snyder <msnyder@vmware.com>
3089
3090 * utils.c (do_fclose_cleanup) Restore local variable.
3091
3092 2010-05-09 Doug Evans <dje@google.com>
3093
3094 * record.c (init_record_core_ops): Rename record_core to record-core.
3095
3096 2010-05-08 Joel Brobecker <brobecker@adacore.com>
3097
3098 Implement task switching on pa-hpux.
3099 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
3100 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
3101
3102 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3103
3104 * valops.c (find_overload_match): Add missing i18n markup.
3105
3106 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3107
3108 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
3109
3110 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3111
3112 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
3113 list for the obconcat call.
3114 * mdebugread.c (parse_symbol): Likewise.
3115 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
3116 Likewise.
3117 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
3118 New variable ap. Remove variables len and val.
3119 * symfile.h (obconcat): Likewise for the prototype.
3120
3121 2010-05-07 Michael Snyder <msnyder@vmware.com>
3122
3123 * python/python.c (execute_gdb_command): Remove unused variables.
3124 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
3125 * python/py-breakpoint.c (gdbpy_breakpoint_created):
3126 Remove unused variable.
3127 * python/py-cmd.c (cmdpy_function): Remove unused variable.
3128 (cmdpy_completer): Remove unused variable.
3129 * python/py-frame.c (frapy_find_sal): Remove unused variable.
3130 * python/py-function.c (fnpy_call): Remove unused variable.
3131 * python/py-objfile.c (objfile_to_objfile_object):
3132 Remove unused variable.
3133 * python/py-param.c (parmpy_init): Remove unused variable.
3134 * python/py-prettyprint.c (apply_varobj_pretty_printer):
3135 Remove unused variable.
3136 (gdbpy_default_visualizer): Remove unused variable.
3137 * python/py-progspace.c (pspace_to_pspace_object):
3138 Remove unused variable.
3139 * python/py-symtab.c (symtab_and_line_to_sal_object):
3140 Remove unused variable.
3141 * python/py-type.c (typy_template_argument):
3142 Remove unused variable.
3143 * python/py-value.c (valpy_string): Remove unused variable.
3144 (convert_value_from_python): Remove unused variables.
3145
3146 2010-05-07 Michael Snyder <msnyder@vmware.com>
3147
3148 * valops.c (value_cast_pointers): Restore unused variable 'type1',
3149 and use it to compute variable 't1'.
3150
3151 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3152
3153 * ada-lang.c (assign_aggregate): Remove unused variable.
3154
3155 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
3156
3157 PR C++/7943:
3158 * valops.c (find_overload_match): Handle fsym == NULL case.
3159 Add int no_adl argument.
3160 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
3161 when appropriate.
3162 Add int no_adl argument.
3163 (find_oload_champ_namespace): Add int no_adl argument.
3164 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
3165 expression.
3166 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
3167 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
3168 Evaluate arguments and use them to perform ADL lookup.
3169 Pass no_adl argument to find_overload_match.
3170 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
3171 * cp-support.h: Added prototype for
3172 make_symbol_overload_list_namespace.
3173 * cp-support.c (make_symbol_overload_list_namespace): New function.
3174 (make_symbol_overload_list_adl_namespace): New function.
3175 (make_symbol_overload_list_adl): New function.
3176 (make_symbol_overload_list_using): Moved code to add function to
3177 overload set to make_symbol_overload_list_namespace.
3178 * c-exp.y: create UNKNOWN_CPP_NAME token.
3179 Add parse rule for ADL functions.
3180 (classify_name): Recognize an UNKNOWN_CPP_NAME.
3181
3182 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3183
3184 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
3185 sentinel.
3186
3187 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3188
3189 Implement task switching on solaris targets.
3190 * sol-thread.c (thread_db_find_thread_from_tid)
3191 (sol_get_ada_task_ptid): New functions.
3192 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
3193
3194 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3195
3196 * remote.c (remote_query_supported_append): Use reconcat.
3197 (remote_query_supported): Install a cleanup. Use reconcat.
3198
3199 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3200
3201 * gdbarch.sh (qsupported): Delete.
3202 * gdbarch.h, gdbarch.c: Regenerate.
3203 * remote.c (remote_query_supported): Remove use of
3204 gdbarch_qsupported.
3205
3206 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3207
3208 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
3209 function.
3210
3211 2010-05-06 Michael Snyder <msnyder@vmware.com>
3212
3213 * xml-support.c (xinclude_start_include): Delete unused variable.
3214 (xml_process_xincludes): Delete unused variable.
3215 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
3216 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
3217 (tdesc_find_arch_register): Delete unused variable.
3218 (tdesc_use_registers): Delete unused variable.
3219 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
3220 * inferior.c (print_inferior): Delete unused variable.
3221 * record.c (record_open_1): Delete unused variable.
3222 (record_restore): Delete unused variable.
3223 (cmd_record_save): Delete unused variable.
3224 * gcore.c (derive_heap_segment): Delete unused variable.
3225 (objfile_find_memory_regions): Use unused variable.
3226 * jit.c (jit_inferior_init): Delete unused variable.
3227 * progspace.c (clone_program_space): Delete unused variable.
3228 (pspace_empty_p): Delete unused variable.
3229
3230 * frame-unwind.c (frame_unwind_find_by_frame):
3231 Delete unused variable.
3232 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
3233 * cp-support.c (mangled_name_to_comp): Delete unused variable.
3234 (method_name_from_physname): Delete unused variable.
3235 (cp_func_name): Delete unused variable.
3236 (cp_validate_operator): Delete unused variable.
3237 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
3238 Delete unused variable.
3239 * trad-frame.c (trad_frame_get_prev_register):
3240 Delete unused variable.
3241 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
3242
3243 * serial.c (serial_for_fd): Delete unused variable.
3244 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
3245 * top.c (execute_command): Delete unused variable.
3246 (init_main): Delete unused variable.
3247 * utils.c (do_fclose_cleanup): Delete unused variable.
3248 (do_all_inferior_continuations): Delete unused variable.
3249 (initialize_utils): Delete unused variable.
3250 (internal_problem_mode): Delete unused global.
3251 * frame.c (get_prev_frame): Delete unused global.
3252 (get_frame_locals_address): Delete unused global.
3253 (get_frame_args_address): Delete unused global.
3254
3255 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
3256 (pascal_type_print_varspec_prefix): Delete unused variable.
3257 * f-typeprint.c (f_type_print_base): Delete unused variable.
3258 (f_type_print_varspec_suffix): Delete unused variable.
3259 * m2-typeprint.c (m2_print_type): Delete unused variable.
3260 (m2_long_set): Delete unused variable.
3261 * ada-valprint.c (ada_val_print_1): Delete unused variable.
3262 * d-valprint.c (dynamic_array_type): Delete unused variable.
3263 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
3264 Delete unused variable.
3265 (f77_create_arrayprint_offset_tbl): Delete unused variable.
3266 * m2-valprint.c (m2_val_print): Delete unused variable.
3267
3268 * ui-out.c (ui_out_field_int): Delete unused variable.
3269 (ui_out_field_fmt_int): Delete unused variable.
3270 * varobj.c (varobj_list_children): Delete unused variable.
3271 (varobj_set_value): Delete unused variable.
3272 (install_new_value_visualizer): Delete unused variable.
3273 (varobj_set_visualizer): Delete unused variable.
3274 (varobj_update): Delete unused variable.
3275 (varobj_editable_p): Delete unused variable.
3276 (c_value_of_root): Delete unused variable.
3277 (cplus_describe_child): Delete unused variable.
3278
3279 * ada-lang.c (add_defn_to_vec): Delete unused variable.
3280 (decode_constrained_packed_array_type): Delete unused variable.
3281 (add_defn_to_vec): Delete unused variable.
3282 (symbol_completion_match): Delete unused variable.
3283 (value_tag_from_contents_and_address): Delete unused variable.
3284 (ada_evaluate_subexp): Delete unused variable.
3285 * c-lang.c (classify_type): Delete unused variable.
3286 * f-lang.c (f_printstr): Delete unused variable.
3287 * objc-lang.c (objc_printstr): Delete unused variable.
3288 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
3289 * jv-lang.c (type_from_class): ifdef unused variable.
3290 (java_class_name_from_physname): Delete unused variable.
3291 * m2-lang.c (m2_printstr): Delete unused variable.
3292
3293 * objfiles.c (objfile_relocate): Delete unused variable.
3294 * maint.c (_initialize_maint_cmds): Delete unused variable.
3295 * demangle.c (_initialize_demangler): Delete unused variable.
3296 * corefile.c (reopen_exec_file): Delete unused variable.
3297 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
3298 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
3299
3300 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
3301 * memattr.c (mem_delete): Delete unused variable.
3302 (invalidate_target_mem_regions): Delete unused variable.
3303 * mem-break.c (default_memory_insert_breakpoint):
3304 Delete unused variable.
3305 * target.c (target_get_osdata): Delete unused variable.
3306 * parse.c (length_of_subexp): Delete unused variable.
3307 (prefixify_subexp): Delete unused variable.
3308 (exp_iterate): Delete unused variable.
3309 * reverse.c (delete_bookmark_command): Delete unused variable.
3310
3311 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
3312 * macroexp.c (gather_arguments): Delete unused variable.
3313 (substitute_args): Delete unused variable.
3314 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
3315 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
3316 (_initialize_gdbarch): Delete unused variable.
3317 * gdbarch.c, gdbarch.h: Regenerate.
3318 * arch-utils.c (initialize_current_architecture):
3319 Delete unused variable.
3320 (_initialize_gdbarch_utils): Delete unused variable.
3321 * gdbtypes.c (make_cv_type): Delete unused variable.
3322 (make_type_with_address_space): Delete unused variable.
3323
3324 * linespec.c (decode_compound): Delete unused variable.
3325 * dictionary.c (iterator_next_hashed): Delete unused variable.
3326 * infcall.c (call_function_by_hand): Delete unused variable.
3327 * infcmd.c (step_1): Delete unused variable.
3328 (registers_info): Delete unused variable.
3329 (attach_command): Delete unused variable.
3330 * infrun.c (follow_exec): Delete unused variable.
3331 (handle_step_into_function_backwards): Delete unused variable.
3332 (_initialize_infrun): Delete unused variable.
3333 * stack.c (parse_frame_specification_1): Delete unused variable.
3334 (frame_info): Delete unused variable.
3335 (backtrace_command_1): Delete unused variable.
3336 (catch_info): Delete unused variable.
3337
3338 * eval.c (evaluate_subexp_standard): Delete unused variable.
3339 * valops.c (value_cast_pointers): Delete unused variable.
3340 (value_dynamic_cast): Delete unused variable.
3341 (value_array): Delete unused variable.
3342 (find_overload_match): Delete unused variable.
3343 * valarith.c (value_subscript): Delete unused variable.
3344 (value_binop): Delete unused variable.
3345 * valprint.c (_initialize_valprint): Delete unused variable.
3346 * printcmd.c (print_command_1): Delete unused variable.
3347 (address_info): Delete unused variable.
3348 (printf_command): Delete unused variable.
3349
3350 * auxv.c (target_auxv_search): Delete unused variable.
3351 * blockframe.c (get_frame_block): Delete unused variable.
3352 * regcache.c (regcache_cpy): Delete unused variable.
3353 (regcache_cpy_no_passthrough): Delete unused variable.
3354 * charset.c (wchar_iterate): Delete unused variable.
3355 (find_charset_names): Delete unused variable.
3356 (_initialize_charset): Delete unused variable.
3357 * disasm.c (do_mixed_source_and_assembly):
3358 Delete unused variable.
3359 * source.c (set_default_source_symtab_and_line):
3360 Delete unused variable.
3361 (set_substitute_path_command): Delete unused variable.
3362 * value.c (preserve_values): Delete unused variable.
3363 (value_from_double): Delete unused variable.
3364
3365 2010-05-05 Michael Snyder <msnyder@vmware.com>
3366
3367 * psymtab.c (lookup_partial_symbol): Delete unused variable.
3368 (find_last_source_symtab_from_partial): Delete unused variable.
3369 * symfile.c (place_section): Delete unused variable.
3370 (default_symfile_offsets): Delete unused variable.
3371 (get_debug_link_info): Delete unused variable.
3372 (find_separate_debug_file_by_debuglink): Delete unused variable.
3373 (add_symbol_file_command): Delete unused variable.
3374 (symfile_find_segment_sections): Delete unused variable.
3375 * symmisc.c (free_symtab): Delete unused variable.
3376 (dump_symtab_1): Delete unused variable.
3377 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
3378 (find_pc_sect_symtab): Delete unused variable.
3379 (skip_prologue_using_lineinfo): Delete unused variable.
3380 (sources_info): Delete unused variable.
3381 (completion_list_add_name): Delete unused variable.
3382 (expand_line_sal): Delete unused variable.
3383
3384 * breakpoint.c (validate_commands_for_breakpoint):
3385 Delete unused variables.
3386 (insert_catchpoint): Delete unused variable.
3387 (update_watchpoint): Delete unused variable.
3388 (insert_bp_location): Delete unused variable.
3389 (insert_breakpoint_locations): Delete unused variable.
3390 (remove_breakpoint_1): Delete unused variable.
3391 (software_breakpoint_inserted_here_p): Delete unused variable.
3392 (watchpoints_triggered): Delete unused variable.
3393 (bpstat_check_watchpoint): Delete unused variable.
3394 (bpstat_stop_status): Delete unused variable.
3395 (print_one_breakpoint_location): Delete unused variable.
3396 (allocate_bp_location): Delete unused variable.
3397 (create_breakpoint): Delete unused variable.
3398 (watch_command_1): Delete unused variable.
3399 (catch_exception_command_1): Delete unused variable.
3400 (catch_ada_exception_command): Delete unused variable.
3401 (delete_breakpoint): Delete unused variable.
3402 (breakpoint_re_set_one): Delete unused variable.
3403 (do_enable_breakpoint): Delete unused variable.
3404
3405 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3406
3407 * amd64-tdep.c: Include disasm.h.
3408 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
3409 (amd64_insn_length): Moved to disasm.c and renamed.
3410 (fixup_riprel): Adjust.
3411 * disasm.c (do_ui_file_delete): New.
3412 (gdb_insn_length): New.
3413 (gdb_buffered_insn_length_fprintf)
3414 (gdb_buffered_insn_length_init_dis)
3415 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
3416 renamed.
3417 * disasm.h (gdb_insn_length): Declare.
3418 (gdb_buffered_insn_length): Declare.
3419
3420 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3421
3422 * remote.c (clear_threads_parsing_context): New.
3423 (remote_threads_info): Delete unused null_cleanup. Install a
3424 cleanup to clear the threads_parsing_context in case parsing
3425 throws.
3426
3427 2010-05-05 Michael Snyder <msnyder@vmware.com>
3428
3429 * c-exp.y (parse_string_or_char): Delete unused variable.
3430 (c_lex): Delete unused variable.
3431 * cp-name-parser.y (cpname_lex): Delete unused variable.
3432 * ada-exp.y (find_primitive_type): Delete unused variable.
3433 (write_var_or_type): Delete unused variable.
3434 * jv-exp.y (java_parse): Delete unused variable.
3435 (push_expression_name): Delete unused variable.
3436 * p-exp.y (pascal_lex): Delete unused variable.
3437
3438 2010-05-05 Pedro Alves <pedro@codesourcery.com>
3439
3440 * remote.c (remote_threads_info): Really revert previous previous
3441 change.
3442
3443 2010-05-05 Michael Snyder <msnyder@vmware.com>
3444
3445 * elfread.c (elf_symtab_read): Delete unused variable.
3446 (find_separate_debug_file_by_buildid): Delete unused variables.
3447 (elf_symfile_read): Delete unused variable.
3448
3449 * coffread.c (coff_symfile_read): Delete unused variables.
3450
3451 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
3452 (read_pe_exported_syms): Delete unused variable.
3453
3454 * stabsread.c (define_symbol): Delete unused variable.
3455
3456 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
3457 (process_psymtab_comp_unit): Delete unused variable.
3458 (dwarf2_build_psymtabs_hard): Delete unused variable.
3459 (load_partial_comp_unit): Delete unused variable.
3460 (create_all_comp_units): Delete unused variable.
3461 (scan_partial_symbols): Delete unused variable.
3462 (add_partial_symbol): Delete unused variable.
3463 (add_partial_namespace): Delete unused variable.
3464 (add_partial_enumeration): Delete unused variable.
3465 (load_full_comp_unit): Delete unused variable.
3466 (process_full_comp_unit): Delete unused variable.
3467 (read_file_scope): Delete unused variable.
3468 (read_type_unit_scope): Delete unused variable.
3469 (process_structure_scope): Delete unused variable.
3470 (process_enumeration_scope): Delete unused variable.
3471 (read_tag_ptr_to_member_type): Delete unused variable.
3472 (read_typedef): Delete unused variable.
3473 (read_partial_die): Delete unused variable.
3474 (decode_locdesc): Delete unused variable.
3475 (zeroed_partial_die): Delete unused global variable.
3476
3477 * tui/tui-interp.c (_initialize_tui_interp):
3478 Delete unused variable.
3479 * tui/tui-regs.c tui_display_registers_from):
3480 Delete unused variable.
3481 (tui_check_register_values): Delete unused variable.
3482 (tui_register_format): Delete unused variable.
3483 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
3484 * tui/tui-windata.c (tui_display_data_from_line):
3485 Delete unused variables.
3486 (tui_vertical_data_scroll): Delete unused variables.
3487
3488 2010-05-05 Michael Snyder <msnyder@vmware.com>
3489
3490 * remote.c (remote_threads_info): Revert questionable part of
3491 the previous change.
3492
3493 2010-05-05 Michael Snyder <msnyder@vmware.com>
3494
3495 * mi/mi-out.c (mi_table_begin): Delete unused variable.
3496 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
3497 (mi_cmd_var_list_children): Delete unused variable.
3498 (varobj_update_one): Delete unused variable.
3499 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
3500 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
3501 Delete unused variable.
3502 (mi_cmd_stack_list_variables): Delete unused variable.
3503 (list_args_or_locals): Delete unused variable.
3504 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
3505 Delete unused variables.
3506 (mi_cmd_file_list_exec_source_files): Delete unused variable.
3507 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
3508 Delete unused variable.
3509 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
3510 (mi_cmd_interpreter_exec): Delete unused variable.
3511 (mi_on_normal_stop): Delete unused variable.
3512 * mi/mi-main.c (run_one_inferior): Delete unused variable.
3513 (print_one_inferior): Delete unused variables.
3514 (mi_execute_command): Delete unused variable.
3515 (mi_cmd_execute): Delete unused variable.
3516 (timestamp): Delete unused variable.
3517
3518 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
3519 (restore_binary_file): Delete unused variable.
3520 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
3521 * cli/cli-script.c (define_command): Delete unused variables.
3522 (recurse_read_control_structure): Delete unused variable.
3523 (script_from_file): Delete unused variable.
3524 * cli/cli-cmds.c (complete_command): Delete unused variable.
3525 (disassemble_command): Delete unused variable.
3526
3527 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
3528 * tracepoint.c (delete_trace_variable_command):
3529 Delete unused variables.
3530 (encode_actions_1): Delete unused variables.
3531 (start_tracing): Delete unused variable.
3532 (trace_status_mi): Delete unused variable.
3533 (tfind_1): Delete unused variable.
3534 (trace_find_pc_command): Delete unused variable.
3535 (trace_find_line_command): Delete unused variables.
3536 (trace_find_range_command): Delete unused variables.
3537 (trace_find_outside_command): Delete unused variables.
3538 (parse_tracepoint_definition): Delete unused variables.
3539 (tfile_fetch_registers): Delete unused variable.
3540
3541 * dcache.c (dcache_init): Delete unused variable.
3542 (dcache_info): Delete unused variable.
3543
3544 * remote.c (remote_threads_info): Delete unused variable.
3545 (process_stop_reply) :Delete unused variable.
3546 (remote_get_trace_status): Delete unused variables.
3547
3548 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
3549 (thread_from_lwp): Delete unused variable.
3550 (enable_thread_event_reporting): Delete unused variable.
3551 (check_for_thread_db): Delete unused variables.
3552 (thread_db_find_new_threads_2): Delete unused variable.
3553
3554 * linux-fork.c (info_checkpoints_command): Delete unused variables.
3555 (checkpoint_command): Delete unused variable.
3556 (linux_fork_context): Delete unused variables.
3557
3558 * linux-nat.c (linux_parent_pid): Delete unused global variable.
3559 (linux_tracefork_child): Delete unused variable.
3560 (linux_child_follow_fork): Delete unused variable.
3561 (linux_nat_detach): Delete unused variable.
3562 (linux_handle_extended_wait): Delete unused variable.
3563 (linux_nat_has_pending_sigint): Delete unused variable.
3564 (linux_nat_find_memory_regions): Delete unused variable.
3565 (linux_nat_make_corefile_notes): Delete unused variables.
3566 (linux_nat_info_proc_cmd): Delete unused variable.
3567 (linux_proc_pending_signals): Delete unused variable.
3568 (linux_nat_stop_lwp): Delete unused variables.
3569 (_initialize_linux_nat): Delete unused variable.
3570
3571 * ser-pipe.c (pipe_ops): Delete unused global variable.
3572
3573 * linux-record.c (record_linux_system_call):
3574 Delete unused variables.
3575
3576 * corelow.c (core_xfer_partial): Delete unused variables.
3577
3578 * solib-svr4.c (find_program_interpreter): Delete unused variable.
3579 (svr4_solib_create_inferior_hook): Add ifdef around
3580 conditionally-used variable declarations.
3581
3582 * solib.c (solib_find): Delete unused variable.
3583 (free_so_symbols): Delete unused variable.
3584 (info_sharedlibrary_command): Delete unused variable.
3585 (reload_shared_libraries_1): Delete unused variable.
3586 (_initialize_solib): Delete unused variable.
3587
3588 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
3589 (i386_collect_xstateregset): Delete unused variable.
3590 * i387-tdep.c (i387_print_float_info): Delete unused variable.
3591
3592 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
3593 Delete unused variable 'type'.
3594
3595 2010-05-05 Joel Brobecker <brobecker@adacore.com>
3596
3597 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
3598 ada-lang.c: Remove comment mentioning these macros.
3599 * m2-exp.y: Delete commented out code.
3600
3601 2010-05-05 Joel Brobecker <brobecker@adacore.com>
3602
3603 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
3604 for array types.
3605 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
3606
3607 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
3608
3609 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
3610 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
3611 ATTRIBUTE_UNUSED.
3612 (cleanup_kernel_helper_return): Likewise.
3613 * arm-tdep.c (copy_unmodified): Likewise.
3614 (copy_preload): Likewise.
3615 (copy_copro_load_store): Likewise.
3616 (cleanup_branch): Likewise.
3617 (copy_b_bl_blx): Likewise.
3618 (copy_bx_blx_reg): Likewise.
3619 (copy_alu_imm): Likewise.
3620 (copy_alu_reg): Likewise.
3621 (copy_alu_shifted_reg): Likewise.
3622 (cleanup_load): Likewise.
3623 (cleanup_store): Likewise.
3624 (cleanup_block_load_pc): Likewise.
3625 (cleanup_svc): Likewise.
3626 (copy_undef): Likewise.
3627 (copy_unpred): Likewise.
3628 * remote.c (register_remote_support_xml): Likewise.
3629
3630 2010-05-05 Hui Zhu <teawater@gmail.com>
3631
3632 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
3633
3634 2010-05-04 Mark Kettenis <kettenis@gnu.org>
3635
3636 * remote.c (register_remote_support_xml)
3637 (remote_query_supported_append, remote_query_supported): Add cast
3638 to NULL used as sentinel.
3639 * tracepoint.c (tvariables_info_1): Likewise.
3640 * utils.c (add_internal_problem_command): Likewise.
3641
3642 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3643
3644 * dwarf2loc.c (read_pieced_value, write_pieced_value,
3645 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
3646 registers gracefully.
3647
3648 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3649
3650 * exec.c (print_section_info): Display entry point without arch
3651 specific parts.
3652
3653 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
3654
3655 PR exp/11349.
3656 * printcmd.c (x_command): Only dereference once implicitly for
3657 TYPE_CODE_REF.
3658
3659 2010-05-03 Doug Evans <dje@google.com>
3660
3661 * event-loop.c (gdb_timer): Delete unused global.
3662 (create_timer): Update.
3663
3664 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3665
3666 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
3667 CURRENT->DECLARATION case.
3668 * cp-support.h (struct using_direct): Provide extended comment.
3669
3670 2010-05-03 Mark Kettenis <kettenis@gnu.org>
3671
3672 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
3673 HPPABSD_SIZEOF_GREGS.
3674 (HPPAOBSD_SIZEOF_FPREGS): New define.
3675 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
3676 (hppaobsd_supply_fpregset): New function.
3677 (hppaobsd_gregset): Renamed from hppabsd_gregset.
3678 (hppaobsd_fpregset): New variable.
3679 (hppaobsd_regset_from_core_section): Handle floating-point registers.
3680 (_initialize_hppabsd_tdep): Remove spurious blank line.
3681
3682 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3683
3684 PR pascal/11349.
3685 * p-valprint.c (pascal_value_print): Always dereference a value with
3686 type code TYPE_CODE_REF.
3687
3688 2010-05-03 Pedro Alves <pedro@codesourcery.com>
3689
3690 * remote.c (remote_notice_signals): New.
3691 (remote_start_remote): In non-stop mode, update the remote end on
3692 which signals it can silently pass.
3693 (init_remote_ops): Install remote_notice_signals.
3694
3695 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3696
3697 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
3698 * command.h (error_no_arg): ... here. Remove NORETURN, change
3699 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3700 * defs.h (NORETURN, ATTR_NORETURN): Remove.
3701 (perror_with_name, verror, error, error_stream, vfatal, fatal)
3702 (internal_verror, internal_error, nomem): Remove NORETURN, change
3703 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3704 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
3705 (throw_vfatal, throw_error): Remove NORETURN.
3706 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
3707 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
3708 (throw_error, deprecated_throw_reason): Remove NORETURN, change
3709 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3710 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
3711 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
3712 NORETURN.
3713 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
3714 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
3715 ATTRIBUTE_NORETURN.
3716 * target.c (tcomplain): Likewise.
3717 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
3718 ATTRIBUTE_NORETURN.
3719 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
3720 (internal_error, perror_with_name, nomem): Remove NORETURN.
3721 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
3722 ATTRIBUTE_NORETURN.
3723
3724 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3725
3726 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3727 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
3728 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
3729 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3730 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
3731 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3732 * complaints.h (complaint, internal_complaint): Likewise.
3733 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
3734 (ATTR_FORMAT): Remove.
3735 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
3736 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
3737 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
3738 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
3739 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
3740 (internal_error, internal_vwarning, internal_warning, warning)
3741 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3742 * disasm.c (fprintf_disasm): Likewise.
3743 * exceptions.c (throw_it): Likewise.
3744 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
3745 (throw_error): Likewise.
3746 * language.h (type_error, range_error): Likewise.
3747 * linespec.c (cplusplus_error): Likewise.
3748 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
3749 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
3750 * monitor.c (monitor_debug): Likewise.
3751 * parser-defs.h (parser_fprintf): Likewise.
3752 * serial.h (serial_printf): Likewise.
3753 * tui/tui-hooks.c (tui_query_hook): Likewise.
3754 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
3755 (uo_message): Likewise.
3756 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
3757 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
3758 Likewise.
3759 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
3760
3761 2010-05-02 Pedro Alves <pedro@codesourcery.com>
3762
3763 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
3764 (cli_table_header, cli_begin, cli_end, cli_field_int)
3765 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
3766 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
3767 Delete forward declarations.
3768 (cli_ui_out_impl): Move below the callbacks.
3769 (_initialize_cli_out): Delete.
3770
3771 2010-05-02 Pedro Alves <pedro@codesourcery.com>
3772
3773 * README: Use consistent `GDB' and `GDBserver' spellings.
3774
3775 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3776
3777 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
3778
3779 2010-05-01 Pedro Alves <pedro@codesourcery.com>
3780
3781 * infrun.c (prepare_for_detach): In non-stop, context switch to
3782 the thread that got the event before handling the event.
3783
3784 2010-04-30 Tom Tromey <tromey@redhat.com>
3785
3786 * symtab.c (symbol_set_names): Fix typo.
3787
3788 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3789
3790 * python/py-param.c (parm_constants): Avoid ARI warning
3791 by adding ARI comment.
3792 (parmpy_init): Likewise.
3793
3794 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3795
3796 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
3797 and created type for re-use.
3798
3799 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3800
3801 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
3802
3803 2010-04-29 Doug Evans <dje@google.com>
3804
3805 * ser-base.h (reschedule): Delete prototype.
3806 * ser-base.c (reschedule): Make static.
3807
3808 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3809
3810 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
3811 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
3812 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
3813 EABI.
3814 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
3815 use.
3816
3817 2010-04-29 Pedro Alves <pedro@codesourcery.com>
3818
3819 PR gdb/11557
3820
3821 * regcache.c (registers_changed): Rename to ...
3822 (registers_changed_ptid): ... this, and only delete register cache
3823 entries matching the ptid filter argument.
3824 (registers_changed): Reimplement on top of registers_changed_ptid.
3825 * regcache.h (registers_changed_ptid): Declare.
3826 * target.c (target_resume): Flush register caches.
3827
3828 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
3829 Tom Tromey <tromey@redhat.com>
3830 Thiago Jung Bauermann <bauerman@br.ibm.com>
3831
3832 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
3833 (SUBDIR_PYTHON_SRCS): Likewise.
3834 (py-parameter.o): New rule.
3835 * python/py-parameter.c: New file.
3836 * python/python-internal.h (gdbpy_initialize_parameter)
3837 (gdbpy_parameter, gdbpy_parameter_value)
3838 (gdbpy_parse_command_name): Declare.
3839 * python/py-cmd.c (parse_command_name): Rename to
3840 gdbpy_parse_command_name.
3841 (gdbpy_parse_command_name): Accept a starting list parameter and
3842 use over cmdlist.
3843 (cmdpy_init): Use gdbpy_parse_command_name.
3844 * python/python.c (parameter_to_python): Rename to
3845 gdbpy_parameter_to_python. Accept enum var_types and value.
3846 (gdbpy_parameter): Use gdbpy_parameter_value.
3847 (_initialize_python): Call gdbpy_initialize_parameters.
3848
3849 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3850
3851 * MAINTAINERS: Add myself for write after approval privileges.
3852
3853 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
3854
3855 D language support.
3856 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
3857 (COMMON_OBS): Add d-lang.o d-valprint.o.
3858 (HFILES_NO_SRCDIR): Add d-lang.h.
3859 * NEWS: Mention D language support.
3860 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
3861 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
3862 * d-lang.c: New file.
3863 * d-lang.h: New file.
3864 * d-valprint.c: New file.
3865 * defs.h (enum language): Add language_d.
3866 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
3867 * language.c (binop_result_type, integral_type, character_type)
3868 (string_type, boolean_type, structured_type): Add language_d.
3869 * symfile.c (init_filename_language_table): Add language_d.
3870 * symtab.c: Include d-lang.h.
3871 (symbol_init_language_specific, symbol_find_demangled_name)
3872 (symbol_natural_name, lookup_symbol_in_language)
3873 (symbol_demangled_name, symbol_matches_domain): Add language_d.
3874
3875 2010-04-27 Joel Brobecker <brobecker@adacore.com>
3876
3877 * solib-svr4.c (solib_svr4_r_map): Expand function description.
3878
3879 2010-04-27 Joel Brobecker <brobecker@adacore.com>
3880
3881 * symfile.c (init_filename_language_table): Register .dg files
3882 with language_ada.
3883
3884 2010-04-27 Joel Brobecker <brobecker@adacore.com>
3885
3886 * gdbtypes.h (struct main_type): Expand comment about target_type
3887 field.
3888
3889 2010-04-27 Pedro Alves <pedro@codesourcery.com>
3890 Tristan Gingold <gingold@adacore.com>
3891
3892 * symfile.c (reread_symbols): Also search for file in libraries.
3893 Update comment.
3894
3895 2010-04-27 Joel Brobecker <brobecker@adacore.com>
3896
3897 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
3898 in terms of configuration.
3899
3900 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3901
3902 * objfiles.c: Include solist.h.
3903 (free_all_objfiles): New variable so. Check stale solist objfiles.
3904 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
3905 and no_shared_libraries.
3906
3907 2010-04-27 Joel Brobecker <brobecker@adacore.com>
3908
3909 ARI warning fix.
3910 * python/py-auto-load.c (source_section_scripts): Remove trailing
3911 new-line in i18n string.
3912
3913 2010-04-26 Doug Evans <dje@google.com>
3914
3915 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
3916
3917 2010-04-26 Tom Tromey <tromey@redhat.com>
3918
3919 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
3920 command list.
3921
3922 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
3923
3924 Removal of config/i386/nm-i386sol2.h native configuration file.
3925 * config/i386/nm-i386sol2.h: Remove file.
3926 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
3927 * config/i386/sol2-64.mh: Idem.
3928 * config/djgpp/fnchange.lst: Remove reference to that file.
3929 * Makefile.in (HFILES_NO_SRCDIR): Idem.
3930
3931 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
3932
3933 PR breakpoints/11531.
3934 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
3935 macro definition and related comment.
3936 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
3937 (resume): Remove code and comment related to this macro.
3938
3939 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3940
3941 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
3942 Fix whitespace.
3943
3944 2010-04-24 Pedro Alves <pedro@codesourcery.com>
3945
3946 * defs.h: Adjust comment.
3947 * filesystem.h, filesystem.c: New files.
3948 * Makefile.in (SFILES): Add filesystem.c.
3949 (COMMON_OBS): Add filesystem.o.
3950 * solib.c (solib_find): Handle DOS-based filesystems. Handle
3951 different target and host path flavours.
3952 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
3953 has_dos_based_file_system on the gdbarch.
3954 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
3955 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
3956 * i386-tdep.c (i386_go32_init_abi): Ditto.
3957 * gdbarch.sh (has_dos_based_file_system): New.
3958 * gdbarch.h, gdbarch.c: Regenerate.
3959 * NEWS: Mention improved support for remote targets with DOS-based
3960 filesystems. Mention new `set/show target-file-system-kind'
3961 commands.
3962
3963 2010-04-23 Stan Shebs <stan@codesourcery.com>
3964
3965 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
3966 comments.
3967 (struct agent_reqs): Remove.
3968 (ax_reg_mask): Declare.
3969 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
3970 (free_agent_expr): Free reg_mask.
3971 (ax_print): Add scope and register mask info.
3972 (ax_reqs): Remove agent_reqs argument, use agent expression
3973 fields, and move part of register mask computation to...
3974 (ax_reg_mask): New function.
3975 * ax-gdb.c (gen_trace_static_fields): Call it.
3976 (gen_traced_pop): Ditto.
3977 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
3978 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
3979 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
3980 (gen_eval_for_expr): Ditto, and require an rvalue.
3981 (agent_command): Call ax_reqs.
3982 (agent_eval_command): Ditto.
3983 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
3984 (validate_action_line): Ditto.
3985 (collect_symbol): Ditto.
3986 (encode_actions_1): Ditto.
3987
3988 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
3989 Paul Pluzhnikov <ppluzhnikov@google.com>
3990 Jan Kratochvil <jan.kratochvil@redhat.com>
3991
3992 Fix deadlock on looped list of loaded shared objects.
3993 * solib-svr4.c (LM_PREV): New function.
3994 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
3995 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
3996 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
3997 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
3998
3999 2010-04-23 Doug Evans <dje@google.com>
4000
4001 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4002 python.
4003 * configure: Regenerate.
4004 * main.c: #include "python/python.h".
4005 (captured_main): Defer loading auto-loaded scripts until after
4006 local_gdbinit has been sourced.
4007 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
4008 (load_auto_scripts_for_objfile): New function.
4009 (auto_load_new_objfile): Call it.
4010 * python/python.h (gdbpy_global_auto_load): Declare.
4011 (load_auto_scripts_for_objfile): Declare.
4012
4013 Add support for auto-loading scripts from .debug_gdb_scripts section.
4014 * NEWS: Add entry for .debug_gdb_scripts.
4015 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
4016 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
4017 (py-auto-load.o): New rule.
4018 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
4019 * cli/cli-cmds.h (find_and_open_script): Update prototype.
4020 * python/py-auto-load.c: New file.
4021 * python/python-internal.h: #include <stdio.h>.
4022 (set_python_list, show_python_list): Declare.
4023 (gdbpy_initialize_auto_load): Declare.
4024 (source_python_script_for_objfile): Declare.
4025 * python/python.c: Remove #include of observer.h.
4026 (gdbpy_auto_load): Moved to py-auto-load.c.
4027 (GDBPY_AUTO_FILENAME): Ditto.
4028 (gdbpy_new_objfile): Delete.
4029 (source_python_script_for_objfile): New function.
4030 (set_python_list, show_python_list): Make externally visible.
4031 (_initialize_python): Move "auto-load" command to py-auto-load.c
4032 and observer_attach_new_objfile to py-auto-load.c.
4033
4034 2010-04-23 Jerome Guitton <guitton@adacore.com>
4035
4036 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
4037 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
4038 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
4039 New constants.
4040 (alpha_heuristic_analyze_probing_loop): New function.
4041 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
4042 and handle cases when a stack probe loop is generated.
4043 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
4044 (alpha_mdebug_max_frame_size_exceeded): New function.
4045 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
4046 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
4047 Return 0 when the maximum debuggable frame size has been exceeded.
4048
4049 2010-04-23 Joel Brobecker <brobecker@adacore.com>
4050
4051 Fix ARI warning.
4052 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
4053
4054 2010-04-20 Chris Moller <cmoller@redhat.com>
4055
4056 PR 10179
4057
4058 * symtab.c (rbreak_command): Added code to include a filename
4059 specification in the rbreak argument.
4060 * NEWS: Added a brief description of filename-qualified rbreak.
4061
4062 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4063
4064 Fix crashes on dangling display expressions.
4065 * ada-lang.c (ada_operator_check): New function.
4066 (ada_exp_descriptor): Fill-in the field operator_check.
4067 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
4068 * jv-lang.c (exp_descriptor_java): Likewise.
4069 * m2-lang.c (exp_descriptor_modula2): Likewise.
4070 * scm-lang.c (exp_descriptor_scm): Likewise.
4071 * parse.c (exp_descriptor_standard): Likewise.
4072 (operator_check_standard): New function.
4073 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
4074 * parser-defs.h (struct exp_descriptor): New field operator_check.
4075 (operator_check_standard, exp_uses_objfile): New declarations.
4076 * printcmd.c: Remove the inclusion of solib.h.
4077 (display_uses_solib_p): Remove the function.
4078 (clear_dangling_display_expressions): Call lookup_objfile_from_block
4079 and exp_uses_objfile instead of display_uses_solib_p.
4080 * solist.h (struct so_list) <objfile>: New comment.
4081 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
4082 * symtab.h (lookup_objfile_from_block): New declaration.
4083 (struct general_symbol_info) <obj_section>: Extend the comment.
4084
4085 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4086 Thiago Jung Bauermann <bauerman@br.ibm.com>
4087
4088 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
4089 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
4090 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
4091 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
4092 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
4093 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
4094 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
4095 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
4096 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
4097 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
4098 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
4099 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
4100 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
4101 Define, in case <ptrace.h> doesn't provide it.
4102 (booke_debug_info): New variable.
4103 (max_slots_number): Ditto.
4104 (hw_break_tuple): New struct.
4105 (thread_points): Ditto.
4106 (ppc_threads): New variable.
4107 (PPC_DEBUG_CURRENT_VERSION): New define.
4108 (have_ptrace_new_debug_booke): New function.
4109 (ppc_linux_check_watch_resources): Renamed to ...
4110 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
4111 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
4112 (booke_cmp_hw_point): New function.
4113 (booke_find_thread_points_by_tid): Ditto.
4114 (booke_insert_point): Ditto.
4115 (booke_remove_point): Ditto.
4116 (ppc_linux_insert_hw_breakpoint): Ditto.
4117 (ppc_linux_remove_hw_breakpoint): Ditto.
4118 (get_trigger_type): Ditto.
4119 (ppc_linux_insert_watchpoint): Handle BookE processors.
4120 (ppc_linux_remove_watchpoint): Ditto.
4121 (ppc_linux_new_thread): Ditto.
4122 (ppc_linux_thread_exit): New function..
4123 (ppc_linux_stopped_data_address): Handle BookE processors.
4124 (ppc_linux_watchpoint_addr_within_range): Ditto.
4125 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
4126 to_remove_hw_breakpoint fields of the target operations struct.
4127 Add observe for the thread_exit event.
4128
4129 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4130
4131 * i386-linux-nat.c (regmap): Removed.
4132 (fetch_register): Replace regmap with
4133 i386_linux_gregset_reg_offset.
4134 (store_register): Likewise.
4135 (supply_gregset): Likewise.
4136 (fill_gregset): Likewise.
4137
4138 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
4139 global.
4140
4141 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
4142
4143 2010-04-22 Chris Moller <cmoller@redhat.com>
4144
4145 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4146 method of popping recursion-detection stack with a method based on
4147 obstack_object_size(). (Similar to the PR9167 patch below, but for
4148 the static array obstack rather than the static member obstack.)
4149
4150 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4151
4152 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
4153 (_initialize_amd64_linux_nat): Replace
4154 amd64_linux_gregset64_reg_offset with
4155 amd64_linux_gregset_reg_offset.
4156
4157 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
4158 global.
4159
4160 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
4161
4162 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4163
4164 PR stabs/11479.
4165 * stabsread.c (set_length_in_type_chain): New function.
4166 (read_struct_type): Call set_length_in_type_chain function.
4167 (read_enum_type): Idem.
4168
4169 2010-04-21 Stan Shebs <stan@codesourcery.com>
4170 Nathan Sidwell <nathan@codesourcery.com>
4171
4172 * tracepoint.c (trace_save): Open in binary mode.
4173
4174 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4175
4176 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4177 fields.
4178 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
4179 builtin_char32 fields.
4180 * printcmd.c (decode_format): Set char size to '\0'
4181 for strings unless explicit size is given.
4182 (print_formatted): Correct calculation of NEXT_ADDRESS
4183 for 16 or 32 bit strings.
4184 (do_examine): Do not force byte size for strings.
4185 Use builtin_char16 and builtin_char32 types to display
4186 16 or 32 bit-wide strings.
4187 (x_command): Set LAST_SIZE to 'b' for string type.
4188
4189 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
4190
4191 PR corefiles/11523
4192 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4193 XCR0 first.
4194
4195 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
4196 there is no .reg-xstate section.
4197 (i386_linux_core_read_description): Check XCR0 first.
4198
4199 2010-04-21 Mike Frysinger <vapier@gentoo.org>
4200
4201 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
4202 for len <= 8.
4203
4204 2010-04-21 Chris Moller <cmoller@redhat.com>
4205
4206 PR 9167
4207 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4208 method of popping recursion-detection stack with a method based on
4209 obstack_object_size().
4210
4211 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4212
4213 PR pascal/11492.
4214 * p-valprint.c (pascal_val_print): Fix default printing of integer
4215 arrays.
4216
4217 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4218
4219 Fix compilation warning on gcc-4.1.2.
4220 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
4221 local variable`pc' to zero.
4222
4223 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4224
4225 Implement thread support with core files on alpha-tru64.
4226 * dec-thread.c (dec_thread_find_new_threads): New function,
4227 extracted from resync_thread_list.
4228 (resync_thread_list): Add OPS parameter. Replace extracted-out
4229 code by call to dec_thread_find_new_threads.
4230 (dec_thread_wait): Update call to resync_thread_list.
4231 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
4232
4233 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4234
4235 * ada-lang.c (value_pointer): New function.
4236 (make_array_descriptor): Call value_pointer to convert addresses to
4237 pointers.
4238
4239 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4240
4241 * rs6000-aix-tdep.c: #include exceptions.h.
4242 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
4243 while reading the memory at ADDR, then ADDR cannot be a function
4244 descriptor.
4245
4246 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4247
4248 * ada-typeprint.c (ada_print_typedef): New function.
4249 * ada-lang.h (ada_print_typedef): Add declaration.
4250 * ada-lang.c (ada_language_defn): set la_print_typdef field
4251 to ada_print_typedef.
4252
4253 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4254
4255 * procfs.c (procfs_address_to_host_pointer): Only define when used.
4256
4257 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4258
4259 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
4260 (iterate_over_mappings): Adjust function profile. Add declaration.
4261 (insert_dbx_link_bpt_in_region, info_mappings_callback):
4262 Adjust accordingly.
4263
4264 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4265
4266 * procfs.c (solib_mappings_callback): Move function up to avoid
4267 a compiler warning.
4268
4269 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4270
4271 * procfs.c (find_signalled_thread, find_stop_signal): Move
4272 these functions down to define them only when used.
4273
4274 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4275
4276 * valprint.c (common_val_print): Fix the value before extracting
4277 its contents.
4278 * ada-lang.c (ada_to_fixed_value): Make this function extern.
4279 * ada-lang.h (ada_to_fixed_value): New function declaration.
4280 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
4281 to avoid code duplication and fix a bug in the handling of
4282 fixed types contents.
4283
4284 2010-04-20 Tom Tromey <tromey@redhat.com>
4285
4286 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
4287 (read_partial_die): Likewise.
4288 (dwarf_attr_name): Likewise.
4289
4290 2010-04-20 Chris Moller <cmoller@redhat.com>
4291
4292 PR 10867
4293
4294 * cp-valprint.c (global): Adding new static array recursion
4295 detection obstack.
4296 (cp_print_value_fields, cp_print_static_field): Added new static
4297 array recursion detection code.
4298
4299 2010-04-20 Mark Kettenis <kettenis@gnu.org>
4300
4301 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
4302 general-purpose register set should be 68 instead of 144.
4303 (i386_linux_sse_regset_sections): Likewise.
4304 (i386_linux_avx_regset_sections): Likewise.
4305
4306 2010-04-20 Stan Shebs <stan@codesourcery.com>
4307 Nathan Sidwell <nathan@codesourcery.com>
4308
4309 * dwarf2loc.c (struct axs_var_loc): New struct.
4310 (dwarf2_tracepoint_var_loc): New function.
4311 (dwarf2_tracepoint_var_access): New function.
4312 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
4313 with DW_OP_piece.
4314 (locexpr_describe_location_piece): New function.
4315 (locexpr_describe_location_1): New function.
4316 (locexpr_describe_location): Call it, update signature.
4317 (loclist_describe_location): Rewrite to loop over locations,
4318 update signature.
4319 * symtab.h (struct symbol_computed_ops): Add address to
4320 describe_location arguments, return void.
4321 * printcmd.c (address_info): Get context PC, pass to computed
4322 location description.
4323 * tracepoint.c (scope_info): Ditto.
4324 * ax-gdb.c (trace_kludge): Export.
4325
4326 2010-04-20 Tom Tromey <tromey@redhat.com>
4327
4328 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
4329 (struct dwarf2_cie) <segment_size>: New field.
4330 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
4331 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
4332 DW_FORM_exprloc.
4333 (read_attribute_value): Handle DW_FORM_flag_present,
4334 DW_FORM_sec_offset, DW_FORM_exprloc.
4335 (dump_die_shallow): Likewise.
4336 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
4337 (dwarf2_const_value): Handle DW_FORM_exprloc.
4338 (attr_form_is_block): Likewise.
4339 (struct line_header) <maximum_ops_per_instruction>: New field.
4340 (dwarf_decode_line_header): Set new field.
4341 (dwarf_decode_lines): Handle new field.
4342
4343 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4344
4345 * f-exp.y: Add new production to recognize the `logical*8' type.
4346 (LOGICAL_S8_KEYWORD): New token.
4347 * f-lang.c (enum f_primitive_types)
4348 <f_primitive_type_logical_s8>: New field.
4349 (f_language_arch_info): Handling `logical*8' type.
4350 (build_fortran_types): Building `logical*8' type.
4351 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
4352
4353 2010-04-19 Doug Evans <dje@google.com>
4354
4355 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
4356 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
4357 (pipe_close): Ditto.
4358
4359 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4360
4361 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
4362
4363 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4364
4365 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
4366 type to void function.
4367
4368 2010-04-19 Stan Shebs <stan@codesourcery.com>
4369 Vladimir Prus <vladimir@codesourcery.com>
4370
4371 * tracepoint.c (tfind_1): Add missing newline, report exit from
4372 tfind mode as such.
4373 * target.c (update_current_target): Make default
4374 to_trace_find return -1.
4375
4376 2010-04-19 Mike Frysinger <vapier@gentoo.org>
4377
4378 * objc-lang.c (find_methods): Move symname check up.
4379
4380 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4381
4382 * ada-lang.c (print_recreate_exception)
4383 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
4384 not "catch unhandled".
4385
4386 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4387
4388 PR breakpoints/8554.
4389
4390 Implement `save-breakpoints'.
4391
4392 * breakpoint.c (save_cmdlist): New.
4393 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
4394 to save_cmdlist.
4395 (print_recreate_catch_fork): New.
4396 (catch_fork_breakpoint_ops): Install it.
4397 (print_recreate_catch_vfork): New.
4398 (catch_vfork_breakpoint_ops): Install it.
4399 (print_recreate_catch_syscall): New.
4400 (catch_syscall_breakpoint_ops): Install it.
4401 (print_recreate_catch_exec): New.
4402 (catch_exec_breakpoint_ops): Install it.
4403 (print_recreate_exception_catchpoint): New.
4404 (gnu_v3_exception_catchpoint_ops): Install it.
4405 (save_breakpoints): New, based on tracepoint_save_command, but
4406 handle all breakpoint types.
4407 (save_breakpoints_command): New.
4408 (tracepoint_save_command): Rename to...
4409 (save_tracepoints_command): ... this, and reimplement using
4410 save_breakpoints.
4411 (save_command): New.
4412 (_initialize_breakpoints): Install the "save" command prefix.
4413 Install the "save breakpoints" command. Make "save-tracepoints" a
4414 deprecated alias for "save tracepoints".
4415 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
4416 * ada-lang.c (print_recreate_exception): New.
4417 (print_recreate_catch_exception): New.
4418 (catch_exception_breakpoint_ops): Install it.
4419 (print_recreate_catch_exception_unhandled): New.
4420 (catch_exception_unhandled_breakpoint_ops): Install it.
4421 (print_recreate_catch_assert): New.
4422 (catch_assert_breakpoint_ops): Install it.
4423
4424 * NEWS: Mention the new `save breakpoints' command. Mention the
4425 new `save tracepoints' alias and that `save-tracepoints' is now
4426 deprecated.
4427
4428 2010-04-18 Pedro Alves <pedro@codesourcery.com>
4429
4430 PR tui/9217
4431
4432 * tui/tui-out.c: Include cli-out.h.
4433 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4434 (tui_begin, tui_end, tui_field_int, tui_field_skip)
4435 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
4436 (tui_message, tui_wrap_hint, tui_flush): Delete forward
4437 declarations.
4438 (struct ui_out_data): Rename to...
4439 (struct tui_ui_out_data): ... this. Remove `stream' and
4440 `suppress_output' fields, and inherit cli_ui_out_data.
4441 (tui_out_data): New typedef.
4442 (tui_ui_out_impl): Don't initialize fields staticaly.
4443 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4444 (tui_begin, tui_end): Delete.
4445 (tui_field_int): Adjust to delegate most work to the base type.
4446 (tui_field_skip): Delete.
4447 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
4448 delegate most work to the base type.
4449 (tui_spaces): Delete.
4450 (tui_text): Adjust to delegate most work to the base type.
4451 (tui_message): Delete.
4452 (tui_wrap_hint): Delete.
4453 (tui_flush): Delete.
4454 (out_field_fmt): Delete.
4455 (field_separator): Delete.
4456 (tui_out_new): Adjust to initialize the base type.
4457 (_initialize_tui_out): Initialize tui_ui_out_impl.
4458 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
4459 cli_ui_out_data.
4460 (cli_out_data): Adjust.
4461 (cli_ui_out_impl): Make extern.
4462 (cli_table_header, cli_field_int, cli_field_skip): Use
4463 uo_field_string instead of cli_field_string.
4464 (cli_redirect): Adjust to use cli_out_data.
4465 (cli_out_data_ctor): New.
4466 (cli_out_new): Use it.
4467 * cli-out.h (struct ui_file): Remove forward declaration.
4468 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
4469 (cli_ui_out_impl): Declare.
4470 (cli_out_data_ctor): Declare.
4471 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
4472 (uo_field_string): No longer static.
4473 (ui_out_data): Change return type to void pointer.
4474 (ui_out_new): Change `data' parameter type to void pointer.
4475 * ui-out.h (struct ui_out_data): Don't forward declare.
4476 (ui_out_data): Change return type to void pointer.
4477 (ui_out_new): Change `data' parameter type to void pointer.
4478 (uo_field_string): Declare.
4479
4480 2010-04-17 Pedro Alves <pedro@codesourcery.com>
4481
4482 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
4483 instead of always false.
4484
4485 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
4486
4487 PR corefiles/11511
4488 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
4489 orig_rax.
4490
4491 2010-04-17 Pedro Alves <pedro@codesourcery.com>
4492
4493 * breakpoint.c (watchpoints_triggered): Use
4494 is_hardware_watchpoint.
4495 (watchpoints_triggered): Ditto.
4496 (bpstat_check_location): Use is_watchpoint and
4497 is_hardware_watchpoint.
4498 (bpstat_check_watchpoint): Use is_watchpoint and
4499 is_hardware_watchpoint.
4500 (bpstat_stop_status): Fix comment.
4501 (user_settable_breakpoint): Use is_watchpoint.
4502 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
4503 (disable_watchpoints_before_interactive_call_start): Use
4504 is_watchpoint.
4505 (enable_watchpoints_after_interactive_call_stop): Use
4506 is_watchpoint.
4507 (clear_command): Use is_watchpoint.
4508 (do_enable_breakpoint): Use is_watchpoint.
4509
4510 2010-04-16 Mike Frysinger <vapier@gentoo.org>
4511
4512 * solib-frv.c (enable_break1_done): Delete.
4513 (enable_break2): Do not check enable_break1_done. Move the
4514 enable_break2_done setting and call to
4515 remove_solib_event_breakpoints() to the end. Return without
4516 warning when the contents of _dl_debug_addr are 0.
4517 (enable_break): Do not set enable_break1_done.
4518 (frv_clear_solib): Likewise.
4519
4520 2010-04-16 Kevin Buettner <kevinb@redhat.com>
4521
4522 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
4523 instead of an error if no PLT entry is found. Return a
4524 potentially useful result.
4525 (m32c_m16c_pointer_to_address): Add code to search for function
4526 address when no .plt entry is found.
4527
4528 2010-04-16 Stan Shebs <stan@codesourcery.com>
4529
4530 * tracepoint.c (trace_variable_command): Run a cleanup.
4531
4532 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4533
4534 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
4535
4536 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4537
4538 Support for Windows OS Thread Information Block.
4539 * NEWS: Document new feature.
4540 * remote.c (PACKET_qGetTIBAddr): New enum element.
4541 (remote_get_tib_address): New function.
4542 (init_remote_ops): Set to_get_tib_address field
4543 to remote_get_tib_address.
4544 (_initialize_remote): Add add_packet_config_cmd
4545 for PACKET_qGetTIBAddr.
4546 * target.c (update_current_target): Set default value for
4547 new to_get_tib_address field.
4548 * target.h (target_ops): New field to_get_tib_address.
4549 (target_get_tib_address): New macro.
4550 * windows-nat.c (thread_info): Add thread_local_base field.
4551 (windows_add_thread): Add tlb argument of type 'void *'.
4552 (fake_create_process): Adapt windows_add_thread call.
4553 (get_windows_debug_event): Idem.
4554 (windows_get_tib_address): New function.
4555 (init_windows_ops): Set to_get_tib_address field
4556 to remote_get_tib_address.
4557 (_initialize_windows_nat): Replace info_w32_cmdlist
4558 initialization by a call to init_w32_command_list.
4559 (info_w32_command, info_w32_cmdlist): Removed from here...
4560 to windows-tdep.c file.
4561 * windows-tdep.h (info_w32_cmdlist): Declare.
4562 (init_w32_command_list): New external function
4563 declaration.
4564 * windows-tdep.c: Add several headers.
4565 (info_w32_cmdlist): to here, made global.
4566 (thread_information_32): New struct.
4567 (thread_information_64): New struct.
4568 (TIB_NAME): New char array.
4569 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
4570 (maint_display_all_tib): New static variable.
4571 (windows_get_tlb_type): New function.
4572 (tlb_value_read, tlb_value_write): New functions.
4573 (tlb_value_funcs): New static struct.
4574 (tlb_make_value): New function.
4575 (display_one_tib): New function.
4576 (display_tib): New function.
4577 (show_maint_show_all_tib):New function.
4578 (info_w32_command): Moved from windows-nat.c.
4579 (init_w32_command_list): New function.
4580 (_initialize_windows_tdep): New function.
4581 New "maint set/show show-all-tib" command
4582 New "$_tlb" internal variable.
4583
4584 2010-04-16 Joel Brobecker <brobecker@adacore.com>
4585
4586 * tui/tui-regs.c (tui_display_register): Add comment about
4587 a couple of casts.
4588 * tui/tui-stack.c (tui_show_locator_content): Ditto.
4589
4590 2010-04-15 Stan Shebs <stan@codesourcery.com>
4591
4592 * frame.c: Include tracepoint.h.
4593 (get_current_frame): Allow a trace frame to be an alternate source
4594 of stack frame data.
4595 * tracepoint.c (tfind_1): Don't try to get current stack frame if
4596 it won't succeed.
4597
4598 2010-04-15 Pedro Alves <pedro@codesourcery.com>
4599
4600 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
4601 flags.
4602 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
4603
4604 2010-04-15 Doug Evans <dje@google.com>
4605
4606 * NEWS: Add entry for python program space support.
4607 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
4608 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
4609 (py-progspace.o): New rule.
4610 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
4611 function.
4612 (find_pretty_printer_from_progspace): New function.
4613 (find_pretty_printer_from_gdb): New function.
4614 (find_pretty_printer): Rewrite.
4615 * python/py-progspace.c: New file.
4616 * python/python-internal.h (program_space): Add forward decl.
4617 (pspace_to_pspace_object, pspy_get_printers): Declare.
4618 (gdbpy_initialize_pspace): Declare.
4619 * python/python.c: #include "progspace.h".
4620 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
4621 (_initialize_python): Call gdbpy_initialize_pspace.
4622 (GdbMethods): Add current_progspace, progspaces.
4623
4624 Add -s option to source command.
4625 * NEWS: Document new option.
4626 * cli/cli-cmds.c (find_and_open_script): Add function comment.
4627 Delete from_tty and cleanupp args. Split filep arg into file and
4628 full_pathp. New arg search_path.
4629 (source_script_from_stream): New function.
4630 (source_script_with_search): New function.
4631 (source_script): Rewrite.
4632 (source_command): Parse "-s" option.
4633 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
4634 * python/python.c (source_python_script): Make file arg a const char *.
4635 Don't call fclose, leave for caller.
4636 * python/python.h (source_python_script): Update.
4637
4638 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4639 Pedro Alves <pedro@codesourcery.com>
4640
4641 Avoid rereading shared libraries that haven't changed.
4642
4643 * solib.c (free_so_symbols): New function, from ...
4644 (free_so): ... here. Call it.
4645 (solib_read_symbols): Don't warn here if symbols have already been
4646 loaded.
4647 (solib_add): Warn here instead, if a pattern was specified.
4648 (reload_shared_libraries_1): New.
4649 (reload_shared_libraries): Rewrite to not fetch the library list.
4650
4651 2010-04-14 Doug Evans <dje@google.com>
4652
4653 * source.c (openp): Strip DOS drive letter if present before
4654 concatenating string to search path.
4655
4656 2010-04-14 Pedro Alves <pedro@codesourcery.com>
4657
4658 * objfiles.h (gdb_bfd_close_or_warn): Declare.
4659 * objfiles.c (gdb_bfd_close_or_warn): New.
4660 * corelow.c: Include objfiles.h
4661 (core_close): Use gdb_bfd_close_or_warn.
4662 * elfread.c (build_id_verify): Ditto.
4663 * exec.c (exec_close, exec_close_1): Ditto.
4664
4665 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4666 Pedro Alves <pedro@codesourcery.com>
4667
4668 Group errors for many missing shared libraries.
4669
4670 * solist.h (struct so_list): Remove from_tty.
4671 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
4672 (solib_map_sections): Take so_list argument. Return 0 if we
4673 failed to open a BFD. Add target sections here.
4674 (symbol_add_stub): Delete.
4675 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
4676 not from_tty copied from the so_list. Don't warn a second time
4677 for a missing library.
4678 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
4679 add to the section table here. Print out a single warning for all
4680 missing libraries.
4681 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
4682 flags.
4683
4684 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
4685
4686 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
4687 error/warning messages. Capitalize and use complete sentences.
4688 (blpy_block_syms_iternext): Likewise.
4689 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
4690 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
4691 (frame_info_to_frame_object, frapy_read_var)
4692 (gdbpy_frame_stop_reason_string): Likewise.
4693 * python/py-lazy-string.c (stpy_convert_to_value)
4694 (gdbpy_create_lazy_string_object): Likewise.
4695 * python/py-objfile.c (objfpy_set_printers): Likewise.
4696 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
4697 * python/python.c (parameter_to_python): Likewise.
4698 * python/py-type.c (typy_range, typy_target): Likewise.
4699 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
4700 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
4701
4702
4703 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
4704
4705 PR python/11381
4706
4707 * python/py-prettyprint.c (pretty_print_one_value): Test for
4708 Py_None.
4709 (print_string_repr): Test for Py_None. Set flags accordingly.
4710 Return value depending on return type.
4711 (print_children): Take a value indicating whether data was printed
4712 before this function was called. Alter output accordingly.
4713 (apply_val_pretty_printer): Capture return value from
4714 print_string_repr and pass to print_children.
4715
4716 2010-04-13 Mark Kettenis <kettenis@gnu.org>
4717
4718 PR corefiles/11481
4719 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
4720 register note sections.
4721 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
4722 New variables.
4723 (i386_linux_init_abi): Install list of supported register note
4724 sections that matches the target description.
4725
4726 2010-04-13 Pedro Alves <pedro@codesourcery.com>
4727
4728 * remote.c (remote_get_noisy_reply): Don't error out on empty
4729 replies.
4730 (remote_start_remote): Update and merge tracepoints and trace
4731 state variables as long as the target supports tracepoints.
4732 (remote_trace_init): Fix prototype.
4733 (remote_download_trace_state_variable): Validate reply.
4734 (remote_trace_set_readonly_regions): Fix prototype.
4735 (remote_trace_start): Fix prototype. Check for empty reply.
4736 (remote_get_trace_status): Small cleanup.
4737 (remote_trace_stop): Fix prototype. Check for empty reply.
4738 (remote_trace_find): Check for empty reply.
4739 (remote_save_trace_data): Validate reply.
4740 (remote_set_disconnected_tracing): Check for empty reply, and
4741 validate reply.
4742 (remote_set_circular_trace_buffer): Ditto.
4743
4744 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
4745
4746 Suppress unused value warning during compilation.
4747 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
4748 calls to void.
4749 * tui/tui-stack.c (tui_show_locator_content): Likewise.
4750
4751 2010-04-12 Stan Shebs <stan@codesourcery.com>
4752
4753 * tracepoint.c (tfile_xfer_partial): Check read result.
4754
4755 2010-04-12 Mike Frysinger <vapier@gentoo.org>
4756
4757 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
4758 * remote-sim.c (gdbsim_files_info): Likewise.
4759
4760 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4761
4762 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
4763 * arm-linux-nat.c (arm_linux_vfp_register_count): New
4764 variable.
4765 (fetch_vfp_registers): New function to fetch VFP registers.
4766 (store_vfp_registers): New function to store VFP registers.
4767 (arm_linux_fetch_inferior_registers): Add support for VFP
4768 registers.
4769 (arm_linux_store_inferior_registers): Likewise.
4770 (arm_linux_read_description): Likewise.
4771 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
4772 until we need it.
4773
4774 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
4775
4776 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
4777 tdep.
4778 (amd64_collect_xstateregset): Likewise.
4779
4780 2010-04-09 Stan Shebs <stan@codesourcery.com>
4781
4782 * tracepoint.c (trace_status_mi): Report frames created.
4783
4784 * tracepoint.c (trace_dump_command): Include default-collect
4785 expressions.
4786
4787 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
4788
4789 * symtab.c (find_function_start_sal): Never return SAL pointing
4790 before function start address, even if line info is missing.
4791
4792 2010-04-09 Pedro Alves <pedro@codesourcery.com>
4793
4794 * NEWS: Mention tracepoints support.
4795
4796 2010-04-09 Pedro Alves <pedro@codesourcery.com>
4797
4798 * tracepoint.c (trace_status_mi): Report disconnected tracing and
4799 circular trace buffer statuses.
4800
4801 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4802
4803 * config/djgpp/fnchange.lst: Fix typo in translations for
4804 symbol-without-target_section.exp and symbol-without-target_section.c.
4805
4806 2010-04-09 Pedro Alves <pedro@codesourcery.com>
4807
4808 * breakpoint.c (condition_command): Pass condition expression to
4809 set_breakpoint_condition stripped from breakpoint number.
4810
4811 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
4812 Thiago Jung Bauermann <bauerman@br.ibm.com>
4813 Tom Tromey <tromey@redhat.com>
4814
4815 * breakpoint.c (condition_command): Simplify. Move condition
4816 setting code to ...
4817 (set_breakpoint_condition): ... here. New function.
4818 * breakpoint.h (set_breakpoint_condition): Declare.
4819 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
4820 (SUBDIR_PYTHON_SRCS): Likewise.
4821 (py-breakpoint.o): New rule.
4822 * python/py-breakpoint.c: New file.
4823 * python/python-internal.h (gdbpy_breakpoints)
4824 (gdbpy_initialize_breakpoints): Declare.
4825 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
4826
4827 2010-04-09 Pedro Alves <pedro@codesourcery.com>
4828
4829 * regformats/regdat.sh: Include server.h. Don't include
4830 regcache.h.
4831
4832 2010-04-08 Stan Shebs <stan@codesourcery.com>
4833 Pedro Alves <pedro@codesourcery.com>
4834
4835 * tracepoint.h (struct trace_status): New fields disconnected_tracing
4836 and circular_buffer.
4837 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
4838 * tracepoint.c (trace_status_command): Display target's status for
4839 disconnected tracing and circular buffer.
4840 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
4841 query for non-disconnected-tracing case, remove the stop_tracing
4842 call.
4843 (tfile_open): Clear disconnected and circular buffer status.
4844 (trace_save): Save disconnected and circular buffer status.
4845 (parse_trace_status): Parse disconnected and circular buffer status,
4846 also recognize disconnected as a stop reason.
4847 * remote.c (remote_set_disconnected_tracing): Only set
4848 QTDisconnected if the remote end supports disconnected tracing.
4849 Warn otherwise, if trying to enable disconnected tracing.
4850 * infcmd.c (detach_command): Update disconnect_tracing call.
4851 * cli/cli-cmds.c (quit_command): Ditto.
4852
4853 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4854
4855 * i387-tdep.c (i387_collect_xsave): Replace abort with
4856 internal_error.
4857
4858 2010-04-08 Stan Shebs <stan@codesourcery.com>
4859
4860 * breakpoint.c (default_collect_info): New function.
4861 (breakpoints_info): Call it.
4862 (maintenance_info_breakpoints): Ditto.
4863 (tracepoints_info): Ditto.
4864
4865 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4866
4867 * i387-tdep.c (i387_collect_xsave): Re-indent.
4868
4869 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4870
4871 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
4872 if HAVE_PTRACE_GETFPXREGS is defined.
4873 (i386_linux_read_description): Set have_ptrace_getfpxregs and
4874 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
4875
4876 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
4877 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
4878 if .reg-xfp section doesn't exist.
4879 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
4880
4881 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
4882
4883 * i386-tdep.c: Include "features/i386/i386-mmx.c".
4884 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
4885 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
4886 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
4887 (i386_gdbarch_init): Update comments.
4888 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
4889
4890 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
4891
4892 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
4893
4894 * features/Makefile (i386/i386-mmx-expedite): New.
4895 (i386/i386-mmx-linux-expedite): Likewise.
4896 ($(outdir)/i386/i386-mmx.dat): Likewise.
4897 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
4898
4899 * features/i386/i386-mmx-linux.c: New.
4900 * features/i386/i386-mmx-linux.xml: Likewise.
4901 * features/i386/i386-mmx.c: Likewise.
4902 * features/i386/i386-mmx.xml: Likewise.
4903 * regformats/i386/i386-mmx-linux.dat: Likewise.
4904 * regformats/i386/i386-mmx.dat: Likewise.
4905
4906 * features/Makefile (WHICH): Add i386/i386-mmx and
4907 i386/i386-mmx-linux.
4908
4909 2010-04-08 Doug Evans <dje@google.com>
4910
4911 * source.c (openp): Skip $cdir in PATH.
4912
4913 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
4914
4915 PR python/11417
4916 * python/py-lazy-string.c (stpy_convert_to_value): Check for
4917 a NULL address.
4918 (gdbpy_create_lazy_string_object): Allow strings with a NULL
4919 address and a zero length.
4920
4921 2010-04-08 Hui Zhu <teawater@gmail.com>
4922
4923 * i386-tdep.c (i386_process_record): Add support for insn
4924 rdtsc.
4925
4926 2010-04-07 Doug Evans <dje@google.com>
4927
4928 * python/python.c (source_python_script): Use ensure_python_env
4929 to prepare environment for script.
4930
4931 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4932
4933 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
4934 <sys/uio.h> and "i386-xstate.h".
4935 (PTRACE_GETREGSET): New.
4936 (PTRACE_SETREGSET): Likewise.
4937 (have_ptrace_getregset): Likewise.
4938 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
4939 registers.
4940 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
4941 registers.
4942 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
4943 (amd64_linux_store_inferior_registers): Likewise.
4944 (amd64_linux_read_description): Check and enable AVX target
4945 descriptions.
4946
4947 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
4948 and "features/i386/amd64-avx-linux.c".
4949 (amd64_linux_regset_sections): New.
4950 (amd64_linux_core_read_description): Check and enable AVX
4951 target description.
4952 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
4953 set_gdbarch_core_regset_sections.
4954 (_initialize_amd64_linux_tdep): Call
4955 initialize_tdesc_amd64_avx_linux.
4956
4957 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
4958 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
4959 (tdesc_amd64_avx_linux): New.
4960 (amd64_linux_update_xstateregset): Likewise.
4961
4962 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
4963 (amd64_ymm_names): New.
4964 (amd64_ymmh_names): Likewise.
4965 (amd64_register_name): Likewise.
4966 (amd64_supply_xstateregset): Likewise.
4967 (amd64_collect_xstateregset): Likewise.
4968 (amd64_supply_xsave): Likewise.
4969 (amd64_collect_xsave): Likewise.
4970 (AMD64_NUM_REGS): Removed.
4971 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
4972 %xmmN if AVX is available.
4973 (amd64_pseudo_register_name): Support pseudo YMM registers.
4974 (amd64_regset_from_core_section): Support .reg-xstate section.
4975 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
4976 and ymm0h_regnum. Call set_gdbarch_register_name.
4977 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
4978
4979 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
4980 AMD64_YMM15H_REGNUM.
4981 (AMD64_NUM_REGS): New.
4982 (amd64_supply_xsave): Likewise.
4983 (amd64_collect_xsave): Likewise.
4984 (amd64_register_name): Removed.
4985 (amd64_register_type): Likewise.
4986
4987 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4988
4989 * i387-tdep.c: Include "i386-xstate.h".
4990 (XSAVE_XSTATE_BV_ADDR): New.
4991 (xsave_avxh_offset): Likewise.
4992 (XSAVE_AVXH_ADDR): Likewise.
4993 (i387_supply_xsave): Likewise.
4994 (i387_collect_xsave): Likewise.
4995
4996 * i387-tdep.h (I387_NUM_YMM_REGS): New.
4997 (I387_YMM0H_REGNUM): Likewise.
4998 (I387_YMMENDH_REGNUM): Likewise.
4999 (i387_supply_xsave): Likewise.
5000 (i387_collect_xsave): Likewise.
5001
5002 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5003
5004 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5005 <sys/uio.h> and "i386-xstate.h".
5006 (PTRACE_GETREGSET): New.
5007 (PTRACE_SETREGSET): Likewise.
5008 (fetch_xstateregs): Likewise.
5009 (store_xstateregs): Likewise.
5010 (GETXSTATEREGS_SUPPLIES): Likewise.
5011 (regmap): Include 8 upper YMM registers.
5012 (i386_linux_fetch_inferior_registers): Support XSAVE extended
5013 state.
5014 (i386_linux_store_inferior_registers): Likewise.
5015 (i386_linux_read_description): Check and enable AVX target
5016 descriptions.
5017
5018 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
5019 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
5020 (i386_linux_regset_sections): Add ".reg-xstate".
5021 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
5022 (i386_linux_core_read_xcr0): New.
5023 (i386_linux_core_read_description): Check and enable AVX target
5024 description.
5025 (i386_linux_init_abi): Set xsave_xcr0_offset.
5026 (_initialize_i386_linux_tdep): Call
5027 initialize_tdesc_i386_avx_linux.
5028
5029 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
5030 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
5031 (i386_linux_core_read_xcr0): New.
5032 (tdesc_i386_avx_linux): Likewise.
5033 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
5034
5035 * i386-tdep.c: Include "i386-xstate.h" and
5036 "features/i386/i386-avx.c".
5037 (i386_ymm_names): New.
5038 (i386_ymmh_names): Likewise.
5039 (i386_ymmh_regnum_p): Likewise.
5040 (i386_ymm_regnum_p): Likewise.
5041 (i386_xmm_regnum_p): Likewise.
5042 (i386_register_name): Likewise.
5043 (i386_ymm_type): Likewise.
5044 (i386_supply_xstateregset): Likewise.
5045 (i386_collect_xstateregset): Likewise.
5046 (i386_sse_regnum_p): Removed.
5047 (i386_pseudo_register_name): Support pseudo YMM registers.
5048 (i386_pseudo_register_type): Likewise.
5049 (i386_pseudo_register_read): Likewise.
5050 (i386_pseudo_register_write): Likewise.
5051 (i386_dbx_reg_to_regnum): Return %ymmN register number for
5052 %xmmN if AVX is available.
5053 (i386_regset_from_core_section): Support .reg-xstate section.
5054 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
5055 (i386_process_record): Replace i386_sse_regnum_p with
5056 i386_xmm_regnum_p.
5057 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
5058 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
5059 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
5060 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
5061 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
5062 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
5063 Set ymm0_regnum.
5064 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
5065
5066 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
5067 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
5068 i386_ymm_type.
5069 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
5070 (I386_AVX_NUM_REGS): New.
5071 (i386_xmm_regnum_p): Likewise.
5072 (i386_ymm_regnum_p): Likewise.
5073 (i386_ymmh_regnum_p): Likewise.
5074
5075 * common/i386-xstate.h: New.
5076
5077 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5078
5079 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
5080
5081 * features/Makefile (WHICH): Add i386/i386-avx,
5082 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
5083 (i386/i386-avx-expedite): New.
5084 (i386/i386-avx-linux-expedite): Likewise.
5085 (i386/x86-64-avx-expedite):Likewise.
5086 (i386/x86-64-avx-linux-expedite): Likewise.
5087 ($(outdir)/i386/i386-avx.dat): New dependency.
5088 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
5089 ($(outdir)/i386/x86-avx-64.dat): Likewise.
5090 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
5091
5092 * features/i386/32bit-avx.xml: New.
5093 * features/i386/64bit-avx.xml: Likewise.
5094 * features/i386/i386-avx-linux.c: Likewise.
5095 * features/i386/i386-avx-linux.xml: Likewise.
5096 * features/i386/i386-avx.c: Likewise.
5097 * features/i386/i386-avx.xml: Likewise.
5098 * features/i386/x86-64-avx-linux.c: Likewise.
5099 * features/i386/x86-64-avx-linux.xml: Likewise.
5100 * features/i386/x86-64-avx.c: Likewise.
5101 * features/i386/x86-64-avx.xml: Likewise.
5102 * regformats/i386/i386-avx-linux.dat: Likewise.
5103 * regformats/i386/i386-avx.dat: Likewise.
5104 * regformats/i386/x86-64-avx-linux.dat: Likewise.
5105 * regformats/i386/x86-64-avx.dat: Likewise.
5106
5107 2010-04-07 Doug Evans <dje@google.com>
5108
5109 * top.c (source_file_name): Make const char *.
5110 * top.h (source_file_name): Update.
5111 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
5112 const char *.
5113 (script_from_file): Change `file' arg to const char *.
5114 * cli/cli-script.h (script_from_file): Update.
5115
5116 2010-04-06 Doug Evans <dje@google.com>
5117
5118 * cli/cli-cmds.c (source_command): Run cleanups.
5119
5120 2010-04-06 Stan Shebs <stan@codesourcery.com>
5121
5122 * defs.h (char_ptr): Move typedef here from...
5123 * ada-lang.c (char_ptr): Remove.
5124 * charset.c (char_ptr): Remove.
5125 * tracepoint.h (struct uploaded_string): Remove.
5126 (struct uploaded_tp): Use vectors for string arrays.
5127 * tracepoint.c (trace_save): Use vectors of actions.
5128 (parse_tracepoint_definition): Ditto.
5129 (get_uploaded_tp): Clear vectors.
5130 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
5131 (next_cmd): Change to an int.
5132 (read_next_cmd): Use vector of command strings.
5133
5134 2010-04-06 Doug Evans <dje@google.com>
5135
5136 * top.h (source_script, cd_command): Delete.
5137 * main.c: #include "cli/cli-cmds.h"
5138
5139 2010-04-06 Kevin Buettner <kevinb@redhat.com>
5140
5141 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
5142 type in bytes, not bits.
5143
5144 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5145
5146 * stabsread.c (define_symbol): Add support for char
5147 and string constants.
5148
5149 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5150
5151 Remove remaining "%ll" uses.
5152 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
5153 hex_string call.
5154 * rs6000-nat.c (rs6000_ptrace64): Idem.
5155 * solib-pa64.c (pa64_current_sos): Idem.
5156 * solib-spu.c (spu_current_sos): Idem.
5157 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
5158 plongest call.
5159 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
5160 phex (VAR, 8) call.
5161 * sh64-tdep.c (sh64_show_media_regs): Idem.
5162
5163 2010-04-05 Stan Shebs <stan@codesourcery.com>
5164
5165 * tracepoint.c: Include gdbcore.h.
5166 (tfile_xfer_partial): Return partial results, also try reading
5167 from executable.
5168 (tfile_has_all_memory): New function.
5169 (init_tfile_ops): Use it.
5170
5171 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
5172
5173 PR gdb/10736:
5174 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
5175 the changes in data-directory.
5176 (init_sysinfo): Reload the syscall XML file if the data-directory
5177 has changed.
5178
5179 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5180
5181 Code cleanup.
5182 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
5183
5184 2010-04-04 Stan Shebs <stan@codesourcery.com>
5185 Nathan Sidwell <nathan@codesourcery.com>
5186
5187 * breakpoint.c (breakpoint_1): Add filter argument, return number of
5188 breakpoints printed.
5189 (is_hardware_watchpoint): Make argument const.
5190 (is_watchpoint): Ditto.
5191 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
5192 use it everywhere.
5193 (breakpoints_info): Pass NULL to breakpoint_1.
5194 (maintenance_info_breakpoints): Ditto.
5195 (watchpoints_info): New function.
5196 (tracepoints_info): Use breakpoint_1 filter.
5197 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
5198 (_initialize_breakpoint): Make "info watchpoints" its own command.
5199 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
5200 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
5201
5202 2010-04-04 Stan Shebs <stan@codesourcery.com>
5203
5204 * tracepoint.c (tfile_fetch_registers): Add fallback case.
5205
5206 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5207
5208 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
5209 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
5210
5211 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5212
5213 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
5214 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
5215
5216 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5217
5218 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
5219 code form.
5220
5221 2010-04-02 Hui Zhu <teawater@gmail.com>
5222
5223 * i386-tdep.c (OT_DQUAD): New enum.
5224 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
5225 SSE3, SSSE3 and SSE4.
5226
5227 2010-04-02 Hui Zhu <teawater@gmail.com>
5228
5229 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
5230 "*addr = 0".
5231
5232 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5233
5234 * tracepoint.c (trace_dump_actions): New, factored out from
5235 trace_dump_command, and adjusted to recurse into while-stepping's
5236 action list.
5237 (trace_dump_command): Use it.
5238
5239 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5240
5241 * breakpoint.h (struct counted_command_line): Moved definition to
5242 breakpoint.c, and forward declare.
5243 (breakpoint_commands): Declare.
5244 * breakpoint.c (struct counted_command_line): Moved here.
5245 (breakpoint_commands): New.
5246 * tracepoint.c (encode_actions): Use breakpoint_commands.
5247 * remote.c (remote_download_tracepoint): Ditto.
5248
5249 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5250
5251 * remote.c (remote_parse_stop_reply): Use hex_string instead
5252 of phex_nz for error.
5253
5254 2010-04-01 Stan Shebs <stan@codesourcery.com>
5255 Nathan Sidwell <nathan@codesourcery.com>
5256
5257 * tracepoint.h (enum actionline_type): Remove.
5258 (validate_actionline): Change return to void.
5259 * tracepoint.c (report_agent_reqs_errors): New function.
5260 (validate_actionline): Call it, change return to void, report errors
5261 more consistently.
5262 (collect_symbol): Call report_agent_reqs_errors.
5263 (encode_actions_1): Ditto.
5264 (encode_actions): Don't expect a result from validate_actionline.
5265
5266 2010-04-01 Stan Shebs <stan@codesourcery.com>
5267
5268 * tracepoint.c (trace_start_command): Confirm if trace is running.
5269 (trace_stop_command): Error if trace not running.
5270
5271 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5272
5273 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
5274 (AMD64_NUM_LOWER_BYTE_REGS): New.
5275 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
5276 (amd64_pseudo_register_write): Likewise.
5277 (amd64_init_abi): Set num_byte_regs to 20.
5278
5279 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5280
5281 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
5282 (prev_breakpoint_count): New.
5283 (set_breakpoint_count): Adjust.
5284 (rbreak_start_breakpoint_count): New.
5285 (start_rbreak_breakpoints): Adjust.
5286 (end_rbreak_breakpoints): Adjust.
5287 (struct commands_info) <arg>: New field.
5288 (do_map_commands_command): Tweak output to include breakpoint spec
5289 range.
5290 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
5291 ARG was empty on entry. Set INFO's arg.
5292 (create_breakpoint): Adjust.
5293
5294 * NEWS: Clarify `commands' changes.
5295
5296 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5297
5298 * tracepoint.c: Include stack.h.
5299 (struct add_local_symbols_data): New.
5300 (do_collect_symbol): New.
5301 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
5302 iterate_over_block_local_vars.
5303 * stack.c (print_block_frame_locals): Rewrite as ...
5304 (iterate_over_block_locals): ... this. Take a callback function
5305 pointer and generic data pointer, and call that instead of
5306 print_variable_and_value.
5307 (struct print_variable_and_value_data): New.
5308 (do_print_variable_and_value): New.
5309 (iterate_over_block_local_vars): New, abstracted out from
5310 print_frame_local_vars.
5311 (print_frame_local_vars): Rewrite using
5312 iterate_over_block_local_vars.
5313 (iterate_over_block_arg_vars): New, abstracted out from
5314 print_frame_arg_vars.
5315 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
5316 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
5317 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
5318
5319 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
5320
5321 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
5322 instructions. Use the PC+4 if the base of the TBB or TBH is the
5323 PC register.
5324
5325 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5326
5327 Fix crash on reading wrong function declaration DWARF.
5328 * dwarf2read.c (read_subroutine_type): New variable void_type.
5329 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
5330 more close to their use.
5331
5332 2010-03-31 Stan Shebs <stan@codesourcery.com>
5333
5334 * breakpoint.c (tracepoint_save_command): Include variables,
5335 conditionals, tracepoint types, and default-collect.
5336 * tracepoint.c (save_trace_state_variables): New function.
5337 * tracepoint.h (save_trace_state_variables): Declare it.
5338
5339 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
5340
5341 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
5342
5343 2010-03-30 Keith Seitz <keiths@redhat.com>
5344
5345 * c-typeprint.c (c_type_print_args): Don't print "void"
5346 for java, regardless of whether it is TYPE_PROTOTYPED.
5347 Use the passed-in language instead of current_language.
5348 (c_type_print_varspec_suffix): Use current_language instead
5349 of assuming language_c.
5350 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
5351 any return type specifier from the physname.
5352
5353 2010-03-30 Pedro Alves <pedro@codesourcery.com>
5354
5355 * tui/tui-interp.c (tui_is_toplevel): New.
5356 (tui_init): Set it.
5357 (tui_allowed_p): New.
5358 * tui/tui.c (tui_enable): Check if the TUI is allowed before
5359 enabling it.
5360 * tui/tui.h (tui_allowed_p): Declare.
5361
5362 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
5363
5364 * serial.h: Include winsock2.h before windows.h.
5365
5366 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
5367
5368 * NEWS: Mention xmlRegisters= in qSupported packet.
5369
5370 * i386-tdep.c: Include "remote.h".
5371 (_initialize_i386_tdep): Call register_remote_support_xml.
5372
5373 * remote.c (remote_support_xml): New.
5374 (register_remote_support_xml): Likewise.
5375 (remote_query_supported_append): Likewise.
5376 (remote_query_supported): Support remote_support_xml.
5377
5378 * remote.h (register_remote_support_xml): New.
5379
5380 2010-03-29 Stan Shebs <stan@codesourcery.com>
5381
5382 * tracepoint.c (trace_find_line_command): Remove dead code.
5383
5384 * tracepoint.h (struct uploaded_string): New struct.
5385 (struct uploaded_tp): New fields for source strings.
5386 * breakpoint.c (this_utp, next_cmd): New globals.
5387 (read_uploaded_action): New function.
5388 (create_tracepoint_from_upload): Fill in more parts
5389 of a tracepoint.
5390 * tracepoint.c (encode_source_string): New function.
5391 (trace_save): Write out source strings, fix error checks.
5392 (parse_tracepoint_definition): Add source string parsing.
5393 * remote.c (PACKET_TracepointSource): New packet type.
5394 (remote_download_command_source): New function.
5395 (remote_download_tracepoint): Download source pieces also.
5396 (_initialize_remote): Add packet config command.
5397
5398 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
5399 expression handler.
5400
5401 * tracepoint.c (start_tracing): Check tracepoints before sending
5402 commands to target, don't start if all tracepoints disabled.
5403
5404 2010-03-28 Pedro Alves <pedro@codesourcery.com>
5405
5406 * cli/cli-script.c (process_next_line): Handle 'stepping'.
5407
5408 2010-03-26 Stan Shebs <stan@codesourcery.com>
5409
5410 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
5411
5412 2010-03-26 Tom Tromey <tromey@redhat.com>
5413
5414 * breakpoint.c (commands_command_1): Duplicate 'arg'.
5415
5416 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5417
5418 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
5419 (skip_prologue_sal): Remove local definition.
5420 (resolve_sal_pc): Remove now unnecessary code.
5421 * linespec.c (minsym_found): Call skip_prologue_sal.
5422 * symtab.c (find_function_start_pc): Remove.
5423 (find_function_start_sal): Extract prologue skipping into ...
5424 (skip_prologue_sal): ... this new function. Handle code both
5425 with and without debug info. Respect SAL's explicit_pc and
5426 explicit_line flags. Inline old find_function_start_pc.
5427 * symtab.h (find_function_start_pc): Remove.
5428 (skip_prologue_sal): Add prototype.
5429
5430 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5431
5432 * dwarf2read.c (read_func_scope): Also scan specification DIEs
5433 for DW_TAG_imported_module children.
5434
5435 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5436
5437 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
5438 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
5439 * completer.c (add_struct_fields): Fix inverted logic.
5440
5441 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5442
5443 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
5444
5445 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5446
5447 * tracepoint.c (current_trace_status): Don't make sure error_desc
5448 is non-NULL here.
5449 (parse_trace_status): Release a previous error_desc string, and
5450 set it to NULL by default. If stop reason is tracepoint_error,
5451 make sure error_desc is not left NULL.
5452
5453 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5454
5455 * tracepoint.c (trace_save): Remove X from tracepoint error
5456 description.
5457
5458 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5459
5460 * tracepoint.c (parse_trace_status): Don't allow plain strings in
5461 the terror description. Don't expect an X prefix.
5462
5463 2010-03-25 Stan Shebs <stan@codesourcery.com>
5464
5465 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
5466 (struct trace_status): New field error_desc.
5467 * tracepoint.c (stop_reason_names): Add terror.
5468 (current_trace_status): Ensure non-NULL error description.
5469 (trace_status_command): Add error report.
5470 (trace_status_mi): Ditto.
5471 (trace_save): Add special case for error description.
5472 (parse_trace_status): Add case for errors.
5473
5474 2010-03-25 Keith Seitz <keiths@redhat.com>
5475
5476 * dwarf2read.c (read_subroutine_type): If the compilation unit
5477 language is Java, mark any formal parameter named "this" as
5478 artificial (GCC/43521).
5479 (dwarf2_name): Add special handling for Java constructors.
5480
5481 2010-03-25 Tom Tromey <tromey@redhat.com>
5482
5483 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
5484 * infrun.c (handle_inferior_event): Change initialization of
5485 stop_stack_dummy.
5486 (handle_inferior_event): Change assignment to stop_stack_dummy.
5487 (normal_stop): Update use of stop_stack_dummy.
5488 (struct inferior_status) <stop_stack_dummy>: Change type.
5489 * inferior.h (stop_stack_dummy): Update.
5490 * infcmd.c (stop_stack_dummy): Change type.
5491 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
5492 function.
5493 (call_function_by_hand): Call set_std_terminate_breakpoint.
5494 Rewrite std::terminate handling.
5495 * breakpoint.h (enum bptype) <bp_std_terminate,
5496 bp_std_terminate_master>: New.
5497 (enum stop_stack_kind): New.
5498 (struct bpstat_what) <call_dummy>: Change type.
5499 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
5500 Declare.
5501 * breakpoint.c (create_std_terminate_master_breakpoint): New
5502 function.
5503 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
5504 Call create_std_terminate_master_breakpoint.
5505 (print_it_typical): Handle new breakpoint kinds.
5506 (bpstat_stop_status): Handle bp_std_terminate_master.
5507 (bpstat_what): Correctly set call_dummy field. Handle
5508 bp_std_terminate_master and bp_std_terminate.
5509 (print_one_breakpoint_location): Update.
5510 (allocate_bp_location): Update.
5511 (set_std_terminate_breakpoint): New function.
5512 (delete_std_terminate_breakpoint): Likewise.
5513 (create_thread_event_breakpoint): Update.
5514 (delete_command): Update.
5515 (breakpoint_re_set_one): Update.
5516 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
5517
5518 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5519
5520 * symfile.c (build_section_addr_info_from_bfd): New.
5521 (build_section_addr_info_from_objfile): Base it on
5522 build_section_addr_info_from_bfd.
5523 (addrs_section_compar, addrs_section_sort): New.
5524 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
5525 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
5526 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
5527
5528 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
5529
5530 * elfread.c (find_separate_debug_file_by_buildid):
5531 Remove unused local variable.
5532
5533 2010-03-24 Tom Tromey <tromey@redhat.com>
5534
5535 PR breakpoints/9352:
5536 * NEWS: Mention changes to `commands' and `rbreak'.
5537 * symtab.c (do_end_rbreak_breakpoints): New function.
5538 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
5539 end_rbreak_breakpoints.
5540 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
5541 (set_breakpoint_count): Likewise. Clear last_was_multi.
5542 (multi_start, multi_end, last_was_multi): New globals.
5543 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
5544 functions.
5545 (struct commands_info): New
5546 (do_map_commands_command): New function.
5547 (commands_command_1): New function.
5548 (commands_command): Use it.
5549 (commands_from_control_command): Likewise.
5550 (do_delete_breakpoint): New function.
5551 (delete_command): Use it.
5552 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
5553 (do_map_disable_breakpoint): New function.
5554 (disable_command): Use it.
5555 (do_map_enable_breakpoint): New function.
5556 (enable_command): Use it.
5557 (enable_once_breakpoint): Add argument.
5558 (enable_once_command): Update.
5559 (enable_delete_breakpoint): Add argument.
5560 (enable_delete_command): Update.
5561 (break_command_really): Set last_was_multi when needed.
5562 (check_tracepoint_command): Fix formatting.
5563 (validate_commands_for_breakpoint): New function.
5564 (breakpoint_set_commands): Use it.
5565 (tracepoint_save_command): Update.
5566 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
5567 Declare.
5568
5569 2010-03-24 Tom Tromey <tromey@redhat.com>
5570
5571 * breakpoint.h (struct counted_command_line): New struct.
5572 (struct breakpoint) <commands>: Change type.
5573 (struct bpstats) <commands>: Change type.
5574 <commands_left>: New field.
5575 * breakpoint.c (alloc_counted_command_line): New function.
5576 (incref_counted_command_line): Likewise.
5577 (decref_counted_command_line): Likewise.
5578 (do_cleanup_counted_command_line): Likewise.
5579 (make_cleanup_decref_counted_command_line): Likewise.
5580 (breakpoint_set_commands): Use decref_counted_command_line and
5581 alloc_counted_command_line.
5582 (commands_command): Don't error if breakpoint commands are
5583 executing.
5584 (commands_from_control_command): Likewise.
5585 (bpstat_free): Update.
5586 (bpstat_copy): Likewise.
5587 (bpstat_clear_actions): Likewise.
5588 (bpstat_do_actions_1): Likewise.
5589 (bpstat_stop_status): Likewise.
5590 (print_one_breakpoint_location): Likewise.
5591 (delete_breakpoint): Likewise.
5592 (bpstat_alloc): Initialize new field.
5593 (tracepoint_save_command): Update.
5594 * tracepoint.c (encode_actions): Update.
5595 (trace_dump_command): Update.
5596
5597 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
5598
5599 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
5600 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
5601 (read_structure_type): For RealView, set TYPE_STUB on structures with
5602 no byte size and no children.
5603 (read_subroutine_type): Mark functions as prototyped by default.
5604 * symtab.c (producer_is_realview): New function.
5605 * symtab.h (expand_line_sal): Fix declaration formatting.
5606 (producer_is_realview): Declare.
5607
5608 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
5609
5610 * arm-tdep.c (skip_prologue_function): New function.
5611 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
5612 (thumb_analyze_prologue): Document return value. Recognize more
5613 Thumb instructions, skippable calls, and some Thumb-2 instructions.
5614 Add debug output.
5615 (arm_skip_prologue): Remove call dummy check. Check the prologue
5616 for non-GNU compilers.
5617 (arm_instruction_changes_pc): New function.
5618 (arm_analyze_prologue): New function, broken out from
5619 arm_scan_prologue. Recognize more ARM instructions and skippable
5620 calls. Update comments. Handle NULL cache. Return the address
5621 of the first unrecognized instruction. Do not skip past other
5622 instructions which change control flow. Add debug output.
5623 (arm_scan_prologue): Use arm_analyze_prologue.
5624 (ARM_PC_32): Delete.
5625 (shifted_reg_val): Simplify ARM_PC_32 check.
5626
5627 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5628
5629 * tracepoint.c (tvariables_info_1): Actually compute
5630 the number of rows in the result.
5631
5632 2010-03-24 Pedro Alves <pedro@codesourcery.com>
5633
5634 * remote.c (crc32): Constify `buf' parameter.
5635 (remote_verify_memory): New, abstracted out from...
5636 (compare_sections_command): ... this. Remove hardcoded target
5637 checks.
5638 (init_remote_ops): Install remote_verify_memory.
5639 * target.c (target_verify_memory): New.
5640 * target.h (struct target_ops) <to_verify_memory>: New field.
5641 (target_verify_memory): Declare.
5642
5643 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5644
5645 Implement -trace-save.
5646
5647 * mi-cmds.h (mi_cmds_trace_save): Declare.
5648 * mi-cmds.c (mi_cmds): Register -trace-save.
5649 * mi/mi-main.c (mi_cmd_trace_save): New.
5650 * remote.c (remote_save_trace_data): Take const parameter.
5651 * target.h (struct target_ops::to_save_trace_data): Take
5652 const parameter.
5653 * target.c (update_current_target): Adjust to the above.
5654 * tracepoint.c (trave_save): New, extracted from
5655 (trace_save_command): ...this.
5656 (tfile_trace_find): Remove message that is unnecessary now
5657 that 'tfind' reports found frame.
5658 * tracepoint.h (trace_save): Declare.
5659
5660 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5661
5662 Implement -trace-find.
5663
5664 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
5665 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
5666 * mi/mi-main.c (mi_cmd_trace_find): New.
5667 * target.h (struct target_ops): Document to_trace_find.
5668 * tracepoint.h (tfind_1): Declare.
5669 * tracepoint.c (finish_tfind_command): Rename to...
5670 (tfind_1): ...this.
5671 * remote.c (remote_trace_find): Return -1 if target say
5672 there's no frame. Improve error diagnostics.
5673
5674 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5675
5676 -trace-define-variable and -trace-list-variables.
5677
5678 * tracepoint.c (create_trace_state_variable): Make
5679 private copy of name, as opposed to assuming the
5680 pointer lives forever.
5681 (tvariables_info_1): New.
5682 (tvariables_info): Use the above.
5683 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
5684 Declare.
5685 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
5686 and -trace-list-variables.
5687 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
5688 (mi_cmd_trace_list_variables): New.
5689 * mi/mi-main.c (mi_cmd_trace_define_variable)
5690 (mi_cmd_trace_list_variables): New.
5691
5692 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5693
5694 Implement -break-passcount.
5695
5696 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
5697 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
5698 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
5699
5700 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5701
5702 -trace-start/-trace-end/-trace-status.
5703
5704 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
5705 and -trace-stop.
5706 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
5707 (mi_cmd_trace_stop): Declare.
5708 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
5709 (mi_cmd_trace_stop): New.
5710 * tracepoint.c (start_tracing): New, extracted from...
5711 (trace_start_command): ...this.
5712 (trace_status_mi): New.
5713 * tracepoint.h (struct trace_status): Document
5714 stopping_tracepoint.
5715 (start_tracing, stop_tracing, trace_status_mi): Declare.
5716
5717 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5718
5719 Implement creating tracepoints with -break-insert.
5720
5721 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
5722 to mean that tracepoint should be created.
5723
5724 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5725
5726 * breakpoint.c (check_no_tracepoint_commands): Use
5727 current spelling of 'teval'.
5728
5729 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5730
5731 Unify actions and commands
5732
5733 * defs.h (read_command_lines, read_command_lines_1): New
5734 parameters validator and closure.
5735 * tracepoint.h (struct action_line): Remove.
5736 * breakpoint.h (struct breakpoint): Remove the 'actions'
5737 field.
5738 * defs.h (enum command_control_type): New value
5739 while_stepping_control.
5740 (struct command_line): Add comments.
5741 * breakpoint.c (breakoint_is_tracepoint): New.
5742 (breakpoint_set_commands): For tracepoints,
5743 verify the commands are permissible.
5744 (check_tracepoint_commands): New.
5745 (commands_command): Require that each new line is validated using
5746 check_tracepoint_command, if we set commands for a tracepoint.
5747 (create_tracepoint_from_upload): Likewise.
5748 (print_one_breakpoint_location): Remove the code to print
5749 actions specifically.
5750 (tracepoint_save_command): Relay to print_command_lines.
5751 * cli/cli-script.c (process_next_line): New parameters validator
5752 and closure. Handle 'while-stepping'. Call validator if not null.
5753 (read_command_lines, read_command_lines1): Likewise.
5754 (recurse_read_control_structure): New parameters validator and
5755 closure. Handle while_stepping_control.
5756 (print_command_lines): Handle while-stepping.
5757 (get_command_line, define_command, document_command): Adjust.
5758 * remote.c (remote_download_tracepoint): Adjust.
5759 * tracepoint.c (make_cleanup_free_actions, read_actions)
5760 (free_actions, do_free_actions_cleanup): Remove.
5761 (trace_actions_command): Use read_command_lines.
5762 (validate_actionline): Use error in one place.
5763 (encode_actions_1): New, extracted from...
5764 (encode_actions): ...this. Also use cleanups for exception
5765 safety.
5766 (trace_dump_command): Adjust.
5767 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
5768 it's tracepoint.
5769
5770 2010-03-23 Mike Frysinger <vapier@gentoo.org>
5771
5772 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
5773
5774 2010-03-22 Stan Shebs <stan@codesourcery.com>
5775
5776 * value.c (value_static_field): Be lazy about the field's value.
5777
5778 2010-03-22 Reid Kleckner <reid@kleckner.net>
5779
5780 PR gdb/11094
5781 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
5782 bp_jit_event.
5783 (disable_breakpoints_in_shlibs): Likewise.
5784
5785 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
5786
5787 * dwarf2read.c (partial_die_parent_scope): Work around buggy
5788 GCC 4.1 debug info generation (GCC PR c++/28460).
5789 (determine_prefix): Likewise.
5790
5791 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
5792
5793 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
5794 get_current_arch.
5795 * tui/tui-layout.c (extract_display_start_addr): Likewise.
5796
5797 2010-03-19 Stan Shebs <stan@codesourcery.com>
5798
5799 * ax-gdb.c (gen_fetch): Handle bool.
5800 (gen_usual_unary): Ditto.
5801 (gen_cast): Ditto.
5802 (gen_equal): New function.
5803 (gen_less): New function.
5804 (gen_expr_binop_rest): Call them, also return integer type from
5805 logical operations.
5806 (gen_expr): Ditto.
5807
5808 2010-03-19 Tom Tromey <tromey@redhat.com>
5809
5810 * jv-lang.c (jv_dynamics_objfile_data_key)
5811 (jv_type_objfile_data_key): New globals.
5812 (class_symtab): Move earlier.
5813 (jv_per_objfile_free): New function.
5814 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
5815 parameter.
5816 Remove ancient #if 1.
5817 (add_class_symbol): Remove redundant declaration.
5818 (java_lookup_class): Use alloc_type, not alloc_type_arch.
5819 (java_link_class_type): Mark as static. Update.
5820 (jv_clear_object_type): New function.
5821 (set_java_object_type): Likewise.
5822 (get_java_object_type): Use set_java_object_type.
5823 (is_object_type): Likewise.
5824 (_initialize_java_language): Register new objfile keys.
5825 (get_java_class_symtab): Add 'gdbarch' parameter.
5826 (add_class_symtab_symbol): Update.
5827 (type_from_class): Update.
5828
5829 2010-03-19 Stan Shebs <stan@codesourcery.com>
5830
5831 * ax-general.c (ax_const_l): Fix a sizing bug.
5832
5833 2010-03-18 Joel Brobecker <brobecker@adacore.com>
5834
5835 GDB 7.1 released.
5836
5837 2010-03-18 Stan Shebs <stan@codesourcery.com>
5838 Pedro Alves <pedro@codesourcery.com>
5839
5840 * target.h (struct target_ops): New method
5841 to_set_circular_trace_buffer.
5842 (target_set_circular_trace_buffer): New macro.
5843 * target.c (update_current_target): Add
5844 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
5845 default behavior.
5846 * remote.c (remote_set_circular_trace_buffer): New function.
5847 (init_remote_ops): Add it to vector.
5848 * tracepoint.h (struct trace_status): New field traceframes_created,
5849 change buffer_size and buffer_free to int.
5850 * tracepoint.c (circular_trace_buffer): New global.
5851 (start_tracing): Send values of disconnected tracing and circular
5852 trace buffer settings.
5853 (set_circular_trace_buffer): New function.
5854 (parse_trace_state): Handle total space and frames created.
5855 (trace_status_command): Display total space and total frames
5856 created.
5857 (trace_save): Write out new status values.
5858 (parse_trace_status): Set traceframe_count, traceframes_created,
5859 buffer_free and buffer_size to -1 by default.
5860 (_initialize_tracepoint): New setshow for circular-trace-buffer.
5861 * NEWS: Mention the circular trace buffer option.
5862
5863 2010-03-18 Tom Tromey <tromey@redhat.com>
5864
5865 * infcmd.c (finish_command_continuation): Wrap print_return_value
5866 in TRY_CATCH.
5867
5868 2010-03-18 Joel Brobecker <brobecker@adacore.com>
5869
5870 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
5871 DIE has a name before creating the associated partial symbol.
5872 (read_func_scope): Emit a complaint if the subprogram does not
5873 have a name or when we can't extract the subprogram PC bounds.
5874
5875 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
5876
5877 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
5878 instead of selected frame architecture.
5879
5880 2010-03-18 Pedro Alves <pedro@codesourcery.com>
5881
5882 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
5883 a valid selected thread, and that it is not running.
5884 (advance_command): Ditto.
5885 (finish_command): Ditto.
5886
5887 2010-03-17 Stan Shebs <stan@codesourcery.com>
5888
5889 * ax-gdb.c (require_rvalue): Disallow non-scalars.
5890
5891 * infcall.c: Include tracepoint.h.
5892 (call_function_by_hand): Disallow calls in tfind mode.
5893 * infcmd.c: Include tracepoint.h.
5894 (ensure_not_tfind_mode): New function.
5895 (continue_1): Call it.
5896 (step_1) Ditto.
5897 (jump_command): Ditto.
5898 (signal_command): Ditto.
5899 (advance_command): Ditto.
5900 (until_command): Ditto.
5901 (finish_command): Ditto.
5902 * tracepoint.h (disconnect_or_stop_tracing): Declare.
5903
5904 * ax-gdb.h (struct axs_value): New field optimized_out.
5905 (gen_trace_for_var): Add gdbarch argument.
5906 * ax-gdb.c (gen_trace_static_fields): New function.
5907 (gen_traced_pop): Call it, add gdbarch argument.
5908 (gen_trace_for_expr): Update call to it.
5909 (gen_trace_for_var): Ditto, and report optimized-out variables.
5910 (gen_struct_ref_recursive): Check for optimized-out value.
5911 (gen_struct_elt_for_reference): Ditto.
5912 (gen_static_field): Pass gdbarch instead of expression, assume
5913 optimization if field not found.
5914 (gen_var_ref): Set the optimized_out flag.
5915 (gen_expr): Error on optimized-out variable.
5916 * tracepoint.c (collect_symbol): Handle struct-valued vars as
5917 expressions, skip optimized-out variables with computed locations.
5918 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
5919 erroring out if location expression missing.
5920 (loclist_tracepoint_var_ref): Don't error out here.
5921
5922 2010-03-17 Tom Tromey <tromey@redhat.com>
5923
5924 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
5925 DWARF data is available.
5926
5927 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
5928
5929 * symfile.c (generic_load): Reset breakpoints after loading.
5930
5931 2010-03-17 Tom Tromey <tromey@redhat.com>
5932
5933 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
5934
5935 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5936
5937 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
5938 create_breakpoint call, adjust the parameters.
5939
5940 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5941 Chandru <chandru@in.ibm.com>
5942
5943 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
5944 * valarith.c (value_subscripted_rvalue): Suppress error if
5945 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
5946
5947 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
5948
5949 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
5950
5951 2010-03-16 Joel Brobecker <brobecker@adacore.com>
5952
5953 * ada-tasks.c (task_command_1): Check that the task ptid is valid
5954 before doing the associated thread switch.
5955
5956 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
5957
5958 * MAINTAINERS: Update my email address.
5959
5960 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
5961
5962 Simplify MI breakpoint setting.
5963
5964 * breakpoint.c (break_command_really): Make nonstatic and
5965 rename to...
5966 (create_breakpoint): ...this. Rename prior function by this name
5967 to...
5968 (create_breakpoint_sal): ...this.
5969 (create_breakpoints): Rename to...
5970 (create_breakpoints_sal): ...this.
5971 (set_breakpoint): Remove.
5972 * breakpoint.h: Adjust to above changes.
5973 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
5974
5975 2010-03-15 Stan Shebs <stan@codesourcery.com>
5976
5977 * ax-gdb.c: Include cp-support.h.
5978 (find_field): Remove.
5979 (gen_primitive_field): New function.
5980 (gen_struct_ref_recursive): New function.
5981 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
5982 of find_field.
5983 (gen_static_field): New function.
5984 (gen_struct_elt_for_reference): New.
5985 (gen_namespace_elt): New.
5986 (gen_maybe_namespace_elt): New.
5987 (gen_aggregate_elt_ref): New.
5988 (gen_expr): Add OP_SCOPE, display opcode name in error message.
5989
5990 2010-03-15 Tom Tromey <tromey@redhat.com>
5991
5992 * dwarf2read.c (die_needs_namespace): Also return 0 for
5993 DW_TAG_subprogram.
5994
5995 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
5996
5997 PR c++/7936:
5998 * cp-support.h: Added char *declaration element to using_direct
5999 data struct.
6000 (cp_add_using): Added char *declaration argument.
6001 (cp_add_using_directive): Ditto.
6002 (cp_lookup_symbol_imports): made extern.
6003 * cp-namespace.c: Updated with the above changes.
6004 * dwarf2read.c (read_import_statement): Ditto.
6005 (read_namespace): Ditto.
6006 (read_import_statement): Support import declarations.
6007 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
6008 declarations.
6009 Added support for 'declaration_only' search.
6010 (cp_lookup_symbol_namespace): Attempt to search for the name as
6011 is before consideration of imports.
6012 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
6013 search at every block level search.
6014 Now takes language argument.
6015 (lookup_symbol_aux): Updated.
6016
6017 2010-03-15 Tom Tromey <tromey@redhat.com>
6018
6019 * c-exp.y (name_not_typename): Add 'operator' clause.
6020
6021 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
6022
6023 * configure.ac: Exit if ${gdb_target_obs}" is not set.
6024 * configure: Regenerate.
6025
6026 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6027
6028 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
6029 and ".sdynbss". Update the comment.
6030
6031 2010-03-15 Jie Zhang <jie@codesourcery.com>
6032
6033 * MAINTAINERS: Update my email address.
6034
6035 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6036
6037 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
6038
6039 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6040
6041 * charset.c [USE_WIN32API]: Include <windows.h>.
6042 (_initialize_charset): Correct type of w32_host_default_charset.
6043
6044 2010-03-14 Pedro Alves <pedro@codesourcery.com>
6045
6046 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
6047
6048 2010-03-12 Tom Tromey <tromey@redhat.com>
6049
6050 PR c++/9708:
6051 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
6052 in a lexical block does not need a namespace.
6053 (new_symbol) <DW_TAG_variable>: Put extern variables on
6054 list_in_scope in all cases.
6055
6056 2010-03-12 Stan Shebs <stan@codesourcery.com>
6057
6058 * ax-gdb.c (gen_expr): Add shift expressions.
6059 (gen_expr_binop_rest): Ditto.
6060
6061 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
6062
6063 * buildsym.c (finish_block): Reset using_directives pointer
6064 after block initialization.
6065
6066 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
6067
6068 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
6069 * i386-tdep.c (i386_word_names): Likewise.
6070
6071 2010-03-12 Pedro Alves <pedro@codesourcery.com>
6072
6073 * target.c (memory_xfer_partial): Don't use the stack cache if
6074 inspecting trace frames.
6075 * tracepoint.c (finish_tfind_command): Invalidate the target
6076 dcache.
6077
6078 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6079
6080 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
6081 for the PIC displacement, print also the displacement value.
6082 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
6083
6084 2010-03-10 Kevin Buettner <kevinb@redhat.com>
6085
6086 * remote-mips.c (close_ports, mips_initialize_cleanups)
6087 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
6088 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
6089 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
6090 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
6091 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
6092 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
6093 comments describing each of these functions.
6094 (mips_enter_debug, mips_exit_debug, common_open)
6095 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
6096 blank line after the comment describing the function.
6097
6098 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6099
6100 * solib-svr4.c (svr4_exec_displacement): Return now success, new
6101 parameter displacementp. Update comment.
6102 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
6103 element exists. Return if svr4_exec_displacement was not successful.
6104 Update comment.
6105
6106 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6107 Daniel Jacobowitz <dan@codesourcery.com>
6108
6109 * solib-svr4.c (read_program_header): Support type == -1 to read
6110 all program headers.
6111 (read_program_headers_from_bfd): New function.
6112 (svr4_static_exec_displacement): Remove and move the comment ...
6113 (svr4_exec_displacement): ... here. Remove variable found. New
6114 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
6115 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
6116 targets using read_program_headers_from_bfd. Remove the call of
6117 svr4_static_exec_displacement.
6118
6119 2010-03-10 Tom Tromey <tromey@redhat.com>
6120
6121 * dwarf2read.c (struct pubnames_header): Remove.
6122 (_PUBNAMES_HEADER): Remove.
6123 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
6124 (struct aranges_header): Remove.
6125 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
6126 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
6127 (PUBNAMES_SECTION): Remove.
6128 (ARANGES_SECTION): Remove.
6129 (dwarf2_locate_sections): Don't handle pubnames or aranges.
6130 (dwarf2_build_psymtabs): Remove dead code.
6131 (dwarf2_build_psymtabs_easy): Remove.
6132
6133 2010-03-10 Tom Tromey <tromey@redhat.com>
6134
6135 * elfread.c (elf_symfile_read): Don't call
6136 dwarf2_build_frame_info.
6137 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
6138 (struct dwarf2_per_objfile) <objfile>: New field.
6139 (dwarf2_has_info): Now idempotent. Set objfile field.
6140 (dwarf2_read_section): Check and set readin field. Call
6141 posix_madvise.
6142 (dwarf2_build_psymtabs): Don't read all sections.
6143 (read_type_comp_unit_head): Read types section.
6144 (create_debug_types_hash_table): Likewise.
6145 (init_cu_die_reader): Add asserts.
6146 (process_type_comp_unit): Add assert.
6147 (dwarf2_build_psymtabs_hard): Read info section.
6148 (load_partial_comp_unit): Add assert.
6149 (create_all_comp_units): Read info section.
6150 (load_full_comp_unit): Likewise.
6151 (dwarf2_ranges_read): Read ranges section.
6152 (dwarf2_record_block_ranges): Add assert.
6153 (dwarf2_read_abbrevs): Read abbrev section.
6154 (read_indirect_string): Read str section.
6155 (dwarf_decode_line_header): Read line section.
6156 (read_signatured_type_at_offset): Read types section.
6157 (dwarf_decode_macros): Read macinfo section.
6158 (dwarf2_symbol_mark_computed): Read loc section.
6159 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
6160 dwarf2_build_frame_info.
6161 (dwarf2_build_frame_info): Unconditionally set
6162 dwarf2_frame_objfile_data on the objfile.
6163 * configure.ac: Check for posix_madvise.
6164 * config.in, configure: Rebuild.
6165
6166 2010-03-10 Tom Tromey <tromey@redhat.com>
6167
6168 * xcoffread.c (xcoff_start_psymtab): Update.
6169 (xcoff_end_psymtab): Update.
6170 * psymtab.c (allocate_psymtab): Remove dead code.
6171 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
6172 void*.
6173 * mdebugread.c (parse_partial_symbols): Update.
6174 (new_psymtab): Likewise.
6175 * dwarf2read.c (process_psymtab_comp_unit): Update.
6176 (psymtab_to_symtab_1): Update.
6177 * dbxread.c (start_psymtab): Update.
6178 (end_psymtab): Likewise.
6179
6180 2010-03-10 Tom Tromey <tromey@redhat.com>
6181
6182 * xcoffread.c: Include psymtab.h.
6183 (xcoff_sym_fns): Update.
6184 * symtab.h (struct partial_symbol): Remove.
6185 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
6186 (struct partial_symtab): Remove.
6187 (PSYMTAB_TO_SYMTAB): Remove.
6188 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
6189 (find_pc_sect_psymtab): Remove.
6190 (find_pc_sect_symtab_via_partial): Declare.
6191 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
6192 (find_main_psymtab): Remove.
6193 (find_main_filename): Declare.
6194 (fixup_psymbol_section): Remove.
6195 (fixup_section): Declare.
6196 * symtab.c: Include psymtab.h.
6197 (lookup_symtab): Use lookup_symtab method.
6198 (lookup_partial_symtab): Remove.
6199 (find_pc_sect_psymtab_closer): Remove.
6200 (find_pc_sect_psymtab): Remove.
6201 (find_pc_sect_symtab_via_partial): New function.
6202 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
6203 (fixup_section): No longer static.
6204 (fixup_psymbol_section): Remove.
6205 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
6206 (lookup_global_symbol_from_objfile): Likewise.
6207 (lookup_symbol_aux_psymtabs): Remove.
6208 (lookup_symbol_aux_quick): New function.
6209 (lookup_symbol_global): Use lookup_symbol_aux_quick.
6210 (lookup_partial_symbol): Remove.
6211 (basic_lookup_transparent_type_quick): New function.
6212 (basic_lookup_transparent_type): Use it.
6213 (find_main_psymtab): Remove.
6214 (find_main_filename): New function.
6215 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
6216 (find_line_symtab): Use expand_symtabs_with_filename method.
6217 (output_partial_symbol_filename): New function.
6218 (sources_info): Use map_partial_symbol_filenames.
6219 (struct search_symbols_data): New type.
6220 (search_symbols_file_matches): New function.
6221 (search_symbols_name_matches): Likewise.
6222 (search_symbols): Use expand_symtabs_matching method.
6223 (struct add_name_data): Rename from add_macro_name_data.
6224 (add_macro_name): Update.
6225 (add_partial_symbol_name): New function.
6226 (default_make_symbol_completion_list): Use
6227 map_partial_symbol_names.
6228 (struct add_partial_symbol_name): New type.
6229 (maybe_add_partial_symtab_filename): New function.
6230 (make_source_files_completion_list): Use
6231 map_partial_symbol_filenames.
6232 (expand_line_sal): Use expand_symtabs_with_filename method.
6233 * symmisc.c: Include psymtab.h.
6234 (print_objfile_statistics): Use print_stats method.
6235 (dump_objfile): Use dump method.
6236 (dump_psymtab, maintenance_print_psymbols)
6237 (maintenance_info_psymtabs, maintenance_check_symtabs)
6238 (extend_psymbol_list): Remove.
6239 * symfile.h (struct quick_symbol_functions): New struct.
6240 (struct sym_fns) <qf>: New field.
6241 (sort_pst_symbols): Remove.
6242 (increment_reading_symtab): Declare.
6243 * symfile.c: Include psymtab.h.
6244 (compare_psymbols, sort_pst_symbols): Remove.
6245 (psymtab_to_symtab): Remove.
6246 (increment_reading_symtab): New function.
6247 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
6248 method.
6249 (set_initial_language): Use find_main_filename.
6250 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
6251 (free_named_symtabs): Remove unused code.
6252 (start_psymtab_common, add_psymbol_to_bcache)
6253 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
6254 Remove.
6255 * stack.c: Include psymtab.h, symfile.h.
6256 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
6257 * source.h (psymtab_to_fullname): Don't declare.
6258 * source.c: Include psymtab.h.
6259 (select_source_symtab): Use find_last_source_symtab method.
6260 (forget_cached_source_info): Use forget_cached_source_info
6261 method.
6262 (find_and_open_source): No longer static.
6263 (psymtab_to_fullname): Remove.
6264 * somread.c: Include psymtab.h.
6265 (som_sym_fns): Update.
6266 * psympriv.h: New file.
6267 * psymtab.h: New file.
6268 * psymtab.c: New file.
6269 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
6270 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
6271 * objfiles.c: Include psymtab.h.
6272 (objfile_relocate1): Use relocate method.
6273 (objfile_has_partial_symbols): Use has_symbols method.
6274 * mipsread.c: Include psymtab.h.
6275 (ecoff_sym_fns): Update.
6276 * mi/mi-cmd-file.c: Include psymtab.h.
6277 (print_partial_file_name): New function.
6278 (mi_cmd_file_list_exec_source_files): Use
6279 map_partial_symbol_filenames.
6280 * mdebugread.c: Include psympriv.h.
6281 * machoread.c: Include psympriv.h.
6282 (macho_sym_fns): Update.
6283 * m2-exp.y (yylex): Use lookup_symtab.
6284 * elfread.c: Include psympriv.h.
6285 (elf_sym_fns): Update.
6286 * dwarf2read.c: Include psympriv.h.
6287 * dbxread.c: Include psympriv.h.
6288 (aout_sym_fns): Update.
6289 * cp-support.c: Include psymtab.h.
6290 (read_in_psymtabs): Remove.
6291 (make_symbol_overload_list_qualified): Use
6292 expand_symtabs_for_function method.
6293 * coffread.c: Include psympriv.h.
6294 (coff_sym_fns): Update.
6295 * blockframe.c: Include psymtab.h.
6296 (find_pc_partial_function): Use find_pc_sect_symtab method.
6297 * ada-lang.h (ada_update_initial_language): Update.
6298 * ada-lang.c: Include psymtab.h.
6299 (ada_update_initial_language): Remove 'main_pst' argument.
6300 (ada_lookup_partial_symbol): Remove.
6301 (struct ada_psym_data): New type.
6302 (ada_add_psyms): New function.
6303 (ada_add_non_local_symbols): Use map_ada_symtabs method.
6304 (struct add_partial_datum): New type.
6305 (ada_add_partial_symbol_completions): New function.
6306 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
6307 (ada_exception_support_info_sniffer): Update.
6308 * Makefile.in (SFILES): Add psymtab.c.
6309 (COMMON_OBS): Add psymtab.o.
6310 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
6311
6312 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6313
6314 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
6315
6316 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
6317
6318 PR C++/11236:
6319 * cp-namespace.c (cp_add_using): Deleted.
6320 (cp_add_using_directive): Use obstack allocations.
6321 Merged the function cp_add_using into this one.
6322 Added 'struct obstack *' argument.
6323 (cp_scan_for_anonymous_namespaces): Updated.
6324 * cp-support.h: Updated.
6325 * dwarf2read.c (read_import_statement): Updated.
6326 (read_namespace): Updated.
6327
6328 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6329
6330 * windows-nat.c (cygwin_conv_path): Remove old macro.
6331
6332 2010-03-10 Pedro Alves <pedro@codesourcery.com>
6333
6334 * breakpoint.c (condition_command): Handle watchpoint conditions.
6335 (is_hardware_watchpoint): Add comment.
6336 (is_watchpoint): New.
6337 (update_watchpoint): Don't reparse the watchpoint's condition
6338 unless necessary.
6339 (WP_IGNORE): New.
6340 (watchpoint_check): Use it.
6341 (bpstat_check_watchpoint): Handle it.
6342 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
6343 conditions in a frame where it makes sense.
6344 (watch_command_1): Store the innermost block of the condition
6345 expression.
6346 (delete_breakpoint): Delete the watchpoint condition expression.
6347 * breakpoint.h (struct bp_location) <cond>: Update comment.
6348 (struct breakpoint): New field `cond_exp_valid_block'.
6349
6350 2010-03-09 Joel Brobecker <brobecker@adacore.com>
6351
6352 Adjust handling of Ada DIEs after dwarf2_physname patch.
6353 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
6354
6355 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
6356 Pierre Muller <muller@ics.u-strasbg.fr>
6357
6358 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
6359 from/to posix/win32.
6360 (windows_make_so): Use non-Cygwin 1.7 specific function.
6361 (windows_create_inferior): Make sure that cygallargs points to
6362 original args in non Cygwin 1.7. case.
6363
6364 2010-03-09 Michael Snyder <msnyder@vmware.com>
6365
6366 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
6367 after target_read_memory to get host byte order.
6368 (i386_process_record): Ditto.
6369
6370 2010-03-09 Keith Seitz <keiths@redhat.com>
6371
6372 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
6373 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
6374 print out const or volatile qualifiers, too.
6375 (c_type_print_args): Add parameters show_artificial and language.
6376 Skip artificial parameters when requested.
6377 Use the appropriate language printer.
6378 (c_type_print_varspec): Tell c_type_print_args to skip artificial
6379 parameters and pass language_c.
6380 * dwarf2read.c (die_list): New file global.
6381 (struct partial_die_info): Update comments for name field.
6382 (pdi_needs_namespace): Renamed to ...
6383 (die_needs_namespace): ... this. Rewrite.
6384 (dwarf2_linkage_name): Remove.
6385 (add_partial_symbol): Do not predicate the call to
6386 partial_die_full_name based on pdi_needs_namespace.
6387 Remove call to cp_check_possible_namespace_symbols and associated
6388 outdated comments.
6389 (guess_structure_name): Do not inspect child subprogram DIEs.
6390 (dwarf2_fullname): Update comments.
6391 Use die_needs_namespace to assist in computing the name.
6392 (read_func_scope): Use dwarf2_name to get the DIE's name.
6393 Use dwarf2_physname to get the "linkage name" of the DIE.
6394 (dwarf2_add_member_field): Use dwarf2_physname instead of
6395 dwarf2_linkage_name.
6396 (read_structure_type): For structs and classes, set TYPE_NAME, too.
6397 (determine_class): Remove.
6398 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
6399 except Ada.
6400 (new_symbol): Unconditionally call dwarf2_name.
6401 Compute the "linkage name" using dwarf2_physname.
6402 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
6403 When determining to scan for anonymous C++ namespaces, ignore
6404 the linkage name.
6405 (dwarf2_physname): New function.
6406 (dwarf2_full_name): Move content to new function and call
6407 that.
6408 (dwarf2_compute_name): "New" function.
6409 (_initialize_dwarf2_read): Initialize die_list.
6410 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
6411 physname.
6412 (gnu_v3_print_method_ptr): Use the physname for virtual methods
6413 without a demangled name.
6414 Print out type information for non-virtual methods.
6415 * linespec.c (decode_line_1): Force ANY string using "::" (or
6416 "." for java) to use decode_compound, and clean up any stray quoting.
6417 If we found a file symtab, re-evaluate whether the remainder is_quoted.
6418 (decode_compound): Stop consuming at an open parenthesis.
6419 Keep template parameters.
6420 Keep any overload information.
6421 Keep keywords like "const".
6422 Remove paren_pointer.
6423 Move is_quoted check from set_flags to here.
6424 Remove #if 0 code from 2000. Ten years is long enough.
6425 (find_method): Before comparing symbol names, canonicalize the string
6426 from the user.
6427 If a specific overload is requested, find it. Otherwise throw an error.
6428 (find_method_overload_end): New function.
6429 (set_flags): Remove.
6430 (decode_compound): Assume that parentheses are matched.
6431 It's a lot easier.
6432 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
6433 to cplus_demangle.
6434 * linespec.c (decode_line_1): Keep important keywords like
6435 "const" and "volatile".
6436 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
6437 * typeprint.h (c_type_print_args): Add declaration.
6438 * ui-file.c (do_ui_file_obsavestring): New function.
6439 (ui_file_obsavestring): New function.
6440 * ui-file.h (ui_file_obsavestring): Add declaration.
6441 * valops.c (find_overload_match): Resolve the object to
6442 a non-pointer type.
6443 If the object is a data member, search the object for the member
6444 and return with staticp set.
6445 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
6446 Do not attempt to extract a function name from non-function types.
6447 If the extracted function name and the original name are the same,
6448 we don't have a C++ method.
6449
6450 From Jan Kratochvil <jan.kratochvil@redhat.com>:
6451 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
6452
6453 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
6454 and arguments from symbol lookups.
6455 * ax-gdb.c (gen_expr): Likewise.
6456 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
6457 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
6458 lookup_possible_namespace_symbol): Likewise.
6459 * cp-support.c (read_in_psymtabs): Likewise.
6460 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
6461 * language.h (la_lookup_symbol_nonlocal): Likewise.
6462 * scm-valprint.c (scm_inferior_print): Likewise.
6463 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
6464 * solib-svr.c (elf_lookup_lib): Likewise.
6465 * solib.c (show_auto_solib_add): Likewise.
6466 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
6467 * symmisc.c (maintenance_check_symtabs): Likewise.
6468 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
6469 lookup_symbol_aux_local, lookup_symbol_aux_block,
6470 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
6471 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
6472 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
6473 basic_lookup_transparent_type, find_main_psymtab,
6474 lookup_block_symbol): Likewise.
6475 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
6476 lookup_symbol_global, lookup_symbol_aux_block,
6477 lookup_symbol_partial_symbol, lookup_block_symbol,
6478 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
6479
6480 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
6481
6482 * python/python-internal.h: Include symtab.h.
6483
6484 2010-03-09 Joel Brobecker <brobecker@adacore.com>
6485 Pierre Muller <muller@ics.u-strasbg.fr>
6486
6487 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
6488 * p-valprint.c (pascal_val_print): Remove undeed block and fix
6489 indentation.
6490
6491 2010-03-08 Tom Tromey <tromey@redhat.com>
6492
6493 * breakpoint.c (breakpoint_1): Add "QUIT".
6494
6495 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
6496 Pedro Alves <pedro@codesourcery.com>
6497
6498 * solib.c (solib_find): Replace extension if
6499 solib_symbols_extension is set in the target gdbarch.
6500 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6501 solib_symbols_extension to "sym".
6502 * gdbarch.sh (solib_symbols_extension): New variable.
6503 (pstring): New function.
6504 * gdbarch.h, gdbarch.c: Regenerate.
6505
6506 2010-03-08 Tom Tromey <tromey@redhat.com>
6507
6508 PR cli/9591:
6509 * NEWS: Update.
6510 * utils.c: Include main.h.
6511 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
6512 (defaulted_query): Use default answer if `batch_flag'.
6513 * main.h (batch_flag): Declare.
6514 * main.c (batch_flag): New global.
6515 (captured_main): Remove 'batch'. Update.
6516
6517 2010-03-08 Kevin Buettner <kevinb@redhat.com>
6518
6519 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
6520 and Kevin Buettner:
6521
6522 * remote-mips.c (rockhopper_ops): New target_ops struct.
6523 (MON_ROCKHOPPER): New mips_monitor_type.
6524 (read_hex_value): New function.
6525 (mips_request): Send 8-byte values with a 'T' packet. Read the
6526 packet argument as a string and use read_hex_value to parse it.
6527 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
6528 (rockhopper_open): New function.
6529 (mips_wait): Read the PC, FP and SP fields as strings. Use
6530 read_hex_value to parse them and mips_set_register to commit them.
6531 (mips_set_register): New function.
6532 (mips_fetch_registers): Do not cast register value to "unsigned"
6533 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
6534 (mips_store_registers): Use a 'T' packet to set registers when
6535 using MON_ROCKHOPPER.
6536 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
6537 and expect the total to be printed before the entry address.
6538 (_initialize_remote_mips): Initialize and add rockhopper_ops.
6539
6540 2010-03-08 Kevin Buettner <kevinb@redhat.com>
6541
6542 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
6543 Change return value to int. Store value fetched in location
6544 addressed by `val'. Use function's return value as success
6545 or failure indicator. Adjust all callers.
6546
6547 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
6548
6549 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
6550
6551 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6552 Hui Zhu <teawater@gmail.com>
6553
6554 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
6555 tmp_to_stopped_data_address.
6556 (record_open): Reset tmp_to_stopped_by_watchpoint and
6557 tmp_to_stopped_data_address.
6558 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
6559 to_stopped_data_address.
6560
6561 2010-03-08 Hui Zhu <teawater@gmail.com>
6562
6563 * i386-tdep.c (i386_process_record): Initialize regnum.
6564
6565 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6566
6567 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
6568 Do not warn on ".gnu.liblist" and ".gnu.conflict".
6569
6570 2010-03-08 Joel Brobecker <brobecker@adacore.com>
6571
6572 Memory error when reading wrong core file.
6573 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
6574 errors while reading the inferior memory, and return zero if
6575 an exception was raised.
6576
6577 2010-03-07 Michael Snyder <msnyder@vmware.com>
6578
6579 * record.c (record_restore): Rename tmpu8 to rectype.
6580
6581 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
6582 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
6583
6584 (i386_record_push): Rename local tmpulongest to addr.
6585
6586 (i386_process_record): Rename local tmpulongest to addr.
6587
6588 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
6589 addr64.
6590
6591 Rename local variable tmpu8 to opcode8 and regnum.
6592
6593 2010-03-07 Joel Brobecker <brobecker@adacore.com>
6594
6595 * remote.c (remote_get_ada_task_ptid): New function.
6596 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
6597
6598 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
6599
6600 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
6601 block. Define helper macros to reduce ifdefs in code.
6602 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
6603 size. Call unadorned GetModuleFileNameEx rather than
6604 GetModuleFileNameEx*.
6605 (windows_make_so): Use __PMAX to denote maximum buffer size and
6606 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
6607 appropriate.
6608 (get_image_name): Use __PMAX to denote maximum buffer size.
6609 (handle_load_dll): Likewise.
6610 (windows_pid_to_exec_file): Likewise.
6611 (windows_create_inferior): Add many accommodations for older Cygwin and
6612 non-Cygwin.
6613 (bad_GetModuleFileNameExW): Control inclusion of this function based on
6614 __USEWIDE conditional.
6615 (bad_GetModuleFileNameExA): Likewise.
6616 (_initialize_loadable): Just use real function names without the dyn_
6617 part since they are defined earlier.
6618
6619 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
6620 Tom Tromey <tromey@redhat.com>
6621
6622 * utils.c (host_char_to_target): Add 'gdbarch' argument.
6623 (parse_escape): Likewise.
6624 * python/py-utils.c (unicode_to_target_string): Update.
6625 (unicode_to_target_python_string): Update.
6626 (target_string_to_unicode): Update.
6627 * printcmd.c (printf_command): Update.
6628 * p-exp.y (yylex): Update.
6629 * objc-exp.y (yylex): Update.
6630 * mi/mi-parse.c: Include charset.h.
6631 (mi_parse_escape): New function.
6632 (mi_parse_argv): Use it.
6633 * jv-exp.y (yylex): Update.
6634 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
6635 function.
6636 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
6637 * gdbarch.sh (auto_charset, auto_wide_charset): New.
6638 * gdbarch.c: Rebuild.
6639 * gdbarch.h: Rebuild.
6640 * defs.h (parse_escape): Update.
6641 * cli/cli-setshow.c: Include arch-utils.h.
6642 (do_setshow_command): Update.
6643 * cli/cli-cmds.c (echo_command): Update.
6644 * charset.h (target_charset, target_wide_charset): Update.
6645 * charset.c: Include arch-utils.h.
6646 (target_charset_name): Default to "auto".
6647 (target_wide_charset_name): Likewise.
6648 (show_target_charset_name): Handle "auto".
6649 (show_target_wide_charset_name): Likewise.
6650 (be_le_arch): New global.
6651 (set_be_le_names): Add 'gdbarch' argument.
6652 (validate): Likewise. Don't call set_be_le_names.
6653 (set_charset_sfunc, set_host_charset_sfunc)
6654 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
6655 Update.
6656 (target_charset): Add 'gdbarch' argument.
6657 (target_wide_charset): Likewise. Remove 'byte_order' argument.
6658 (auto_target_charset_name): New global.
6659 (default_auto_charset, default_auto_wide_charset): New functions.
6660 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
6661 for target charsets. Copy result of nl_langinfo. Use GetACP if
6662 USE_WIN32API.
6663 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
6664 remove 'byte_order' argument. Update.
6665 (classify_type): Likewise.
6666 (c_emit_char): Update.
6667 (c_printchar): Update.
6668 (c_printstr): Update.
6669 (c_get_string): Update.
6670 (evaluate_subexp_c): Update.
6671 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
6672 Declare.
6673 * python/python.c (gdbpy_target_charset): New function.
6674 (gdbpy_target_wide_charset): Likewise.
6675 (GdbMethods): Update.
6676 * NEWS: Update.
6677
6678 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
6679
6680 * symfile.c (build_section_addr_info_from_objfile): Do not mask
6681 off high address bits.
6682
6683 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
6684
6685 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
6686 address as UnsignedLongLong, not LongLong.
6687
6688 2010-03-05 Kevin Buettner <kevinb@redhat.com>
6689 Pedro Alves <pedro@codesourcery.com>
6690
6691 * remote-mips.c (gdbthread.h): Include.
6692 (remote_mips_ptid): Declare.
6693 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
6694 (common_open): Set inferior_ptid, add it as an inferior, and
6695 as a thread too. Delete FIXME comment regarding start_remote().
6696 (mips_close): Invoke generic_mourn_inferior().
6697 (mips_kill): Make sure that target_mourn_inferior is invoked.
6698 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
6699 it's now invoked from mips_close().
6700 (mips_load): Don't null out inferior_ptid. Don't call
6701 clear_symtab_users().
6702 (mips_thread_alive, mips_pid_to_str): New functions.
6703 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
6704 to_thread_alive and to_pid_to_str operations.
6705
6706 2010-03-04 Tom Tromey <tromey@redhat.com>
6707
6708 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
6709 in DWARF 3 and later.
6710 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
6711
6712 2010-03-04 Keith Seitz <keiths@redhat.com>
6713
6714 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
6715 If the filename portion of the linespec was quoted, recheck the
6716 remainder for additional quoting.
6717 (locate_first_half): Skip over completer chars, too.
6718
6719 2010-03-04 Tom Tromey <tromey@redhat.com>
6720
6721 * printcmd.c (printf_command): Pass dummy argument to
6722 printf_filtered.
6723
6724 2010-03-04 Doug Evans <dje@google.com>
6725
6726 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
6727 unwound_fp.
6728
6729 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
6730
6731 2010-03-04 Pedro Alves <pedro@codesourcery.com>
6732
6733 * breakpoint.c (update_watchpoint): Create a sentinel location if
6734 the software watchpoint isn't watching any memory.
6735 (breakpoint_address_bits): Skip dummy software watchpoint locations.
6736
6737 2010-03-04 Pedro Alves <pedro@codesourcery.com>
6738
6739 * utils.c (fputs_maybe_filtered): Check if there's already a top
6740 level interpreter before dereferencing it. If there isn't one,
6741 don't paginate either.
6742
6743 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6744
6745 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
6746 the state right when single stepping.
6747 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
6748 Get the next PC along with the instruction state.
6749 (thumb_get_next_pc): Remove.
6750 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
6751
6752 2010-03-04 Hui Zhu <teawater@gmail.com>
6753
6754 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
6755
6756 2010-03-03 Pedro Alves <pedro@codesourcery.com>
6757
6758 * utils.c (fputs_maybe_filtered): Always disable pagination if the
6759 top level interpreter is MI.
6760
6761 2010-03-03 Stan Shebs <stan@codesourcery.com>
6762
6763 * remote.c (remote_download_tracepoint): Iterate over locations.
6764 * tracepoint.c (validate_actionline): Ditto.
6765 (encode_actions): Add location argument.
6766 (trace_dump_command): Check all locations to see if stepping
6767 frame.
6768
6769 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
6770 Eli Zaretskii <eliz@gnu.org>
6771
6772 * NEWS: Add X86 general purpose registers section.
6773
6774 2010-03-03 Tom Tromey <tromey@redhat.com>
6775
6776 PR mi/11098:
6777 * varobj.c (install_new_value): Handle case where new print_value
6778 is NULL.
6779
6780 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
6781
6782 PR gdb/11345:
6783 * printcmd.c (printf_command): Print end of format string using
6784 printf_filtered.
6785
6786 2010-03-02 Tom Tromey <tromey@redhat.com>
6787
6788 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
6789 * defs.h (read_command_lines_1): Add missing 'void'.
6790 * cli/cli-script.c (recurse_read_control_structure): Add missing
6791 'void'.
6792 (read_next_line): Likewise.
6793 (read_command_lines_1): Likewise.
6794
6795 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6796
6797 * spu-tdep.c (spu_analyze_prologue): Track instruction to
6798 store backchain as part of prologue.
6799
6800 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
6801
6802 * progspace.c (update_address_spaces): Update inferior address spaces
6803 also.
6804
6805 2010-03-02 Doug Evans <dje@google.com>
6806
6807 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
6808 lowpc,highpc args to addrmap_set_empty.
6809
6810 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
6811
6812 * amd64-tdep.c (amd64_byte_names): New.
6813 (amd64_word_names): Likewise.
6814 (amd64_dword_names): Likewise.
6815 (amd64_pseudo_register_name): Likewise.
6816 (amd64_pseudo_register_read): Likewise.
6817 (amd64_pseudo_register_write): Likewise.
6818 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
6819 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
6820 set_gdbarch_pseudo_register_write and
6821 set_tdesc_pseudo_register_name. Don't call
6822 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
6823
6824 * i386-tdep.c (i386_num_mmx_regs): Removed.
6825 (i386_num_pseudo_regs): Likewise.
6826 (i386_byte_names): New.
6827 (i386_word_names): Likewise.
6828 (i386_byte_regnum_p): Likewise.
6829 (i386_word_regnum_p): Likewise.
6830 (i386_mmx_regnum_p): Updated.
6831 (i386_pseudo_register_name): Make it global. Handle byte and
6832 word pseudo-registers.
6833 (i386_pseudo_register_read): Likewise.
6834 (i386_pseudo_register_write): Likewise.
6835 (i386_pseudo_register_type): Handle byte, word and dword
6836 pseudo-registers
6837 (i386_register_reggroup_p): Don't include pseudo
6838 registers, except for MXX, in any register groups. Don't
6839 include pseudo byte, word, dword registers in general_reggroup.
6840 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
6841 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
6842 pseudo-registers after word pseudo-registers. Call
6843 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
6844
6845 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
6846 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
6847 eax_regnum.
6848 (i386_byte_regnum_p): New.
6849 (i386_word_regnum_p): Likewise.
6850 (i386_dword_regnum_p): Likewise.
6851 (i386_pseudo_register_name): Likewise.
6852 (i386_pseudo_register_read): Likewise.
6853 (i386_pseudo_register_write): Likewise.
6854
6855 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6856
6857 * target-descriptions.c (tdesc_type): Remove
6858 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6859 (tdesc_predefined_types): Likewise.
6860 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
6861 if flag name is empty.
6862 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
6863
6864 * features/i386/32bit-core.xml: Define i386_eflags.
6865 * features/i386/64bit-core.xml: Likewise.
6866
6867 * features/i386/32bit-sse.xml: Define i386_mxcsr.
6868 * features/i386/64bit-sse.xml: Likewise.
6869
6870 * features/i386/amd64-linux.c: Regenerated.
6871 * features/i386/amd64.c: Likewise.
6872 * features/i386/i386-linux.c: Likewise.
6873 * features/i386/i386.c: Likewise.
6874
6875 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
6876
6877 * gdbtypes.c (append_composite_type_field_raw): New.
6878 (append_composite_type_field_aligned): Use the new function.
6879 * gdbtypes.h (append_composite_type_field_raw): Declare.
6880 * target-descriptions.c (struct tdesc_type_field): Add start and end.
6881 (struct tdesc_type_flag): New type.
6882 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
6883 kind. Add size to u.u. Add u.f for flags.
6884 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
6885 (tdesc_free_type): Likewise.
6886 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
6887 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
6888 (tdesc_add_bitfield, tdesc_add_flag): New.
6889 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
6890 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
6891 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
6892 current_type. Add current_type_size and current_type_is_flags.
6893 (tdesc_start_union): Clear the new fields.
6894 (tdesc_start_struct, tdesc_start_flags): New.
6895 (tdesc_start_field): Handle struct fields, including bitfields.
6896 (field_attributes): Make type optional. Add start and end.
6897 (union_children): Rename to struct_union_children.
6898 (union_attributes): Rename to struct_union_attributes. Add optional
6899 size.
6900 (flags_attributes): New.
6901 (feature_children): Add struct and flags.
6902 * features/gdb-target.dtd: Add flags and struct to features.
6903 Make field type optional. Add field start and end.
6904
6905 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6906
6907 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
6908 (amd64_linux_read_description): Likewise.
6909 (_initialize_amd64_linux_nat): Set to_read_description to
6910 amd64_linux_read_description.
6911
6912 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
6913 (amd64_linux_register_name): Removed.
6914 (amd64_linux_register_type): Likewise.
6915 (amd64_linux_core_read_description): New.
6916 (amd64_linux_init_abi): Set target description to
6917 tdesc_amd64_linux if needed. Support orig_rax in target
6918 description. Don't call set_gdbarch_register_name nor
6919 set_gdbarch_register_type. Call
6920 set_gdbarch_core_read_description.
6921 (_initialize_amd64_linux_tdep): Call
6922 initialize_tdesc_amd64_linux.
6923
6924 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
6925
6926 * amd64-tdep.c: Include "features/i386/amd64.c".
6927 (amd64_register_names): Removed.
6928 (amd64_register_name): Likewise.
6929 (amd64_register_type): Likewise.
6930 (amd64_init_abi): Set num_core_regs and register_names. Set
6931 target description to tdesc_amd64 if needed. Don't call
6932 set_gdbarch_register_name nor set_gdbarch_register_type.
6933 (_initialize_amd64_tdep): New.
6934
6935 * i386-linux-nat.c (i386_linux_read_description): New.
6936 (_initialize_i386_linux_nat): Set to_read_description to
6937 i386_linux_read_description.
6938
6939 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
6940 (i386_linux_register_name): Removed.
6941 (i386_linux_core_read_description): New.
6942 (i386_linux_read_description): Likewise.
6943 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
6944 Set target description to tdesc_i386_linux if needed. Support
6945 orig_eax. Set register_reggroup_p. Call
6946 set_gdbarch_core_read_description.
6947 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
6948
6949 * i386-linux-tdep.h (tdesc_i386_linux): New.
6950
6951 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
6952 with I387_NUM_REGS.
6953
6954 * i386-tdep.c: Include "features/i386/i386.c".
6955 (i386_register_names): Make it const.
6956 (i386_mmx_names): Likewise.
6957 (i386_num_register_names): Removed.
6958 (i386_register_name): Likewise.
6959 (i386_eflags_type): Likewise.
6960 (i386_mxcsr_type): Likewise.
6961 (i386_sse_type): Likewise.
6962 (i386_register_type): Likewise.
6963 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
6964 (i386_pseudo_register_name): New.
6965 (i386_pseudo_register_type): Likewise.
6966 (i386_mmx_type): Make it static.
6967 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
6968 I387_NUM_REGS. Set num_core_regs and register_names. Don't
6969 call set_gdbarch_register_name nor set_gdbarch_register_type.
6970 Set register_reggroup_p. Set target description to tdesc_i386
6971 if needed. Call set_tdesc_pseudo_register_type,
6972 set_tdesc_pseudo_register_name and tdesc_use_registers.
6973 (_initialize_i386_tdep): Call initialize_tdesc_i386.
6974 initialize_tdesc_x86_64.
6975
6976 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
6977 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
6978 register_names, tdesc and register_reggroup_p.
6979 (I386_NUM_FREGS): Removed.
6980 (i386_eflags_type): Likewise.
6981 (i386_mxcsr_type): Likewise.
6982 (i386_mmx_type): Likewise.
6983 (i386_sse_type): Likewise.
6984 (i386_register_name): Likewise.
6985 (i386_regnum): Add I386_MXCSR_REGNUM.
6986 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
6987
6988 * i387-tdep.h (I387_NUM_REGS): New.
6989
6990 * regformats/i386/i386-linux.dat: Generated.
6991 * regformats/i386/i386.dat: Likewise.
6992 * regformats/i386/amd64-linux.dat: Likewise.
6993 * regformats/i386/amd64.dat: Likewise.
6994
6995 * regformats/reg-i386-linux.dat: Removed.
6996 * regformats/reg-i386.dat: Likewise.
6997 * regformats/reg-x86-64-linux.dat: Likewise.
6998 * regformats/reg-x86-64.dat: Likewise.
6999
7000 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
7001
7002 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7003 cygwin_conv_path API rather than the deprecated
7004 cygwin_conv_to_full_posix_path.
7005 * windows-nat.c:
7006 (GetModuleFileNameExA): Undefine for Cygwin.
7007 (GetModuleFileNameExW): Define for Cygwin.
7008 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
7009 Call GetModuleFileNameExW and convert path to POSIX using
7010 cygwin_conv_path.
7011 (windows_make_so): Always define p. Drop unused variable m.
7012 Don't use Win32 functions to check file existance, rather use
7013 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
7014 Use canonicalize_file_name to get full path.
7015 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
7016 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
7017 use correct target buffer size in call to WideCharToMultiByte.
7018 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
7019 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
7020 (windows_create_inferior): Convert all paths and arguments to wchar_t
7021 and use CreateProcessW on Cygwin.
7022 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
7023 (bad_GetModuleFileNameExA): Undefine for Cygwin.
7024 (bad_GetModuleFileNameExW): Define for Cygwin.
7025 (_initialize_loadable): Load GetModuleFileNameExW into
7026 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
7027
7028 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
7029
7030 PR python/11036
7031 * python/py-frame.c (frapy_read_var): Add block argument and logic
7032 to cope with user provided blocks.
7033
7034 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7035
7036 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
7037 New comment.
7038
7039 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
7040
7041 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
7042 (COMMON_OBS): ... to here since it's used unconditionally.
7043 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
7044 (SFILES): To here.
7045
7046 2010-02-26 David Daney <ddaney@caviumnetworks.com>
7047
7048 * mips-linux-tdep.c: Update struct sigframe comments.
7049 (SIGFRAME_CODE_OFFSET): Delete macro.
7050 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
7051 this_frame's sp.
7052 (mips_linux_n32n64_sigframe_init): Same.
7053
7054 2010-02-26 Kevin Buettner <kevinb@redhat.com>
7055
7056 * remote-mips.c (mips_load): Don't use pseudo-register when
7057 invalidating regcache.
7058
7059 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7060
7061 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
7062
7063 2010-02-26 Pedro Alves <pedro@codesourcery.com>
7064
7065 * NEWS: Add "New targets" section, and mention ARM Symbian
7066 support.
7067
7068 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
7069
7070 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
7071 add ADDR_SIZE member.
7072 (allocate_piece_closure): Update.
7073 (copy_pieced_value_closure): Likewise.
7074 (dwarf2_evaluate_loc_desc): Likewise.
7075 (read_pieced_value): Use DWARF address size instead of
7076 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
7077
7078 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
7079 Tom Tromey <tromey@redhat.com>
7080
7081 * python/py-type.c (typy_lookup_typename): Add in block argument.
7082 If provided restrict lookup to specified blocks.
7083 (gdbpy_lookup_type): Likewise.
7084 (typy_lookup_type): Likewise.
7085
7086 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7087
7088 Symbian config
7089
7090 gdb/
7091 * arm-symbian-tdep.c: New.
7092 * configure.tgt (arm*-*-symbianelf*): New target.
7093 (*-*-symbianelf*): New OS.
7094 * osabi.c (gdb_osabi_names): Add Symbian.
7095 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
7096 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
7097 (ALLDEPFILES): Add arm-symbian-tdep.c.
7098
7099 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7100
7101 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
7102
7103 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7104
7105 * mi/mi-main.c (mi_cmd_execute): Fix typo.
7106
7107 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
7108 Tom Tromey <tromey@redhat.com>
7109 Thiago Jung Bauermann <bauerman@br.ibm.com>
7110
7111 * python/python.c (_initialize_python): Call
7112 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
7113 gdbpy_initialize_blocks.
7114 * python/python-internal.h: Declare struct symbol, block and
7115 symtab_and_line. Declare block_object_type and
7116 symbol_object_type
7117 (gdbpy_lookup_symbol gdbpy_block_for_pc)
7118 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
7119 (symbol_to_symbol_object, block_to_block_object)
7120 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
7121 (gdbpy_initialize_blocks ): Declare.
7122 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
7123 (frapy_select): Add methods.
7124 (frapy_read_var): Add symbol branch.
7125 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
7126 py-block.
7127 (SUBDIR_PYTHON_SRCS): Likewise.
7128 (py-symbol.o): New rule.
7129 (py-symtab.o): Likewise.
7130 (py-block.o): Likewise.
7131 * python/py-symbol.c: New file.
7132 * python/py-symtab.c: Likewise.
7133 * python/py-block.c: Likewise.
7134
7135 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7136
7137 PR gdb/11321
7138
7139 * inferior.h (prepare_for_detach): Declare.
7140 (struct inferior) <detaching>: New field.
7141 * infrun.c (prepare_for_detach): New.
7142 (handle_inferior_event) <random signal>: Don't stop if detaching.
7143 * target.c (target_detach): Call prepare_for_detach.
7144
7145 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7146
7147 Per-process displaced stepping queue.
7148
7149 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
7150 (displaced_step_gdbarch, displaced_step_closure,
7151 (displaced_step_original, displaced_step_copy): Move globals to
7152 this...
7153 (struct displaced_step_inferior_state): ... new structure.
7154 (displaced_step_inferior_states): New global.
7155 (get_displaced_stepping_state, add_displaced_stepping_state)
7156 (remove_displaced_stepping_state, infrun_inferior_exit): New
7157 functions.
7158 (displaced_step_clear): Add displaced_step_inferior_state
7159 parameter, and adjust to handle it.
7160 (displaced_step_clear_cleanup): Parameter is now a
7161 displaced_step_inferior_state. Adjust.
7162 (displaced_step_prepare): Adjust.
7163 (displaced_step_fixup, displaced_step_fixup)
7164 (infrun_thread_ptid_changed, resume): Adjust.
7165 (init_wait_for_inferior): Don't call displaced_step_clear.
7166 (infrun_thread_stop_requested): Rewrite.
7167 (_initialize_infrun): Install infrun_inferior_exit as
7168 inferior_exit observer.
7169
7170 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7171
7172 * inferior.h (ptid_match): Declare.
7173 * infrun.c (ptid_match): New.
7174 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
7175 (handle_notification): Add debug output.
7176 * linux-nat.c (ptid_match): Delete.
7177
7178 2010-02-24 David S. Miller <davem@davemloft.net>
7179
7180 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
7181 * syscalls/sparc-linux.xml: New.
7182 * syscalls/sparc64-linux.xml: New.
7183 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7184 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
7185 (sparc32_linux_get_syscall_number): New function.
7186 (sparc32_linux_init_abi): Set syscall XML file name and hook up
7187 syscall number fetcher.
7188 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
7189 (sparc64_linux_get_syscall_number): New function.
7190 (sparc64_linux_init_abi): Set syscall XML file name and hook up
7191 syscall number fetcher.
7192
7193 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7194
7195 Multiexec MI
7196
7197 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
7198 * inferior.c (add_inferior_silent): Notify inferior_added
7199 observer.
7200 (delete_inferior_1): Notify inferior_removed observer.
7201 (exit_inferior_1): Pass inferior, not pid, to observer.
7202 (inferior_appeared): Likewise.
7203 (add_inferior_with_spaces): New.
7204 (add_inferior_command): Use the above.
7205 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
7206 Declare.
7207
7208 * inflow.c (inflow_inferior_exit): Likewise.
7209 * jit.c (jit_inferior_exit_hook): Likewise.
7210
7211 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
7212 remove-inferior.
7213 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7214 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
7215 (report_initial_inferior): New.
7216 (mi_inferior_removed): Register the above. Make sure
7217 inferior_added observer is called on the first inferior.
7218 (mi_new_thread, mi_thread_exit): Thread group is now identified by
7219 inferior number, not pid.
7220 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
7221 affected.
7222 * mi/mi-main.c (current_context): New.
7223 (proceed_thread_callback): Use typed closure.
7224 Proceed everything if pid is 0. Most implementation split into
7225 (proceed_thread): ... this.
7226 (run_one_inferior): New.
7227 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
7228 Adjust for multiexec behaviour.
7229 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7230 (mi_cmd_execute): Handle the 'thread-group' option here.
7231 Do some extra checks.
7232 * mi-parse.c (mi_parse): Handle the --all and --thread-group
7233 options.
7234 * mi-parse.h (struct mi_parse): New fields all and thread_group.
7235
7236 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7237
7238 Make -exec-run a proper MI commands.
7239
7240 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
7241 * mi/mi-cmds.c (mi_cmds): Adjust.
7242 * mi/mi-main.c (mi_cmd_exec_run): New.
7243
7244 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7245 Stan Shebs <stan@codesourcery.com>
7246
7247 * tracepoint.h (set_traceframe_number)
7248 (cleanup_restore_current_traceframe): Declare.
7249 * tracepoint.c (set_traceframe_number): New.
7250 (struct current_traceframe_cleanup): New.
7251 (do_restore_current_traceframe_cleanup)
7252 (restore_current_traceframe_cleanup_dtor)
7253 (make_cleanup_restore_current_traceframe): New.
7254 * infrun.c: Include tracepoint.h.
7255 (fetch_inferior_event): Switch out and in of tfind mode.
7256
7257 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7258
7259 * breakpoint.c (breakpoint_init_inferior): Also delete
7260 bp_shlib_event breakpoints.
7261 * solib-frv.c (enable_break): Remove call to
7262 remove_solib_event_breakpoints.
7263 * solib-svr4.c (enable_break): Ditto.
7264 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
7265 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
7266 * solib-som.c (som_solib_create_inferior_hook): Ditto.
7267 * solib-spu.c (spu_enable_break): Ditto.
7268
7269 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7270
7271 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
7272
7273 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7274
7275 * varobj.c (varobj_update): Avoid non-constants in initializers.
7276
7277 2010-02-23 Tom Tromey <tromey@redhat.com>
7278
7279 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
7280 handle big-endian values.
7281 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
7282
7283 2010-02-22 Pedro Alves <pedro@codesourcery.com>
7284
7285 PR9605
7286
7287 gdb/
7288 * breakpoint.c (insert_bp_location): If inserting the read
7289 watchpoint failed, fallback to an access watchpoint.
7290 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
7291 if the value changed, if not watching the same memory for writes.
7292 (watchpoint_locations_match): Add comment.
7293 (update_global_location_list): Copy the location's watchpoint type.
7294 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
7295 handle read watchpoints here.
7296 (i386_insert_watchpoint): Read watchpoints aren't supported.
7297 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
7298 packets.
7299 * target.h (target_insert_watchpoint): Update description.
7300
7301 2010-02-19 Tom Tromey <tromey@redhat.com>
7302
7303 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
7304 * m2-typeprint.c (m2_print_type): Update.
7305 * gdbtypes.c (recursive_dump_type): Update.
7306 (copy_type_recursive): Update.
7307 * c-typeprint.c (c_type_print_varspec_prefix): Update.
7308 (c_type_print_base): Update.
7309 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
7310 Remove.
7311 (struct cplus_struct_type) <ntemplate_args>: Remove.
7312 <struct template_arg>: Remove.
7313 <is_dynamic>: Move earlier.
7314 (TYPE_TEMPLATE_ARGS): Remove.
7315 (TYPE_NTEMPLATE_ARGS): Remove.
7316 (TYPE_TEMPLATE_ARG): Remove.
7317
7318 2010-02-19 Tom Tromey <tromey@redhat.com>
7319
7320 PR c++/8693, PR c++/9496:
7321 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
7322 * c-exp.y (lex_one_token): Rename from yylex. Don't call
7323 write_dollar_variable. Don't try to classify NAME tokens.
7324 (token_and_value): New type.
7325 (token_fifo, popping, name_obstack): New globals.
7326 (classify_name): New function.
7327 (classify_inner_name): Likewise.
7328 (yylex): Likewise.
7329 (VARIABLE): Now has type sval.
7330 (exp : VARIABLE): Call write_dollar_variable.
7331 (qualified_name): Use TYPENAME, not typebase. Add production for
7332 multiple "::" instances.
7333 (variable): Use name_not_typename.
7334 (qualified_type): Remove.
7335 (typebase): Update.
7336
7337 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7338
7339 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
7340 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
7341 found by bfd_get_section_by_name.
7342 * symfile.h (struct section_addr_info) <sectindex>: New comment.
7343
7344 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7345
7346 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
7347 7.0 section" into "Changes in 7.1".
7348
7349 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7350
7351 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
7352 * version.in: Bump version to 7.1.50.20100219-cvs.
7353
7354 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
7355
7356 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
7357 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
7358
7359 2010-02-17 Tom Tromey <tromey@redhat.com>
7360
7361 * NEWS: Add Python API Improvements section.
7362
7363 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
7364
7365 * NEWS: Correct typo.
7366
7367 2010-02-17 Tom Tromey <tromey@redhat.com>
7368
7369 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
7370
7371 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7372
7373 * symfile.c (build_section_addr_info_from_objfile): Include sections
7374 only if they are SEC_ALLOC or SEC_LOAD.
7375
7376 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
7377
7378 PR shlibs/11293
7379 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
7380 of ULONGEST for address size.
7381
7382 2010-02-17 Tom Tromey <tromey@redhat.com>
7383
7384 * NEWS: Add C++ improvements section.
7385
7386 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
7387
7388 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
7389 PyThreadState_Swap): Avoid "statement with no effect" warning.
7390
7391 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7392
7393 * solib-svr4.c (enable_break <target_auxv_search>): New variable
7394 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
7395
7396 2010-02-17 Tristan Gingold <gingold@adacore.com>
7397 Petr Hluzin <petr.hluzin@gmail.com>
7398
7399 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
7400 gdb_assert. Fix info->size for SIG prologue.
7401
7402 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7403
7404 * infcmd.c (show_inferior_tty_command): Check for NULL.
7405 Correct output message.
7406
7407 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7408
7409 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
7410 FUNCTION contains parentheses. Improve removal of a trailing
7411 single quote.
7412
7413 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7414
7415 * gcore.c (do_bfd_delete_cleanup): New function.
7416 (gcore_command): Use it. Discard the cleanup after success.
7417 (gcore_copy_callback): Delete dead code.
7418
7419 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7420
7421 * symfile.c (addr_info_make_relative): Always use
7422 find_lowest_section.
7423
7424 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
7425
7426 * NEWS: Added entry for namespace fixes.
7427
7428 2010-02-15 Tom Tromey <tromey@redhat.com>
7429
7430 * dwarf2read.c (guess_structure_name): Allocate name on the
7431 objfile obstack.
7432
7433 2010-02-15 Tom Tromey <tromey@redhat.com>
7434
7435 * c-typeprint.c (c_type_print_base): Reverse order of test.
7436
7437 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7438
7439 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
7440 initialize it from ELF BFD. Extend the prelink condition by it.
7441
7442 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7443
7444 * defs.h (parse_pid_to_attach): New.
7445 * utils.c (parse_pid_to_attach): New.
7446 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
7447 * gnu-nat.c (gnu_attach): Likewise.
7448 * nto-procfs.c (procfs_attach): Likewise.
7449 * procfs.c (procfs_attach): Likewise.
7450 * windows-nat.c (windows_attach): Likewise.
7451 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
7452 * inf-ttrace.c (inf_ttrace_attach): Likewise.
7453 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
7454 check.
7455
7456 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
7457
7458 * MAINTAINERS: Add myself for write after approval privileges.
7459
7460 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7461
7462 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
7463 block.
7464
7465 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7466
7467 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
7468 only if INFO_VERBOSE.
7469
7470 2010-02-12 Tomas Holmberg <th@virtutech.com>
7471
7472 * mi/mi-main.c: Added the --reverse flag to the following MI
7473 commands: exec-continue, exec-finish, exec-next, exec-step,
7474 exec-next-instruction, exec-step-instruction. This is to
7475 support reverse execution over the MI interface to gdb.
7476
7477 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7478
7479 * tracepoint.c (_initialize_tracepoint): Specify that the address
7480 range of `tfind outsize' is exclusive, and that the address range
7481 of `tfind range' is inclusive, in the commands' help strings.
7482
7483 2010-02-12 Joel Brobecker <brobecker@adacore.com>
7484
7485 Spurious "dll not found" error messages on x64-windows.
7486 * windows-nat.c: Add include of complaints.h.
7487 (handle_unload_dll): Change dll-not-found error into a complaint.
7488
7489 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7490
7491 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
7492 bp_tracepoint and bp_fast_tracepoint, not
7493 bp_loc_software_breakpoint.
7494 (update_global_location_list): Tracepoints are never duplicates of
7495 anything.
7496
7497 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7498
7499 * breakpoint.c (break_command_really): Change return type to int.
7500 Return false if no breakpoint was created, true otherwise.
7501 (trace_command): Don't set the tracepoint count if no tracepoint
7502 was created.
7503 (ftrace_command): Ditto.
7504 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
7505 created in the breakpoints table.
7506
7507 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7508 Ulrich Weigand <uweigand@de.ibm.com>
7509
7510 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
7511
7512 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7513
7514 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
7515 the offset value isn't of integral type.
7516
7517 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7518
7519 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
7520 New.
7521
7522 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7523
7524 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
7525 non-subscriptable types.
7526 * valarith.c (binop_types_user_defined_p): New, abstracted out
7527 from ...
7528 (binop_user_defined_p): ... this.
7529 * value.h (binop_types_user_defined_p): Declare.
7530
7531 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7532
7533 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
7534 Merge uploaded TSVs before merging uploaded tracepoints.
7535
7536 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7537
7538 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
7539
7540 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
7541
7542 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
7543 whitespace character after a dot in comment.
7544 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
7545 Likewise.
7546 (list_args_or_locals): For the 'all' (that is
7547 -stack-list-variables) case, always output list of tuples.
7548 Output 'arg' field if variable is argument.
7549
7550 2010-02-10 Tom Tromey <tromey@redhat.com>
7551
7552 * parser-defs.h (parser_debug): Declare.
7553 * parse.c (_initialize_parse): Install "debug parser" set/show
7554 command.
7555 (parser_debug): New global.
7556 (show_parserdebug): New function.
7557 * c-exp.y (c_parse): Set yydebug.
7558
7559 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
7560
7561 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
7562 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7563 (tdesc_predefined_types): Add i387_ext, i386_eflags and
7564 i386_mxcsr.
7565 (tdesc_find_type): New.
7566 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
7567 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7568
7569 * target-descriptions.h (tdesc_find_type): New.
7570
7571 2010-02-10 Michael Snyder <msnyder@vmware.com>
7572
7573 * gdb-gdb.py: Comment fix.
7574
7575 2010-02-09 Tristan Gingold <gingold@adacore.com>
7576
7577 * machoread.c (macho_symfile_relocate): New function.
7578 (macho_sym_fns): Use macho_symfile_relocate instead of
7579 default_symfile_relocate.
7580 (macho_oso_data): New type.
7581 (current_oso): New variable.
7582 (macho_add_oso_symfile): Do not compute section_addr_info, but
7583 instead set vma of sections.
7584 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
7585 Set and clear current_oso.
7586
7587 2010-02-09 Joel Brobecker <brobecker@adacore.com>
7588
7589 Wrong type description for tagged type parameter.
7590 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
7591 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
7592 reference to a tagged type.
7593
7594 2010-02-09 Tristan Gingold <gingold@adacore.com>
7595
7596 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
7597 brothers of the parent.
7598
7599 2010-02-08 Tom Tromey <tromey@redhat.com>
7600
7601 PR c++/8017:
7602 * value.h: Update.
7603 * valops.c (search_struct_field): Make 'name' const.
7604 (search_struct_method): Likewise.
7605 (find_method_list): Make 'method' const.
7606 (value_struct_elt): Make 'name' and 'err' const.
7607 (value_find_oload_method_list): Make 'method' const.
7608 (find_overload_match): Make 'name' const.
7609 * eval.c (evaluate_subexp_standard): New locals function,
7610 function_name.
7611 <OP_FUNCALL>: Handle OP_SCOPE specially.
7612
7613 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7614
7615 * infrun.c (handle_inferior_event): Do not look up regcache
7616 for exited processes.
7617
7618 2010-02-08 Chris Moller <moller@mollerware.com>
7619
7620 PR gdb/10728
7621 * valarith.c (value_ptrdiff): Added a test for a zero type length,
7622 warn if found, and assume length = 1.
7623
7624 2010-02-08 Chris Moller <cmoller@redhat.com>
7625
7626 PR gdb/9067
7627 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
7628 (cp_print_static_field) Fix use of obstacks.
7629
7630 2010-02-08 Pedro Alves <pedro@codesourcery.com>
7631
7632 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
7633 resumed LWPs as resumed.
7634 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
7635 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
7636 of throwing an internal error. If an LWP of a process we're not
7637 waiting for reports a signal, don't force collecting a SIGSTOP,
7638 and if it was breakpoint hit in non-stop mode, cancel it. Don't
7639 go through all LWPs cancelling breakpoints in non-stop mode.
7640 (resume_stopped_resumed_lwps): New.
7641 (linux_nat_wait): Use it.
7642
7643 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
7644
7645 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
7646 i386/amd64 and i386/amd64-linux.
7647 (i386/i386-expedite): New.
7648 (i386/i386-linux-expedite): Likewise.
7649 (i386/amd64-expedite):Likewise.
7650 (i386/amd64-linux-expedite): Likewise.
7651 ($(outdir)/i386/i386-linux.dat): Likewise.
7652 ($(outdir)/i386/amd64.dat): Likewise.
7653 ($(outdir)/i386/amd64-linux.dat): Likewise.
7654
7655 * features/i386/32bit-core.xml: New.
7656 * features/i386/32bit-linux.xml: Likewise.
7657 * features/i386/32bit-sse.xml: Likewise.
7658 * features/i386/64bit-core.xml: Likewise.
7659 * features/i386/64bit-linux.xml: Likewise.
7660 * features/i386/64bit-sse.xml: Likewise.
7661 * features/i386/i386-linux.xml: Likewise.
7662 * features/i386/i386.xml: Likewise.
7663 * features/i386/amd64-linux.xml: Likewise.
7664 * features/i386/amd64.xml: Likewise.
7665 * features/i386/i386-linux.c: Likewise.
7666 * features/i386/i386.c: Likewise.
7667 * features/i386/amd64-linux.c: Likewise.
7668 * features/i386/amd64.c: Likewise.
7669
7670 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
7671
7672 PR c++/7935:
7673 * cp-support.h: Added char* alias element to using_direct data
7674 struct.
7675 (cp_add_using): Added char* alias argument.
7676 (cp_add_using_directive): Ditto.
7677 * cp-namespace.c: Updated with the above changes.
7678 (cp_lookup_symbol_imports): Check for aliases.
7679 * dwarf2read.c (read_import_statement): Figure out local alias
7680 for the import and pass it on to cp_add_using.
7681 (read_namespace): Pass alias argument to cp_add_using.
7682
7683 2010-02-05 Hui Zhu <teawater@gmail.com>
7684
7685 * defs.h (gdb_bfd_errmsg): New extern.
7686 * exec.c (exec_file_attach): Change bfd_errmsg to
7687 gdb_bfd_errmsg.
7688 * utils.c (AMBIGUOUS_MESS1): New macro.
7689 (AMBIGUOUS_MESS2): New macro.
7690 (gdb_bfd_errmsg): New function.
7691
7692 2010-02-04 Doug Evans <dje@google.com>
7693
7694 * solib-svr4.c (enable_break): Add comment.
7695
7696 2010-02-04 Anthony Green <green@moxielogic.com>
7697
7698 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
7699 gracefully.
7700
7701 2010-02-04 Tom Tromey <tromey@redhat.com>
7702
7703 * valops.c (search_struct_field): Account for
7704 value_embedded_offset. Fix check for virtual base past the end of
7705 the object. Use value_copy when making a slice of the value.
7706
7707 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
7708
7709 PR tui/9622
7710 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
7711 only if gdb_stdout is a tty.
7712
7713 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
7714
7715 * target-descriptions.c: Include "osabi.h".
7716 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
7717 OSABI.
7718
7719 2010-02-04 Tristan Gingold <gingold@adacore.com>
7720
7721 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
7722 (macho_symtab_read): Adjust calls to macho_add_oso.
7723 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
7724 (macho_symfile_read): Adjust call to macho_oso_symfile.
7725 (macho_new_init): Move this function after declarations.
7726 (macho_symfile_init): Ditto.
7727 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
7728 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
7729
7730 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
7731
7732 Include MI command in remotelog.
7733
7734 * mi/mi-main.c (mi_execute_command): Call target_log_command.
7735
7736 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
7737
7738 * remote.c (remote_state): Remove gdbarch.
7739 (init_remote_state): Don't set gdbarch.
7740 (remote_query_supported): Pass target_gdbarch instead of
7741 rs->gdbarch to gdbarch_qsupported.
7742
7743 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
7744
7745 * gdbarch.sh: Add qsupported.
7746
7747 * gdbarch.c: Regenerated.
7748 * gdbarch.h: Likewise.
7749
7750 * remote.c (remote_state): Add gdbarch.
7751 (init_remote_state): Set gdbarch.
7752 (remote_query_supported): Support gdbarch_qsupported.
7753
7754 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
7755
7756 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
7757 __FreeBSD_kernel_version.
7758
7759 2010-02-03 Tristan Gingold <gingold@adacore.com>
7760
7761 * symfile.h (struct sym_fns): Add sym_relocate field.
7762 (default_symfile_relocate): New prototype.
7763 (symfile_relocate_debug_section): First argument is now an objfile.
7764 * symfile.c (default_symfile_relocate): Rename from
7765 symfile_relocate_debug_section, first argument is now an objfile.
7766 (symfile_relocate_debug_section): New function.
7767 * coffread.c (coff_sym_fns): Set sym_relocate field.
7768 * somread.c (som_sym_fns): Ditto.
7769 * mipsread.c (ecoff_sym_fns): Ditto.
7770 * machoread.c (macho_sym_fns): Ditto.
7771 * elfread.c (elf_sym_fns): Ditto.
7772 * dwarf2read.c (dwarf2_read_section): Ditto.
7773 * xcoffread.c (xcoff_sym_fns): Ditto.
7774 * dbxread.c (aout_sym_fns): Ditto.
7775 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
7776 (elfstab_build_psymtabs): Ditto.
7777
7778 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
7779
7780 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
7781
7782 2010-02-02 Tom Tromey <tromey@redhat.com>
7783
7784 * valops.c (value_cast_structs): Try downcasting using the RTTI
7785 type.
7786
7787 2010-02-02 Tom Tromey <tromey@redhat.com>
7788
7789 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
7790 (gnuv2_baseclass_offset): Now static.
7791 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
7792 * gnu-v2-abi.h: Remove.
7793
7794 2010-02-02 Tom Tromey <tromey@redhat.com>
7795
7796 * m2-typeprint.c (m2_record_fields): Don't use
7797 TYPE_DECLARED_TYPE.
7798 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
7799 (struct main_type) <flag_declared_class>: New field.
7800 (struct cplus_struct_type) <declared_type>: Remove.
7801 <ntemplate_args>: Move earlier.
7802 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
7803 (DECLARED_TYPE_TEMPLATE): Remove.
7804 (TYPE_DECLARED_TYPE): Remove.
7805 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
7806 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
7807 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
7808 TYPE_DECLARED_TYPE.
7809
7810 2010-02-02 Tom Tromey <tromey@redhat.com>
7811
7812 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
7813 * valops.c (search_struct_field): Compute nbases after calling
7814 CHECK_TYPEDEF.
7815 (check_field): Call CHECK_TYPEDEF.
7816 * cp-valprint.c (cp_print_value): Pass correct address to
7817 baseclass_offset. Fix check for virtual base past the end of the
7818 object. Don't offset address passed to cp_print_value_fields or
7819 apply_val_pretty_printer.
7820 (cp_print_value_fields): Fix call to val_print.
7821 (cp_print_value_fields_rtti): New function.
7822 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
7823 * p-valprint.c (pascal_object_print_value_fields): Fix call to
7824 val_print.
7825 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
7826 offset to address.
7827 * language.h (struct language_defn) <la_val_print>: Document.
7828 * c-lang.h (cp_print_value_fields_rtti): Declare.
7829
7830 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7831
7832 PR libc/11214:
7833 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
7834 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
7835 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
7836
7837 2010-02-01 Michael Matz <matz@suse.de>
7838 Daniel Jacobowitz <dan@codesourcery.com>
7839
7840 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7841 functions use a frame pointer.
7842
7843 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7844
7845 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
7846 by a conditional setting DYN_ADDR. Use DYN_ADDR.
7847 * config/djgpp/fnchange.lst: Add translations for
7848 symbol-without-target_section.exp and symbol-without-target_section.c.
7849
7850 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7851
7852 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
7853 (remote_breakpoint_for_pc): Correct invalid_p check.
7854 * gdbarch.c: Regenerated.
7855
7856 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7857
7858 * arm-tdep.c (arm_find_mapping_symbol): New function, from
7859 arm_pc_is_thumb.
7860 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
7861 (extend_buffer_earlier): New function.
7862 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
7863 (arm_adjust_breakpoint_address): New function.
7864 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
7865
7866 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7867
7868 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
7869 (arm_linux_thumb2_le_breakpoint): New constants.
7870 (arm_linux_init_abi): Set thumb2_breakpoint and
7871 thumb2_breakpoint_size.
7872 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
7873 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
7874 Implement support for single stepping through IT blocks if
7875 a 32-bit Thumb breakpoint instruction is available.
7876 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
7877 is available, use it when needed.
7878 (arm_remote_breakpoint_from_pc): New function.
7879 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
7880 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
7881 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
7882
7883 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7884
7885 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
7886 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
7887 * gdbarch.c, gdbarch.h: Regenerated.
7888 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
7889 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
7890 gdbarch_remote_breakpoint_from_pc.
7891
7892 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7893
7894 * infrun.c (prepare_to_proceed): Handle other signals which might
7895 match a breakpoint.
7896 (handle_inferior_event): Move the check for unusual breakpoint
7897 signals earlier.
7898
7899 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
7900
7901 amd64 - function returning record with field straddling 2 registers.
7902 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
7903 a record of length <= 16 in which a field straddles the two
7904 eightbytes.
7905
7906 2010-01-29 Joel Brobecker <brobecker@adacore.com>
7907
7908 Implement return values on amd64-windows.
7909 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
7910 (amd64_windows_return_value): New function.
7911 (amd64_windows_init_abi): Call set_gdbarch_return_value with
7912 amd64_windows_return_value.
7913
7914 2010-01-29 Joel Brobecker <brobecker@adacore.com>
7915
7916 amd64-windows: 32 bytes allocated on stack by caller for integer
7917 parameter registers.
7918 * i386-tdep.h (struct gdbarch_tdep): Add new field
7919 integer_param_regs_saved_in_caller_frame.
7920 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7921 tdep->integer_param_regs_saved_in_caller_frame to 1.
7922 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
7923 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
7924
7925 2010-01-29 Joel Brobecker <brobecker@adacore.com>
7926
7927 amd64-windows: memory args passed by pointer during function calls.
7928 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
7929 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
7930 where tdep->memory_args_by_pointer is non-zero.
7931 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7932 tdep->memory_args_by_pointer to 1.
7933
7934 2010-01-29 Joel Brobecker <brobecker@adacore.com>
7935
7936 amd64-windows: Integer parameters in function calls.
7937 * i386-tdep.h (enum amd64_reg_class): New, moved here from
7938 amd64-tdep.c.
7939 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
7940 call_dummy_integer_regs, and classify.
7941 * amd64-tdep.h (amd64_classify): Add declaration.
7942 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
7943 (amd64_reg_class): Delete, moved to i386-tdep.h.
7944 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
7945 Replace call to amd64_classify by call to tdep->classify.
7946 (amd64_push_arguments): Get the list of registers to use for
7947 passing integer parameters from the gdbarch tdep structure,
7948 rather than using a hardcoded one. Replace calls to amd64_classify
7949 by calls to tdep->classify.
7950 (amd64_push_dummy_call): Get the register number used for
7951 the "hidden" argument from tdep->call_dummy_integer_regs.
7952 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
7953 and tdep->call_dummy_integer_regs. Set tdep->classify.
7954 * amd64-windows-tdep.c: Add include of gdbtypes.h.
7955 (amd64_windows_dummy_call_integer_regs): New static global.
7956 (amd64_windows_classify): New function.
7957 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
7958 tdep->call_dummy_integer_regs and tdep->classify.
7959
7960 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
7961
7962 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
7963 for the new regcache. All callers updated.
7964 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
7965 (get_thread_arch_regcache): Do not set aspace here.
7966 * regcache.h (regcache_xmalloc): Update declaration.
7967
7968 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
7969 regcache_xmalloc updated.
7970
7971 2010-01-28 Joel Brobecker <brobecker@adacore.com>
7972
7973 Another -Wunused-function error in procfs.c (sparc-solaris)
7974 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
7975 Only define if SYS_syssgi is defined.
7976 (remove_dbx_link_breakpoint): Delete declaration. Move up.
7977 (dbx_link_addr, insert_dbx_link_bpt_in_file)
7978 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
7979 is itself defined.
7980
7981 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
7982
7983 * windows-nat.c (windows_initialization_done): New variable.
7984 (get_windows_debug_event): Issue error when process dies before
7985 completely initializing.
7986 (do_initial_windows_stuff): Set flag to indicate when we are done with
7987 the initial steps of attaching to the child.
7988
7989 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7990
7991 * symtab.h (struct symbol <symtab>): New comment on NULL values.
7992
7993 2010-01-27 Doug Evans <dje@google.com>
7994
7995 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
7996
7997 * breakpoint.c (bpstat_stop_status): Delete useless code.
7998
7999 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8000
8001 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8002 objfile via SYMBOL_SYMTAB.
8003
8004 2010-01-26 Tom Tromey <tromey@redhat.com>
8005
8006 PR exp/7643:
8007 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
8008 coerce_array on result.
8009
8010 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8011
8012 * cp-namespace.c (cp_lookup_symbol_namespace): Added
8013 search_parent argument.
8014 (cp_add_using): Initialize 'searched' field.
8015 (reset_directive_searched): New function.
8016 * cp-support.h: Add 'searched' field to using_direct struct.
8017 (cp_lookup_symbol_imports): Ditto.
8018 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
8019 Perform recursive search.
8020 Implement non parent search.
8021 * valops.c (value_maybe_namespace_elt): Updated.
8022
8023 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8024
8025 PR gdb/10929:
8026 * dwarf2read.c (read_lexical_block_scope): Create blocks for
8027 scopes which contain using directives even if they contain no
8028 declarations.
8029 * symtab.c (lookup_symbol_aux): Pass lowest level block to
8030 la_lookup_symbol_nonlocal.
8031 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
8032 cp_lookup_symbol_namespace.
8033 (cp_lookup_symbol_namespace): Perform an import lookup at every
8034 block level.
8035 (cp_lookup_symbol_imports): New function.
8036 (cp_lookup_symbol_in_namespace): New function.
8037
8038 2010-01-25 Tom Tromey <tromey@redhat.com>
8039
8040 PR gdb/11049:
8041 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
8042 result.
8043
8044 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8045
8046 * configure.ac: Only use host_os part when disabling TUI on osf.
8047 Use test to check variables, prefix strings with x.
8048 * configure: Regenerate.
8049
8050 * solib-osf.c (osf_current_sos): Initialize tail.
8051
8052 2010-01-25 gingold <gingold@adacore.com>
8053
8054 * windows-nat.c (windows_continue): Use %x to print thread id.
8055 (get_windows_debug_event): Ditto.
8056
8057 2010-01-22 Tom Tromey <tromey@redhat.com>
8058
8059 PR symtab/11199:
8060 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
8061 type and arguments. Use smash_to_methodptr_type.
8062 (read_structure_type): Call quirk_gcc_member_function_pointer
8063 later.
8064 * gdbtypes.h (smash_to_methodptr_type): Declare.
8065 * gdbtypes.c (smash_to_methodptr_type): New function.
8066 (lookup_methodptr_type): Use it.
8067
8068 2010-01-21 Tom Tromey <tromey@redhat.com>
8069
8070 PR symtab/11198:
8071 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
8072 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
8073 * glibc-tdep.c (find_minsym_and_objfile): Remove.
8074 (glibc_skip_solib_resolver): Use
8075 lookup_minimal_symbol_and_objfile.
8076
8077 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
8078
8079 * inflow.c (check_syscall): Guard by #if clause for GO32 and
8080 WIN32 targets.
8081
8082 2010-01-20 Tom Tromey <tromey@redhat.com>
8083
8084 PR backtrace/10770:
8085 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
8086 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
8087 * dwarf2expr.c (new_dwarf_expr_context): Allocate
8088 dwarf_stack_values, not CORE_ADDRs.
8089 (execute_stack_op): Change DW_OP_div and comparison operators to
8090 use signed operands.
8091
8092 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
8093
8094 Per-inferior args and tty and environment.
8095
8096 * infcmd.c (inferior_args): Rename to ...
8097 (inferior_args_scratch): ... this.
8098 (inferior_io_terminal): Rename to ...
8099 (inferior_io_terminal_scratch): ... this.
8100 (inferior_argc, inferior_argv): Remove.
8101 (set_inferior_io_terminal, get_inferior_io_terminal): Store
8102 inside current_inferior().
8103 (set_inferior_tty_command, show_inferior_tty_command): New.
8104 (get_inferior_args, set_inferior_args): Store inside
8105 current_inferior().
8106 (notice_args_set): Likewise and rename to...
8107 (set_args_command): ... this.
8108 (set_inferior_args_vector): Likewise.
8109 (notice_args_read): Rename to...
8110 (show_args_command): ...new.
8111 (tty_command): Remove.
8112 (run_command_1): Don't free old args, as they are freed by
8113 set_inferior_arg now.
8114 (run_no_args_command): Likewise.
8115 (inferior_environ): Remove.
8116 (run_command_1): Use environment of the current inferior.
8117 (environment_info, set_environment_command)
8118 (unset_environment_command, path_info, path_command): Likewise.
8119 (_initialize_infcmd): Adjust for function and variable renames.
8120 Do not init inferior_environ.
8121 * inferior.h (set_inferior_arg): Adjust prototype.
8122 (struct inferior): New fields args, argc, argv, terminal, environment.
8123 (inferior_environ): Remove declaration.
8124 * inferior.c (free_inferior): Free new fields.
8125 (add_inferior_silent): Initialize 'environment' field.
8126 * main.c (captured_main): Set arguments only after the initial
8127 inferior has been created. Set set_inferior_io_terminal,
8128 not tty_command.
8129 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
8130 inferior.
8131 (_initialize_mi_cmd_env): Adjust for disappearance of global
8132 inferior_environ.
8133 * solib.c (solib_find): Use environment of the current inferior.
8134
8135 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8136
8137 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
8138 HAVE_PYTHON.
8139 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
8140
8141 2010-01-20 Joel Brobecker <brobecker@adacore.com>
8142
8143 Get rid of ada-lang.c:function_name_from_pc.
8144 * ada-lang.c: Add "stack.h" #include.
8145 (function_name_from_pc): Delete.
8146 (is_known_support_routine): Replace call to function_name_from_pc
8147 by call to find_frame_funname.
8148 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8149
8150 2010-01-19 Tom Tromey <tromey@redhat.com>
8151
8152 PR c++/11026:
8153 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
8154 objfile obstack.
8155
8156 2010-01-19 Tom Tromey <tromey@redhat.com>
8157
8158 * top.c (stop_sig, float_handler, do_nothing): Remove.
8159
8160 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8161
8162 * breakpoint.c (watchpoint_check): Check the call
8163 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
8164 Extend the comment.
8165 * config/djgpp/fnchange.lst: Add translations for
8166 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
8167 watchpoint-cond-gone-stripped.c.
8168
8169 2010-01-19 Tom Tromey <tromey@redhat.com>
8170
8171 PR c++/8000:
8172 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
8173 into parent scope, and enumerator into grandparent scope.
8174
8175 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8176
8177 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
8178
8179 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8180
8181 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
8182 i[34567]86-*-solaris2.1[0-9]*.
8183 * configure.tgt: Likewise.
8184
8185 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8186
8187 * NEWS: Document the source command enhancement allowing it
8188 to load Python scripts. Document the "set/show script-extension"
8189 commands.
8190
8191 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8192
8193 Add -Wunused-function to compile flags.
8194 * configure.ac: Add -Wunused-function to build_warnings.
8195 * configure: Regenerate.
8196
8197 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8198
8199 "delete" ada-lex.c:input function, not used.
8200 * ada-lex.l: #define YY_NO_INPUT.
8201
8202 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8203
8204 Delete free_named_symtabs and associated cleanup.
8205 * symfile.h (free_named_symtabs): Delete declaration.
8206 * symfile.c: Remove some commented out code (clear_symtab_users_once).
8207 (cashier_psymtab): Comment function out.
8208 Delete declaration.
8209 (free_named_symtabs): Delete.
8210 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
8211 * dbxread.c (end_psymtab): Likewise.
8212 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
8213 * exec.c (exec_close_1): Ditto.
8214 * xcoffread.c (xcoff_end_psymtab): Likewise.
8215
8216 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8217
8218 * stack.c (print_block_frame_labels): Comment function out.
8219
8220 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8221
8222 Delete unused or undefined functions.
8223 * breakpoint.c (ep_parse_optional_filename): Delete.
8224 * dcache.c (dcache_write_line): Remove declaration.
8225 * infrun.c (build_infrun): Remove declaration.
8226 * tracepoint.c (tracepoint_save_command): Remove declaration.
8227 * linux-nat.c (init_lwp_list): Delete. No longer used.
8228 * event-loop.c (check_async_signal_handlers): Delete declaration.
8229 * infrun.c (init_execution_control_state): Delete.
8230 (proceed): Update comment to avoid mentioning
8231 init_execution_control_state.
8232 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
8233 * ada-lang.c (ada_to_static_fixed_value): Delete.
8234 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
8235 * cp-namespace.c (cp_copy_usings): Delete.
8236 * xml-syscall.c (xml_number_of_syscalls): Delete.
8237 * progspace.c (find_program_space_by_num): Delete.
8238 * inflow.c (handle_sigio): Delete declaration.
8239 * hppa-tdep.c (hppa_alignof): Delete.
8240 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
8241 (mipsnbsd_core_osabi_sniffer): Delete.
8242
8243 2010-01-18 Tom Tromey <tromey@redhat.com>
8244
8245 PR c++/9680:
8246 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
8247 (CONST_CAST): New tokens.
8248 (exp): Add new productions.
8249 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
8250 reinterpret_cast.
8251 (is_cast_operator): New function.
8252 (yylex): Handle cast operators specially.
8253 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
8254 UNOP_REINTERPRET_CAST>: New cases.
8255 * expprint.c (print_subexp_standard): Likewise.
8256 (op_name_standard): Likewise.
8257 (dump_subexp_body_standard): Likewise.
8258 * parse.c (operator_length_standard): Likewise.
8259 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
8260 UNOP_REINTERPRET_CAST.
8261 * gdbtypes.c (class_types_same_p): New function.
8262 (is_ancestor): Use it.
8263 (is_public_ancestor): New function.
8264 (is_unique_ancestor_worker): Likewise.
8265 (is_unique_ancestor): Likewise.
8266 * gdbtypes.h (class_types_same_p, is_public_ancestor)
8267 (is_unique_ancestor): Declare.
8268 * valops.c (value_reinterpret_cast): New function.
8269 (dynamic_cast_check_1): Likewise.
8270 (dynamic_cast_check_2): Likewise.
8271 (value_dynamic_cast): Likewise.
8272 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
8273
8274 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8275
8276 Fix build failure when building without Python support.
8277 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
8278 is not defined.
8279
8280 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8281
8282 Use XVS field type instead of doing a parallel lookup.
8283 * ada-lang.c (ada_get_base_type): Follow the XVS field type
8284 if it is a reference type instead of doing a type lookup using
8285 the XVS field name.
8286
8287 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8288
8289 Trust PAD types instead of using PAD___XVS.
8290 * ada-lang.c (trust_pad_over_xvs): New static variable.
8291 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
8292 parallel XVS type, follow the XVS type instead of the PAD type.
8293 (unwrap_value): Make sure that there is no parallel XVE type
8294 before returning the value as is.
8295 (set_ada_list, show_ada_list): New static variables.
8296 (set_ada_command, show_ada_command): New functions.
8297 (_initialize_ada_language): Add new "set/show ada" prefix commands.
8298 Add new "set/show ada trust-PAD-over-XVS" setting.
8299
8300 2010-01-18 Tom Tromey <tromey@redhat.com>
8301 Thiago Jung Bauermann <bauerman@br.ibm.com>
8302
8303 Allow "source" to load python scripts.
8304 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
8305 * python/python.c (source_python_script): New function.
8306 * python/python.h (source_python_script): Add declaration.
8307 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
8308 (script_ext_off, script_ext_soft, script_ext_strict)
8309 (script_ext_enums, script_ext_mode): New static constants.
8310 (show_script_ext_mode, find_and_open_script): New functions.
8311 (source_script): Enhance to handle Python scripts.
8312 (init_cli_cmds): Add set/show script-extension commands.
8313
8314 2010-01-16 Stan Shebs <stan@codesourcery.com>
8315
8316 * tracepoint.h (struct trace_status): Use unsigned long long
8317 instead of size_t.
8318 * tracepoint.c (trace_status_command): Fix printf directive.
8319 (trace_save_command): Check fwrite returns, fix printf directive.
8320 (trace_filename): New global.
8321 (tfile_open): Set it, check read returns.
8322 (tfile_close): Free trace_filename.
8323 (tfile_get_traceframe_address): Check read returns.
8324 (tfile_trace_find): Ditto.
8325 (tfile_fetch_registers): Ditto.
8326 (tfile_xfer_partial): Ditto.
8327 (tfile_get_trace_state_variable_value): Ditto.
8328
8329 2010-01-15 Stan Shebs <stan@codesourcery.com>
8330
8331 Add trace file support.
8332 * tracepoint.h (enum trace_stop_reason): New enum.
8333 (struct trace_status): New struct.
8334 (parse_trace_status): Declare.
8335 (struct uploaded_tp): Move here from remote.c,
8336 add fields for actions.
8337 (struct uploaded_tsv): New struct.
8338 * tracepoint.c (tfile_ops): New target vector.
8339 (trace_fd): New global.
8340 (tfile_open): New function.
8341 (tfile_close): New function.
8342 (tfile_files_info): New function.
8343 (tfile_get_trace_status): New function.
8344 (tfile_get_traceframe_address): New function.
8345 (tfile_trace_find): New function.
8346 (tfile_fetch_registers): New function.
8347 (tfile_xfer_partial): New function.
8348 (tfile_get_trace_state_variable_value): New function.
8349 (init_tfile_ops): New function.
8350 (_initialize_tracepoint): Call it, add tfile target.
8351 (trace_status): New global.
8352 (current_trace_status): New function.
8353 (trace_running_p): Remove, change all users to get from
8354 current_trace_status()->running.
8355 (get_trace_status): Remove.
8356 (trace_status_command): Call target_get_trace_status directly,
8357 report more detail including tracing stop reasons.
8358 (trace_find_command): Always allow tfind on a file.
8359 (trace_find_pc_command): Ditto.
8360 (trace_find_tracepoint_command): Ditto.
8361 (trace_find_line_command): Ditto.
8362 (trace_find_range_command): Ditto.
8363 (trace_find_outside_command): Ditto.
8364 (trace_frames_offset, cur_offset): Declare as off_t.
8365 (trace_regblock_size): Rename from reg_size, update users.
8366 (parse_trace_status): New function.
8367 (tfile_interp_line): New function.
8368 (disconnect_or_stop_tracing): Ensure current trace
8369 status before asking what to do.
8370 (stop_reason_names): New global.
8371 (trace_save_command): New command.
8372 (get_uploaded_tp): Move here from remote.c.
8373 (find_matching_tracepoint): Ditto.
8374 (merge_uploaded_tracepoints): New function.
8375 (parse_trace_status): Use stop_reason_names.
8376 (_initialize_tracepoint): Define tsave command.
8377 * target.h (target_ops): New fields to_save_trace_data,
8378 to_upload_tracepoints, to_upload_trace_state_variables,
8379 to_get_raw_trace_data, change to_get_trace_status
8380 to take a pointer to a status struct.
8381 (target_save_trace_data): New macro.
8382 (target_upload_tracepoints): New macro.
8383 (target_upload_trace_state_variables): New macro.
8384 (target_get_raw_trace_data): New macro.
8385 * target.c (update_current_target): Add new methods, change
8386 signature of to_get_trace_status.
8387 * remote.c (hex2bin): Make globally visible.
8388 (bin2hex): Ditto.
8389 (remote_download_trace_state_variable): Download name also.
8390 (remote_get_trace_status): Update parameter, use
8391 parse_trace_status.
8392 (remote_save_trace_data): New function.
8393 (remote_upload_tracepoints): New function.
8394 (remote_upload_trace_state_variables): New function.
8395 (remote_get_raw_trace_data): New function.
8396 (remote_start_remote): Use them.
8397 (_initialize_remote_ops): Add operations.
8398 * ax-gdb.c: Include breakpoint.h.
8399 * breakpoint.c (create_tracepoint_from_upload): Use
8400 break_command_really, return tracepoint, warn about unimplemented
8401 parts.
8402 * NEWS: Mention trace file addition.
8403
8404 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8405
8406 Fix compilation warning on gcc-3.4.
8407 * exec.c (print_section_info): Move the `displacement' variable
8408 initialization to its declaration.
8409
8410 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8411
8412 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
8413 comparison.
8414
8415 2010-01-15 Eric Botcazou <botcazou@adacore.com>
8416
8417 "info tasks" broken by typedefs in ATCB type definitions.
8418 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
8419 ada_check_typedef before retrieving the length of the type for
8420 regular fields.
8421
8422 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8423
8424 Do not use name-based lookup for unconstrained packed arrays.
8425 * ada-lang.c (find_parallel_type_by_descriptive_type):
8426 Limit the fallback to name-based lookups to the case where
8427 the type is a constrained packed array.
8428
8429 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8430
8431 Enhance gdb-gdb.py to handle main_type.type_specific.
8432 * gdb-gdb.py: Print the type-specific part of struct main_type.
8433
8434 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8435
8436 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
8437 * configure: Regenerate.
8438 * config.in: Regenerate.
8439 * utils.c: Include sys/resource.h.
8440 (dump_core, can_dump_core): New.
8441 (internal_vproblem): Update the comment. Check can_dump_core while
8442 setting dump_core_p. Replace two abort calls by dump_core calls.
8443
8444 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8445 Eli Zaretskii <eliz@gnu.org>
8446
8447 * NEWS: Document the PIE support.
8448
8449 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8450
8451 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
8452 (check_is_pie_binary, _initialize_linux_tdep): Remove.
8453
8454 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8455
8456 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
8457 Replace exec_entry_point call by bfd_get_start_address.
8458
8459 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8460
8461 Support Valgrind attachments broken by the PIE support.
8462 * auxv.c: Include gdbcore.h.
8463 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
8464 parameters ops, object and annex. Remove their assertions.
8465 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
8466 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
8467 (memory_xfer_auxv): ... here.
8468 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
8469 memory_xfer_auxv.
8470 * procfs.c (procfs_xfer_partial): Likewise.
8471 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
8472 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
8473 (svr4_solib_create_inferior_hook): Conditionalize the
8474 svr4_relocate_main_executable call.
8475
8476 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8477
8478 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
8479 target_section. Find SECT in current_target_sections, gdb_assert it.
8480 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
8481 New variable abfd.
8482 * symtab.c (lookup_objfile_from_block): Return the binary file instead
8483 of separate debug info file.
8484
8485 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8486
8487 Support PIEs with no symfile_objfile.
8488 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
8489 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
8490
8491 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8492
8493 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
8494 code part to ...
8495 (svr4_static_exec_displacement): ... a new function.
8496 (svr4_exec_displacement): New function.
8497 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
8498 new_offsets using alloca now. Remove variable old_chain and changed.
8499 Call objfile_relocate unconditionally now.
8500
8501 2010-01-14 Doug Evans <dje@google.com>
8502
8503 * gdbtypes.c (arch_flags_type): Fix comment.
8504 * gdbtypes.h (arch_composite_type): Fix comment.
8505
8506 2009-01-14 Tristan Gingold <gingold@adacore.com>
8507
8508 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
8509 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
8510 to symbol_file_add_from_bfd. Add OSO as separate objfile.
8511 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
8512 macho_add_oso_symfile.
8513 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
8514
8515 2010-01-14 Joel Brobecker <brobecker@adacore.com>
8516
8517 Tru64: Dead threads are never deleted.
8518 * dec-thread.c (dec_thread_ptid_is_alive): New function.
8519 (dec_thread_count_gdb_threads): Fix counter increment.
8520 (dec_thread_add_gdb_thread): Fix *listp increment.
8521 (resync_thread_list): Fix bug in deletion of dead threads that
8522 caused all threads to be deleted, instead of just the dead ones.
8523
8524 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
8525
8526 PR python/10705
8527
8528 * python/python-internal.h: Add lazy_string_object_type
8529 definition.
8530 (create_lazy_string_object, gdbpy_initialize_lazy_string)
8531 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
8532 * python/py-value.c (valpy_lazy_string): New function.
8533 (convert_value_from_python): Add lazy string conversion.
8534 * python/py-prettyprint.c (pretty_print_one_value): Check if
8535 return is also a lazy string.
8536 (print_string_repr): Add lazy string printing branch.
8537 (print_children): Likewise.
8538 * python/py-lazy-string.c: New file. Implement lazy strings.
8539 * python/python.c (_initialize_python): Call
8540 gdbpy_initialize_lazy_string.
8541 * varobj.c (value_get_print_value): Add lazy string printing
8542 branch. Account for encoding.
8543 * c-lang.c (c_printstr): Account for new encoding argument. If
8544 encoding is NULL, find encoding suited for type, otherwise use
8545 user encoding.
8546 * language.h (language_defn): Add encoding argument.
8547 (LA_PRINT_STRING): Likewise.
8548 * language.c (unk_lang_printstr): Update to reflect new encoding
8549 argument to language_defn.
8550 * ada-lang.h (ada_printstr): Likewise.
8551 * c-lang.h (c_printstr): Likewise.
8552 * p-lang.h (pascal_printstr);
8553 * f-lang.c (f_printstr): Likewise.
8554 * m2-lang.c (m2_printstr): Likewise.
8555 * objc-lang.c (objc_printstr): Likewise.
8556 * p-lang.c (pascal_printstr): Likewise.
8557 * scm-lang.c (scm_printstr): Likewise.
8558 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
8559 encoding argument.
8560 * ada-valprint.c (ada_printstr): Likewise.
8561 * f-valprint.c (f_val_print): Likewise
8562 * m2-valprint.c (m2_val_print): Likewise.
8563 * p-valprint.c (pascal_val_print): Likewise.
8564 * expprint.c (print_subexp_standard): Likewise.
8565 * valprint.c (val_print_string): Likewise.
8566 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
8567 (SUBDIR_PYTHON_SRCS): Likewise.
8568 (py-lazy-string.o): New rule.
8569
8570 2010-01-13 Doug Evans <dje@google.com>
8571
8572 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
8573 uninitialized" warning from gcc on local `tree'.
8574
8575 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
8576
8577 Implement core awareness.
8578
8579 * bcache.c (compare_ints): Remove
8580 (print_percentage): Use compare_positive_ints.
8581 * defs.h (compare_positive_ints): Declare.
8582 * linux-nat.h (struct lin_lwp): New field core.
8583 (linux_nat_core_of_thread_1): Declare.
8584 * linux-nat.c (add_lwp): Init the 'core' field.
8585 (linux_nat_wait_1): Record the core.
8586 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
8587 (linux_nat_add_target): Register the above.
8588 * linux-thread-db.c (update_thread_core): New.
8589 (thread_db_find_new_threads): Update core information for
8590 every thread.
8591 * remote.c (struct private_thread_info): New.
8592 (free_private_thread_info, demand_private_info): New.
8593 (PACKET_qXfer_threads, use_osdata_threads): New.
8594 (struct thread_item, threads_parsing_context
8595 (start_thread, end_thread, thread_attributes)
8596 (thread_children, threads_children, threads_elements): New.
8597 (remote_threads_info): Try qXfer:threads before anything
8598 else.
8599 (remote_protocol_packets): Register qXfer:threads.
8600 (remote_open_1): Init use_osdata_threads.
8601 (struct stop_reply): New field 'core'.
8602 (remote_parse_stop_reply): Parse core number.
8603 (process_stop_reply): Record core number.
8604 (remote_xfer_partial): Handle qXfer:threads.
8605 (remote_core_of_thread): New.
8606 (init_remote_ops): Register remote_core_of_thread.
8607 (_initialize_remote): Register qXfer:read.
8608 * target.c (target_core_of_thread): New
8609 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
8610 (struct target_ops): New field to_core_of_threads.
8611 (target_core_of_thread): Declare.
8612 * gdbthread.h (struct thread_info): New field private_dtor.
8613 * thread.c (print_thread_info): Report the core.
8614 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
8615 * utils.c (compare_positive_ints): New.
8616 * features/threads.dtd: New.
8617 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
8618 * mi/mi-main.c (struct collect_cores_data, collect_cores)
8619 (do_nothing, free_vector_of_osdata_items)
8620 (splay_tree_int_comparator, free_splay_tree): New.
8621 (print_one_inferior_data): Implemented printing of selected
8622 inferiors. Collect and print cores.
8623 (output_cores): New.
8624 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
8625 thread groups together with --available.
8626
8627 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8628
8629 * configure: Regenerate (for _STRUCTURED_PROC).
8630
8631 2010-01-12 Joel Brobecker <brobecker@adacore.com>
8632
8633 Delete dead function.
8634 * ada-lang.c (extract_string): Delete. No longer used.
8635
8636 2010-01-12 Joel Brobecker <brobecker@adacore.com>
8637
8638 Fix -Wunused warning in dec-thread.c.
8639 * dec-thread.c (dec_thread_count_gdb_threads)
8640 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
8641
8642 2010-01-12 Joel Brobecker <brobecker@adacore.com>
8643
8644 * ada-valprint.c (ada_print_floating): Remove trailing space.
8645
8646 2010-01-12 Joel Brobecker <brobecker@adacore.com>
8647
8648 Add support for DW_AT_GNAT_descriptive_type.
8649 * gdbtypes.h (enum type_specific_kind): New enum.
8650 (struct main_type) [type_specific_field]: New component.
8651 [type_specific]: Add new component "gnat_stuff".
8652 (struct gnat_aux_type): New type.
8653 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
8654 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
8655 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
8656 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
8657 (TYPE_SPECIFIC_FIELD): New macros.
8658 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
8659 type does not hold any cplus-specific data.
8660 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
8661 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
8662 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
8663 cplus-specific data.
8664 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
8665 Set new component TYPE_SPECIFIC_FIELD (type).
8666 (gnat_aux_default): New constant.
8667 (allocate_gnat_aux_type): New function.
8668 (init_type): Add initialization the type-specific stuff for
8669 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
8670 (print_gnat_stuff): New function.
8671 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
8672 specific data. Adjust code that prints the contents of the
8673 type-specific union using the TYPE_SPECIFIC_FIELD value.
8674 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
8675 the type cplus stuff for Ada types.
8676 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
8677 Error out if these routines are called with an Ada type.
8678 (read_structure_type, read_array_type, read_subrange_type):
8679 Add call to set_descriptive_type.
8680 (set_die_type): Initialize the gnat-specific data if necessary.
8681 (need_gnat_info, die_descriptive_type, set_descriptive_type):
8682 New functions.
8683 * ada-lang.c (decode_constrained_packed_array_type): Use
8684 decode_constrained_packed_array_type instead of doing a standard
8685 lookup to locate a parallel type.
8686 (find_parallel_type_by_descriptive_type): New function.
8687 (ada_find_parallel_type_with_name): New function.
8688 (ada_find_parallel_type): Reimplement using
8689 ada_find_parallel_type_with_name.
8690 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
8691 to check if type has a cplus stuff.
8692 * linespec.c (total_number_of_methods): Likewise.
8693 * mdebugread.c (new_type): Likewise.
8694
8695 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8696
8697 * NEWS: Document the 0b binary number prefix parsing.
8698
8699 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8700
8701 * objfiles.c (objfile_relocate1): Change the return type to int.
8702 Describe the new return value. Return non-zero if data changed.
8703 (objfile_relocate): New variable changed. Set it. Call
8704 breakpoint_re_set depending on CHANGED.
8705
8706 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8707
8708 Implement binary numbers parsing.
8709 * c-exp.y (parse_number): New case 'b' and 'B'.
8710
8711 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8712 Tristan Gingold <gingold@adacore.com>
8713
8714 * solib.c (info_sharedlibrary_command): Replace
8715 objfile_has_partial_symbols and objfile_has_full_symbols calls by
8716 objfile_has_symbols.
8717
8718 2010-01-10 Joel Brobecker <brobecker@adacore.com>
8719
8720 * NEWS: Document the improvements made to the mips-irix port.
8721
8722 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8723
8724 Fix the documentation of valprint.c:value_print.
8725 * valprint.c (value_print): Update the function description to
8726 mention that the syntax of the output follows the current_language,
8727 not necessarily C.
8728
8729 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8730
8731 Fix displacement of separate debug info files.
8732 * objfiles.c (objfile_relocate): Rename to ...
8733 (objfile_relocate1): ... here and make it static. Extend the comment.
8734 (objfile_relocate): New function.
8735 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
8736 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
8737 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
8738 allocated using alloca.
8739 * symfile.c (copy_section_addr_info): Remove.
8740 (build_section_addr_info_from_objfile): Make it global. New variables
8741 addr_bit and mask, use them.
8742 * symfile.h (build_section_addr_info_from_objfile): New prototype.
8743 (copy_section_addr_info): Remove.
8744
8745 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8746
8747 Signal unwinder for mips-irix N32.
8748 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
8749 tramp-frame.h.
8750 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
8751 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8752 (SIGCONTEXT_LO_OFF): New macros.
8753 (mips_irix_n32_tramp_frame_init): New function.
8754 (mips_irix_n32_tramp_frame): New static constant.
8755 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
8756
8757 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8758
8759 Breakpoint in shared library does not work on mips-irix.
8760 * procfs.c: #include "observer.h".
8761 (procfs_inferior_created): New function, moving here the code
8762 which unsets the syssgi syscall-exit notifications.
8763 (procfs_create_inferior): Remove the code which unsets the syssgi
8764 syscall-exit notifications. It is too early to do this here.
8765 (_initialize_procfs): Attach the procfs_inferior_created observer.
8766
8767 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8768
8769 Wrong return convention for arrays (mips-irix).
8770 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
8771 128 bits or smaller are returned the same way as structs
8772 and unions of the the same size.
8773
8774 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8775
8776 Cannot set the PC on mips-irix.
8777 * irix5-nat.c (fill_gregset): Check regno against the raw PC
8778 register number, no the cooked one.
8779
8780 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8781
8782 Error while loading core file on mips-irix.
8783 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
8784 if debugging from a core file.
8785
8786 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8787
8788 GDB hangs when attaching to process on mips-irix.
8789 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
8790 attaching to a process.
8791
8792 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8793
8794 Use the correct breakpoint instruction on mips-irix.
8795 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
8796 containing the correct breakpoint instruction to use on mips-irix.
8797 Use it when the osabi is GDB_OSABI_IRIX.
8798
8799 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8800
8801 -Wunused warning in procfs.c (mips-irix only).
8802 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
8803 throughout instead of using praddset and prdelset respectively.
8804
8805 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8806
8807 GDB crash while stepping into function.
8808 * infrun.c (handle_inferior_event): Refetch the current frame
8809 after handling what.main_action, in case that pointer became
8810 dangling.
8811
8812 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8813
8814 Fix build failure of solaris-hosted cross debuggers.
8815 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
8816
8817 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
8818
8819 Fix build failure on sparc-solaris.
8820 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
8821
8822 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8823
8824 Move some symfile code into subroutines.
8825 * symfile.h (relative_addr_info_to_section_offsets)
8826 (addr_info_make_relative): New prototypes.
8827 * symfile.c (default_symfile_offsets): Move a part to ...
8828 (relative_addr_info_to_section_offsets): ... this new function.
8829 (default_symfile_offsets): Call it.
8830 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
8831 this part to ...
8832 (addr_info_make_relative): ... this new function.
8833
8834 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8835
8836 Add from_tty to solib_create_inferior_hook.
8837 * infcmd.c (post_create_inferior): Move solib_add after
8838 solib_create_inferior_hook. Pass from_tty to
8839 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
8840 0 from_tty and comment why.
8841 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
8842 * linux-nat.c (linux_child_follow_fork): Likewise.
8843 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
8844 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
8845 from_tty.
8846 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
8847 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
8848 * solib-null.c (null_solib_create_inferior_hook): Likewise.
8849 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
8850 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
8851 * solib-som.c (som_solib_create_inferior_hook): Likewise.
8852 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
8853 Pass it to svr4_so_ops.solib_create_inferior_hook.
8854 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
8855 from_tty.
8856 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
8857 solib_add.
8858 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
8859 enable_break.
8860 * solib-target.c (solib_target_solib_create_inferior_hook): New
8861 parameter from_tty.
8862 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
8863 it to ops->solib_create_inferior_hook.
8864 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
8865 Move solib_add after solib_create_inferior_hook, call it now with
8866 from_tty as 0. New comment there.
8867 * solib.h (solib_create_inferior_hook): New parameter from_tty.
8868 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
8869 Likewise.
8870
8871 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
8872
8873 Fix multiexec race.
8874 * infrun.c (handle_inferior_event): Use get_thread_regcache
8875 with events ptid, not get_current_regcache.
8876
8877 2009-01-08 Joel Brobecker <brobecker@adacore.com>
8878
8879 GDB crash with empty executable name (MinGW).
8880 * source.c (openp): Add assert that parameter string is not NULL.
8881 if parameter string is an empty string, then return with a failure
8882 immediately.
8883
8884 2009-01-08 Joel Brobecker <brobecker@adacore.com>
8885
8886 Get rid of support for VAX Floats.
8887 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8888 (ada_vax_float_print_function): Delete.
8889 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8890 (ada_vax_float_print_function): Delete.
8891 * ada-typeprint.c (print_vax_floating_point_type): Delete.
8892 (ada_print_type): Remove support for VAX floats.
8893 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
8894
8895 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8896
8897 * stabsread.c (read_args): Handle zero arguments.
8898
8899 2009-01-08 Joel Brobecker <brobecker@adacore.com>
8900
8901 Cannot find in-tree libiconv.a after reconfigure.
8902 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
8903 that we can use, then cache the path to this archive.
8904 * configure: Regenerate.
8905
8906 2010-01-07 Stan Shebs <stan@codesourcery.com>
8907
8908 Make tracepoint operations go through target vector.
8909 * target.h (enum trace_find_type): New enum.
8910 (struct target_ops): New fields to_trace_init,
8911 to_download_tracepoint, to_download_trace_state_variable,
8912 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
8913 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
8914 to_set_disconnected_tracing.
8915 (target_trace_init): New macro.
8916 (target_download_tracepoint): New macro.
8917 (target_download_trace_state_variable): New macro.
8918 (target_trace_start): New macro.
8919 (target_trace_set_readonly_regions): New macro.
8920 (target_get_trace_status): New macro.
8921 (target_trace_stop): New macro.
8922 (target_trace_find): New macro.
8923 (target_get_trace_state_variable_value): New macro.
8924 (target_set_disconnected_tracing): New macro.
8925 * target.c (update_current_target): Inherit and set defaults for
8926 tracepoint operations.
8927 * tracepoint.c (default_collect): Make globally visible.
8928 (target_is_remote): Remove, along with all calls.
8929 (tvariables_info): Call target_get_trace_state_variable_value.
8930 (remote_set_transparent_ranges): Remove.
8931 (trace_start_command): Call target_trace_init,
8932 target_download_tracepoint, etc.
8933 (download_tracepoint): Remove.
8934 (trace_stop_command): Simplify.
8935 (stop_tracing): Call target_trace_stop.
8936 (get_trace_status): Call target_get_trace_status.
8937 (trace_status_command): Add case for targets that cannot trace.
8938 (finish_tfind_command): Change to take numerical arguments, call
8939 target_trace_find.
8940 (trace_find_command): Update call to finish_tfind_command.
8941 (trace_find_pc_command): Ditto.
8942 (trace_find_tracepoint_command): Ditto.
8943 (trace_find_line_command): Ditto.
8944 (trace_find_range_command): Ditto.
8945 (trace_find_outside_command): Ditto.
8946 (set_disconnected_tracing_value): Call
8947 target_set_disconnected_tracing.
8948 * remote.c: Add protocol encoding bits from tracepoint.c.
8949 (trace_error): Move from tracepoint.c.
8950 (remote_get_noisy_reply): Ditto.
8951 (free_actions_list_cleanup_wrapper): Ditto.
8952 (free_actions_list): Ditto.
8953 (remote_trace_init): New function.
8954 (remote_download_tracepoint): New function.
8955 (remote_download_trace_state_variable): New function.
8956 (remote_trace_set_readonly_regions): New function.
8957 (remote_trace_start): New function.
8958 (remote_get_trace_status): New function.
8959 (remote_trace_stop): New function.
8960 (remote_trace_find): New function.
8961 (remote_download_trace_state_variable): New function.
8962 (remote_set_disconnected_tracing): New function.
8963 (init_remote_ops): Add tracepoint operations.
8964
8965 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
8966
8967 2010-01-07 Tristan Gingold <gingold@adacore.com>
8968
8969 * symfile.c (build_section_addr_info_from_objfile): New function.
8970 (symbol_file_add_separate): Don't use offsets from objfile but
8971 built an addr info.
8972
8973 2010-01-06 Stan Shebs <stan@codesourcery.com>
8974
8975 Support disconnected tracing.
8976 * infcmd.c (detach_command): Ask whether to stop tracing.
8977 * cli/cli-cmds.c (quit_command): Ditto.
8978 * breakpoint.h (struct breakpoint): New field number_on_target.
8979 * breakpoint.c (create_tracepoint_from_upload): New function.
8980 (get_tracepoint_by_number_on_target): New function.
8981 * remote.c (struct remote): New field disconnected_tracing.
8982 (remote_disconnected_tracing_feature): New function.
8983 (remote_protocol_features): Add DisconnectedTracing.
8984 (struct uploaded_tp): New struct.
8985 (uploaded_tps): New global.
8986 (get_uploaded_tp): New function.
8987 (find_matching_tracepoint): New function.
8988 (remote_get_tracing_state): New function.
8989 (remote_start_remote): Call it.
8990 * tracepoint.c (disconnected_tracing): New global.
8991 (trace_start_command): Initialize number_on_target.
8992 (stop_tracing): New function, split out from...
8993 (trace_stop_command): Call stop_tracing.
8994 (get_trace_status): New function, split out from...
8995 (trace_status_command): Call get_trace_status, add info on
8996 disconnection behavior.
8997 (disconnect_or_stop_tracing): New function.
8998 (finish_tfind_command): Translate from number on target.
8999 (trace_find_tracepoint_command): Translate to number on target.
9000 (send_disconnected_tracing_value): New function.
9001 (set_disconnected_tracing): New function.
9002 (_initialize_tracepoint): Add disconnected-tracing variable.
9003 * NEWS: Mention disconnected tracing.
9004
9005 2010-01-06 Tristan Gingold <gingold@adacore.com>
9006
9007 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
9008 parameter to main_objfile. Iterate on all separate debug objfiles.
9009 * symfile.h (symbol_file_add_separate)
9010 (find_separate_debug_file_by_debuglink): Remove parameter names.
9011 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
9012 (reread_symbols): Use free_objfile_separate_debug.
9013 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
9014 Adjust comment.
9015 (objfile_separate_debug_iterate, add_separate_debug_objfile)
9016 (free_objfile_separate_debug): New prototypes.
9017 * objfiles.c (objfile_separate_debug_iterate): New function.
9018 (add_separate_debug_objfile, free_objfile_separate_debug): New
9019 functions.
9020 (free_objfile): Use free_objfile_separate_debug. Adjust for
9021 multiple separate debug objfile.
9022 (objfile_has_symbols): Adjust comment. Iterate on all separate
9023 debug objfiles.
9024 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
9025 debug objfile.
9026 (lookup_minimal_symbol_text): Ditto.
9027 (lookup_minimal_symbol_by_pc_name): Ditto.
9028 (lookup_minimal_symbol_solib_trampoline): Ditto.
9029 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
9030 debug objfiles.
9031
9032 2010-01-05 Stan Shebs <stan@codesourcery.com>
9033
9034 Add fast tracepoints.
9035 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
9036 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
9037 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
9038 * breakpoint.c (tracepoint_type): New function.
9039 (ALL_TRACEPOINTS): Use it.
9040 (should_be_inserted): Ditto.
9041 (bpstat_check_location): Ditto.
9042 (print_one_breakpoint_location): Ditto.
9043 (user_settable_breakpoint): Ditto.
9044 (set_breakpoint_location_function): Ditto.
9045 (disable_breakpoints_in_shlibs): Ditto.
9046 (delete_trace_command): Ditto.
9047 (print_it_typical): Add bp_fast_tracepoint case.
9048 (bpstat_what): Ditto.
9049 (print_one_breakpoint_location): Ditto.
9050 (allocate_bp_location): Ditto.
9051 (mention): Ditto.
9052 (breakpoint_re_set_one): Ditto.
9053 (disable_command): Ditto.
9054 (enable_command): Ditto.
9055 (check_fast_tracepoint_sals): New function.
9056 (break_command_really): Call it.
9057 (ftrace_command): New function.
9058 (_initialize_breakpoint): Add ftrace command.
9059 * gdbarch.sh (fast_tracepoint_valid_at): New.
9060 * gdbarch.h, gdbarch.c: Regenerate.
9061 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
9062 (i386_gdbarch_init): Use it.
9063 * remote.c (struct remote_state): New field fast_tracepoints.
9064 (PACKET_FastTracepoints): New packet config type.
9065 (remote_fast_tracepoint_feature): New function.
9066 (remote_protocol_features): Add FastTracepoints.
9067 (remote_supports_fast_tracepoints): New function.
9068 (_initialize_remote): Add FastTracepoints.
9069 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
9070 * NEWS: Mention fast tracepoints.
9071
9072 2010-01-06 Joel Brobecker <brobecker@adacore.com>
9073
9074 * gdb-gdb.py: New file.
9075
9076 2010-01-05 Michael Snyder <msnyder@vmware.com>
9077
9078 * infrun.c (handle_inferior_event): Fix typo in comment.
9079
9080 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9081
9082 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
9083
9084 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9085
9086 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
9087 and s390x-linux64.
9088 (s390-linux32-expedite): Define.
9089 (s390-linux64-expedite): Define.
9090 (s390x-linux64-expedite): Define.
9091 * features/s390-acr.xml: New file.
9092 * features/s390-fpr.xml: New file.
9093 * features/s390-core32.xml: New file.
9094 * features/s390-core64.xml: New file.
9095 * features/s390x-core64.xml: New file.
9096 * features/s390-linux32.xml: New file.
9097 * features/s390-linux64.xml: New file.
9098 * features/s390x-linux64.xml: New file.
9099 * features/s390-linux32.c: New generated file.
9100 * features/s390-linux64.c: New generated file.
9101 * features/s390x-linux64.c: New generated file.
9102
9103 * regformats/s390-linux32.dat: New generated file.
9104 * regformats/s390-linux64.dat: New generated file.
9105 * regformats/s390x-linux64.dat: New generated file.
9106 * regformats/reg-s390.dat: Remove.
9107 * regformats/reg-s390x.dat: Remove.
9108
9109 * s390-nat.c: Include "auxv.h" and <elf.h>.
9110 (HWCAP_S390_HIGH_GPRS): Define if undefined.
9111 (s390_target_wordsize): New function.
9112 (s390_auxv_parse): Likewise.
9113 (s390_get_hwcap): Likewise.
9114 (s390_read_description): Likewise.
9115 (_initialize_s390_nat): Install s390_auxv_parse and
9116 s390_read_description.
9117
9118 * s390-tdep.c: Include "features/s390-linux32.c",
9119 "features/s390-linux64.c", and "features/s390x-linux64.c".
9120 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
9121 (s390_register_call_saved): New function.
9122 (s390_register_name): Remove.
9123 (s390_register_type): Remove.
9124 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
9125 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
9126 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
9127 (s390_pseudo_register_name): New function.
9128 (s390_pseudo_register_type): New function.
9129 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
9130 Handle full GPR pesudos and varying pseudo register numbers.
9131 (s390_pseudo_register_write): Likewise
9132 (s390x_pseudo_register_read): Remove.
9133 (s390x_pseudo_register_write): Likewise.
9134 (s390_register_group): Remove.
9135 (s390_pseudo_register_group): New function.
9136 (s390_regmap_gregset): Add GPR upper halves.
9137 (s390x_regmap_gregset): Likewise.
9138 (s390_regmap_fpregset): Likewise.
9139 (s390_regmap_upper): New global variable.
9140 (s390_upper_regset): New global variable.
9141 (s390_upper_regset_sections): New global variable.
9142 (s390_regset_from_core_section): Handle GPR upper halves.
9143 (s390_core_read_description): New function.
9144 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
9145 register information. Handle varying pseudo register numbers.
9146 (s390_backchain_frame_unwind_cache): Likewise.
9147 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
9148 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
9149 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
9150 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
9151 Handle varying pseudo register numbers.
9152 (s390_unwind_pc): Handle varying pseudo register numbers.
9153 (s390_dwarf2_prev_register): New function.
9154 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
9155 register information. Handle varying pseudo register numbers.
9156 Install s390_dwarf2_prev_register to unwind full GPRs.
9157 (s390_gdbarch_init): Handle target descriptions. Assign varying
9158 pseudo register numbers. Install s390_adjust_frame_regnum.
9159 (_initialize_s390_tdep): Initialize target descriptions.
9160
9161 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
9162 (S390_NUM_REGS): Redefine to include upper half registers.
9163 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
9164 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
9165 (tdesc_s390_linux32): Add declaration.
9166 (tdesc_s390_linux64): Likewise.
9167 (tdesc_s390x_linux64): Likewise.
9168
9169 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9170
9171 * regset.h (struct core_regset_section): Add HUMAN_NAME.
9172 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
9173 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
9174 (ppc_linux_vmx_regset_sections): Likewise.
9175 (ppc_linux_fp_regset_sections): Likewise.
9176
9177 * corelow.c (get_core_register_section): Constify arguments.
9178 (get_core_registers): Use gdbarch_core_regset_sections instead
9179 of hard-coded platform-specific register section names.
9180
9181 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9182
9183 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
9184 a register, assume the least-significant part is used.
9185 (write_pieced_value): Likewise.
9186
9187 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9188
9189 * printcmd.c: Include "arch-utils.h".
9190 (do_one_display): Re-parse expression if current architecture changed.
9191
9192 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9193 Joel Brobecker <brobecker@adacore.com>
9194
9195 * gdbtypes.c (check_typedef): New comment on type length.
9196 * value.c (allocate_value_lazy): Remove the unused atype variable. New
9197 comment on type length.
9198 (value_primitive_field): Keep the original TYPE value, new comment.
9199
9200 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9201
9202 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
9203 p_start. Change != comparisons to > and < comparisons.
9204
9205 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9206
9207 * cli/cli-script.c (process_next_line): Check P2 overrun.
9208
9209 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9210
9211 Update the copyright hearder to add year 2010 for most GDB files.
9212
9213 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9214
9215 Fix build failure in inf-ptrace.c.
9216 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
9217
9218 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9219
9220 * top.c (print_gdb_version): Update copyright year.
9221
9222 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
9223
9224 Fix break *FUN'address thread NUM.
9225 * ada-lex.l (task): Expand rule to also match the thread keyword.
9226
9227 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9228
9229 Fix break *FUN'address task NUM.
9230 * ada-lex.l (task): New rule.
9231 * ada-lang.c (valid_task_id): Make sure the Ada task list has
9232 been built before using it.
9233
9234 For older changes see ChangeLog-2009.
9235 \f
9236 Local Variables:
9237 mode: change-log
9238 left-margin: 8
9239 fill-column: 74
9240 version-control: never
9241 coding: utf-8
9242 End: