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