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