Remove the extra VEX check
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
52b3699b
TG
12012-05-04 Tristan Gingold <gingold@adacore.com>
2
3 * printcmd.c (set_command): Emit a warning if the expression is not
4 an assignment.
5
94c74239
JB
62012-05-03 Joel Brobecker <brobecker@adacore.com>
7
8 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
9 Make static.
10
fcf57f19
SDJ
112012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12
13 * stap-probe.c (stap_is_operator): Change declaration.
14 (stap_get_opcode): Change return value.
15 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
16 `stap_parse_argument_1'.
17
27d2932e
PA
182012-05-03 Pedro Alves <pedro@codesourcery.com>
19
20 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
21 debug log.
22
a20ee7a4
SCR
232012-05-03 Siva Chandra Reddy <sivachandra@google.com>
24
25 Add two new methods global_block and static_block to gdb.Symtab
26 objects.
27 * NEWS (Python scripting): Add entry about the new methods.
28 * python/py-symtab.c (stpy_global_block): New function which
29 implements the gdb.Symtab.global_block() method.
30 (stpy_static_block): New function which implements the
31 gdb.Symtab.static_block() method.
32 (symtab_object_methods): Add entries for the two new methods.
33
943cb756
DE
342012-05-03 Doug Evans <dje@google.com>
35
36 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
37 files.
38
f4644a3f
YQ
392012-05-03 Yao Qi <yao@codesourcery.com>
40
41 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
42 space.
43 (i386_process_record): Ditto.
44
ef61f180
JB
452012-05-02 Joel Brobecker <brobecker@adacore.com>
46
47 * infcall.c (unwind_on_signal_p): Make static.
48
02f1df11
JB
492012-05-02 Joel Brobecker <brobecker@adacore.com>
50
51 * sol-thread.c (solaris_pid_to_str): Make static.
52 (_initialize_sol_thread): Add prototype.
53
39023530
JB
542012-05-02 Joel Brobecker <brobecker@adacore.com>
55
56 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
57
c6b0c501
CF
582012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
59
60 * MAINTAINERS: Remove myself.
61
1ef71717
JK
622012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
63
64 Fix --without-auto-load-safe-path for MS-Windows host platform.
65 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
66
b31b86a7
EZ
672012-05-02 Eli Zaretskii <eliz@gnu.org>
68
69 * gdb_curses.h: Undefine KEY_EVENT before including curses
70 headers. Move "#undef MOUSE_MOVED" before any curses header
71 inclusion.
72
777532fc
SDJ
732012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
74
75 * features/i386/i386-mmx-linux.c: Regenerate.
76 * features/rs6000/powerpc-32.c: Likewise.
77 * features/rs6000/powerpc-32l.c: Likewise.
78 * features/rs6000/powerpc-403.c: Likewise.
79 * features/rs6000/powerpc-403gc.c: Likewise.
80 * features/rs6000/powerpc-405.c: Likewise.
81 * features/rs6000/powerpc-505.c: Likewise.
82 * features/rs6000/powerpc-601.c: Likewise.
83 * features/rs6000/powerpc-602.c: Likewise.
84 * features/rs6000/powerpc-603.c: Likewise.
85 * features/rs6000/powerpc-604.c: Likewise.
86 * features/rs6000/powerpc-64.c: Likewise.
87 * features/rs6000/powerpc-64l.c: Likewise.
88 * features/rs6000/powerpc-750.c: Likewise.
89 * features/rs6000/powerpc-860.c: Likewise.
90 * features/rs6000/powerpc-e500.c: Likewise.
91 * features/rs6000/powerpc-e500l.c: Likewise.
92 * features/rs6000/powerpc-isa205-32l.c: Likewise.
93 * features/rs6000/powerpc-isa205-64l.c: Likewise.
94 * features/rs6000/rs6000.c: Likewise.
95
d71871bc
SDJ
962012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
97
98 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
99 variable.
100 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
101 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
102 (stap_parse_argument) <e>: Likewise.
103 (handle_stap_probe) <byte_order>: Likewise.
104
fd820528
DE
1052012-04-30 Doug Evans <dje@google.com>
106
107 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
108 init_and_read_dies_worker. All callers updated.
109 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
110 replaced with init_cutu_and_read_dies.
111 (load_partial_comp_unit): Pass 1 for use_existing_cu.
112 (find_partial_die): Remove FIXME. Don't free current CU.
113
ec3f619d 1142012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
115
116 * contrib: New directory.
117 * contrib/test_pubnames_and_indexes.py: New file.
118
fceca515
DE
1192012-04-30 Doug Evans <dje@google.com>
120
121 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
122 All callers updated.
123 (init_cu_die_reader): Verify the section is non-empty.
124 (dwarf_decode_line_header): Don't dereference section->asection
125 until we know the section is present.
126
311fe7e1
SDJ
1272012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
128
129 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
130 probes.
131
5977971a
YQ
1322012-04-29 Yao Qi <yao@codesourcery.com>
133
134 * gdb-code-style.el: New hook gdb-markup-hook
135 and gdb-comment-hook.
136
dee91e82
DE
1372012-04-28 Doug Evans <dje@google.com>
138
3019eac3
DE
139 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
140 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
141 objfile->obfd.
142 * symfile.h (dwarf2_debug_sections): New member addr.
143 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
144 (ctx_no_get_addr_index): New function.
145 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
146 (ctx_no_get_addr_index): Declare.
147 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
148 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
149 (dwarf_expr_ctx_funcs): Update.
150 (needs_get_addr_index): New function.
151 (needs_frame_ctx_funcs): Update.
152 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
153 * dwarf2read.c: #include "gdbcore.h".
154 (dwarf2_per_objfile): New members addr, dwo_files.
155 (dwarf2_elf_names): Add entry for addr.
156 (struct dwo_section_names): New type.
157 (dwo_section_names): New static global.
158 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
159 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
160 old debug_types_section member updated to use this.
161 Rename member debug_types_section to info_or_types_section,
162 all uses updated.
163 (signatured_type): Rename member type_offset to type_offset_in_tu,
164 all uses updated. New member type_offset_in_section.
165 (struct dwo_sections): New type.
166 (struct dwo_unit): New type.
167 (struct dwo_file): New type.
168 (die_reader_specs): New member dwo_file.
169 (dwarf2_locate_sections): Watch for .debug_addr.
170 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
171 (dwarf2_read_section): Get bfd of section from bfd's asection,
172 instead of objfile.
173 (create_cus_from_index): Initialize the_cu->info_or_types_section.
174 (create_signatured_type_table_from_index): Initialize
175 sig_type->info_or_types_section.
176 (dw2_get_file_names): Statement lists for type units with DWO files
177 live in the DWO file.
178 (create_debug_types_hash_table): New function.
179 (create_all_type_units): Rewrite.
180 (init_cu_die_reader): New arg dwo_file, all callers updated.
181 (init_and_read_dies_worker): Get section from
182 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
183 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
184 continue reading the CU/TU from there.
185 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
186 updated. Get section from this_cu->info_or_types_section.
187 (create_all_comp_units): Initialize this_cu->info_or_types_section.
188 (skip_one_die): New cases DW_FORM_GNU_addr_index,
189 DW_FORM_GNU_str_index.
190 (hash_dwo_file, eq_dwo_file): New functions.
191 (allocate_dwo_file_hash_table): New function.
192 (hash_dwo_unit, eq_dwo_unit): New functions.
193 (allocate_dwo_unit_table): New function.
194 (dwarf2_locate_dwo_sections): New function.
195 (struct create_dwo_info_table_data): New type.
196 (create_debug_info_hash_table_reader): New function.
197 (create_debug_info_hash_table): New function.
198 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
199 (lookup_dwo_file): New function.
200 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
201 (free_dwo_file, free_dwo_file_cleanup): New functions.
202 (free_dwo_file_from_slot, free_dwo_files): New functions.
203 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
204 (dwarf2_record_block_ranges): Ditto.
205 (read_partial_die): Ditto.
206 (process_enumeration_scope): Update to use type_offset_in_section.
207 (read_full_die_1): New function.
208 (read_full_die): Rewrite.
209 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
210 DW_FORM_GNU_str_index.
211 (read_addr_index_1, read_addr_index): New functions.
212 (read_addr_index_from_leb128): New function.
213 (struct dwarf2_read_addr_index_data): New type.
214 (dwarf2_read_addr_index_reader): New function.
215 (dwarf2_read_addr_index): New function.
216 (read_str_index): New function.
217 (leb128_size): New function.
218 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
219 If processing a type unit from a DWO file, get the line section
220 from the DWO file.
221 (var_decode_location): Watch for DW_OP_GNU_addr_index.
222 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
223 DW_FORM_GNU_str_index.
224 (lookup_die_type): Check whether section offset of type's die is
225 known before looking it up. Remove assert. Condition can
226 legimately happen for inter-cu type references.
227 (dwarf_attr_name): Handle Fission attributes.
228 (dwarf_form_name): Handle Fission forms.
229 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
230 DW_FORM_GNU_str_index.
231 (follow_die_sig): Update to use type_offset_in_section.
232 (decode_locdesc): New case DW_OP_GNU_addr_index.
233 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
234 DW_FORM_GNU_str_index.
235 (cu_debug_loc_section): New function.
236 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
237 (dwarf2_per_objfile_free): Unmap .debug_addr section.
238 Free DWO files if present.
239 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
240
dee91e82
DE
241 Refactor DIE reading.
242 * dwarf2read.c (dwarf2_per_objfile): Replace members
243 debug_info_type_hash and debug_types_type_hash with die_type_hash.
244 (die_reader_specs): New member "die_section". Temporarily make
245 member "buffer" non-const, pending constifying all info_ptr uses.
246 (die_reader_func_ftype): New typedef.
247 (dw2_get_file_names_reader): New function.
248 (dw2_get_file_names): Rewrite.
249 (read_and_check_type_unit_head): Rename arg type_offset to
250 type_offset_in_tu.
251 (create_all_type_units): Improve debugging message.
252 Improve dummy type unit check.
253 (init_cu_die_reader): New arg "section". All callers updated.
254 (init_and_read_dies_worker): New function.
255 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
256 (init_cutu_and_read_dies_no_follow): New function.
257 (init_cutu_and_read_dies_simple): New function.
258 (process_psymtab_comp_unit_reader): New function.
259 (process_psymtab_comp_unit): Delete args section,
260 is_debug_types_section. Rewrite. All callers updated.
261 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
262 All callers updated. Rewrite.
263 (load_partial_comp_unit_reader): New function.
264 (load_partial_comp_unit): Rewrite.
265 (skip_children): New arg reader. Delete args buffer, cu.
266 All callers updated.
267 (skip_one_die): New arg reader. Delete args buffer, cu.
268 All callers updated.
269 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
270 All callers updated.
271 (load_full_comp_unit_reader): New function.
272 (load_full_comp_unit): Rewrite.
273 (read_comp_unit): Delete.
274 (read_die_and_children_1): Delete, contents moved ...
275 (read_die_and_children): ... here.
276 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
277 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
278 All callers updated.
279 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
280 All callers updated.
281 (find_partial_die): Rewrite load_all_dies support.
282 (read_attribute_value): New arg reader. Delete args abfd, cu.
283 All callers updated.
284 (read_attribute): New arg reader. Delete args abfd, cu.
285 All callers updated.
286 (load_full_type_unit): Add assert.
287 (read_signatured_type_reader): New function.
288 (read_signatured_type): Rewrite.
289 (free_stack_comp_unit): Remove call to age_cached_comp_units.
290 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
291 All callers updated. Set per_cu->cu = NULL after freeing it.
292 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
293 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
294 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
295 (set_die_type): Update.
296 (get_die_type_at_offset): Update.
297 (read_file_scope): Call prepare_one_comp_unit.
298 (read_type_unit_scope): Ditto.
299 (prepare_one_comp_unit): Set producer if present.
300
72d59e0d
SDJ
3012012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
302
303 * probe.c (compile_rx_or_error): Silence ARI warning about missing
304 gettext function on `error'.
305
0fefef59
DE
3062012-04-27 Doug Evans <dje@google.com>
307
308 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
309 is empty.
310
28106bc2
SDJ
3112012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
312 Tom Tromey <tromey@redhat.com>
313
314 * breakpoint.c (struct breakpoint_objfile_data)
315 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
316 <exception_probes>: New fields.
317 (free_breakpoint_probes): New function.
318 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
319 `_Unwind_DebugHook'.
320 (create_exception_master_breakpoint): Likewise.
321 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
322 * infrun.c: Including necessary header files for handling SystemTap
323 probes.
324 (handle_inferior_event): Handling longjmp breakpoint and exceptions
325 via SystemTap probes.
326 (check_exception_resume): Remove `func' argument. Handle exception
327 unwinding breakpoint set via a SystemTap probe.
328 (insert_exception_resume_from_probe): New function.
329
55aa24fb
SDJ
3302012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
331 Tom Tromey <tromey@redhat.com>
332 Jan Kratochvil <jan.kratochvil@redhat.com>
333
334 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
335 (COMMON_OBS): Likewise.
336 (HFILES_NO_SRCDIR): Add `probe'.
337 * NEWS: Mention support for static and SystemTap probes.
338 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
339 SystemTap probes' arguments parser.
340 * arm-linux-tdep.c: Including headers needed to perform the parsing
341 of SystemTap probes' arguments.
342 (arm_stap_is_single_operand): New function.
343 (arm_stap_parse_special_token): Likewise.
344 (arm_linux_init_abi): Initializing proper fields used by SystemTap
345 probes' arguments parser.
346 * ax-gdb.c (require_rvalue): Removing static declaration.
347 (gen_expr): Likewise.
348 * ax-gdb.h (gen_expr): Declaring function.
349 (require_rvalue): Likewise.
350 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
351 (bkpt_probe_breakpoint_ops): New variable.
352 (momentary_breakpoint_from_master): Set the `probe' value.
353 (add_location_to_breakpoint): Likewise.
354 (break_command_1): Using proper breakpoint_ops according to the
355 argument passed by the user in the command line.
356 (bkpt_probe_insert_location): New function.
357 (bkpt_probe_remove_location): Likewise.
358 (bkpt_probe_create_sals_from_address): Likewise.
359 (bkpt_probe_decode_linespec): Likewise.
360 (tracepoint_probe_create_sals_from_address): Likewise.
361 (tracepoint_probe_decode_linespec): Likewise.
362 (tracepoint_probe_breakpoint_ops): New variable.
363 (trace_command): Using proper breakpoint_ops according to the
364 argument passed by the user in the command line.
365 (initialize_breakpoint_ops): Initializing breakpoint_ops for
366 static probes on breakpoints and tracepoints.
367 * breakpoint.h (struct bp_location) <probe>: New field.
368 * cli-utils.c (skip_spaces_const): New function.
369 (extract_arg): Likewise.
370 * cli-utils.h (skip_spaces_const): Likewise.
371 (extract_arg): Likewise.
372 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
373 * configure.ac: Append `stap-probe.o' to be generated when ELF
374 support is present.
375 * configure: Regenerate.
376 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
377 * elfread.c: Include `probe.h' and `arch-utils.h'.
378 (probe_key): New variable.
379 (elf_get_probes): New function.
380 (elf_get_probe_argument_count): Likewise.
381 (elf_evaluate_probe_argument): Likewise.
382 (elf_compile_to_ax): Likewise.
383 (elf_symfile_relocate_probe): Likewise.
384 (stap_probe_key_free): Likewise.
385 (elf_probe_fns): New variable.
386 (elf_sym_fns): Add `sym_probe_fns' value.
387 (elf_sym_fns_lazy_psyms): Likewise.
388 (elf_sym_fns_gdb_index): Likewise.
389 (_initialize_elfread): Initialize objfile cache for static
390 probes.
391 * gdb_vecs.h (struct probe): New forward declaration.
392 (probe_p): New VEC declaration.
393 * gdbarch.c: Regenerate.
394 * gdbarch.h: Regenerate.
395 * gdbarch.sh (stap_integer_prefix): New variable.
396 (stap_integer_suffix): Likewise.
397 (stap_register_prefix): Likewise.
398 (stap_register_suffix): Likewise.
399 (stap_register_indirection_prefix): Likewise.
400 (stap_register_indirection_suffix): Likewise.
401 (stap_gdb_register_prefix): Likewise.
402 (stap_gdb_register_suffix): Likewise.
403 (stap_is_single_operand): New function.
404 (stap_parse_special_token): Likewise.
405 (struct stap_parse_info): Forward declaration.
406 * i386-tdep.c: Including headers needed to perform the parsing
407 of SystemTap probes' arguments.
408 (i386_stap_is_single_operand): New function.
409 (i386_stap_parse_special_token): Likewise.
410 (i386_elf_init_abi): Initializing proper fields used by SystemTap
411 probes' arguments parser.
412 * i386-tdep.h (i386_stap_is_single_operand): New function.
413 (i386_stap_parse_special_token): Likewise.
414 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
415 * mipsread.c (ecoff_sym_fns): Likewise.
416 * objfiles.c (objfile_relocate1): Support relocation for static
417 probes.
418 * parse.c (prefixify_expression): Remove static declaration.
419 (initialize_expout): Likewise.
420 (reallocate_expout): Likewise.
421 * parser-defs.h (initialize_expout): Declare function.
422 (reallocate_expout): Likewise.
423 (prefixify_expression): Likewise.
424 * ppc-linux-tdep.c: Including headers needed to perform the parsing
425 of SystemTap probes' arguments.
426 (ppc_stap_is_single_operand): New function.
427 (ppc_stap_parse_special_token): Likewise.
428 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
429 probes' arguments parser.
430 * probe.c: New file, for generic statically defined probe support.
431 * probe.h: Likewise.
432 * s390-tdep.c: Including headers needed to perform the parsing of
433 SystemTap probes' arguments.
434 (s390_stap_is_single_operand): New function.
435 (s390_gdbarch_init): Initializing proper fields used by SystemTap
436 probes' arguments parser.
437 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
438 * stap-probe.c: New file, for SystemTap probe support.
439 * stap-probe.h: Likewise.
440 * symfile.h: Include `gdb_vecs.h'.
441 (struct sym_probe_fns): New struct.
442 (struct sym_fns) <sym_probe_fns>: New field.
443 * symtab.c (init_sal): Initialize `probe' field.
444 * symtab.h (struct probe): Forward declaration.
445 (struct symtab_and_line) <probe>: New field.
446 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
447 locations.
448 (stop_tracing): Likewise.
449 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
450
22d2b532
SDJ
4512012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
452 Tom Tromey <tromey@redhat.com>
453
454 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
455 and to compile agent expressions.
456 * infrun.c (siginfo_make_value): New argument `ignore'.
457 (siginfo_funcs): New struct.
458 (_initialize_infrun): New argument when calling
459 `create_internalvar_type_lazy'.
460 * thread.c (thread_id_make_value): New argument `ignore'.
461 (thread_funcs): New struct.
462 (_initialize_thread): New argument when calling
463 `create_internalvar_type_lazy'.
464 * tracepoint.c (sdata_make_value): New argument `ignore'.
465 (sdata_funcs): New struct.
466 (_initialize_tracepoint): New argument when calling
467 `create_internalvar_type_lazy'.
468 * value.c (make_value): New struct.
469 (create_internalvar_type_lazy): New argument `data'.
470 (compile_internalvar_to_ax): New function.
471 (value_of_internalvar): Properly handling `make_value' case.
472 (clear_internalvar): Likewise.
473 (show_convenience): Adding `TRY_CATCH' block.
474 * value.h (internalvar_make_value): Delete, replace by...
475 (struct internalvar_funcs): ... this.
476 (create_internalvar_type_lazy) <fun>: Delete argument.
477 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
478 (compile_internalvar_to_ax): New function.
479 * windows-tdep.c (tlb_make_value): New argument `ignore'.
480 (tlb_funcs): New struct.
481 (_initialize_windows_tdep): New argument when calling
482 `create_internalvar_type_lazy'.
483
91da1414
MW
4842012-04-27 Mark Wielaard <mjw@redhat.com>
485
486 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
487 see whether it is an address or a constant offset from DW_AT_low_pc.
488 (dwarf2_record_block_ranges): Likewise.
489 (read_partial_die): Likewise.
490
4ab9d8ec
MW
4912012-04-26 Mark Wielaard <mjw@redhat.com>
492
493 * MAINTAINERS (Write After Approval): Add myself to the list.
494
a0911fd0
MR
4952012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
496
497 * proc-utils.h (proc_prettyprint_signalset): New prototype.
498 (proc_prettyprint_signal): Likewise.
499 (proc_prettyprint_faultset): Likewise.
500 (proc_prettyprint_fault): Likewise.
501 (proc_prettyprint_actionset): Likewise.
502 (proc_prettyprint_flags): Move to new proc-flags.c section.
503 (proc_prettyfprint_flags): New prototype.
504 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
505 (proc_syscall, proc_cursig): Likewise.
506 (proc_set_kill_on_last_close): Likewise.
507 (proc_unset_kill_on_last_close): Likewise.
508 (proc_set_watchpoint): Make static.
509 (proc_delete_dead_threads): Likewise.
510 (procfs_set_watchpoint): Likewise.
511 (_initialize_procfs): Add prototype.
512 * proc-events.c: Include proc-utils.h.
513 (init_syscall_table): Make static.
514 * proc-api.c (_initialize_proc_api): Add prototype.
515 * proc-flags.c: Include proc-utils.h.
516
9009e1ae
MR
5172012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
518
519 * configure.ac: Add AC_ARG_PROGRAM.
520 * configure: Regenerate.
521
4fae6e18
JK
5222012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
523
524 Fix DW_AT_lower_bound defaults for DWARF-4+.
525 * dwarf2read.c (read_subrange_type): Remove initialization of low and
526 high. New variable low_default_is_valid. Implement DWARF-4+
527 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
528 no default by the DWARF standard.
529
14132e89
MR
5302012-04-26 Maciej W. Rozycki <macro@mips.com>
531 Maciej W. Rozycki <macro@codesourcery.com>
532
533 * infrun.c (handle_inferior_event): Move the check for return
534 trampolines ahead of the check for function trampolines.
535 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
536 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
537 (mips_str_mips16_ret_stub): Likewise.
538 (mips_str_call_fp_stub): Likewise.
539 (mips_str_call_stub): Likewise.
540 (mips_str_fn_stub): Likewise.
541 (mips_str_pic): Likewise.
542 (mips_in_frame_stub): New function.
543 (mips_unwind_pc): Return the return address rather than the PC
544 if the PC of an intermediate frame is inside a call thunk.
545 (mips_is_stub_suffix): New function.
546 (mips_is_stub_mode): Likewise.
547 (mips_get_mips16_fn_stub_pc): Likewise.
548 (mips_skip_mips16_trampoline_code): Update to handle all the
549 currently generated stub types. Don't recurse into __fn_stub
550 thunks. Remove heuristics to handle stubs beyond etext/_etext.
551 Use cooked register accesses.
552 (mips_in_return_stub): Reintroduce function.
553 (mips_skip_trampoline_code): Traverse trampolines recursively.
554 (mips_gdbarch_init): Handle MIPS16 return trampolines.
555
518f0db5 5562012-04-26 Joel Brobecker <brobecker@adacore.com>
557
558 GDB 7.4.1 released.
559
3184d3f9
JL
5602012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
561
562 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
563 * features/arm-with-m-vfp-d16.xml: New file. Describes
564 Cortex-M with VFPv4-sp-d16 FPU register layout.
565 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
566 * features/arm-with-m-vfp-d16.c: New. Generated from above.
567 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
568 (arm-register_g_packet_guesses): Add vfp-d16 guess.
569 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
570
b6201d44
DE
5712012-04-25 Doug Evans <dje@google.com>
572
573 * cli/cli-decode.c (print_doc_line): Use stream instead of
574 current_uiout.
575
4e2f8df6
SDJ
5762012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
577
578 * features/arm-with-iwmmxt.c: Regenerate.
579 * features/arm-with-m-fpa-layout.c: Likewise.
580 * features/arm-with-m.c: Likewise.
581 * features/arm-with-neon.c: Likewise.
582 * features/arm-with-vfpv2.c: Likewise.
583 * features/arm-with-vfpv3.c: Likewise.
584 * features/mips-dsp-linux.c: Likewise.
585 * features/mips-linux.c: Likewise.
586 * features/mips64-dsp-linux.c: Likewise.
587 * features/mips64-linux.c: Likewise.
588 * features/s390-linux32.c: Likewise.
589 * features/s390-linux32v1.c: Likewise.
590 * features/s390-linux32v2.c: Likewise.
591 * features/s390-linux64.c: Likewise.
592 * features/s390-linux64v1.c: Likewise.
593 * features/s390-linux64v2.c: Likewise.
594 * features/s390x-linux64.c: Likewise.
595 * features/s390x-linux64v1.c: Likewise.
596 * features/s390x-linux64v2.c: Likewise.
597 * features/tic6x-c62x-linux.c: Likewise.
598 * features/tic6x-c62x.c: Likewise.
599 * features/tic6x-c64x-linux.c: Likewise.
600 * features/tic6x-c64x.c: Likewise.
601 * features/tic6x-c64xp-linux.c: Likewise.
602 * features/tic6x-c64xp.c: Likewise.
603 * target-descriptions.c: Only generate `field_type' and `type'
604 variables when needed.
605
2def3e66
JB
6062012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
607
608 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
609
a766d390
DE
6102012-04-25 Doug Evans <dje@google.com>
611
612 Initial pass at Go language support.
613 * NEWS: Mention Go.
614 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
615 go-valprint.c.
616 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
617 (YYFILES): Add go-exp.c.
618 (YYOBJ): Add go-exp.o.
619 (local-maintainer-clean): Delete go-exp.c.
620 * defs.h (enum language): Add language_go.
621 * dwarf2read.c: #include "go-lang.h".
622 (fixup_go_packaging): New function.
623 (process_full_comp_unit): Call it when processing Go CUs.
624 (dwarf2_physname): Add Go support.
625 (read_file_scope): Handle missing language spec for GNU Go.
626 (set_cu_language): Handle DW_LANG_Go.
627 * go-exp.y: New file.
628 * go-lang.h: New file.
629 * go-lang.c: New file.
630 * go-typeprint.c: New file.
631 * go-valprint.c: New file.
632 * symtab.c: #include "go-lang.h".
633 (symbol_set_language): Handle language_go.
634 (symbol_find_demangled_name, symbol_set_names): Ditto.
635 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
636
4e2af517
JM
6372012-04-24 Jim Meyering <meyering@redhat.com>
638
639 avoid a few strncpy-induced buffer overruns
640 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
641 fname and psargs before trying to concatenate.
642 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
643 "name" before applying strchr.
644
b77b7f52
SCR
6452012-04-25 Siva Chandra Reddy <sivachandra@google.com>
646
647 * CONTRIBUTE: Use unified diff instead of context diff when
648 generating patches.
649
6321c22a
MR
6502012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
651
652 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
653 code. Handle JR.HB correctly.
654
742c84f6
MR
6552012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
656
657 * mips-tdep.c
658 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
659 with the other MIPS16 helpers.
660
7fc7e0c3
SDJ
6612012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
662
663 * observer.sh: Conditionally declare `args', thus cleaning up
664 unused instances of this variable.
665
20388dd6
YQ
6662012-04-24 Yao Qi <yao@codesourcery.com>
667
668 Revert this patch to allow breakpoint always-inserted
669 in record target.
670 2011-12-05 Pedro Alves <pedro@codesourcery.com>
671 * breakpoint.c: Include record.h.
672 (breakpoints_always_inserted_mode): Return false when the record
673 target is in use.
674
675 * breakpoint.c (iterate_over_bp_locations): New.
676 * breakpoint.h: Declare.
677 New typedef walk_bp_location_callback.
678 * record.c (record_open): Call record_init_record_breakpoints.
679 (record_sync_record_breakpoints): New.
680 (record_init_record_breakpoints): New.
681 * NEWS: Mention supporting breakpoint always-inserted mode in
682 record target.
683
4734f50e
MK
6842012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
685
686 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
687 any thread.
688
c326b90e
YQ
6892012-04-24 Yao Qi <yao@codesourcery.com>
690
691 * breakpoint.c (ep_is_catchpoint): Renamed to ...
692 (is_catchpoint): ... it.
693 (print_one_breakpoint_location): Caller update.
694 * breakpoint.h: Update declaration.
695
d8fb5a1e
DM
6962012-04-23 David S. Miller <davem@davemloft.net>
697
698 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
699
34431a2a
TT
7002012-04-23 Tom Tromey <tromey@redhat.com>
701
702 * buildsym.c (add_free_pendings): Remove.
703 * buildsym.h (add_free_pendings): Remove.
704
4568ecf9
DE
7052012-04-23 Doug Evans <dje@google.com>
706
707 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
708 attr.u.unsnd instead of attr.u.addr.
709 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
710 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
711 DW_FORM_ref_udata.
712 (dump_die_shallow): Update cases DW_FORM_ref_addr,
713 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
714 DW_FORM_ref_udata.
715 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
716
dca9aa3a
MR
7172012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
718
719 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
720 (mips_o32_return_value): Likewise.
721 (mips_o64_return_value): Likewise.
722
c8ea1972
PH
7232012-04-21 Paul Hilfinger <hilfinger@adacore.com>
724
725 * ada-lang.c (ada_evaluate_subexp): Add cases for
726 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
727 their treatment in eval.c.
728
8d1b3521
DM
7292012-04-21 David S. Miller <davem@davemloft.net>
730
731 * sparc-tdep.c (X_DISP10): Define.
732 (sparc_analyze_control_transfer): Handle compare-and-branch.
733
03145bf4
JL
7342012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
735
736 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
737 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
738
004159a2
MR
7392012-04-20 Nigel Stephens <nigel@mips.com>
740 Maciej W. Rozycki <macro@codesourcery.com>
741
742 * mips-tdep.c (mips_float_register_p): New function.
743 (mips_convert_register_float_case_p): Use mips_float_register_p.
744 (mips_register_type): Likewise.
745 (mips_print_register): Likewise.
746 (print_gp_register_row): Likewise.
747 (mips_print_registers_info): Likewise.
748
7f0e6aae
MR
7492012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
750
751 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
752 of mips16 symbols.
753
bc17beea
AP
7542012-04-20 Andrew Pinski <apinski@cavium.com>
755
756 * MAINTAINERS (Write After Approval): Add myself to the list.
757
1730a5a5
SDJ
7582012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
759
760 * MAINTAINERS: Update my e-mail address.
761
38ea300a
PA
7622012-04-20 Pedro Alves <palves@redhat.com>
763
764 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
765 $srcdir.
766 * configure: Regenerate.
767
111dfaae
SDJ
7682012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
769
770 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
771 declaration.
772 * gdb_vecs.h: Declare `const_char_ptr' VEC.
773
4fb2c64a
JK
7742012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
775
776 Fix compilation compatibility with python-2.4
777 * python/py-type.c (convert_field): Cast ADDRSTRING for
778 PyObject_SetAttrString as non-const. New comment.
779
6328eb38
TT
7802012-04-19 Tom Tromey <tromey@redhat.com>
781
782 * top.c (quit_target): Use all_cleanups.
783 * main.c (captured_command_loop): Use all_cleanups.
784 * exceptions.c (throw_exception): Use all_cleanups.
785
c971b7fa
PA
7862012-04-19 Pedro Alves <palves@redhat.com>
787
788 * Makefile.in (GNULIB_BUILDDIR): New.
789 (LIBGNU, INCGNU, GNULIB_H): Adjust.
790 (SUBDIRS): Add $(GNULIB_BUILDDIR).
791 (CLEANDIRS). Remove gnulib/import.
792 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
793 (all-lib): Ditto.
794 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
795 (gnulib/import/Makefile): Replace gnulib/import with
796 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
797 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
798 (aclocal_m4_deps): Remove the gnulib dependencies. Add
799 acx_configure_dir.m4.
800 * acinclude.m4: Include acx_configure_dir.m4.
801 * acx_configure_dir.m4: New file.
802 * aclocal.m4: Regenerate.
a09130f9
PA
803 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
804 calls. Configure gnulib using ACX_CONFIGURE_DIR.
805 (GNULIB): New variable.
806 (GNULIB_STDINT_H): Adjust.
807 (AC_OUTPUT): Don't output gnulib/Makefile.
808 * gdb/defs.h: Include build-gnulib/config.h.
809 * aclocal.m4: Regenerate.
810 * config.in: Regenerate.
811 * configure: Regenerate.
812
813 * gnulib/Makefile.in: New file.
814 * gnulib/configure.ac: New file.
815 * gnulib/aclocal.m4: New file.
816 * gnulib/config.in: New file.
817 * gnulib/configure: New file.
c971b7fa
PA
818 * gnulib/: Re-run gnulib-tool to adjust.
819
b10faa68
DE
8202012-04-19 Doug Evans <dje@google.com>
821
822 * cleanups.h (struct cleanup): Move to cleanups.c.
823 (make_cleanup_dtor_ftype): New typedef.
824 (make_cleanup_dtor): Use it.
825 (ALL_CLEANUPS): Replace with ...
826 (all_cleanups): ... this. Declare. All uses updated.
827 * cleanups.c: #include "gdb_assert.h".
828 (sentinel_cleanup): New static global.
829 (SENTINEL_CLEANUP): Define.
830 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
831 (make_my_cleanup2): Assert result is non-NULL.
832 (all_cleanups): New function.
833 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
834 of NULL.
835
d8c267cc
PA
8362012-04-19 Pedro Alves <palves@redhat.com>
837
838 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
839 Adjust paths to gnulib imported files.
840
809277f8
PA
8412012-04-19 Pedro Alves <palves@redhat.com>
842
843 * gnulib/: Move whole directory ...
844 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
845 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
846 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
847 (aclocal_m4_deps): Adjust.
848 * aclocal.m4: Regenerate.
849 * configure: Regenerate.
850 * configure.ac: Adjust AC_OUTPUT output.
851
aad9eab9
YQ
8522012-04-19 Yao Qi <yao@codesourcery.com>
853
854 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
855 (vec.o): New rule.
856 * vec.c: Move it ...
857 * common/vec.c: ... here.
858 * vec.h: Move it ...
859 * common/vec.h: ... here.
860
48fe4669
YQ
8612012-04-19 Yao Qi <yao@codesourcery.com>
862
863 * gdb-code-style.el: New.
864
770d76d7
PA
8652012-04-18 Pedro Alves <palves@redhat.com>
866
867 Update gnulib from latest git.
868 (639ea5ae15e39fe48d43e04864b2997301e4b969)
869
870 * gnulib/Makefile.am: Update.
871 * gnulib/dummy.c: Update.
872 * gnulib/extra/arg-nonnull.h: Update.
873 * gnulib/extra/c++defs.h: Update.
874 * gnulib/extra/update-copyright: Update.
875 * gnulib/extra/warn-on-use.h: Update.
876 * gnulib/inttypes.in.h: Update.
877 * gnulib/m4/00gnulib.m4: Update.
878 * gnulib/m4/extensions.m4: Update.
879 * gnulib/m4/gnulib-cache.m4: Update.
880 * gnulib/m4/gnulib-common.m4: Update.
881 * gnulib/m4/gnulib-comp.m4: Update.
882 * gnulib/m4/gnulib-tool.m4: Update.
883 * gnulib/m4/include_next.m4: Update.
884 * gnulib/m4/inttypes-pri.m4: Update.
885 * gnulib/m4/inttypes.m4: Update.
886 * gnulib/m4/longlong.m4: Update.
887 * gnulib/m4/memchr.m4: Update.
888 * gnulib/m4/memmem.m4: Update.
889 * gnulib/m4/mmap-anon.m4: Update.
890 * gnulib/m4/multiarch.m4: Update.
891 * gnulib/m4/onceonly.m4: Update.
892 * gnulib/m4/stddef_h.m4: Update.
893 * gnulib/m4/stdint.m4: Update.
894 * gnulib/m4/string_h.m4: Update.
895 * gnulib/m4/warn-on-use.m4: Update.
896 * gnulib/m4/wchar_h.m4: Update.
897 * gnulib/m4/wchar_t.m4: Update.
898 * gnulib/m4/wint_t.m4: Update.
899 * gnulib/memchr.c: Update.
900 * gnulib/memmem.c: Update.
901 * gnulib/stddef.in.h: Update.
902 * gnulib/stdint.in.h: Update.
903 * gnulib/str-two-way.h: Update.
904 * gnulib/string.in.h: Update.
905 * gnulib/wchar.in.h: Update.
906
907 * gnulib/extra/arg-nonnull.h: Delete.
908 * gnulib/extra/c++defs.h: Delete.
909 * gnulib/extra/warn-on-use.h: Delete.
910 * gnulib/m4/wchar_h.m4: Delete.
911 * gnulib/m4/wint_t.m4: Delete.
912 * gnulib/wchar.in.h: Delete.
913
914 * gnulib/extra/snippets/arg-nonnull.h: New.
915 * gnulib/extra/snippets/c++defs.h: New.
916 * gnulib/extra/snippets/warn-on-use.h: New.
917
918 * aclocal.m4: Regenerate.
919 * config.in: Regenerate.
920 * configure: Regenerate.
921 * gnulib/Makefile.in: Regenerate.
922
174e088e
PA
9232012-04-18 Pedro Alves <palves@redhat.com>
924
925 Reimport the update-copyright module from gnulib
926 (250b80067c1e1d8faa0c42fb572f721975b929c5).
927
928 * configure: Regenerate.
929 * gnulib/Makefile.am: Update.
930 * gnulib/Makefile.in: Regenerate.
931 * gnulib/extra/update-copyright: Update.
932 * gnulib/m4/gnulib-cache.m4: Update.
933 * gnulib/m4/gnulib-comp.m4: Update.
934
7f533142
JB
9352012-04-18 Tristan Gingold <gingold@adacore.com>
936
937 * configure.ac (aix): Put -lpthread into libs.
938 * configure: Regenerate.
939
001822aa
TT
9402012-04-18 Tom Tromey <tromey@redhat.com>
941
942 * linespec.c (convert_linespec_to_sals): Don't use
943 SYMBOL_OBJ_SECTION.
944 (compare_msymbols): Arguments are minsym_and_objfile, not
945 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
946
db026a31
PA
9472012-04-18 Pedro Alves <palves@redhat.com>
948
949 Revert gnulib/ part of:
950 2011-01-01 Joel Brobecker <brobecker@adacore.com>
951 Copyright year update in most files (performed by copyright.sh).
952
12df843f
JK
9532012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
954
955 Fix 64-bit constants on 32-bit hosts.
956 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
957 from unsigned long to ULONGEST.
958 (read_signed_leb128): Change declaration return type from long to
959 LONGEST.
960 (dwarf2_const_value_attr): Change declaration parameter value from long
961 to LONGEST.
962 (dwarf2_compute_name): Change variable value from long to LONGEST.
963 (read_unsigned_leb128): Change return type, variable result and some
964 casts from unsigned long to ULONGEST.
965 (read_signed_leb128): Change return type, variable result and some
966 casts from long to LONGEST.
967 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
968 value from long to LONGEST.
969 (dwarf2_const_value): Change variable value from long to LONGEST.
970 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
971 plongest and hex_string.
972 * symtab.h (struct general_symbol_info): Change ivalue from long to
973 LONGEST, remove the comment.
974 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
975 Change SYMBOL_VALUE format strings to use plongest and hex_string.
976
14e75d8e
JK
9772012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
978
979 PR symtab/7259:
980 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
981 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
982 (ada_discrete_type_low_bound): Fix function comment. Use
983 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
984 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
985 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
986 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
987 Use TYPE_FIELD_ENUMVAL.
988 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
989 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
990 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
991 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
992 TYPE_CODE_ENUM.
993 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
994 * dwarf2read.c (process_enumeration_scope): Likewise.
995 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
996 field.bitpos.
997 (class StructMainTypePrettyPrinter): Support also
998 FIELD_LOC_KIND_ENUMVAL.
999 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
1000 TYPE_CODE_ENUM.
1001 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1002 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
1003 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
1004 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
1005 field enumval.
1006 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
1007 accommodate enumval.
1008 (struct call_site): Adjust loc_kind to accommodate enumval.
1009 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
1010 (TYPE_FIELD_ENUMVAL): New macros.
1011 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
1012 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
1013 TYPE_CODE_ENUM.
1014 * p-typeprint.c (pascal_type_print_base): Likewise.
1015 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
1016 enumval.
1017 * python/lib/gdb/types.py (make_enum_dict): Likewise.
1018 * python/py-type.c (convert_field): New variable addrstring. Use
1019 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1020 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
1021 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
1022 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
1023 TYPE_CODE_ENUM.
1024 * valprint.c (generic_val_print): Likewise.
1025
380bca97
DE
10262012-04-17 Doug Evans <dje@google.com>
1027
dcc07052
DE
1028 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
1029
380bca97
DE
1030 * dwarf2read.c: Whitespace fixes.
1031 (lookup_signatured_type): Tweak comment.
1032 (get_die_type_at_offset): Fix comment.
1033
ec92004f
JB
10342012-04-17 Joel Brobecker <brobecker@adacore.com>
1035
1036 * xcoffread.c (xcoff_secnum_to_sections): New function.
1037 (secnum_to_section, secnum_to_bfd_section): Reimplement
1038 using xcoff_secnum_to_sections. Rename "secnum" parameter
1039 into "n_scnum".
1040 (RECORD_MINIMAL_SYMBOL): Delete.
1041 (record_minimal_symbol): New function.
1042 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
1043 by call to record_minimal_symbol and set misc_func_recorded
1044 to 1. Set last_csect_sec to the XCOFF section index instead
1045 of GDB's section_offset index. Update calls to
1046 prim_record_minimal_symbol_and_info to pass the BFD section
1047 as well.
1048
40301fb7
JB
10492012-04-17 Joel Brobecker <brobecker@adacore.com>
1050
1051 * xcoffread.c (read_xcoff_symtab): Delete variables
1052 last_csect_val and last_csect_sec and associated code.
1053
e0088cfd
DE
10542012-04-17 Doug Evans <dje@google.com>
1055
58d5e2c3
DE
1056 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
1057 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1058 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
1059 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
1060
c27f5738
DE
1061 * cleanups.h: New file.
1062 * cleanups.c: New file.
1063 * Makefile.in (SFILES): Add cleanups.c.
1064 (HFILES_NO_SRCDIR): Add cleanups.h.
1065 (COMMON_OBS): Add cleanups.o.
1066 * defs.h (struct cleanup): Moved to cleanups.h.
1067 (do_cleanups,do_final_cleanups): Ditto.
1068 (discard_cleanups,discard_final_cleanups): Ditto
1069 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1070 (save_cleanups,save_final_cleanups): Ditto.
1071 (restore_cleanups,restore_final_cleanups): Ditto.
1072 (null_cleanup): Ditto.
1073 (make_my_cleanup,make_my_cleanup2): Ditto.
1074 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1075 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
1076 (do_cleanups,do_final_cleanups): Ditto.
1077 (discard_cleanups,discard_final_cleanups): Ditto
1078 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1079 (save_cleanups,save_final_cleanups): Ditto.
1080 (restore_cleanups,restore_final_cleanups): Ditto.
1081 (null_cleanup): Ditto.
1082 (make_my_cleanup,make_my_cleanup2): Ditto.
1083 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1084
e0088cfd
DE
1085 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
1086 make_my_cleanup.
1087 (make_cleanup_dyn_string_delete): Ditto.
1088 (make_cleanup_ui_file_delete): Ditto.
1089 (make_cleanup_ui_out_redirect_pop): Ditto.
1090 (make_cleanup_free_section_addr_info): Ditto.
1091 (make_cleanup_restore_integer): Ditto.
1092 (make_cleanup_unpush_target): Ditto.
1093 (make_cleanup_value_free_to_mark): Ditto.
1094 (make_cleanup_value_free): Ditto.
1095 (make_cleanup_free_so): Ditto.
1096
4dc84fd1
JK
10972012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1098
1099 New option "set debug auto-load".
1100 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
1101 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
1102 (auto_load_safe_path_vec_update)
1103 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
1104 if DEBUG_AUTO_LOAD.
1105 (file_is_auto_load_safe): New parameters debug_fmt and ....
1106 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
1107 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
1108 caller by explanatory string.
1109 (_initialize_auto_load): Register "set debug auto-load".
1110 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
1111 and ....
1112 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1113 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
1114 by explanatory string.
1115 * main.c (captured_main): Likewise.
1116 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1117 (source_section_scripts): Likewise.
1118
bccbefd2
JK
11192012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1120
1121 New option "set auto-load safe-path".
1122 * NEWS: New commands "set auto-load safe-path"
1123 and "show auto-load safe-path".
1124 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
1125 (auto_load_safe_path, auto_load_safe_path_vec)
1126 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
1127 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
1128 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
1129 (source_gdb_script_for_objfile): New variable is_safe. Call
1130 file_is_auto_load_safe. Return if it is not.
1131 (struct loaded_script): New field loaded.
1132 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
1133 (print_script): Use LOADED indicator instead of FULL_PATH. Change
1134 output "Missing" to "No".
1135 (_initialize_auto_load): New variable cmd. Initialize
1136 auto_load_safe_path. Register "set auto-load safe-path",
1137 "show auto-load safe-path" and "add-auto-load-safe-path".
1138 * auto-load.h (maybe_add_script): Add parameter loaded.
1139 (file_is_auto_load_safe): New declaration.
1140 * config.in: Regenerate.
1141 * configure: Regenerate.
1142 * configure.ac: New parameters --with-auto-load-safe-path
1143 and --without-auto-load-safe-path.
1144 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1145 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
1146 * main.c (captured_main): Check file_is_auto_load_safe for
1147 LOCAL_GDBINIT.
1148 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
1149 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
1150 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
1151 not.
1152
bf88dd68
JK
11532012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1154
1155 auto-load: Implementation.
1156 * NEWS: New descriptions for "info auto-load",
1157 "info auto-load gdb-scripts", "info auto-load python-scripts",
1158 "info auto-load local-gdbinit" and "info auto-load libthread-db".
1159 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
1160 and "show auto-load-scripts". New description for "set auto-load",
1161 "show auto-load", "set auto-load gdb-scripts",
1162 "show auto-load gdb-scripts", "set auto-load python-scripts",
1163 "show auto-load python-scripts", "set auto-load local-gdbinit",
1164 "show auto-load local-gdbinit", "set auto-load libthread-db" and
1165 "show auto-load libthread-db".
1166 * auto-load.c: Remove include python/python-internal.h. Add includes
1167 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
1168 cli/cli-setshow.h.
1169 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
1170 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
1171 (gdbpy_global_auto_load): Rename to ...
1172 (global_auto_load): ... here.
1173 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1174 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
1175 (script_language_gdb, source_gdb_script_for_objfile): New.
1176 (struct loaded_script): New field language.
1177 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
1178 LANGUAGE.
1179 (maybe_add_script): Add parameter language. Drop redundant
1180 entry.full_path initialization. Initialize entry.language and
1181 (*slot)->language.
1182 (auto_load_objfile_script): Change parameter suffix to language.
1183 Remove the call of maybe_add_script.
1184 Call language->source_script_for_objfile.
1185 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
1186 New.
1187 (collect_matching_scripts): Adjust it for
1188 struct collect_matching_scripts_data.
1189 (auto_load_info_scripts_pattern_nl): New variable.
1190 (info_auto_load_scripts): Rename to ...
1191 (auto_load_info_scripts): ... here, add parameter language. Adjust it
1192 for struct collect_matching_scripts_data.
1193 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
1194 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
1195 (auto_load_show_cmdlist_get, info_auto_load_cmd)
1196 (auto_load_info_cmdlist_get): New.
1197 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
1198 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
1199 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
1200 "info auto-load local-gdbinit".
1201 * auto-load.h (struct script_language): New.
1202 (gdbpy_global_auto_load): Rename to ...
1203 (global_auto_load): ... here.
1204 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1205 (auto_load_local_gdbinit_loaded): New declarations.
1206 (maybe_add_script): New parameter language.
1207 (auto_load_objfile_script): Change parameter suffix to language.
1208 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
1209 (auto_load_info_scripts, auto_load_set_cmdlist_get)
1210 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
1211 declarations.
1212 * linux-thread-db.c: Include auto-load.h and ctype.h.
1213 (auto_load_thread_db, show_auto_load_thread_db): New.
1214 (struct thread_db_info): New field filename.
1215 (delete_thread_db_info): Call xfree for FILENAME.
1216 (try_thread_db_load): Initialize FILENAME.
1217 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
1218 if !AUTO_LOAD_THREAD_DB.
1219 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
1220 (_initialize_thread_db): Install auto_load_thread_db
1221 as "set auto-load libthread-db" and install info_auto_load_libthread_db
1222 as "info auto-load libthread-db".
1223 * main.c (captured_main): Rename gdbpy_global_auto_load to
1224 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
1225 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
1226 (print_gdb_help): Extend the help for 'local init file'.
1227 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
1228 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
1229 (auto_load_scripts): Rename to ...
1230 (auto_load_python_scripts): ... here, update the comment.
1231 (gdbpy_load_auto_script_for_objfile): New declaration.
1232 (show_auto_load_python_scripts, script_language_python)
1233 (gdbpy_load_auto_script_for_objfile): New.
1234 (source_section_scripts): Refactor the code.
1235 (load_auto_scripts_for_objfile): Rename to ...
1236 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
1237 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
1238 (info_auto_load_python_scripts): New.
1239 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
1240 Rename "set auto-load-scripts" to "set auto-load python-scripts".
1241 Register "set auto-load-scripts" as its deprecated alias. Register
1242 "info auto-load python-scripts". Register "info auto-load-scripts" as
1243 its deprecated alias.
1244 (load_auto_scripts_for_objfile): Rename to ...
1245 (gdbpy_load_auto_scripts_for_objfile): ... here.
1246 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
1247 (gdbpy_load_auto_scripts_for_objfile): ... here.
1248
e2207b9a
JK
12492012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1250
1251 auto-load: Move files.
1252 * Makefile.in (SFILES): Add auto-load.c.
1253 (HFILES_NO_SRCDIR): Add auto-load.h.
1254 (COMMON_OBS): Add auto-load.o.
1255 (distclean): Change .gdbinit for gdb-gdb.gdb.
1256 * auto-load.c: New file, with parts from python/py-auto-load.c.
1257 * auto-load.h: New file, with parts from python/python.h.
1258 * configure: Regenerate.
1259 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
1260 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
1261 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
1262 * main.c: Include auto-load.h.
1263 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
1264 command.h, observer.h and progspace.h to auto-load.c. Add include
1265 auto-load.h.
1266 (gdbpy_global_auto_load, struct auto_load_pspace_info)
1267 (struct loaded_script, auto_load_pspace_data)
1268 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
1269 (hash_loaded_script_entry, eq_loaded_script_entry)
1270 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
1271 (maybe_add_script): Move to auto-load.c.
1272 (source_section_scripts): Change maybe_add_script parameters passing,
1273 use script_not_found_warning_print.
1274 (clear_section_scripts, auto_load_objfile_script)
1275 (auto_load_new_objfile, loaded_script_ptr)
1276 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
1277 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
1278 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
1279 auto_load_new_objfile and info_auto_load_scripts initizations to
1280 auto-load.c.
1281 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
1282
e4ab2fad
JK
12832012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1284
1285 Code cleanup.
1286 * charset.c (find_charset_names): Remove variables ix and elt.
1287 Use free_char_ptr_vec.
1288 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
1289 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1290 debugdir_end. New variable debugdir_len.
1291 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
1292 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
1293 declarations.
1294 * progspace.c (clear_program_space_solib_cache): Remove variables ix
1295 and elt. Use free_char_ptr_vec.
1296 * source.c (add_path): Remove variables argv, arg and argv_index.
1297 New variables dir_vec, back_to, ix and name.
1298 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
1299 make_cleanup_freeargv. Remove variable separator. Simplify the code
1300 no longer expecting DIRNAME_SEPARATOR.
1301 (openp): Remove variable p, p1 and len. New variables dir_vec,
1302 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
1303 no longer expecting DIRNAME_SEPARATOR.
1304 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
1305 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1306 debugdir_end.
1307 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
1308 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
1309 (dirnames_to_char_ptr_vec): New functions.
1310
5ee4ed9f
JK
13112012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1312
1313 Code cleanup.
1314 * source.c (add_path): Remove always true conditional 'p == 0' and
1315 unindent its code block.
1316
f41f5e61
PA
13172012-04-17 Pedro Alves <palves@redhat.com>
1318
1319 * gdbtypes.h (FIELD_BITPOS): Rename to ...
1320 (FIELD_BITPOS_LVAL): ... this.
1321 (FIELD_BITPOS): New.
1322 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
1323 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
1324 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
1325 SET_FIELD_BITPOS.
1326 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
1327 SET_FIELD_BITPOS.
1328 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
1329 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
1330 * target-descriptions.c (tdesc_gdb_type): Adjust to use
1331 SET_FIELD_BITPOS.
1332
945b3a32
JK
13332012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1334
1335 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
1336 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
1337 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
1338 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
1339 * jv-lang.c (java_link_class_type): Likewise, once.
1340 * stabsread.c (read_enum_type): Likewise.
1341
42476b70
YQ
13422012-04-16 Yao Qi <yao@codesourcery.com>
1343
1344 * common/agent.c (agent_run_command): Add one more parameter `len'.
1345 Update callers.
1346 * common/agent.h: Update declaration.
1347 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1348 Update.
1349 (linux_child_static_tracepoint_markers_by_strid): Ditto.
1350
8264ba82
AG
13512012-04-14 Anton Gorenkov <xgsa@yandex.ru>
1352
1353 PR mi/13393
1354 * value.c (value_actual_type): New function.
1355 * value.h (value_actual_type): New declaration.
1356 * varobj.c (update_type_if_necessary): New function.
1357 (varobj_create): Call value_actual_type instead of
1358 value_type.
1359 (install_dynamic_child): distinct changed and type changed MI variable
1360 objects.
1361 (update_dynamic_varobj_children): Updated for install_dynamic_child
1362 change. All callers updated.
a09130f9 1363 (varobj_update): Support for MI variable object type change if
8264ba82
AG
1364 the value changed and RTTI is used to determine the type.
1365 (create_child_with_value): Call value_actual_type instead of
1366 value_type.
a09130f9 1367 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
1368 specify whether the given value should be casted to enclosing type.
1369 All callers updated.
1370
55a8c076
YQ
13712012-04-14 Yao Qi <yao@codesourcery.com>
1372
1373 Import gnulib module inttypes from git
1374 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1375 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
1376 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
1377 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
1378 * aclocal.m4, config.in, configure: Regenerated.
1379 * gnulib/Makefile.am: Update.
1380 * gnulib/Makefile.in: Update.
1381 * gnulib/m4/gnulib-cache.m4: Update.
1382 * gnulib/m4/gnulib-comp.m4: Update.
1383 * gnulib/inttypes.in.h: New.
1384 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 1385 * gnulib/m4/inttypes.m4: New.
55a8c076 1386
ca7781d2
LM
13872012-04-13 Luis Machado <lgustavo@codesourcery.com>
1388
1389 * infrun.c (resume): Update PC address to the real PC after
1390 preparing to do displaced stepping.
1391
e319fa28
DE
13922012-04-12 Doug Evans <dje@google.com>
1393
1394 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
1395 All callers updated.
1396
15add3f5
MK
13972012-04-12 Mark Kettenis <kettenis@gnu.org>
1398
1399 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
1400
52dc124a
DE
14012012-04-12 Doug Evans <dje@google.com>
1402
0e50663e
DE
1403 * dwarf2read.c (create_all_type_units): Renamed from
1404 create_debug_types_hash_table. All callers updated.
1405
52dc124a
DE
1406 * dwarf2read.c (create_signatured_type_table_from_index): Rename
1407 local type_sig to sig_type, type_offset to type_offset_in_tu.
1408 (hash_signatured_type): Renamed from hash_type_signature,
1409 all callers updated.
1410 (eq_signatured_type): Renamed from eq_type_signature,
1411 all callers updated.
1412 (create_debug_types_hash_table): Rename local type_sig to sig_type.
1413 (process_enumeration_scope): Ditto.
1414 (lookup_signatured_type_at_offset): Ditto.
1415 (load_full_type_unit, read_signatured_type): Ditto.
1416
248fd3bf
YQ
14172012-04-12 Yao Qi <yao@codesourcery.com>
1418
1419 * remote.c (async_remote_interrupt): Correct function name in
1420 debug message.
1421 (async_remote_interrupt_twice): Ditto.
1422
bc3aa6c3
DE
14232012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
1424
1425 * source.c (find_and_open_source): Consistently pass resulting
1426 full path through xfullpath.
1427
9e529e1d
JK
14282012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1429
1430 Provide more specific displaced-stepping memory error message.
1431 * infrun.c (displaced_step_prepare): New variable status. Call
1432 target_read_memory instead of read_memory, provide more specific
1433 error message.
1434
82e0cec1
TG
14352012-04-11 Tristan Gingold <gingold@adacore.com>
1436
1437 PR gdb/13901
1438 * darwin-nat.c (darwin_execvp): Revert previous patch.
1439
d987a266
TG
14402012-04-11 Tristan Gingold <gingold@adacore.com>
1441
1442 PR gdb/13901
1443 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
1444 in case of change.
1445
016b7430
TG
14462012-04-11 Tristan Gingold <gingold@adacore.com>
1447
1448 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1449 warning.
1450
06fc020f
SCR
14512012-04-11 Siva Chandra Reddy <sivachandra@google.com>
1452
1453 New command 'explore' which helps explore values and types in
1454 scope.
1455 * NEWS: Add an entry about the new 'explore' command.
1456 * data-directory/Makefile.in: Add gdb/command/explore.py
1457 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 1458 command using the GDB Python API.
06fc020f 1459
de0919f8 14602012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
1461
1462 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
1463 extension in jump target calculation.
1464
de0919f8 14652012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
1466
1467 * mips-tdep.c (mips32_next_pc): Handle JALX.
1468
2f26ef89
YQ
14692012-04-10 Yao Qi <yao@codesourcery.com>
1470
1471 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
1472
2e505b66
YQ
14732012-04-10 Yao Qi <yao@codesourcery.com>
1474
1475 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
1476 and gnulib/m4/gnulib-tool.m4.
1477
0d99eb77
DE
14782012-04-10 Doug Evans <dje@google.com>
1479
1480 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
1481 (load_partial_dies): Clarify comment.
1482 (find_partial_die): Support rereading type units.
1483 Clarify CU handling, if we know offset is in CU, don't search for the
1484 containing CU. Add comment regarding memory waste.
1485
9a82b8ff
L
14862012-04-10 H.J. Lu <hongjiu.lu@intel.com>
1487
1488 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
1489 i386/x32-avx and i386/x32-avx-linux.
1490 (i386/x32-expedite): New.
1491 (i386/x32-linux-expedite): Likewise.
1492 (i386/x32-avx-expedite): Likewise.
1493 (i386/x32-avx-linux-expedite): Likewise.
1494 ($(outdir)/i386/x32.dat): Likewise.
1495 ($(outdir)/i386/x32-linux.dat): Likewise.
1496 ($(outdir)/i386/x32-avx.dat): Likewise.
1497 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
1498
1499 * features/i386/x32-avx-linux.xml: New file.
1500 * features/i386/x32-avx.xml: Likewise.
1501 * features/i386/x32-core.xml: Likewise.
1502 * features/i386/x32-linux.xml: Likewise.
1503 * features/i386/x32.xml: Likewise.
1504
1505 * features/i386/x32-avx-linux.c: New. Generated.
1506 * features/i386/x32-avx.c: Likewise.
1507 * features/i386/x32-linux.c: Likewise.
1508 * features/i386/x32.c: Likewise.
1509 * regformats/i386/x32-avx-linux.dat: Likewise.
1510 * regformats/i386/x32-avx.dat: Likewise.
1511 * regformats/i386/x32-linux.dat: Likewise.
1512 * regformats/i386/x32.dat: Likewise.
1513
ee41036f
TG
15142012-04-10 Tristan Gingold <gingold@adacore.com>
1515
1516 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
1517 code to kill the inferior.
1518
a7aa5b8a
MK
15192012-04-09 Mark Kettenis <kettenis@gnu.org>
1520
1521 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1522 defines.
1523 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1524 defines.
a09130f9 1525 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
1526 (yyvsp): New defines.
1527 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1528 defines.
1529 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1530 defines.
1531 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1532 defines.
1533 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1534 defines.
1535 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1536 defines.
1537
fb57d452
MK
15382012-04-09 Mark Kettenis <kettenis@gnu.org>
1539
a09130f9 1540 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
1541 (sparc64_store_arguments): Fix coding style.
1542
cdc7b32f
MK
15432012-04-07 Mark Kettenis <kettenis@gnu.org>
1544
1545 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
1546 complex floats, adjust some related comments and tighten a related
1547 assertion.
1548 (sparc64_extract_return_value): Handle complex floats.
1549
7adf1e79
DE
15502012-04-07 Doug Evans <dje@google.com>
1551
1552 * dwarf2read.c (load_partial_dies): Change condition to assert.
1553
50f1ae7b
DE
15542012-04-06 Doug Evans <dje@google.com>
1555
1556 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
1557 "mov %rsp,%rbp".
1558
55fa75c3
KB
15592012-04-05 Kevin Buettner <kevinb@redhat.com>
1560
1561 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
1562 fencepost error.
1563 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
1564 (v850_gdbarch_init): Set `num_regs' as appropriate for the
1565 architecture.
1566
40e084e1
KS
15672012-04-05 Keith Seitz <keiths@redhat.com>
1568
1569 * linespec.c (decode_compound): Remove.
1570 (enum offset_relative_sign): New enum.
1571 (struct line_offset): New struct.
1572 (struct linespec): New struct.
1573 (struct linespec_state): Move file_symtabs,
1574 user_filename, and user_function into struct linespec.
1575 Make result an anonymous struct holding vectors of
1576 symbolp and minsym_and_objfile_d.
1577 Add language member.
1578 (enum ls_token_type): New enum.
1579 (linespec_keywords): New array.
1580 (struct ls_token): New struct.
1581 (struct ls_parser): New struct.
1582 (linespec_lexer_lex_number): New function.
1583 (linespec_lexer_lex_keyword): New function.
1584 (is_ada_operator): New function.
1585 (skip_quote_char): New function.
1586 (copy_token_string): New function.
1587 (is_closing_quote_enclosed): New function.
1588 (find_parameter_list_end): New function.
1589 (linespec_lexer_lex_string): New function.
1590 (linespec_lexer_lex_one): New function.
1591 (linespec_lexer_consume_token): New function.
1592 (linespec_lexer_peek_token): New function.
1593 (cplusplus_error): Remove unused function.
1594 (find_methods): Update comment.
1595 (find_toplevel_char): Return const.
1596 (is_objc_method_format): Remove unused function.
1597 (find_toplevel_string): New function.
1598 (is_linespec_boundary): Remove.
1599 (symbol_not_found_error): New function.
1600 (find_method_overload_end): Remove function.
1601 (unexpected_linespec_error): New function.
1602 (keep_name_info): Remove.
1603 (linespec_parse_line_offset): New function.
1604 (linespec_parse_basic): New function.
1605 (canonicalize_linespec): New function.
1606 (decode_line_internal): Remove.
1607 (create_sals_line_offset): New function adapted from
1608 decode_all_digits.
1609 (convert_linespec_to_sals): New function.
1610 (parse_linespec): New function.
1611 (linespec_parser_new): New function.
1612 (linespec_state_destructor): Change parameter type to
1613 struct linespec_state *.
1614 Add language parameter.
1615 Remove freeing of moved members.
1616 (linespec_parser_delete): New function.
1617 (decode_line_full): Use parse_linespec and linespec_parser_new.
1618 (decode_line_1): Likewise.
1619 (decode_indirect): Rename to ...
1620 (linespec_expression_to_pc): ... this and rewrite
1621 to simply find CORE_ADDR, storing this result for later
1622 conversion to SALs.
1623 (locate_first_half): Remove.
1624 (deocde_objc): Add parameter LS.
1625 Initialize new struct collect_info members.
1626 Handle minimal symbols, too.
1627 (decode_compound): Delete.
1628 (lookup_prefix_sym): Rewrite.
1629 (compare_msymbols): New function.
1630 (find_method): Rewrite.
1631 Do not call cplusplus_error.
1632 (symtabs_from_filename): Rewrite.
1633 (collect_function_symbols): Delete.
1634 (find_function_symbols): Rewrite without ARGPTR-style
1635 processing.
1636 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
1637 (decode_dollar): Adapted and renamed to ...
1638 (linespec_parse_variable): ... this.
1639 (find_linespec_symbols): New function.
1640 (decode_label): Adapted and renamed to ...
1641 (find_label_symbols): ... this.
1642 (decode_digits_list_mode): Add and use LS argument.
1643 (decode_digits_ordinary): Likewise.
1644 (collect_symbols): Do not collect SALs, just symbols and msymbols.
1645 If in list mode, allow any symbol class. Otherwise, only
1646 permit LOC_BLOCK symbols.
1647 (minsym_found): Update comments.
1648 (search_minsyms_for_name): Do not convert the matching symbol
1649 into a SAL. Simply push the symbol and objfile into the
1650 result vector.
1651 (decode_variable): Delete. Contents adapted into
1652 find_linespec_symbols.
1653
1654 * cp-support.c (SKIP_SPACE): Remove.
1655 (operator_tokens): Remove unused global.
1656 (cp_validate_operator): Remove.
1657 * cp-support.h (cp_validate_operator): Remove declaration.
1658
a72c8f6a
JK
16592012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1660
1661 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
1662 for TYPE_VPTR_FIELDNO.
1663 * valprint.c (valprint_check_validity): Make it global, move the
1664 function comment ...
1665 * value.h (valprint_check_validity): ... to this new declaration.
1666
cf9bb588
TG
16672012-04-02 Tristan Gingold <gingold@adacore.com>
1668
1669 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
1670 the STATE32 api for i386 state.
1671 (i386_darwin_store_inferior_registers): Likewise.
1672
17092398
TG
16732012-04-02 Tristan Gingold <gingold@adacore.com>
1674
1675 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
1676 SS offset.
1677 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1678 format_string.
1679
ece0061f
TG
16802012-04-02 Tristan Gingold <gingold@adacore.com>
1681
1682 PR gdb/13901
d987a266 1683 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 1684
cf65ecd3
JK
16852012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1686
1687 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
1688
9bc3523d
TT
16892012-03-30 Tom Tromey <tromey@redhat.com>
1690
1691 * python/python.c (gdbpy_decode_line): Move cleanup creation out
1692 of TRY_CATCH. Fix error handling.
1693 * python/py-value.c (convert_value_from_python): Move 'old'
1694 declaration to innermost scope.
1695
b1ed564a
JB
16962012-03-29 Joel Brobecker <brobecker@adacore.com>
1697 Andrey Smirnov <andrew.smirnov@gmail.com>
1698
1699 -Wshadow warning fix.
1700 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
1701 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
1702 Adjust code accordingly.
1703
cb8e9b97
JB
17042012-03-29 Joel Brobecker <brobecker@adacore.com>
1705
1706 * ada-lang.c (symbol_completion_add): Rename parameter
1707 "encoded" into "encoded_p". Ajust code and documentation
1708 accordingly.
1709
c0af1706
JB
17102012-03-29 Joel Brobecker <brobecker@adacore.com>
1711 Andrey Smirnov <andrew.smirnov@gmail.com>
1712
1713 -Wshadow warning fix.
1714 * ada-lang.c (symbol_completion_add): Rename parameter
1715 "wild_match" into wild_match_p. Update code and documentation
1716 accordingly.
1717
6ea35997
JB
17182012-03-29 Joel Brobecker <brobecker@adacore.com>
1719
1720 * ada-lang.c (symbol_completion_match): Rename parameter
1721 "encoded" into "encoded_p". Ajust code and documentation
1722 accordingly.
1723
e701b3c0
JB
17242012-03-29 Joel Brobecker <brobecker@adacore.com>
1725 Andrey Smirnov <andrew.smirnov@gmail.com>
1726
1727 -Wshadow warning fix.
1728 * ada-lang.c (symbol_completion_match): Rename parameter
1729 "wild_match" into "wild_match_p". Adjust code and function
1730 documentation accordingly.
1731
5e2336be
JB
17322012-03-29 Joel Brobecker <brobecker@adacore.com>
1733 Andrey Smirnov <andrew.smirnov@gmail.com>
1734
1735 -Wshadow warning fix.
1736 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
1737 "symbol_info" into "info". Adjust code accordingly.
1738 (ada_lookup_symbol): Likewise.
1739
9f88c959
JB
17402012-03-29 Joel Brobecker <brobecker@adacore.com>
1741
1742 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
1743 of this function's documentation.
1744
82ccd55e
JB
17452012-03-29 Joel Brobecker <brobecker@adacore.com>
1746 Andrey Smirnov <andrew.smirnov@gmail.com>
1747
1748 -Wshadow warning fix.
1749 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
1750 variable into "wild_match_p". Adjust code accordingly.
1751
d0a8ab18
JB
17522012-03-29 Joel Brobecker <brobecker@adacore.com>
1753 Andrey Smirnov <andrew.smirnov@gmail.com>
1754
1755 -Wshadow warning fix.
1756 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
1757 parameter into "wild_match_p". Adjust code accordingly.
1758 Document this parameter in the function description.
1759
48b78332
JB
17602012-03-29 Joel Brobecker <brobecker@adacore.com>
1761 Andrey Smirnov <andrew.smirnov@gmail.com>
1762
1763 -Wshadow warning fix.
1764 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
1765 "wild_match" parameter to "wild_match_p" (-Wshadow).
1766
2e6e0353
JB
17672012-03-29 Joel Brobecker <brobecker@adacore.com>
1768
1769 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
1770 in function documentation.
1771
dc4024cd
JB
17722012-03-29 Joel Brobecker <brobecker@adacore.com>
1773 Andrey Smirnov <andrew.smirnov@gmail.com>
1774
1775 -Wshadow warning fix.
1776 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
1777 variable into wild_match_p. Adjust code accordingly.
1778
6c88661c
JB
17792012-03-29 Joel Brobecker <brobecker@adacore.com>
1780 Andrey Smirnov <andrew.smirnov@gmail.com>
1781
1782 * ada-valprint.c (ada_val_print_1): Move the code handling
1783 TYPE_CODE_ENUM inside its own lexical block. Declare
1784 variables len and val there, instead of in the function's
1785 top level block. Avoid declaring deref_val again in a way
1786 that shadows another variable of the same name declared
1787 in one of the up-level blocks. Just re-use the up-level
1788 variable instead.
1789
4e5c77fe
JB
17902012-03-29 Joel Brobecker <brobecker@adacore.com>
1791
1792 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
1793 Replace block_found argument by symbol_info. Adjust
1794 implementation accordingly. Add function documentation.
1795 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
1796 Fix documentation.
1797 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
1798 * ada-exp.y (write_object_renaming): Adjust to new
1799 ada_lookup_encoded_symbol API.
1800
1c0ac8c7
JB
18012012-03-29 Joel Brobecker <brobecker@adacore.com>
1802
1803 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
1804 documentation.
1805
2aaed979
KB
18062012-03-28 Rathish C <rathish.c@kpitcummins.com>
1807
1808 * v850-tdep.c: Add the enum values for mpu and fpu registers.
1809 (v850_register_name): Add the mpu and fpu register names.
1810 (v850e_register_name): Add the mpu and fpu register names.
1811 (v850e2_register_name): New function.
a09130f9 1812 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
1813 bfd_mach_v850e2v3.
1814
927fbba6
JB
18152012-03-28 Joel Brobecker <brobecker@adacore.com>
1816
1817 * NEWS: Add entry for Ada varobj support.
1818
d32cafc7
JB
18192012-03-28 Joel Brobecker <brobecker@adacore.com>
1820
1821 * varobj.c (default_value_is_changeable_p): New function,
1822 extracted from varobj_value_is_changeable_p. Add declaration.
1823 (ada_value_is_changeable_p): New function, extracted from
1824 varobj_value_is_changeable_p. Add declaration.
1825 (struct language_specific): New field "value_is_changeable_p".
1826 (languages): Add entries for new field.
1827 (varobj_create): Set language before calling install_new_value.
1828 (varobj_value_is_changeable_p): Reimplement to call the varobj's
1829 "value_is_changeable_p" language callback.
1830
181875a4
JB
18312012-03-28 Joel Brobecker <brobecker@adacore.com>
1832
1833 * ada-varobj.h, ada-varobj.c: New files.
1834 * Makefile.in (SFILES): Add ada-varobj.c.
1835 (HFILES_NO_SRCDIR): Add ada-varobj.h.
1836 (COMMON_OBS): Add ada-varobj.o.
1837
7a290c40
JB
18382012-03-28 Joel Brobecker <brobecker@adacore.com>
1839
1840 * varobj.c (ada_value_has_mutated): Add declaration. New function.
1841 (struct language_specific): New field "value_has_mutated".
1842 (languages): Set field "value_has_mutated" in each entry of array.
1843 (varobj_value_has_mutated): New function.
1844 (varobj_udpdate): Add handling of type mutation.
1845 (value_of_root): Add handling of type mutation.
1846 (ada_value_has_mutated): New function.
1847
ca9b8b9c
PA
18482012-03-28 Pedro Alves <palves@redhat.com>
1849
1850 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
1851 Always supply $fr0 as 0.0 and $fr1 as 1.0.
1852
cc0265cd
TT
18532012-03-28 Tom Tromey <tromey@redhat.com>
1854
1855 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
1856 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
1857 before returning.
1858
3ad2ec6f
TT
18592012-03-28 Tom Tromey <tromey@redhat.com>
1860
1861 * .dir-locals.el: New file.
1862
4a6510ba
PA
18632012-03-28 Pedro Alves <palves@redhat.com>
1864
1865 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
1866
5a75128f
JB
18672012-03-28 Joel Brobecker <brobecker@adacore.com>
1868
1869 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
1870 handling for r0.
1871
f99d8bf4
PA
18722012-03-27 Pedro Alves <palves@redhat.com>
1873
1874 Eliminate struct ui_stream.
1875
1876 * ui-out.h (struct ui_stream): Delete.
1877 (ui_out_field_stream): Adjust prototype.
1878 (ui_out_stream_new, ui_out_stream_delete)
1879 (make_cleanup_ui_out_stream_delete): Delete declarations.
1880 * ui-out.c (ui_out_field_stream): Change prototype to take a
1881 ui_file instead of a ui_stream. Adjust.
1882 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
1883 (make_cleanup_ui_out_stream_delete): Delete.
1884 * breakpoint.c (print_breakpoint_location)
1885 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
1886 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1887 * disasm.c (dump_insns): Ditto.
1888 (do_mixed_source_and_assembly, do_assembly_only): Adjust
1889 prototype.
1890 (gdb_disassembly): Use ui_file/mem_fileopen instead of
1891 ui_stream/ui_out_stream_new.
1892 * infcmd.c (print_return_value): Ditto.
1893 * osdata.c (info_osdata_command): Don't allocate a local
1894 ui_stream.
1895 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
1896 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1897 * tracepoint.c (print_one_static_tracepoint_marker): Don't
1898 allocate a local ui_stream.
1899 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
1900 instead of ui_stream/ui_out_stream_new.
1901 (list_args_or_locals): Don't allocate a local ui_stream.
1902 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
1903 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
1904 ui_stream/ui_out_stream_new.
1905 * cli/cli-setshow.c (do_setshow_command): Ditto.
1906
6350a066 19072012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 1908
6350a066
PA
1909 * arm-linux-tdep.c (arm_linux_init_abi): Call
1910 set_gdbarch_process_record. Initialize `arm_swi_record' field.
1911 * arm-tdep.c (arm_process_record): New function.
1912 (deallocate_reg_mem): New function.
1913 (decode_insn): New function.
1914 (thumb_record_branch): New function.
1915 (thumb_record_ldm_stm_swi(): New function.
1916 (thumb_record_misc): New function.
1917 (thumb_record_ld_st_stack): New function.
1918 (thumb_record_ld_st_imm_offset): New function.
1919 (thumb_record_ld_st_reg_offset(): New function.
1920 (thumb_record_add_sub_cmp_mov): New function.
1921 (thumb_record_shift_add_sub): New function.
1922 (arm_record_coproc_data_proc): New function.
1923 (arm_record_coproc): New function.
1924 (arm_record_b_bl): New function.
1925 (arm_record_ld_st_multiple): New function.
1926 (arm_record_ld_st_reg_offset): New function.
1927 (arm_record_ld_st_imm_offset): New function.
1928 (arm_record_data_proc_imm): New function.
1929 (arm_record_data_proc_misc_ld_str): New function.
1930 (arm_record_extension_space): New function.
1931 (arm_record_strx): New function.
1932 (sbo_sbz): New function.
1933 (struct insn_decode_record): New structure for arm insn record.
1934 (REG_ALLOC): New macro for reg allocations.
1935 (MEM_ALLOC): New macro for memory allocations.
1936 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 1937
89e028e2
AS
19382012-03-27 Andreas Schwab <schwab@linux-m68k.org>
1939
1940 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
1941 (store_register): Likewise.
1942
6350a066 19432012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 1944
6350a066 1945 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 1946
5b43fab2
JK
19472012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1948
1949 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
1950 Describe also the option "auto".
1951
b5453b95
RH
19522012-03-22 Richard Henderson <rth@redhat.com>
1953
1954 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
1955 * sparc-nat.c (sparc_xfer_wcookie): Make static.
1956
227ee7fc
RH
19572012-03-22 Richard Henderson <rth@redhat.com>
1958
1959 * jit.c (jit_read_code_entry): Compute alignment and offset of
1960 int64_t member before computing entry_size.
1961
7b282c5a
SCR
19622012-03-22 Siva Chandra Reddy <sivachandra@google.com>
1963
1964 Python scripting: Add new method Value.referenced_value to
1965 gdb.Value which can dereference pointer as well as reference
1966 values.
1967 * NEWS: Add entry under 'Python scripting' about the new method
1968 Value.referenced_value on gdb.Value objects.
1969 * python/py-value.c (valpy_referenced_value): New function
1970 defining a new method on gdb.Value objects which can dereference
1971 pointer and reference values.
1972
0c83539f
SCR
19732012-03-22 Siva Chandra Reddy <sivachandra@google.com>
1974
1975 * MAINTAINERS (Write After Approval): Add myself to the list.
1976
7ccffd7c
KB
19772012-03-21 Kevin Buettner <kevinb@redhat.com>
1978
1979 * symtab.c (skip_prologue_sal): Change test to check for "main()"
1980 in addition to "main".
1981
bd0b9f9e
JB
19822012-03-21 Joel Brobecker <brobecker@adacore.com>
1983
1984 * expression.h (op_name): Add declaration.
1985 * expprint.c (op_name): Remove declaration. Make non-static.
1986 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
1987
a5362b9a
TS
19882012-03-21 Thomas Schwinge <thomas@codesourcery.com>
1989
1990 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
1991 of struct siginfo.
1992 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
1993 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1994 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
1995 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
1996 (linux_nat_get_siginfo): Likewise.
1997 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
1998 (linux_nat_get_siginfo): Likewise.
1999 * linux-tdep.c (linux_get_siginfo_type): Likewise.
2000 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
2001 * procfs.c (gdb_siginfo_t): Likewise.
2002
adcadaab
MF
20032012-03-21 Mike Frysinger <vapier@gentoo.org>
2004
2005 * .gitignore: Ignore more files.
2006
e278ad5b
PA
20072012-03-20 Pedro Alves <palves@redhat.com>
2008
2009 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
2010 returns.
2011
741e63d7
YQ
20122012-03-20 Yao Qi <yao@codesourcery.com>
2013
2014 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
2015 comment.
2016
b64f50a1
JK
20172012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2018
2019 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
2020 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
2021 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
2022 sect_offset.
2023 * dwarf2expr.h (cu_offset, sect_offset): New types.
2024 (struct dwarf_expr_context_funcs) <dwarf_call>
2025 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
2026 sect_offset.
2027 (struct dwarf_expr_context) <len>: Improve the comment.
2028 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
2029 cu_offset and sect_offset.
2030 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
2031 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
2032 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
2033 * dwarf2loc.h: Include dwarf2expr.h.
2034 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
2035 and sect_offset.
2036 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
2037 Improve the comment.
2038 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
2039 (struct signatured_type, struct line_header, struct partial_die_info)
2040 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
2041 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
2042 (get_die_type_at_offset, create_cus_from_index)
2043 (create_signatured_type_table_from_index, dw2_get_file_names)
2044 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
2045 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
2046 (create_debug_types_hash_table, process_psymtab_comp_unit)
2047 (load_partial_comp_unit, create_all_comp_units)
2048 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
2049 (load_full_comp_unit, dwarf2_physname, read_import_statement)
2050 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2051 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
2052 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
2053 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
2054 (find_partial_die, read_attribute_value, lookup_die_type)
2055 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
2056 (is_ref_attr): New function comment.
2057 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
2058 Use cu_offset and sect_offset.
2059 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
2060 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
2061 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
2062 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
2063 (offset_and_type_hash, offset_and_type_eq, set_die_type)
2064 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
2065 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
2066 sect_offset.
2067
e97a38f7
JK
20682012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2069
2070 Code cleanup.
2071 * python/py-auto-load.c (source_section_scripts): New variable back_to.
2072 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
2073 with xfree.
2074 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
2075
8320cc4f
JK
20762012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2077
2078 * NEWS: Describe new options --init-command=FILE, -ix and
2079 --init-eval-command=COMMAND, -iex.
2080 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
2081 CMDARG_INIT_COMMAND.
2082 (captured_main): New enum items OPT_IX and OPT_IEX. Add
2083 "init-command", "init-eval-command", "ix" and "iex" to the variable
2084 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
2085 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
2086 (print_gdb_help): Describe --init-command=FILE, -ix and
2087 --init-eval-command=COMMAND, -iex.
2088
26743505
JK
20892012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2090
2091 Code cleanup.
2092 * main.c (struct cmdarg): Move it here from main. Add more comments.
2093 (cmdarg_s, VEC (cmdarg_s)): New.
2094 (main): Move struct cmdarg from here. New variables cmdarg_vec and
2095 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
2096 Install cleanup for cmdarg_vec. Update filling for options 'x' and
2097 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
2098 of CMDARG.
2099
5ff5c7b4
TT
21002012-03-19 Tom Tromey <tromey@redhat.com>
2101
2102 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
2103
ab260dad
JK
21042012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2105
2106 PR symtab/13777
2107 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
2108 GCC >=4.5.
2109
c366c1f0
TT
21102012-03-16 Chris January <chris.january@allinea.com>
2111
2112 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
2113 of clear.
2114
e16edb45
TT
21152012-03-16 Chris January <chris.january@allinea.com>
2116
2117 * source.c (add_path): Use memmove instead of strcpy because the
2118 strings overlap.
2119
53ba8333
JB
21202012-03-16 Joel Brobecker <brobecker@adacore.com>
2121
2122 * value.h (set_value_parent): Add declaration.
2123 * value.c (set_value_parent): New function.
2124 (value_address): If VALUE->PARENT is not NULL, then use it as
2125 the base address instead of VALUE->LOCATION.address.
2126 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
2127 the same as OBJ's address. Adjust V's offset accordingly.
2128 Set V's parent.
2129
481860b3
GB
21302012-03-16 Gary Benson <gbenson@redhat.com>
2131
2132 PR breakpoints/10738
2133 * dwarf2read.c (use_deprecated_index_sections): New global.
2134 (struct partial_die_info): New member may_be_inlined.
2135 (read_partial_die): Set may_be_inlined where appropriate.
2136 (add_partial_subprogram): Add partial symbols for partial
2137 DIEs that may be inlined.
2138 (new_symbol_full): Add inlined subroutines to the current
2139 scope.
2140 (write_psymtabs_to_index): Bump version number.
2141 (dwarf2_read_index): Read only version 6 indices unless
2142 use_deprecated_index_sections is set.
2143 * linespec.c (symbol_and_data_callback): New structure.
2144 (iterate_inline_only): New function.
2145 (iterate_over_all_matching_symtabs): New argument
2146 "include_inline". If nonzero, also call the callback for
2147 symbols representing inlined subroutines.
2148 (lookup_prefix_sym): Pass extra argument to the above.
2149 (find_function_symbols): Likewise.
2150 (add_matching_symbols_to_info): Likewise.
2151 * NEWS: Mention that GDB can now set breakpoints on inlined
2152 functions.
2153
d0e7e15a
PM
21542012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2155
2156 * p-typeprint.c (pascal_type_print_method_args):
2157 Fix display of parameter of methods.
2158
3d354654
PM
21592012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2160
2161 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
2162 Add missing prototype.
2163
cafe75b0
JK
21642012-03-16 Yao Qi <yao@codesourcery.com>
2165 Jan Kratochvil <jan.kratochvil@redhat.com>
2166
2167 Fix false compilation warning.
2168 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
2169
25f8c692
JL
21702012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
2171 Pedro Alves <pedro@codesourcery.com>
2172
2173 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
2174 (arm_register_g_packet_guesses): New function.
2175 (arm_gdbarch_init): Don't force a target description with
2176 registers when the executable is detected as M-profile. Instead
2177 set gdbarch->tdep->is_m. Register `g' packet guesses.
2178 (_initialize_arm_tdep): Initialize the new target description.
2179 * features/arm-with-m-fpa-layout.xml: New description.
2180 * features/arm-with-m-fpa-layout.c: New, generated.
2181
35c63cd8
JB
21822012-03-15 Joel Brobecker <brobecker@adacore.com>
2183
2184 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
2185 Update function description.
2186 (insert_bp_location): Do not wipe bl->target_info out.
2187 * mem-break.c: #include "gdb_string.h".
2188 (default_memory_insert_breakpoint): Do not call target_read_memory
2189 with a pointer to the breakpoint's shadow_contents buffer. Use
2190 a local buffer instead.
2191 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
2192
57651221
TT
21932012-03-15 Tom Tromey <tromey@redhat.com>
2194
2195 * NEWS: Mention "info vtbl", not "info vtable".
2196 * cp-support.c (info_vtbl_command): Fix comment.
2197 (_initialize_cp_support): Fix text.
2198
410528f0
TT
21992012-03-15 Tom Tromey <tromey@redhat.com>
2200
2201 * cp-valprint.c (cp_print_value_fields): Use
2202 print_function_pointer_address for vtable slot.
2203
c4aeac85
TT
22042012-03-15 Tom Tromey <tromey@redhat.com>
2205
2206 * gnu-v3-abi.c (struct value_and_voffset): New.
2207 (hash_value_and_voffset, eq_value_and_voffset)
2208 (compare_value_and_voffset, compute_vtable_size)
2209 (print_one_vtable, gnuv3_print_vtable): New functions.
2210 (init_gnuv3_ops): Initialize 'print_vtable' field.
2211 * cp-support.c (info_vtbl_command): New function.
2212 (_initialize_cp_support): Add "info vtbl".
2213 * cp-abi.h (cplus_print_vtable): Declare.
2214 (struct cp_abi_ops) <print_vtable>: New field.
2215 * cp-abi.c (cplus_print_vtable): New function.
2216 * NEWS: Update.
2217
95cbceff
TT
22182012-03-15 Tom Tromey <tromey@redhat.com>
2219
2220 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
2221 iterate_over_symbols.
2222
589b4a32
DE
22232012-03-14 Doug Evans <dje@google.com>
2224
2225 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
2226 DW_OP_GNU_parameter_ref.
2227
e837f12a
JK
22282012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2229
2230 Fix double prompt of 'interpreter-exec mi'.
2231 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
2232 (mi_interpreter_resume): use it.
2233 (mi_execute_command_input_handler): New function.
2234 * mi/mi-main.c (mi_execute_command): Move prompt printing to
2235 mi_execute_command_input_handler.
2236
ff1e4526 22372012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
2238
2239 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
2240 prototype.
2241 (darwin_debug_port_info): Make static.
2242 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
2243 * machoread.c (_initialize_machoread): Add prototype.
2244 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
2245 (i386_darwin_set_control, i386_darwin_get_control)
2246 i386_darwin_dr_set_addr, i386_darwin_get_addr)
2247 i386_darwin_get_status, i386_darwin_get_control):
2248 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
2249
d8a5d6ee
JB
22502012-03-13 Joel Brobecker <brobecker@adacore.com>
2251
2252 * ax-gdb.c (gen_usual_unary): Remove special handling of
2253 enum and bool types.
2254
af381b8c
JB
22552012-03-13 Joel Brobecker <brobecker@adacore.com>
2256
2257 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
2258
786c562f
JB
22592012-03-13 Joel Brobecker <brobecker@adacore.com>
2260
2261 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
2262
e3ebf1bb
JB
22632012-03-13 Chris January <chris.january@allinea.com>
2264
2265 * aix-thread.c (fill_sprs): Store the floating point registers
2266 at the correct offsets into vals.
2267
c5b7e1cb
DE
22682012-03-13 Doug Evans <dje@google.com>
2269
16899756
DE
2270 * NEWS: Mention symbol-reloading has been deleted.
2271 * symfile.c (symbol_reloading): Delete.
2272 (show_symbol_reloading): Delete.
2273 (_initialize_symfile): Delete set/show symbol-reloading.
2274
c5b7e1cb
DE
2275 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
2276 read_in_chain until we have successfully read it in.
2277 (load_full_comp_unit): Ditto.
2278 (read_signatured_type): Add comment.
2279
46cb6474
JB
22802012-03-13 Chris January <chris.january@allinea.com>
2281
2282 * stabsread.c (fix_common_block): Change type of valu argument
2283 to CORE_ADDR.
2284
76219d77
JB
22852012-03-13 Chris January <chris.january@allinea.com>
2286
2287 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
2288 instruction.
2289
87b0bb13
JK
22902012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2291
2292 * common/linux-procfs.c (linux_proc_get_int): New, from
2293 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
2294 field.
2295 (linux_proc_get_tgid): Only call linux_proc_get_int.
2296 (linux_proc_get_tracerpid): New.
2297 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
2298 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
2299 linux_proc_pid_has_state.
2300 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
2301 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
2302 (linux_ptrace_attach_warnings): New.
2303 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
2304 New declaration.
2305 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
2306 (linux_nat_attach): New variables ex, buffer, message and message_s.
2307 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
2308
5f572dec
JK
23092012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2310
2311 * Makefile.in (linux-ptrace.o): New.
2312 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
2313 from linux-nat.c.
2314 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
2315 * common/linux-ptrace.c: New file.
2316 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
2317 * config/arm/linux.mh: Likewise.
2318 * config/i386/linux.mh: Likewise.
2319 * config/i386/linux64.mh: Likewise.
2320 * config/ia64/linux.mh: Likewise.
2321 * config/m32r/linux.mh: Likewise.
2322 * config/m68k/linux.mh: Likewise.
2323 * config/mips/linux.mh: Likewise.
2324 * config/pa/linux.mh: Likewise.
2325 * config/powerpc/linux.mh: Likewise.
2326 * config/powerpc/ppc64-linux.mh: Likewise.
2327 * config/powerpc/spu-linux.mh: Likewise.
2328 * config/s390/s390.mh: Likewise.
2329 * config/sparc/linux.mh: Likewise.
2330 * config/sparc/linux64.mh: Likewise.
2331 * config/xtensa/linux.mh: Likewise.
2332 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
2333 common/linux-procfs.c.
2334 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
2335
44f238bb
PA
23362012-03-13 Hui Zhu <teawater@gmail.com>
2337 Pedro Alves <palves@redhat.com>
2338
2339 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
2340 CREATE_BREAKPOINT_FLAGS_INSERTED.
2341 (create_breakpoint_sal, create_breakpoints_sal)
2342 (base_breakpoint_create_breakpoints_sal)
2343 (tracepoint_create_breakpoints_sal)
2344 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
2345 down.
2346 (break_command_1, handle_gnu_v3_exceptions, trace_command)
2347 (ftrace_command, strace_command): Adjust.
2348 (create_tracepoint_from_upload): Pass
2349 CREATE_BREAKPOINT_FLAGS_INSERTED.
2350 * breakpoint.h (enum breakpoint_create_flags): New.
2351 (create_breakpoint): New flags parameter.
2352 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2353 * python/py-breakpoint.c (bppy_init): Adjust.
2354 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
2355 * spu-tdep.c (spu_catch_start): Adjust.
2356
1e51243a
PA
23572012-03-13 Pedro Alves <palves@redhat.com>
2358 Hui Zhu <teawater@gmail.com>
2359 Yao Qi <yao@codesourcery.com>
2360
2361 * remote.c (struct remote_state): New field `starting_up'.
2362 (remote_start_remote): Set and clear it.
2363 (remote_can_download_tracepoint): If starting up, return false.
2364
fa3064dd
YQ
23652012-03-13 Yao Qi <yao@codesourcery.com>
2366
2367 * inferior.h (struct inferior): Remove fields any_syscall_count,
2368 syscalls_counts and total_syscalls_count. Move them to new
2369 struct catch_syscall_inferior_data in breakpoint.c.
2370 * breakpoint.c: Call DEF_VEC_I(int).
2371 (struct catch_syscall_inferior_data): New.
2372 (get_catch_syscall_inferior_data): New.
2373 (catch_syscall_inferior_data_cleanup): New.
2374 (insert_catch_syscall): Update to access data in
2375 struct catch_syscall_inferior_data.
2376 (insert_catch_syscall): Likewise.
2377 (remove_catch_syscall): Likewise.
2378 (remove_catch_syscall): Likewise.
2379 (is_syscall_catchpoint_enabled): Likewise.
2380 (add_catch_command): Likewise.
2381 (_initialize_breakpoint): Register cleanup.
2382 * breakpoint.h: Removed DEF_VEC_I(int).
2383 * dwarf2loc.c: Call DEF_VEC_I(int).
2384 * mi/mi-main.c: Likewise.
2385
460fac3c
MK
23862012-03-12 Mark Kettenis <kettenis@gnu.org>
2387
2388 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
2389
e1aca11e
JB
23902012-03-12 Chris January <chris.january@allinea.com>
2391
2392 * aix-thread.c (_initialize_aix_thread): Add prototype.
2393 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
2394 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
2395
649c7061
JB
23962012-03-12 Joel Brobecker <brobecker@adacore.com>
2397
2398 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
2399 include of "amd64-nat.h".
2400
0b49e518
TT
24012012-03-12 Tom Tromey <tromey@redhat.com>
2402
2403 * buildsym.c (record_pending_block): Now static.
2404 * buildsym.h: (record_pending_block): Remove.
2405
fd24fa94
AT
24062012-03-12 Andreas Tobler <andreast@fgznet.ch>
2407
2408 * amd64bsd-nat.c: Include amd64bsd-nat.h.
2409
ba919b58
TT
24102012-03-09 Tom Tromey <tromey@redhat.com>
2411
2412 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
2413 producer_is_gxx_lt_4_6>: New fields.
2414 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
2415
a48e046c
TT
24162012-03-09 Tom Tromey <tromey@redhat.com>
2417
2418 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
2419
6f5e9362
JB
24202012-03-08 Joel Brobecker <brobecker@adacore.com>
2421
2422 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
2423 prototype.
2424
8d037db9
JB
24252012-03-08 Joel Brobecker <brobecker@adacore.com>
2426
2427 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
2428
4e841acf
JK
24292012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2430
2431 Fix -Wmissing-prototypes build.
2432 * arm-linux-nat.c (get_thread_id): Make it static.
2433 * xtensa-linux-nat.c (get_thread_id): Likewise.
2434
c6030312
JB
24352012-03-08 Joel Brobecker <brobecker@adacore.com>
2436
2437 * server.c (process_point_options): If a conditional expression
2438 is found, only print a message if remote_debug is nonzero.
2439
52323be9
LM
24402012-03-08 Luis Machado <lgustavo@codesourcery.com>
2441
2442 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
2443 of internal error for unknown/unsupported types.
2444
7fe25d9b
JK
24452012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2446
2447 Fix CU relative vs. absolute DIE offsets.
2448 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
2449 offset to offset_in_cu.
2450 * dwarf2read.c (process_enumeration_scope): Add CU offset to
2451 TYPE_OFFSET.
2452 (dwarf2_fetch_die_location_block): Rename parameter offset to
2453 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
2454
05e7c244
JK
24552012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2456
2457 * libunwind-frame.c: Rename to ...
2458 * ia64-libunwind-tdep.c: ... here.
2459 * libunwind-frame.h: Rename to ...
2460 * ia64-libunwind-tdep.h: ... here.
2461 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
2462 ia64-libunwind-tdep.h.
2463 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
2464 * README (--with-libunwind): Rename to ...
2465 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
2466 * config.in: Regenerate.
2467 * configure: Regenerate.
2468 * configure.ac: New option --with-libunwind-ia64, make the
2469 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
2470 Remove AC_DEFINE for HAVE_LIBUNWIND.
2471 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
2472 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
2473 Rename libunwind-frame in the general comment.
2474 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
2475 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
2476 Move forward declarations inside #ifndef. Rename libunwind-frame in
2477 the general comment.
2478 * ia64-tdep.c: Rename libunwind-frame.h #include to
2479 ia64-libunwind-tdep.h.
2480 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
2481 (ia64_libunwind_descr): Rename libunwind-frame to
2482 ia64-libunwind-tdep in these function comments.
2483 * ia64-tdep.h: Rename libunwind-frame.h #include to
2484 ia64-libunwind-tdep.h.
2485 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
2486 ia64-libunwind-tdep in that data comment.
2487
3755cbfd
JK
24882012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2489
2490 * libunwind-frame.h (struct frame_unwind): New declaration.
2491
d1cda5d9
JB
24922012-03-08 Joel Brobecker <brobecker@adacore.com>
2493
2494 * breakpoint.c (_initialize_breakpoint): Fix error in help of
2495 "set breakpoint condition-evaluation" command.
2496
a0ba0aa2
TG
24972012-03-08 Tristan Gingold <gingold@adacore.com>
2498
2499 * sparc-stub.c: Move to stubs/
2500 * sh-stub.c: Likewise.
2501 * m68k-stub.c: Likewise.
2502 * m32r-stub.c: Likewise.
2503 * i386-stub.c: Likewise.
2504
7b8b6d6d
AS
25052012-03-08 Andreas Schwab <schwab@linux-m68k.org>
2506
007cafee
AS
2507 * m68klinux-tdep.c (m68k_linux_init_abi): Register
2508 linux_get_siginfo_type.
2509
7b8b6d6d
AS
2510 * m68klinux-nat.c: Include "gdb_proc_service.h".
2511 (PTRACE_GET_THREAD_AREA): Define.
2512 (ps_get_thread_area): New function.
2513
bba74b36
YQ
25142012-03-08 Yao Qi <yao@codesourcery.com>
2515
2516 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
2517 `xsnprintf'.
2518 (remote_query_attached): Likewise.
2519 (remote_static_tracepoint_marker_at): Likewise.
2520 (remote_set_permissions): Likewise.
2521 (remote_detach_1, extended_remote_attach_1): Likewise.
2522 (send_g_packet, remote_vkill): Likewise.
2523 (extended_remote_disable_randomization): Likewise.
2524 (remote_add_target_side_condition): Likewise.
2525 (remote_insert_breakpoint): Likewise.
2526 (remote_remove_breakpoint): Likewise.
2527 (remote_insert_watchpoint): Likewise.
2528 (remote_remove_watchpoint): Likewise.
2529 (remote_insert_hw_breakpoint): Likewise.
2530 (remote_insert_hw_breakpoint): Likewise.
2531 (remote_remove_hw_breakpoint): Likewise.
2532 (remote_download_command_source): Likewise.
2533 (remote_download_tracepoint): Likewise.
2534 (remote_download_trace_state_variable): Likewise.
2535 (remote_disable_tracepoint): Likewise.
2536 (remote_trace_set_readonly_regions): Likewise.
2537 (remote_get_tracepoint_status): Likewise.
2538 (remote_trace_find): Likewise.
2539 (remote_get_trace_state_variable_value): Likewise.
2540 (remote_set_disconnected_tracing): Likewise.
2541 (remote_set_circular_trace_buffer): Likewise.
2542 (remote_get_min_fast_tracepoint_insn_len): Likewise.
2543 (remote_use_agent): Likewise.
2544 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
2545 Update callers.
2546
9b224c5e
PA
25472012-03-07 Pedro Alves <palves@redhat.com>
2548
2549 * NEWS: Mention QProgramSignals.
2550 * inferior.h (update_signals_program_target): Declare.
2551 * infrun.c: (update_signals_program_target): New.
2552 (handle_command): Update the target of the new program signals
2553 array changes.
2554 * remote.c (PACKET_QProgramSignals): New enum.
2555 (last_program_signals_packet): New global.
2556 (remote_program_signals): New.
2557 (remote_start_remote): Update the target with the program signals
2558 list.
2559 (remote_protocol_features): Add entry for QPassSignals.
2560 (remote_open_1): Free anc clear last_program_signals_packet.
2561 (init_remote_ops): Install remote_program_signals.
2562 * target.c (update_current_target): Adjust.
2563 (target_program_signals): New.
2564 * target.h (struct target_ops) <to_program_signals>: New field.
2565 (target_program_signals): Declare.
2566
74c48cbb
PA
25672012-03-07 Pedro Alves <palves@redhat.com>
2568
2569 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
2570 extensions.
2571
0c13fc49
AS
25722012-03-07 Andreas Schwab <schwab@linux-m68k.org>
2573
2574 * m68klinux-nat.c (getregs_supplies): Make static.
2575 (getfpregs_supplies): Likewise.
2576 (have_ptrace_getregs): Likewise.
2577
1281d2a3
JB
25782012-03-06 Joel Brobecker <brobecker@adacore.com>
2579
2580 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
2581 in call to get_die_type_at_offset.
2582
2b03b41d
SS
25832012-03-06 Stan Shebs <stan@codesourcery.com>
2584
2585 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
2586 * mi/mi-cmd-disas.c: Ditto.
2587 * mi/mi-cmd-env.c: Ditto.
2588 * mi/mi-cmd-file.c: Ditto.
2589 * mi/mi-cmd-stack.c: Ditto.
2590 * mi/mi-cmd-target.c: Ditto.
2591 * mi/mi-cmd-var.c: Ditto.
2592 * mi/mi-cmds.c: Ditto.
2593 * mi/mi-cmds.h: Ditto.
2594 * mi/mi-console.c: Ditto.
2595 * mi/mi-getopt.c: Ditto.
2596 * mi/mi-getopt.h: Ditto.
2597 * mi/mi-interp.c: Ditto.
2598 * mi/mi-main.c: Ditto.
2599 * mi/mi-out.c: Ditto.
2600 * mi/mi-parse.c: Ditto.
2601 * mi/mi-parse.h: Ditto.
2602 * mi/mi-symbol-cmds.c: Ditto.
2603
2604 * mi/mi-getopt.h: Move mi_opt struct up.
2605 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
2606 return.
2607 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
2608
c988ad87
TT
26092012-03-06 Tom Tromey <tromey@redhat.com>
2610
2611 * proc-service.c (ps_pglobal_lookup): Set the current program
2612 space.
2613
1b7c1b10
PA
26142012-03-06 Pedro Alves <palves@redhat.com>
2615
2616 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
2617
3c182069
JB
26182012-03-05 Joel Brobecker <brobecker@adacore.com>
2619
2620 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
2621
2e794194
JK
26222012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2623
2624 Code cleanup.
2625 * common/linux-osdata.c (linux_common_core_of_thread): New function
2626 comment.
2627 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
2628 call by linux_common_core_of_thread.
2629 (linux_nat_core_of_thread_1): Remove.
2630 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
2631 * linux-thread-db.c: Include linux-osdata.h.
2632 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
2633 linux_common_core_of_thread.
2634
9f9f1f31
TT
26352012-03-05 Tom Tromey <tromey@redhat.com>
2636
2637 * value.c (value_primitive_field): Don't fetch contents for
2638 non-virtual bases.
2639
b7b189f3
TT
26402012-03-05 Tom Tromey <tromey@redhat.com>
2641
2642 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
2643
05b8a789 26442012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 2645
5538f557
JB
2646 * s390-nat.c: Include "gregset.h".
2647
75528772
JK
26482012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2649
2650 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
2651 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
2652 (libunwind_load): New variable so_error, use it for dlerror. Try to
2653 load also LIBUNWIND_SO_7.
2654
275418ae
PA
26552012-03-05 Pedro Alves <palves@redhat.com>
2656
2657 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
2658 is not NULL, and remove resulting dead code.
2659
5cbb9812
TS
26602012-03-05 Thomas Schwinge <thomas@codesourcery.com>
2661
2662 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
2663 prologue to sh_analyze_prologue.
2664 (sh_analyze_prologue): Make better use of such an upper limit, and
2665 generally be more cautious about accessing memory.
2666
541515ad
TT
26672012-03-05 Tom Tromey <tromey@redhat.com>
2668
2669 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
2670 _initialize_ia64_hpux_tdep.
2671
b4d36fb8
PA
26722012-03-05 Pedro Alves <palves@redhat.com>
2673
24490249
PA
2674 PR gdb/13766
2675
b4d36fb8
PA
2676 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
2677 the register state is clear, supply explicit zero, instead of
2678 marking the register unavailable.
2679
60c9a3c0
TG
26802012-03-05 Tristan Gingold <gingold@adacore.com>
2681
2682 * NEWS: Mention OpenVMS ia64 new target.
2683
696759ad
TG
26842012-03-05 Tristan Gingold <gingold@adacore.com>
2685
2686 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
2687 (ia64_unw_accessors, ia64_unw_rse_accessors)
2688 (ia64_libunwind_descr): Declare.
2689 * ia64-vms-tdep.c: New file.
2690 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
2691 (ia64_libunwind_descr): Make them public.
2692 * configure.tgt: Add ia64-*-*vms*.
2693 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
2694 (ALLDEPFILES): Add ia64-vms-tdep.c
2695
34864976
TG
26962012-03-05 Tristan Gingold <gingold@adacore.com>
2697
169081d0
TG
2698 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
2699 * remote.c (PACKET_qXfer_uib): New enum value.
2700 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
2701 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
2702 (_initialize_remote): Call add_packet_config_cmd for
2703 xfer:uib packet.
2704
27052012-03-05 Tristan Gingold <gingold@adacore.com>
2706
2707 * osabi.c (gdb_osabi_names): Add OpenVMS.
2708 (generic_elf_osabi_sniffer): Likewise.
2709 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 2710
6597b100
JK
27112012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2712
2713 Removed unused code.
2714 * libunwind-frame.c (libunwind_frame_unwind)
2715 (libunwind_frame_base_address): Remove.
2716 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
2717
87399aa1
YQ
27182012-03-04 Yao Qi <yao@codesourcery.com>
2719
2720 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
2721 remove trailing new line.
2722 (agent_run_command, agent_run_command): Add _ markup.
2723 (agent_capability_check): Likewise.
2724
abf1152a
JK
27252012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2726
2727 * breakpoint.c (set_condition_evaluation_mode): Set
2728 CONDITION_EVALUATION_MODE unconditionally.
2729
5808517f
YQ
27302012-03-03 Yao Qi <yao@codesourcery.com>
2731
2732 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
2733 * common/agent.h: Update declaration.
2734 * inf-child.c (inf_child_use_agent): New.
2735 (inf_child_can_use_agent): New.
2736 (inf_child_target): Initialize fields `to_use_agent'
2737 and `to_can_use_agent'.
2738 * agent.c (agent_new_objfile): New.
89b7509a 2739 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
2740 observer.
2741
2742 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2743 New.
89b7509a 2744 (linux_target_install_ops): Initialize field
5808517f
YQ
2745 `to_static_tracepoint_markers_by_strid'.
2746 * remote.c (free_current_marker): Move it to ...
2747 * tracepoint.c (free_current_marker): ... here. New.
2748 (cleanup_target_stop): New.
2749 * tracepoint.h: Declare free_current_marker.
2750 * NEWS: Add one entry about `info static-tracepoint-marker'.
2751
58b4daa5
YQ
27522012-03-03 Yao Qi <yao@codesourcery.com>
2753
2754 * common/agent.c (agent_loaded_p): New.
89b7509a 2755 (agent_look_up_symbols): New global.
58b4daa5
YQ
2756 * common/agent.h: Declare agent_loaded_p.
2757
8ffcbaaf
YQ
27582012-03-03 Yao Qi <yao@codesourcery.com>
2759
2760 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
2761 (agent_capability_check, agent_capability_invalidate): New.
2762 (symbol_list): New array element.
2763 * common/agent.h (enum agent_capa): New.
2764 * target.c (target_pre_inferior): Call agent_capability_invalidate.
2765
d1feda86
YQ
27662012-03-03 Yao Qi <yao@codesourcery.com>
2767
2768 * target.h (struct target_ops) <to_use_agent>: New field.
2769 (struct target_ops) <to_can_use_agent>: New field.
2770 (target_use_agent, target_can_use_agent): New macro.
2771 * target.c (update_current_target): Update.
2772 * remote.c: New enum `PACKET_QAgent'.
2773 (remote_protocol_features): Add a new element.
2774 (remote_use_agent, remote_can_use_agent): New.
2775 (init_remote_ops): Initialize field `can_use_agent' with
2776 remote_can_use_agent. Intiailize field `use_agent' with
2777 remote_use_agent.
2778 * common/agent.c (use_agent): New global.
2779 * common/agent.h: Declare it.
2780 * tracepoint.c (info_static_tracepoint_markers_command): Add
2781 comment.
2782 * Makefile.in (SFILES): Add common/agent.c and agent.c.
2783 (COMMON_OBS): Add common/agent.o and agent.o
2784 (common-agent.o): New rule.
2785 * agent.c: New.
2786
2fa291ac
YQ
27872012-03-03 Yao Qi <yao@codesourcery.com>
2788
2789 * common/agent.c: New.
2790 * common/agent.h: New.
2791 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
2792 AC_CHECK_HEADERS.
2793 * configure, configh.in: Regenerated.
2794
9fc05685
KB
27952012-03-02 Kevin Buettner <kevinb@redhat.com>
2796
2797 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
2798 unless it exists for this architecture.
2799
a5ee536b
JB
28002012-03-02 Joel Brobecker <brobecker@adacore.com>
2801
2802 * language.h (struct language_defn): New "method" la_read_var_value.
2803 * findvar.c: #include "language.h".
2804 (default_read_var_value): Renames read_var_value. Rewrite
2805 function description.
2806 (read_var_value): New function.
2807 * value.h (default_read_var_value): Add prototype.
2808 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
2809 New functions.
2810 (ada_language_defn): Add entry for la_read_var_value.
2811 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
2812 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
2813 language_defn structures to add entry for new la_read_var_value
2814 field.
2815
f59f708a
PA
28162012-03-02 Tom Tromey <tromey@redhat.com>
2817 Pedro Alves <palves@redhat.com>
2818
2819 PR breakpoints/13776:
2820 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
2821 breakpoints.
2822 (delete_longjmp_breakpoint_at_next_stop): New.
2823 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
2824 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
2825 before deleting the inferior. Add comments.
2826 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
2827 breakpoints immediately, but only on next stop. Move that code
2828 next to where we mark other breakpoints for deletion.
2829
44099a67
JB
28302012-03-02 Joel Brobecker <brobecker@adacore.com>
2831
2832 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
2833 marker.
2834 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
2835 violation.
2836
2a2ef594
PA
28372012-03-02 Pedro Alves <palves@redhat.com>
2838
2839 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
2840
b261e0c5
UW
28412012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2842
2843 Fix -Wmissing-prototypes build.
2844 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
2845 * remote-sim.c (gdbsim_has_all_memory): Likewise.
2846 (gdbsim_has_memory): Likewise.
2847
a95babbf
YQ
28482012-03-02 Yao Qi <yao@codesourcery.com>
2849
2850 Fix -Wmissing-prototypes build.
2851 * charset.c (phony_iconv_open): Make static.
2852 (phony_iconv_close, phony_iconv): Likewise.
2853 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
2854 * i386-windows-nat.c (_initialize_i386_windows_nat): New
2855 prototype.
2856 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
2857 * ser-mingw.c (create_select_thread): Make static.
2858 * windows-termcap.c (tgetent): New prototype.
2859 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
2860
d603d4b3
JK
28612012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
2862
2863 Fix -Wmissing-prototypes build.
2864 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
2865 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
2866 (_initialize_loadable): New prototypes.
2867
7fb3ad1f
DE
28682012-03-02 Doug Evans <dje@google.com>
2869
2870 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
2871 abbrev table, read_comp_unit will do it.
2872
693be288
JK
28732012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2874
2875 Fix -Wmissing-prototypes build.
2876 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
2877 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
2878 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
2879 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
2880 (_initialize_arm_symbian_tdep): New prototype.
2881 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
2882 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
2883 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
2884 static.
2885 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
2886 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
2887 prototype.
2888 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
2889 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
2890 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
2891 static.
2892 * moxie-tdep.c (moxie_process_record): Likewise.
2893 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
2894 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
2895 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
2896 (_initialize_rl78_tdep): New prototype.
2897 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
2898 (_initialize_rx_tdep): New prototype.
2899 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
2900 (_initialize_darwin_solib): New prototype.
2901 * solib-spu.c: Include solib-spu.h.
2902 (_initialize_spu_solib): New prototype.
2903 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
2904 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
2905 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
2906 (tic6x_software_single_step): Make it static.
2907 (_initialize_tic6x_tdep): New prototype.
2908
638234e5
JK
29092012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2910
2911 Fix -Wmissing-prototypes build.
2912 * cris-tdep.c (cris_can_use_hardware_watchpoint)
2913 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
2914
f4a6f16d
JK
29152012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2916
2917 Fix -Wmissing-prototypes build.
2918 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
2919 (frv_have_stopped_data_address): Remove.
2920
04dcf5fa
JK
29212012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2922
2923 Fix -Wmissing-prototypes build.
2924 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
2925 * sh-tdep.c: Include sh64-tdep.h.
2926 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
2927 * sh64-tdep.c: Include sh64-tdep.h.
2928 * sh64-tdep.h: New file.
2929
19080931
MR
29302012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2931
2932 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
2933
9aac7884
MR
29342012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2935
2936 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
2937 sp_regnum once the gdbarch_init_osabi hook has been called.
2938
a385295e
MR
29392012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2940
2941 * mips-tdep.c (mips32_bc1_pc): New function.
2942 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
2943 BPOSGE32 and BPOSGE64 instructions.
2944 (deal_with_atomic_sequence): Likewise.
2945 (mips32_instruction_has_delay_slot): Likewise.
2946
1faeff08 29472012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
2948 Chris Dearman <chris@mips.com>
2949 Maciej W. Rozycki <macro@codesourcery.com>
2950 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
2951
2952 * features/mips-dsp.xml: New file.
2953 * features/mips64-dsp.xml: New file.
2954 * features/mips-dsp-linux.xml: New file.
2955 * features/mips64-dsp-linux.xml: New file.
2956 * features/Makefile (WHICH): Add mips-dsp-linux and
2957 mips64-dsp-linux.
2958 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
2959 * features/mips-dsp-linux.c: New file.
2960 * features/mips64-dsp-linux.c: New file.
2961 * regformats/mips-dsp-linux.dat: New file.
2962 * regformats/mips64-dsp-linux.dat: New file.
2963 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
2964 registers.
2965 (mips64_linux_register_addr): Likewise.
2966 (mips64_linux_regsets_fetch_registers): Likewise.
2967 (mips64_linux_regsets_store_registers): Likewise.
2968 (mips64_linux_fetch_registers): Update call to
2969 mips64_linux_regsets_fetch_registers.
2970 (mips64_linux_store_registers): Update call to
2971 mips64_linux_regsets_store_registers.
2972 (mips_linux_read_description): Probe for DSP registers.
2973 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
2974 and initialize_tdesc_mips64_dsp_linux.
2975 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
2976 Remove padding of no longer used embedded register slots.
2977 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
2978 (MIPS_RESTART_REGNUM): Redefine enum value.
2979 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
2980 strings.
2981 (mips_tx39_reg_names): Likewise.
2982 (mips_linux_reg_names): New array of register names for Linux
2983 targets.
2984 (mips_register_name): Check for a null pointer in
2985 mips_processor_reg_names and return an empty string.
2986 (mips_register_type): Exclude embedded registers for the IRIX
2987 and Linux ABIs.
2988 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
2989 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
2990 DSP registers.
2991 (mips_stab_reg_to_regnum): Handle DSP accumulators.
2992 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
2993 (mips_gdbarch_init): Likewise. Initialize internal register
2994 indices for the Linux ABI. Use dynamic numbers to refer to
2995 registers, as applicable, while parsing the target description.
2996 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
2997
263689d8
JB
29982012-03-01 Joel Brobecker <brobecker@adacore.com>
2999
3000 * frame.h (read_frame_register_unsigned): Fix typo in function
3001 description.
3002
f3b4f45c
PA
30032012-03-01 Pedro Alves <palves@redhat.com>
3004
3005 * jit-reader.in [!__cplusplus]
3006 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
3007
b03a2011
PA
30082012-03-01 Pedro Alves <palves@redhat.com>
3009
3010 * configure.ac (build_warnings): Add -Wmissing-prototypes.
3011 * configure: Regenerate.
3012
70221824
PA
30132012-03-01 Pedro Alves <palves@redhat.com>
3014
3015 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
3016 * breakpoint.c (create_exception_master_breakpoint, trace_command)
3017 (ftrace_command, strace_command): Make static.
3018 * d-lang.c (_initialize_d_language): Declare.
3019 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
3020 * dwarf2loc.c (_initialize_dwarf2loc):
3021 * dwarf2read.c (process_psymtab_comp_unit): Make static.
3022 * exec.c (exec_get_section_table): Make static.
3023 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
3024 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
3025 * inferior.c (remove_inferior_command, add_inferior_command)
3026 (clone_inferior_command): Make static.
3027 * linux-nat.c (linux_nat_thread_address_space)
3028 (linux_nat_core_of_thread): Make static.
3029 * linux-tdep.c (_initialize_linux_tdep): Declare.
3030 * objc-lang.c (_initialize_objc_lang): Declare.
3031 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
3032 Make static.
3033 (_initialize_opencl_language): Declare.
3034 * record.c (_initialize_record): Declare.
3035 * remote.c (demand_private_info, remote_get_tib_address)
3036 (remote_supports_cond_tracepoints)
3037 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
3038 Make static.
3039 * skip.c (_initialize_step_skip): Declare.
3040 * symtab.c (skip_prologue_using_lineinfo): Make static.
3041 * tracepoint.c (delete_trace_state_variable)
3042 (trace_variable_command, delete_trace_variable_command)
3043 (get_uploaded_tsv, find_matching_tracepoint_location)
3044 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
3045 Make static.
3046 * value.c (pack_unsigned_long): Make static.
3047 * varobj.c (varobj_ensure_python_env): Make static.
3048 * windows-tdep.c (_initialize_windows_tdep): Declare.
3049 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
3050
33fbcbee
PA
30512012-03-01 Pedro Alves <palves@redhat.com>
3052
3053 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
3054 gdbarch parameter.
3055 (linux_init_abi): Install it as has_shared_address_space gdbarch
3056 callback.
3057
44d0cd3b
PA
30582012-03-01 Pedro Alves <palves@redhat.com>
3059
3060 * observer.c (observer_test_first_notification_function)
3061 (observer_test_second_notification_function)
3062 (observer_test_third_notification_function): Add declarations.
3063
ed01b82c
PA
30642012-03-01 Pedro Alves <palves@redhat.com>
3065
3066 * common/signals.c (default_target_signal_to_host)
3067 (default_target_signal_from_host): Move ...
3068 * arch-utils.c: ... here.
3069 * arch-utils.h (default_target_signal_to_host)
3070 (default_target_signal_from_host): Declare.
3071
3072 * common/signals.c (target_signal_from_command): Move ...
3073 * infrun.c: ... here.
3074 * inferior.h (target_signal_from_command): Declare.
3075 * target.h (target_signal_from_command)
3076 (default_target_signal_from_host, default_target_signal_to_host):
3077 Delete declarations.
3078
3079 * common/signals.c (_initialize_signals): Delete.
3080
c9b87335
PA
30812012-03-01 Pedro Alves <palves@redhat.com>
3082
3083 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
3084 both __cplusplus and !__cplusplus.
3085
9340a6c0
PA
30862012-03-01 Pedro Alves <palves@redhat.com>
3087
3088 * psymtab.c (find_and_open_source): Delete declaration.
3089 * source.c (find_and_open_source): Move comment ...
3090 * source.h (find_and_open_source): ... to this new declaration.
3091
e451c4a1
PA
30922012-03-01 Pedro Alves <palves@redhat.com>
3093
3094 * inline-frame.c: Include inline-frame.h.
3095
983fb104
PA
30962012-03-01 Pedro Alves <palves@redhat.com>
3097
3098 * tui/tui-data.c (set_gen_win_origin): Delete.
3099 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
3100 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
3101
5fbce5df
PA
31022012-03-01 Pedro Alves <palves@redhat.com>
3103
3104 * remote.c (encode_actions): Delete declaration.
3105 * tracepoint.c (encode_actions): Make extern.
3106 * tracepoint.h (encode_actions): Declare.
3107
49a8461d
PA
31082012-03-01 Pedro Alves <palves@redhat.com>
3109
3110 * python/py-breakpoint.c: Include python.h.
3111 * python/py-continueevent.c (create_continue_event_object): Make
3112 static.
3113 * python/py-lazy-string.c (stpy_get_type): Make static.
3114 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3115 Make static.
3116 * python/py-utils.c (unicode_to_target_python_string): Make
3117 static.
3118 * python/py-value.c: Include python.h.
3119
9079102f
PA
31202012-03-01 Pedro Alves <palves@redhat.com>
3121
3122 * inferior.c (delete_threads_of_inferior): Delete.
3123
a298c5e8
PA
31242012-03-01 Pedro Alves <palves@redhat.com>
3125
3126 Import fallback definitions from glibc.
3127
3128 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
3129 ps_prochandle): Forward declare.
3130 (ps_err_e): Use glibc's comments.
3131 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
3132 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3133 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
3134 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
3135 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
3136 (struct ps_prochandle): Adjust comment.
3137
e3084549
PA
31382012-03-01 Pedro Alves <palves@redhat.com>
3139
3140 * ada-lang.c (ada_modulus_from_name): Delete.
3141 * ada-lex.l (lexer_init): Make static.
3142
ad5f7d6e
PA
31432012-03-01 Pedro Alves <palves@redhat.com>
3144
3145 PR gdb/13767
3146
3147 * frame.c (read_frame_register_unsigned): New.
3148 * frame.h (read_frame_register_unsigned): Declare.
3149 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
3150 Handle it.
3151 (print_i387_control_word): New parameter `control_p'. Handle it.
3152 (i387_print_float_info): Handle unavailable float registers.
3153
e0a4d108
KS
31542012-03-01 Keith Seitz <keiths@redhat.com>
3155
3156 * linespec.c (decode_line_2): Sort the list of methods
3157 alphabetically before presenting the user with a selection
3158 menu.
3159
122d1940
DE
31602012-03-01 Doug Evans <dje@google.com>
3161
3162 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
3163 has_namespace_info.
3164 (dwarf2_read_abbrevs): Remove corresponding initialization.
3165
7d74f244
DE
31662012-03-01 Scott J. Goldman <scottjg@vmware.com>
3167
3168 * NEWS: Mention new python command class gdb.COMMAND_USER.
3169 * cli/cli-cmds.c (show_user): Print error when used on a python
3170 command.
3171 (init_cli_cmds): Update documentation strings for "show user" and
3172 "set/show max-user-call-depth" to clarify that it does not apply to
3173 python commands.
3174 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
3175 error check.
3176 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
3177 gdb python api.
3178 * top.c (execute_command): Only execute a user-defined command as a
3179 legacy macro if c->user_commands is set.
3180
e88acd96
TT
31812012-03-01 Tom Tromey <tromey@redhat.com>
3182
3183 * valprint.h (struct generic_val_print_decorations): New.
3184 (generic_val_print): Declare.
3185 * valprint.c (generic_val_print): New function.
3186 * p-valprint.c (p_decorations): New global.
3187 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
3188 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
3189 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
3190 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
3191 * m2-valprint.c (m2_decorations): New global.
3192 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
3193 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
3194 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
3195 TYPE_CODE_ERROR>: Call generic_val_print.
3196 * f-valprint.c (f_decorations): New global.
3197 (f_val_print): Use print_function_pointer_address.
3198 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
3199 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
3200 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
3201 generic_val_print.
3202 * c-valprint.c (c_decorations): New global.
3203 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
3204 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
3205 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
3206 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
3207 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
3208 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
3209 case.
3210
d3eab38a
TT
32112012-03-01 Tom Tromey <tromey@redhat.com>
3212
3213 * valprint.c (val_print): Update.
3214 * p-valprint (pascal_val_print): Return void.
3215 * p-lang.h (pascal_val_print): Return void.
3216 * m2-valprint.c (m2_val_print): Return void.
3217 * m2-lang.h (m2_val_print): Return void.
3218 * language.h (struct language_defn) <la_val_print>: Return void.
3219 * language.c (unk_lang_val_print): Return void.
3220 * jv-valprint.c (java_val_print): Return void.
3221 * jv-lang.h (java_val_print): Return void.
3222 * f-valprint.c (f_val_print): Return void.
3223 * f-lang.h (f_val_print): Return void.
3224 * d-valprint.c (d_val_print): Return void.
3225 (dynamic_array_type): Update.
3226 * d-lang.h (d_val_print): Return void.
3227 * c-valprint.c (c_val_print): Return void.
3228 * c-lang.h (c_val_print): Return void.
3229 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
3230 void.
3231 * ada-lang.h (ada_val_print): Return void.
3232
35c0084b
TT
32332012-03-01 Tom Tromey <tromey@redhat.com>
3234
3235 * value.h (val_print): Return void.
3236 * valprint.c (val_print): Return void.
3237
a1f5dd1b
TT
32382012-03-01 Tom Tromey <tromey@redhat.com>
3239
3240 * value.h (common_val_print): Return void.
3241 * valprint.c (common_val_print): Return void.
3242
8e069a98
TT
32432012-03-01 Tom Tromey <tromey@redhat.com>
3244
3245 * value.h (value_print): Return void.
3246 * valprint.c (value_print): Return void.
3247 * p-valprint.c (pascal_value_print): Return void.
3248 * p-lang.h (pascal_value_print): Return void.
3249 * language.h (struct language_defn) <la_value_print>: Return
3250 void.
3251 * language.c (unk_lang_value_print): Return void.
3252 * jv-valprint.c (java_value_print): Return void.
3253 * jv-lang.h (java_value_print): Return void.
3254 * f-valprint.c (c_value_print): Don't declare.
3255 Include c-lang.h.
3256 * c-valprint.c (c_value_print): Return void.
3257 * c-lang.h (c_value_print): Return void.
3258 * ada-valprint.c (ada_value_print): Return void.
3259 * ada-lang.h (ada_value_print): Return void.
3260
be335936
TT
32612012-03-01 Tom Tromey <tromey@redhat.com>
3262
3263 * value.c (value_primitive_field): Handle virtual base classes.
3264
b0db66a7
TT
32652012-03-01 Tom Tromey <tromey@redhat.com>
3266
3267 * gdbtypes.h (struct vbase): Remove.
3268
132c57b4
TT
32692012-03-01 Tom Tromey <tromey@redhat.com>
3270
3271 * c-valprint.c (print_function_pointer_address): Move...
3272 * valprint.c: ... here. Make non-static.
3273 * m2-valprint.c (print_function_pointer_address): Remove.
3274 * valprint.h (print_function_pointer_address): Declare.
3275
e41eec66
JB
32762012-03-01 Joel Brobecker <brobecker@adacore.com>
3277
3278 * NEWS: Document the fact that one can provide a condition when
3279 creating an Ada exception catchpoint.
3280
19c37f24
TT
32812012-03-01 Tom Tromey <tromey@redhat.com>
3282
3283 * valprint.c (val_print_type_code_flags): Fix placement of
3284 trailing brace.
3285
f0fed3a3
JB
32862012-03-01 Joel Brobecker <brobecker@adacore.com>
3287
3288 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
3289 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
3290 environment variable before calling update-copyright.
3291
8ba85d85
JB
32922012-03-01 Joel Brobecker <brobecker@adacore.com>
3293
3294 * gnulib/extra/update-copyright: Update to the latest from
3295 gnulib's git repository.
3296 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
3297 variable to 2 instead of 1.
3298
8219b1e8
JB
32992012-02-29 Joel Brobecker <brobecker@adacore.com>
3300
3301 * varobj.c (c_value_of_variable): Remove dead code.
3302
718cb7da
JB
33032012-02-29 Joel Brobecker <brobecker@adacore.com>
3304
3305 * ada-lex.p (processId): Do not modify already encoded IDs.
3306 Update function documentation.
3307
739593e0
JB
33082012-02-29 Joel Brobecker <brobecker@adacore.com>
3309
3310 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
3311 "name" with "struct symbol *name_sym".
3312 * ada-exp.y (write_var_or_type): Update call to
3313 ada_find_renaming_symbol.
3314 "name" with "struct symbol *name_sym". Adjust Implementation
3315 accordingly. Adjust the function documentation.
3316
852dff6c
JB
33172012-02-29 Joel Brobecker <brobecker@adacore.com>
3318
3319 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
3320 * ada-lang.c (ada_find_any_type): Add advance declaration.
3321 Make static. Replace ada_find_any_symbol by
3322 ada_find_any_type_symbol.
3323 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
3324 Improve function description. Make static.
3325 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
3326 Replace ada_find_any_symbol by ada_find_any_type_symbol.
3327
1b611343
JB
33282012-02-29 Joel Brobecker <brobecker@adacore.com>
3329
3330 * ada-lang.c (struct tag_args): Delete.
3331 (ada_get_tsd_type): Function body moved up in source file.
3332 (ada_tag_name_1, ada_tag_name_2): Delete.
3333 (ada_get_tsd_from_tag): New function.
3334 (ada_tag_name_from_tsd): New function.
3335 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
3336 to determine the tag name.
3337
41246937
JB
33382012-02-29 Joel Brobecker <brobecker@adacore.com>
3339
3340 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
3341 declaration.
3342 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
3343 function.
3344
ffde82bf
JB
33452012-02-29 Joel Brobecker <brobecker@adacore.com>
3346
3347 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
3348
2ad01556
JB
33492012-02-29 Joel Brobecker <brobecker@adacore.com>
3350
3351 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
3352 full searches.
3353
99b1c762
JB
33542012-02-29 Joel Brobecker <brobecker@adacore.com>
3355
3356 * ada-lang.c (constrained_packed_array_type): If there is a
3357 parallel XA type, use it to determine the array index type.
3358
2d4a02ee
JB
33592012-02-29 Joel Brobecker <brobecker@adacore.com>
3360
3361 * ada-valprint.c (ada_val_print_1): If our value is a reference
3362 to an array descriptor, dereference it before converting it
3363 to a simple array.
3364
c48db5ca
JB
33652012-02-29 Joel Brobecker <brobecker@adacore.com>
3366
3367 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
3368 creating fixed value.
3369 (ada_value_ind, ada_coerce_ref, assign_component)
3370 (ada_evaluate_subexp): Remove call to unwrap_value before
3371 call to ada_to_fixed_value.
3372
2e6fda7d
JB
33732012-02-29 Joel Brobecker <brobecker@adacore.com>
3374
3375 * ada-lang.c (to_fixed_array_type): Set result's type name.
3376
5845583d
JB
33772012-02-29 Joel Brobecker <brobecker@adacore.com>
3378
3379 * ada-lang.c (catch_ada_exception_command_split): Add new
3380 argument cond_string. Add support for condition at end of
3381 "catch exception" commands.
3382 (ada_decode_exception_location): Add new argument cond_string.
3383 Update call to catch_ada_exception_command_split.
3384 (create_ada_exception_catchpoint): Add new argument cond_string.
3385 Set the breakpoint condition if needed.
3386 (catch_ada_exception_command): Update call to
3387 ada_decode_exception_location.
3388 (ada_decode_assert_location): Add function documentation.
3389 Add support for condition at end of "catch assert" command.
3390 (catch_assert_command): Update calls to ada_decode_assert_location
3391 and create_ada_exception_catchpoint.
3392
9a7f938f
JK
33932012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3394
3395 Fix disp-step-syscall.exp: fork: single step over fork.
3396 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
3397 (i386_linux_get_syscall_number_from_regcache): ... here, new function
3398 comment, change parameters gdbarch and ptid to regcache. Remove
3399 parameter regcache, initialize gdbarch from regcache here.
3400 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
3401 New functions.
3402 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
3403 instead.
3404 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
3405 'syscall'. Make the 'int' check more strict.
3406
ffdf6de5
JK
34072012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3408
3409 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
3410 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
3411 (i386_linux_intx80_sysenter_syscall_record): ... here.
3412 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
3413 Use the renamed function name.
3414
c70a6932
JK
34152012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3416
3417 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
3418 * breakpoint.c (until_break_command): Likewise.
3419 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3420 * infcall.c (call_function_by_hand): Likewise.
3421 * infcmd.c (finish_forward): Likewise.
3422 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3423
05b8a789 34242012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 3425
d4cd3da9
JB
3426 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
3427 avoid variable assignments inside condition.
3428
6425366c
JK
34292012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3430
3431 Fix static analysis issue found by cppcheck.
3432 * microblaze-tdep.c (microblaze_extract_return_value): Fix
3433 uninitialized BUF for size 2.
3434
c8cef75f 34352012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
3436 Nathan Froyd <froydnj@codesourcery.com>
3437 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
3438
3439 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
3440 (mips16_instruction_has_delay_slot): Likewise.
3441 (mips_segment_boundary): Likewise.
3442 (mips_adjust_breakpoint_address): Likewise.
3443 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
3444
473347ad 34452012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 3446 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
3447
3448 * infrun.c (handle_inferior_event): Don't proceed through
3449 shared library trampolines if stepping at the machine
3450 instruction level.
3451
cf233303
MR
34522012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
3453
3454 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
3455 too.
3456
cb2cf4ce
TS
34572012-02-27 Thomas Schwinge <thomas@codesourcery.com>
3458
3459 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
3460 (sh_stub_unwind_sniffer): New functions.
3461 (sh_stub_unwind): New variable.
3462 (sh_gdbarch_init): Wire everything.
3463
644cebc9
PA
34642012-02-27 Pedro Alves <palves@redhat.com>
3465
3466 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
3467 (linux_nat_post_attach_wait): Adjust to use
3468 linux_proc_pid_is_stopped.
3469 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
3470 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
3471 based on pid_is_stopped from both linux-nat.c and
3472 gdbserver/linux-low.c, and renamed.
3473
283002cf
MR
34742012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3475
3476 * remote.c (remote_watchpoint_addr_within_range): New function.
3477 (init_remote_ops): Use it.
3478
9b3e86b1
MR
34792012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3480
3481 * target.h (target_watchpoint_addr_within_range): Document macro.
3482
e36930bb
PA
34832012-02-24 Pedro Alves <palves@redhat.com>
3484
3485 * stack.c (set_last_displayed_sal): Issue internal_error instead
3486 of warning, and issue it after clearing the last displayed sal.
3487
883bc8d1
PA
34882012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3489 Pedro Alves <palves@redhat.com>
3490
3491 * breakpoint.c (until_break_command): Install breakpoints after
3492 all frame manipulations.
3493
b775012e
LM
34942012-02-24 Luis Machado <lgustavo@codesourcery.com>
3495
3496 * remote.c (remote_supports_cond_breakpoints): New forward
3497 declaration.
3498 (remote_add_target_side_condition): New function.
3499 (remote_insert_breakpoint): Add target-side breakpoint
3500 conditional if supported.
3501 (remote_insert_hw_breakpoint): Likewise.
3502 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
3503 hook.
3504
3505 * target.c (update_current_target): Inherit
3506 to_supports_evaluation_of_breakpoint_conditions.
3507 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
3508
3509 * target.h (struct target_ops)
3510 <to_supports_evaluation_of_breakpoint_conditions>: New field.
3511 (target_supports_evaluation_of_breakpoint_conditions): New #define.
3512
3513 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
3514 (condition_evaluation_both, condition_evaluation_auto,
3515 condition_evaluation_host, condition_evaluation_target,
3516 condition_evaluation_enums, condition_evaluation_mode_1,
3517 condition_evaluation_mode): New static globals.
3518 (translate_condition_evaluation_mode): New function.
3519 (breakpoint_condition_evaluation_mode): New function.
3520 (gdb_evaluates_breakpoint_condition_p): New function.
3521 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
3522 (mark_breakpoint_modified): New function.
3523 (mark_breakpoint_location_modified): New function.
3524 (set_condition_evaluation_mode): New function.
3525 (show_condition_evaluation_mode): New function.
3526 (bp_location_compare_addrs): New function.
3527 (get_first_location_gte_addr): New helper function.
3528 (set_breakpoint_condition): Free condition bytecode if locations
3529 has become unconditional. Call mark_breakpoint_modified (...).
3530 (condition_command): Call update_global_location_list (1) for
3531 breakpoints.
3532 (breakpoint_xfer_memory): Use is_breakpoint (...).
3533 (is_breakpoint): New function.
3534 (parse_cond_to_aexpr): New function.
3535 (build_target_condition_list): New function.
3536 (insert_bp_location): Handle target-side conditional
3537 breakpoints and call build_target_condition_list (...).
3538 (update_inserted_breakpoint_locations): New function.
3539 (insert_breakpoint_locations): Handle target-side conditional
3540 breakpoints.
3541 (bpstat_check_breakpoint_conditions): Add comment.
3542 (bp_condition_evaluator): New function.
3543 (bp_location_condition_evaluator): New function.
3544 (print_breakpoint_location): Print information on where the condition
3545 will be evaluated.
3546 (print_one_breakpoint_location): Likewise.
3547 (init_bp_location): Call mark_breakpoint_location_modified (...) for
3548 breakpoint location.
3549 (force_breakpoint_reinsertion): New functions.
3550 (update_global_location_list): Handle target-side breakpoint
3551 conditions.
3552 Reinsert locations that are already inserted if conditions have
3553 changed.
3554 (bp_location_dtor): Free agent expression bytecode.
3555 (disable_breakpoint): Call mark_breakpoint_modified (...).
3556 Call update_global_location_list (...) with parameter 1 for breakpoints.
3557 (disable_command): Call mark_breakpoint_location_modified (...).
3558 Call update_global_location_list (...) with parameter 1 for breakpoints.
3559 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
3560 (enable_command): mark_breakpoint_location_modified (...).
3561 (_initialize_breakpoint): Update documentation and add
3562 condition-evaluation breakpoint subcommand.
3563
3564 * breakpoint.h: Include ax.h.
3565 (condition_list): New data structure.
3566 (condition_status): New enum.
3567 (bp_target_info) <cond_list>: New field.
3568 (bp_location) <condition_changed, cond_bytecode>: New fields.
3569 (is_breakpoint): New prototype.
3570
3788aec7
LM
35712012-02-24 Luis Machado <lgustavo@codesourcery.com>
3572
3573 * remote.c (remote_state) <cond_breakpoints>: New field.
3574 (PACKET_ConditionalBreakpoints): New enum.
3575 (remote_cond_breakpoint_feature): New function.
3576 (remote_protocol_features): Add new ConditionalBreakpoints entry.
3577 (remote_supports_cond_breakpoints): New function.
3578 (_initialize_remote): Add new packet configuration for
3579 target-side conditional breakpoints.
3580
72895ff6
LM
35812012-02-24 Luis Machado <lgustavo@codesourcery.com>
3582
3583 * NEWS: Mention target-side conditional breakpoint support,
3584 new condition-evaluation breakpoint subcommand and remote
3585 packet extensions.
3586
dea2aa5f
LM
35872012-02-24 Luis Machado <lgustavo@codesourcery.com>
3588
3589 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
3590 number.
3591
8a8bc27f
TS
35922012-02-24 Thomas Schwinge <thomas@codesourcery.com>
3593
3594 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
3595 (after_prologue): Remove.
3596
6b446fdf
TT
35972012-02-23 Tom Tromey <tromey@redhat.com>
3598
3599 * jv-valprint.c (java_val_print): Remove dead code.
3600
ef59abfb
TG
36012012-02-23 Tristan Gingold <gingold@adacore.com>
3602
a09130f9
PA
3603 * ada-tasks.c (struct ada_tasks_inferior_data): Add
3604 known_tasks_element and known_tasks_length fields.
3605 (read_known_tasks_array): Change argument type. Use pointer type
3606 and number of elements from DATA. Adjust.
3607 (read_known_tasks_list): Likewise.
3608 (get_known_tasks_addr): Remove.
3609 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
3610 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
3611 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 3612
def166f6
JK
36132012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3614
3615 PR backtrace/13716
3616 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
3617 it after set_momentary_breakpoint.
3618
aeaa2474
SA
36192012-02-22 Sterling Augustine <saugustine@google.com>
3620
3621 PR 13689:
3622 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
3623
feea76c2
GB
36242012-02-22 Gary Benson <gbenson@redhat.com>
3625
3626 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
3627 (find_slot_in_mapped_hash): Likewise.
3628
f06e05e0
JK
36292012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3630
3631 PR build/13638
3632 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
3633 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
3634 * configure: Regenerate.
3635
b54a8fd7
PA
36362012-02-21 Tristan Gingold <gingold@adacore.com>
3637 Pedro Alves <palves@redhat.com>
3638
3639 * ia64-tdep.c: Do not include libunwind-ia64.h.
3640 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
3641 Include libunwind-ia64.h instead of libunwind.h.
3642 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
3643 for libunwind.h existence.
3644 * configure, config.in: Regenerate.
3645
dfcee124
AG
36462012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3647
3648 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
3649 instead of value_rtti_target_type.
3650 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
3651 instead of value_rtti_target_type.
3652 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
3653 value_rtti_target_type.
3654 * valops.c (value_ind): Extract function readjust_indirect_value_type.
3655 (value_rtti_target_type): Rename to ...
3656 (value_rtti_indirect_type): ... here and make it indirect. Update
3657 function comment.
3658 * value.c (readjust_indirect_value_type): New function.
3659 (coerce_ref): Support for enclosing type setting for references
3660 with readjust_indirect_value_type.
3661 * value.h (readjust_value_type): New declaration.
3662 (value_rtti_target_type): Rename to ...
3663 (value_rtti_indirect_type): ... here.
3664
02568277
AG
36652012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3666
3667 * MAINTAINERS (Write After Approval): Add myself to the list.
3668
10c07b7e 36692012-02-20 Doug Evans <dje@google.com>
28ee876a 3670
d82ea6a8
DE
3671 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
3672 Rename objfile_p_char parameter to objfilep.
3673 (build_objfile_section_table): Result is now void. All callers
3674 updated.
3675 * objfiles.h (struct objfile): Tweak comments, whitespace.
3676 (build_objfile_section_table): Update.
3677
28ee876a
DE
3678 * elfread.c (elf_symfile_segments): Fix warning text.
3679
24c79950
TT
36802012-02-20 Tom Tromey <tromey@redhat.com>
3681
3682 PR gdb/13498:
3683 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
3684 particular set of file names once.
3685 (dw2_map_symbol_filenames): Likewise.
3686
3a9b40b6
JK
36872012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3688
3689 Code cleanup.
3690 * main.c (write_files): Remove the declaration.
3691 (external_editor_command): Move the declaration ...
3692 [GDBTK] (external_editor_command): ... here. Fix the comment.
3693
4d0795ca
TT
36942012-02-20 Tom Tromey <tromey@redhat.com>
3695
3696 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
3697 extraneous block.
3698
637fd620
TG
36992012-02-20 Tristan Gingold <gingold@adacore.com>
3700
3701 * darwin-nat.h (enum darwin_msg_state): Add comments.
3702
6f124894
TG
37032012-02-20 Tristan Gingold <gingold@adacore.com>
3704
3705 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
3706 value.
3707
2e6e3d9c
JB
37082012-20-18 Joel Brobecker <brobecker@adacore.com>
3709
3710 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
3711 between function description and implementation.
3712
2e8265fd
TT
37132012-02-17 Tom Tromey <tromey@redhat.com>
3714
3715 PR python/12070:
3716 * python/py-event.c (event_object_getset): New global.
3717 (event_object_type): Reference it.
3718 * python/py-type.c (field_object_getset): New global.
3719 (field_object_type): Reference it.
3720 * python/python-internal.h (gdb_py_generic_dict): Declare.
3721 * python/py-utils.c (gdb_py_generic_dict): New function.
3722
8544a150 37232012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 3724
8544a150 3725 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 3726
ca193e27
TS
37272012-02-17 Thomas Schwinge <thomas@codesourcery.com>
3728
3729 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
3730 TYPE_CALLING_CONVENTION annotation.
3731
e5586183
KB
37322012-02-16 Kevin Buettner <kevinb@redhat.com>
3733
3734 * MAINTAINERS: Add rx to target ISA section.
3735 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
3736 (ALLDEPFILES): Add rx-tdep.c.
3737
7dcd53a0
TT
37382012-02-16 Tom Tromey <tromey@redhat.com>
3739
3740 * symfile.c (symbol_file_add_main_1): Use inferior's
3741 symfile_flags.
3742 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
3743 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
3744 inferior.
3745 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
3746 inferior.
3747 (follow_exec): Use inferior's symfile_flags.
3748 * inferior.h (struct inferior) <symfile_flags>: New field.
3749
ddd60447
MF
37502012-02-16 Mike Frysinger <vapier@gentoo.org>
3751
3752 PR gdb/9734:
3753 * remote-sim.c (gdbsim_create_inferior): Call error() when
3754 sim_create_inferior() fails.
3755
b0d32fb6
TG
37562012-02-16 Josh Matthews <josh@joshmatthews.net>
3757
3758 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
3759
9addecb9
TT
37602012-02-16 Tom Tromey <tromey@redhat.com>
3761
3762 PR c++/13653:
3763 * thread.c (struct current_thread_cleanup) <was_removable>: New
3764 field.
3765 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
3766 (make_cleanup_restore_current_thread): Initialize new field.
3767
a58b110a
KB
37682012-02-15 Kevin Buettner <kevinb@redhat.com>
3769
3770 * MAINTAINERS: Add rl78 to target ISA section.
3771 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
3772 (ALLDEPFILES): Add rl78-tdep.c.
3773 * NEWS: Mention rl78 as a new target.
3774
4cb6da1c
AR
37752012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
3776
3777 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
3778 data.
3779 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
3780
3af2590d
TT
37812012-02-15 Tom Tromey <tromey@redhat.com>
3782
3783 PR gdb/12659:
3784 * infcmd.c (registers_info): Print just the current register's
3785 name.
3786
c6910659
TT
37872012-02-15 Tom Tromey <tromey@redhat.com>
3788
3789 * python/py-symbol.c (sympy_value): Use _().
3790
7cee1e54
PA
37912012-02-15 Pedro Alves <palves@redhat.com>
3792
3793 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
3794 output to be like native targets'.
3795 (remote_pid_to_str): Special case the null ptid.
3796
816338b5
SS
37972012-02-14 Stan Shebs <stan@codesourcery.com>
3798
3799 * NEWS: Mention enable count command.
3800 * breakpoint.h (struct breakpoint): New field enable_count.
3801 * breakpoint.c (enable_breakpoint_disp): Add count argument.
3802 (enable_breakpoint): Add arg to call.
3803 (struct disp_data): New struct.
3804 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
3805 (do_map_enable_once_breakpoint): Create a struct and pass it.
3806 (do_map_enable_delete_breakpoint): Ditto.
3807 (do_map_enable_count_breakpoint): New function.
3808 (enable_count_command): New function.
3809 (bpstat_stop_status): Decrement enable_count.
3810 (print_one_breakpoint_location): Report enable count.
3811 (_initialize_breakpoint): Add enable count command.
3812
c47a44f4
KB
38132012-02-14 Kevin Buettner <kevinb@redhat.com>
3814
3815 * rl78-tdep.c (reggroups.h): Include.
3816 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
3817 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
3818 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
3819 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
3820 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
3821 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
3822 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
3823 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
3824 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
3825 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
3826 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
3827 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
3828 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
3829 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
3830 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
3831 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
3832 beginning of register list.
3833 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
3834 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
3835 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
3836 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
3837 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
3838 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
3839 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
3840 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
3841 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
3842 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
3843 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
3844 the pseudo registers. Rearrange other pseudo registers too so
3845 that the bank registers appear at the end.
3846 (rl78_register_type): Account for the fact that the byte sized
3847 bank registers are now pseudo-registers.
3848 (rl78_register_name): Rearrange the register name array. Make
3849 initial set of raw banked registers inaccessible.
3850 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
3851 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
3852 case for copying bytes back and forth between raw and pseudo
3853 versions of the banked registers. Update other cases to reflect
3854 the changed names.
3855 (rl78_return_value): Update to account for changed names of
3856 raw registers.
3857 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
3858 rl78_register_sim_regno().
3859
e4569f1e
KB
38602012-02-14 Kevin Buettner <kevinb@redhat.com>
3861
3862 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
3863 the name parameter being passed to find_pc_partial_function().
3864
7a05aae7
JK
38652012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3866
3867 * MAINTAINERS: Step down from being ia64 target maintainer.
3868
11fde611
JK
38692012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3870
3871 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
3872 compilation warning.
3873
57008375
JK
38742012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3875
3876 Fix crash on loaded shlibs without loaded exec_bfd.
3877 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
3878 (set_section_command): Replace exec_bfd by p->bfd.
3879
ff3c9849
TT
38802012-02-10 Tom Tromey <tromey@redhat.com>
3881
3882 * linespec.c (decode_line_internal): Skip symtabs_from_filename
3883 when we have a C++ qualified name.
3884
db2b9fdd
PA
38852012-02-10 Pedro Alves <palves@redhat.com>
3886
3887 * inferior.c (inferior_pid_to_str): New.
3888 (print_inferior, inferior_command): Use it.
3889
12cd34f3
PA
38902012-02-10 Pedro Alves <palves@redhat.com>
3891
3892 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
3893 the test CFLAGS.
3894 * configure: Regenerate.
3895
e871429d
JK
38962012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3897
3898 * linespec.c (decode_line_internal): Fix comment correctness.
3899
1916efaf
PA
39002012-02-09 Valery Khromov <valery.khromov@gmail.com>
3901
3902 PR gdb/12953
3903 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
3904 * amd64bsd-nat.c: Add support for debug registers (adapted from
3905 i386bsd-nat.c).
3906 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
3907 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
3908 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
3909 (amd64bsd_dr_get_control): New functions.
3910 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
3911 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
3912 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
3913 watchpoints initialization.
3914 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
3915
f4859d94
JK
39162012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3917
3918 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
3919 flds_bnds.fields.
3920 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
3921
c56a97f9
JK
39222012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3923
3924 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
3925
1a119f36
JB
39262012-02-08 Joel Brobecker <brobecker@adacore.com>
3927
3928 * language.h (symbol_name_cmp_ftype): Renames
3929 symbol_name_match_p_ftype.
3930 (struct language_defn)[la_get_symbol_name_cmp]: Renames
3931 la_get_symbol_name_match_p.
3932 * ada-lang.c (ada_get_symbol_name_cmp): Renames
3933 ada_get_symbol_name_match_p. Update comment.
3934 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
3935 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
3936 Renames symbol_name_match_p. Update field type.
3937 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
3938 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
3939 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
3940 "la_get_symbol_name_cmp" in comments.
3941 * language.c: Likewise.
3942
c71bb1cf
RO
39432012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3944
3945 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
3946 %eflags offset.
3947 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
3948 (amd64_sol2_gregset32_reg_offs): Likewise.
3949
4b2d20a5
TG
39502012-02-08 Joel Brobecker <brobecker@adacore.com>
3951
3952 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
3953 of the returned BFD is allocated by GDB.
3954
f0823d2c
TT
39552012-02-07 Tom Tromey <tromey@redhat.com>
3956
3957 PR python/12027:
3958 * python/python-internal.h (frame_object_type): Declare.
3959 * python/py-symbol.c (sympy_needs_frame): New function.
3960 (sympy_value): New function.
3961 (symbol_object_getset): Add "needs_frame".
3962 (symbol_object_methods): Add "value".
3963 * python/py-frame.c (frame_object_type): No longer static.
3964
64e7d9dd
TT
39652012-02-07 Tom Tromey <tromey@redhat.com>
3966
3967 PR python/13599:
3968 * python/py-symbol.c (sympy_line): New function.
3969 (symbol_object_getset): Add "line".
3970
1d6b2d2b
TT
39712012-02-07 Tom Tromey <tromey@redhat.com>
3972
3973 * charset.c (find_charset_names): Check 'in' against NULL.
3974
0d5cff50
DE
39752012-02-06 Doug Evans <dje@google.com>
3976
3977 * gdbtypes.h (struct main_type): Change type of name,tag_name,
3978 and fields.name members from char * to const char *. All uses updated.
3979 (struct cplus_struct_type): Change type of fn_fieldlists.name member
3980 from char * to const char *. All uses updated.
3981 (type_name_no_tag): Update.
3982 (lookup_unsigned_typename, lookup_signed_typename): Update.
3983 * gdbtypes.c (type_name_no_tag): Change result type
3984 from char * to const char *. All callers updated.
3985 (lookup_unsigned_typename, lookup_signed_typename): Change type of
3986 name parameter from char * to const char *.
3987 * symtab.h (struct cplus_specific): Change type of demangled_name
3988 member from char * to const char *. All uses updated.
3989 (struct general_symbol_info): Change type of name and
3990 mangled_lang.demangled_name members from char * to const char *.
3991 All uses updated.
3992 (symbol_get_demangled_name, symbol_natural_name): Update.
3993 (symbol_demangled_name, symbol_search_name): Update.
3994 * symtab.c (symbol_get_demangled_name): Change result type
3995 from char * to const char *. All callers updated.
3996 (symbol_natural_name, symbol_demangled_name): Ditto.
3997 (symbol_search_name): Ditto.
3998 (completion_list_add_name): Change type of symname,sym_text,
3999 text,word parameters from char * to const char *.
4000 (completion_list_objc_symbol): Change type of sym_text,
4001 text,word parameters from char * to const char *.
4002 * ada-lang.c (find_struct_field): Change type of name parameter
4003 from char * to const char *.
4004 (encoded_ordered_before): Similarly for N0,N1 parameters.
4005 (old_renaming_is_invisible): Similarly for function_name parameter.
4006 (ada_type_name): Change result type from char * to const char *.
4007 All callers updated.
4008 * ada-lang.h (ada_type_name): Update.
4009 * buildsym.c (hashname): Change type of name parameter
4010 from char * to const char *.
4011 * buildsym.h (hashname): Update.
4012 * dbxread.c (end_psymtab): Change type of include_list parameter
4013 from char ** to const char **.
4014 * dwarf2read.c (determine_prefix): Change result type
4015 from char * to const char *. All callers updated.
4016 * f-lang.c (find_common_for_function): Change type of name, funcname
4017 parameters from char * to const char *.
4018 * f-lang.c (find_common_for_function): Update.
4019 * f-valprint.c (list_all_visible_commons): Change type of funcname
4020 parameters from char * to const char *.
4021 * gdbarch.sh (static_transform_name): Change type of name parameter
4022 and result from char * to const char *.
4023 * gdbarch.c: Regenerate.
4024 * gdbarch.h: Regenerate.
4025 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
4026 of name parameter from char * to const char *.
4027 * jv-lang.c (java_primitive_type_from_name): Ditto.
4028 (java_demangled_signature_length): Similarly for signature parameter.
4029 (java_demangled_signature_copy): Ditto.
4030 (java_demangle_type_signature): Ditto.
4031 * jv-lang.h (java_primitive_type_from_name): Update.
4032 (java_demangle_type_signature): Update.
4033 * objc-lang.c (specialcmp): Change type of a,b parameters
4034 from char * to const char *.
4035 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
4036 from char * to const char *. All callers updated.
4037 * p-lang.h (is_pascal_string_type): Update.
4038 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
4039 of name parameter from char * to const char *.
4040 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
4041 * utils.c (fprintf_symbol_filtered): Ditto.
4042 * defs.h (fprintf_symbol_filtered): Update.
4043 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
4044 * stabsread.h (end_psymtab): Update.
4045 * stack.c (find_frame_funname): Change type of funname parameter
4046 from char ** to const char **.
4047 * stack.h (find_frame_funname): Update.
4048 * typeprint.c (type_print): Change type of varstring parameter
4049 from char * to const char *.
4050 * value.h (type_print): Update.
4051 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
4052 from char * to const char *. All callers updated.
4053 (xcoff_end_psymtab): Change type of include_list parameter
4054 from char ** to const char **. All callers updated.
4055 (swap_sym): Similarly for name parameter. All callers updated.
4056 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
4057 Use xstrdup.
4058 (process_coff_symbol): Use xstrdup.
4059 * stabsread.c (stabs_method_name_from_physname): Renamed from
4060 update_method_name_from_physname. Change result type from void
4061 to char *. All callers updated.
4062 (read_member_functions): In has_destructor case, store name in objfile
4063 obstack instead of malloc space. In !has_stub case, fix mem leak.
4064
5579a92e
TT
40652012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
4066
4067 * configure: Rebuild.
4068 * configure.ac: Put -L../bfd and -L../libiberty at the front of
4069 LDFLAGS.
4070
9058f767
KB
40712012-02-03 Kevin Buettner <kevinb@redhat.com>
4072
4073 * configure.tgt (rl78-*-elf): New target.
4074 * rl78-tdep.c: New file.
4075
5b37825d
PW
40762012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4077
4078 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
4079 and continue the loop. Add QUIT statement.
4080
e009ee71
TT
40812012-02-03 Tom Tromey <tromey@redhat.com>
4082
4083 PR gdb/13596:
4084 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
4085 bfd_lookup_symbol_from_symtab.
4086 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4087 gdb_bfd_lookup_symbol_from_symtab.
4088
f7e44f65
JB
40892012-02-03 Joel Brobecker <brobecker@adacore.com>
4090
4091 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
4092 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
4093 symbol. Add assertion that sym2 is never NULL.
4094
2c02bd72
DE
40952012-02-02 Doug Evans <dje@google.com>
4096
4097 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
4098 "name" parameter to const char ** from char **. All callers updated.
4099 (find_pc_partial_function): Ditto.
4100 (cache_pc_function_name): Change type to const char * from char *.
4101 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
4102 (find_pc_partial_function): Update.
4103 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
4104 type of "name" parameter to const char * from char *.
4105 All uses updated.
4106 * arch-utils.c (generic_in_solib_return_trampoline): Change
4107 type of "name" parameter to const char * from char *.
4108 * arch-utils.h (generic_in_solib_return_trampoline): Update.
4109 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
4110 type of "name" parameter to const char * from char *.
4111 * gdbarch.sh (in_solib_return_trampoline): Ditto.
4112 * gdbarch.c: Regenerate.
4113 * gdbarch.h: Regenerate.
4114 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
4115 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
4116 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
4117 type of "name" parameter to const char * from char *.
4118 * skip.c (skip_function_pc): Ditto.
4119 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
4120 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
4121 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
4122 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
4123 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
4124 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
4125 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
4126 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
4127 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
4128
e886a173
PA
41292012-02-02 Pedro Alves <palves@redhat.com>
4130
4131 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
4132 the current inferior has no execution. Make sure the current
4133 remote process matches gdb's current inferior.
4134
c709a7c2
TT
41352012-02-02 Tom Tromey <tromey@redhat.com>
4136
4137 PR gdb/13405:
4138 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
4139 read-only memory.
4140
f149aabd
TT
41412012-02-02 Tom Tromey <tromey@redhat.com>
4142
4143 PR gdb/9307:
4144 * symtab.c (lookup_language_this): Set block_found.
4145
03bef283
TT
41462012-02-01 Tom Tromey <tromey@redhat.com>
4147
4148 PR gdb/13431:
4149 * jit.c (struct jit_inferior_data): Rewrite.
4150 (struct jit_objfile_data): New.
4151 (get_jit_objfile_data): New function.
4152 (add_objfile_entry): Update.
4153 (jit_read_descriptor): Return int. Replace descriptor_addr
4154 argument with inf_data. Update. Don't call error.
4155 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
4156 descriptor here.
4157 (jit_inferior_init): Don't look up descriptor. Don't call error.
4158 (jit_reset_inferior_data_and_breakpoints)
4159 (jit_inferior_created_observer): Remove.
4160 (jit_inferior_exit_hook): Update.
4161 (jit_executable_changed_observer): Remove.
4162 (jit_event_handler): Update.
4163 (free_objfile_data): Reset inferior data if needed.
4164 (_initialize_jit): Update.
4165
f0bbc364
TT
41662012-02-01 Tom Tromey <tromey@redhat.com>
4167
4168 * jit.c (bfd_open_from_target_memory): Move higher in file.
4169
47c1316c
TG
41702012-02-01 Tristan Gingold <gingold@adacore.com>
4171
4172 * libunwind-frame.c (libunwind_load): Display message if dlopen
4173 failed.
4174
8e704927
GB
41752012-02-01 Gary Benson <gbenson@redhat.com>
4176
09c7a31f 4177 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
4178 (iterate_over_symbols): Use the above.
4179 * symtab.c (iterate_over_symbols): Likewise.
4180 * language.h (language_defn->la_iterate_over_symbols): Likewise.
4181 * ada-lang.c (ada_iterate_over_symbols): Likewise.
4182 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
4183 (iterate_name_matcher): Document return values.
4184 (collect_one_symbol): Likewise.
4185 (collect_function_symbols): Likewise.
4186 (collect_symbols): Likewise.
4187
d9680e73
TT
41882012-02-01 Tom Tromey <tromey@redhat.com>
4189
4190 * ada-lang.c (resolve_subexp): Update.
4191 (ada_lookup_symbol_list): Add 'full_search' argument.
4192 (ada_iterate_over_symbols): Pass 0 as full_search argument to
4193 ada_lookup_symbol_list.
4194 (ada_lookup_encoded_symbol): Update.
4195 (get_var_value): Update.
4196 * ada-exp.y (block_lookup): Update.
4197 (write_var_or_type): Update.
4198 (write_name_assoc): Update.
4199 * ada-lang.h (ada_lookup_symbol_list): Update.
4200
72e1143f
TT
42012012-01-31 Tom Tromey <tromey@redhat.com>
4202
4203 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
4204 comment.
4205
ab2d2ad3
DE
42062012-01-31 Doug Evans <dje@google.com>
4207
4208 * symtab.h: Remove outdated comment.
e9111bf7 4209 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 4210
bc884eba
JB
42112012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
4212
4213 Fix build error in Darwin port.
4214 * i386-darwin-nat.c: Include i386-nat.h.
4215
8fc3fc34
TT
42162012-01-30 Tom Tromey <tromey@redhat.com>
4217
4218 PR breakpoints/13568:
4219 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
4220 argument. Check for recursive includes.
4221 (dwarf_decode_macros): Create an include hash.
4222
5d853008
ME
42232012-01-30 Michael Eager <eager@eagercon.com>
4224
4225 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
4226 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 4227 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
4228 (powerpc_linux_in_plt_stub): New function.
4229 (powerpc_linux_in_dynsym_resolve_code): New function.
4230 (ppc_skip_trampoline_code): New function.
4231 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
4232 Use glibc_skip_solib_resolver.
4233
40478521
JK
42342012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4235
4236 Code cleanup: Make 1440 bytes of data segment read-only.
4237 * arch-utils.c (endian_enum): Make it const char *const [].
4238 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
4239 Likewise.
4240 * breakpoint.c (always_inserted_enums): Likewise.
4241 * cli/cli-cmds.c (script_ext_enums): Likewise.
4242 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
4243 enumlist parameter const char *const *.
4244 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
4245 const char *const *.
4246 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
4247 parameter const char *const *.
4248 * cris-tdep.c (cris_modes): Make it const char *const [].
4249 * filesystem.c (target_file_system_kinds): Likewise.
4250 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
4251 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
4252 (can_use_displaced_stepping_enum, scheduler_enums)
4253 (exec_direction_names): Likewise.
4254 * language.c (_initialize_language): Make the type_or_range_names and
4255 case_sensitive_names variables const char *const [].
4256 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
4257 * python/python.c (python_excp_enums): Likewise.
4258 * remote.c (interrupt_sequence_modes): Likewise.
4259 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
4260 * serial.c (logbase_enums): Likewise.
4261 * sh-tdep.c (sh_cc_enum): Likewise.
4262 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
4263 Likewise.
4264 * symtab.c (multiple_symbols_modes): Likewise.
4265 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
4266 Likewise.
4267 * utils.c (internal_problem_modes): Likewise.
4268
b3b8b934
JK
42692012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4270
4271 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
4272 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
4273 result.
4274
8c85a4e2
DE
42752012-01-27 Doug Evans <dje@google.com>
4276
4277 * configure.ac (with_python): Fix absolute path handling for win32.
4278 * configure: Regenerate.
4279
78d8b4d7
DE
42802012-01-26 Doug Evans <dje@google.com>
4281
eca864fe
DE
4282 * symtab.c: Whitespace cleanup, no code changes.
4283
7e082072
DE
4284 * symtab.c (lookup_symbol_in_language): Improve comment.
4285 (lookup_symbol_aux): Fix comment.
4286
7dc25483
DE
4287 * psymtab.c (add_psymbol_to_list): Result is now "void".
4288 * psympriv.h (add_psymbol_to_list): Update.
4289
78d8b4d7
DE
4290 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
4291
4c63965b
JK
42922012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4293
4294 Do not open script filenames twice.
4295 * cli/cli-cmds.c (source_script_from_stream): Pass to
4296 source_python_script also STREAM.
4297 * python/py-auto-load.c (source_section_scripts): Pass to
4298 source_python_script_for_objfile also STREAM.
4299 (auto_load_objfile_script): Pass to source_python_script_for_objfile
4300 also INPUT.
4301 * python/python-internal.h (source_python_script_for_objfile): New
4302 parameter file, rename parameter file to filename.
4303 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
4304 instead if !_WIN32. Update the function comment.
4305 (source_python_script, source_python_script_for_objfile)
4306 (source_python_script): New parameter file, rename parameter file to
4307 filename. Pass FILENAME to python_run_simple_file.
4308 * python/python.h (source_python_script): New parameter file, rename
4309 parameter file to filename.
4310
88f38a04
PA
43112012-01-26 Pedro Alves <palves@redhat.com>
4312
4313 * corelow.c (core_has_fake_pid): Delete.
4314 (core_close): Delete references to `core_has_fake_pid'.
4315 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
4316 (core_open): Delete references to `core_has_fake_pid'.
4317 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
4318 the removed global.
4319
e078317b
JB
43202012-01-26 Joel Brobecker <brobecker@adacore.com>
4321
4322 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
4323 Remove language parameter from name_matcher. Adjust the comment.
4324 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
4325 Remove language parameter.
4326 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
4327 * linespec.c (iterate_name_matcher): Likewise.
4328 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
4329 name_matcher. Adjust call accordingly.
4330 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
4331 (maintenance_check_symtabs): Adjust type of parameter "fun".
4332 * psymtab.h (maintenance_check_symtabs): Likewise.
4333
74ccd7f5
JB
43342012-01-26 Joel Brobecker <brobecker@adacore.com>
4335
4336 * language.h (symbol_name_match_p_ftype): New typedef.
4337 (struct language_defn): Replace field la_symbol_name_compare
4338 by la_get_symbol_name_match_p.
4339 * ada-lang.c (ada_get_symbol_name_match_p): New function.
4340 (ada_language_defn): Use it.
4341 * linespec.c (struct symbol_matcher_data): New type.
4342 (iterate_name_matcher): Rewrite.
4343 (iterate_over_all_matching_symtabs): Pass a pointer to
4344 a symbol_matcher_data struct to expand_symtabs_matching
4345 instead of just the lookup name.
4346 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4347 opencl-lang.c, p-lang.c, language.c: Delete field
4348 la_symbol_name_compare, and replace by NULL for new field
4349 la_get_symbol_name_match_p.
4350 * symfile.h (struct quick_symbol_functions): Update comment.
4351
5d268276
TT
43522012-01-25 Tom Tromey <tromey@redhat.com>
4353
4354 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
4355 dereferencing.
4356
edcc5120
TT
43572012-01-24 Tom Tromey <tromey@redhat.com>
4358
4359 PR symtab/12406:
4360 * solib.c (update_solib_list): Update the program space's
4361 added_solibs and deleted_solibs fields.
4362 * progspace.h (struct program_space) <added_solibs,
4363 deleted_solibs>: New fields.
4364 (clear_program_space_solib_cache): Declare.
4365 * progspace.c (release_program_space): Call
4366 clear_program_space_solib_cache.
4367 (clear_program_space_solib_cache): New function.
4368 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
4369 bpstat_stop_status. Use handle_solib_event.
4370 * breakpoint.c: Include gdb_regex.h.
4371 (print_solib_event): New function.
4372 (bpstat_print): Use print_solib_event.
4373 (bpstat_stop_status): Add special case for bp_shlib_event.
4374 (handle_solib_event): New function.
4375 (bpstat_what): Use handle_solib_event.
4376 (struct solib_catchpoint): New.
4377 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
4378 (breakpoint_hit_catch_solib, check_status_catch_solib)
4379 (print_it_catch_solib, print_one_catch_solib)
4380 (print_mention_catch_solib, print_recreate_catch_solib): New
4381 functions.
4382 (catch_solib_breakpoint_ops): New global.
4383 (catch_load_or_unload, catch_load_command_1)
4384 (catch_unload_command_1): New functions.
4385 (internal_bkpt_check_status): Add special case for
4386 bp_shlib_event.
4387 (internal_bkpt_print_it): Use print_solib_event.
4388 (initialize_breakpoint_ops): Initialize
4389 catch_solib_breakpoint_ops.
4390 (_initialize_breakpoint): Register "catch load" and "catch
4391 unload".
4392 * breakpoint.h (handle_solib_event): Declare.
4393 * NEWS: Add entry for "catch load" and "catch unload".
4394
fa864999
TT
43952012-01-24 Tom Tromey <tromey@redhat.com>
4396
4397 * ada-lang.c: Include gdb_vecs.h.
4398 * charset.c: Include gdb_vecs.h.
4399 * tracepoint.h: Include gdb_vecs.h.
4400 * gdb_vecs.h: New file.
4401
f90263c1
TT
44022012-01-24 Pedro Alves <pedro@codesourcery.com>
4403
4404 * breakpoint.c (breakpoint_hit_catch_fork)
4405 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
4406 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
4407 * infrun.c (inferior_has_forked, inferior_has_vforked)
4408 (inferior_has_execd, inferior_has_called_syscall): Delete.
4409 (handle_syscall_event): Get syscall_number from the execution
4410 control state's wait status.
4411 (wait_for_inferior): Don't clear syscall_number.
4412
09ac7c10
TT
44132012-01-24 Pedro Alves <palves@redhat.com>
4414
4415 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
4416 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
4417 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
4418 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
4419 `ws' parameter.
4420 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
4421 false for events other than TARGET_SIGNAL_TRAP.
4422 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
4423 Add `ws' parameter.
4424 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
4425 events other than TARGET_SIGNAL_TRAP.
4426 (tracepoint_breakpoint_hit): Add `ws' parameter.
4427 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
4428 parameter.
4429 (bpstat_stop_status): Same.
4430 (pc_at_non_inline_function): Same.
4431 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
4432 to pass the current event's waitstatus to bpstat_stop_status
4433 and pc_at_non_inline_function.
4434
86eb7e95
JK
44352012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4436
4437 Code cleanup.
4438 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
4439 Update the function comment for it.
4440 (source_script_with_search): Call make_cleanup_fclose for STREAM.
4441 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
4442 for STREAM.
4443
a9b3a50f
PA
44442012-01-24 Pedro Alves <palves@redhat.com>
4445
4446 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
4447 outside `bs->stop' block.
4448 (bpstat_what): Rework bp_shlib_event handling.
4449 (internal_bkpt_check_status): If the breakpoint is a
4450 bp_shlib_event, then set bs->stop and bs->print if
4451 stop_on_solib_events is set.
4452
53fe1783
GB
44532012-01-24 Gary Benson <gbenson@redhat.com>
4454
4455 Delete #if 0'd out code.
4456 * stack.c (print_frame_label_vars): Remove.
4457 (catch_info): Likewise.
4458 (_initialize_stack): Remove "info catch" command.
4459 * NEWS: Mention the above.
4460
49c62f2e
PA
44612012-01-24 Pedro Alves <palves@redhat.com>
4462
4463 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
4464 it.
4465 (remote_notice_new_inferior): If the remote end doesn't support
4466 the multiprocess extensions, then the PID is fake.
4467 (add_current_inferior_and_thread): New.
4468 (remote_start_remote): Use it.
4469 (extended_remote_attach_1): Adjust.
4470 (extended_remote_create_inferior_1): Use
4471 add_current_inferior_and_thread.
4472
d0d8b0c6
JK
44732012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4474
4475 Fix watchpoints to be specific for each inferior.
4476 * breakpoint.c (watchpoint_in_thread_scope): Verify also
4477 current_program_space.
4478 * i386-nat.c (i386_inferior_data_cleanup): New.
4479 (i386_inferior_data_get): Replace variable inf_data_local by an
4480 inferior_data call.
4481 (i386_use_watchpoints): Initialize i386_inferior_data.
4482 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
4483 specific iterate_over_lwps.
4484
4403d8e9
JK
44852012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4486
4487 Fix watchpoints across inferior fork.
4488 * amd64-linux-nat.c (update_debug_registers_callback): Update the
4489 comment for linux_nat_iterate_watchpoint_lwps.
4490 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4491 linux_nat_iterate_watchpoint_lwps.
4492 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
4493 * i386-linux-nat.c (update_debug_registers_callback): Update the
4494 comment for linux_nat_iterate_watchpoint_lwps.
4495 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4496 linux_nat_iterate_watchpoint_lwps.
4497 (i386_linux_prepare_to_resume): New comment on Linux kernel.
4498 * i386-nat.c: Include inferior.h.
4499 (dr_mirror): Remove.
4500 (i386_inferior_data, struct i386_inferior_data)
4501 (i386_inferior_data_get): New.
4502 (i386_debug_reg_state): Use i386_inferior_data_get.
4503 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
4504 (i386_insert_watchpoint, i386_remove_watchpoint)
4505 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4506 (i386_remove_hw_breakpoint): New variable state, use
4507 i386_debug_reg_state instead of DR_MIRROR.
4508 * linux-nat.c (delete_lwp): New declaration.
4509 (num_lwps): Move here from downwards.
4510 (delete_lwp_cleanup): New.
4511 (linux_child_follow_fork): Create new child_lp, call
4512 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
4513 PTRACE_DETACH.
4514 (num_lwps): Move upwards.
4515 (linux_nat_iterate_watchpoint_lwps): New.
4516 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
4517 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
4518
2992c9a7 45192012-01-24 Joel Brobecker <brobecker@adacore.com>
4520
4521 GDB 7.4 released.
4522
e360902b
PA
45232012-01-23 Pedro Alves <palves@redhat.com>
4524
4525 * top.c (caution): Rename to ...
4526 (confirm): ... this.
4527 (show_caution): Rename to ...
4528 (show_confirm): ... this.
4529 (quit_cover): Adjust.
4530 (init_main): Adjust.
4531 * top.h (caution): Rename to ...
4532 (confirm): ... this.
4533 * utils.c (internal_vproblem, defaulted_query): Adjust.
4534
050a2e1d
PA
45352012-01-23 Pedro Alves <palves@redhat.com>
4536
4537 * top.c (caution): Update comment.
4538 (execute_command): Don't consider the current value of `caution'.
4539
77a35dd8
JK
45402012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4541
4542 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
4543
a71b5a38
UW
45442012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
4545
4546 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4547 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
4548 * target.c (target_fileio_pwrite): Remove buffer address from
4549 debug output.
4550 (target_fileio_pread): Likewise.
4551
d99bd577
UW
45522012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4553
4554 * NEWS: Document remote "info proc" and "generate-core-file".
4555
35c2fab7
UW
45562012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4557
4558 * gdbarch.sh (find_memory_regions): New callback.
4559 * gdbarch.c, gdbarch.h: Regenerate.
4560
4561 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
4562 callback before falling back to target method.
4563
4564 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
4565 (linux_target_install_ops): No longer install it.
4566
4567 * linux-tdep.c (linux_find_memory_regions): New function.
4568 (linux_init_abi): Install it.
4569
6432734d
UW
45702012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4571
4572 * gdbarch.sh (make_corefile_notes): New architecture callback.
4573 * gdbarch.c: Regenerate.
4574 * gdbarch.h: Likewise.
4575
4576 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
4577 before target_make_corefile_notes. If NULL is returned, the
4578 target does not support core file generation.
4579
4580 * linux-nat.c: Include "linux-tdep.h".
4581 (find_signalled_thread, find_stop_signal): Remove.
4582 (linux_nat_do_thread_registers): Likewise.
4583 (struct linux_nat_corefile_thread_data): Likewise.
4584 (linux_nat_corefile_thread_callback): Likewise.
4585 (iterate_over_spus): Likewise.
4586 (struct linux_spu_corefile_data): Likewise.
4587 (linux_spu_corefile_callback): Likewise.
4588 (linux_spu_make_corefile_notes): Likewise.
4589 (linux_nat_collect_thread_registers): New function.
4590 (linux_nat_make_corefile_notes): Replace contents by call to
4591 linux_make_corefile_notes passing linux_nat_collect_thread_registers
4592 as native-only callback.
4593
4594 * linux-tdep.h: Include "bfd.h".
4595 (struct regcache): Add forward declaration.
4596 (linux_collect_thread_registers_ftype): New typedef.
4597 (linux_make_corefile_notes): Add prototype.
4598 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
4599 "regset.h", and "elf-bfd.h".
4600 (find_signalled_thread, find_stop_signal): New functions.
4601 (linux_spu_make_corefile_notes): Likewise.
4602 (linux_collect_thread_registers): Likewise.
4603 (struct linux_corefile_thread_data): New data structure.
4604 (linux_corefile_thread_callback): New funcion.
4605 (linux_make_corefile_notes): Likewise.
4606 (linux_make_corefile_notes_1): Likewise.
4607 (linux_init_abi): Install it.
4608
3030c96e
UW
46092012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4610
4611 * gdbarch.sh (info_proc): New callback.
4612 * gdbarch.c, gdbarch.h: Regenerate.
4613
4614 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
4615 before falling back to the target info_proc callback.
4616
4617 * linux-nat.c: Do not include "cli/cli-utils.h".
4618 (linux_nat_info_proc): Remove.
4619 (linux_target_install_ops): No longer install it.
4620
4621 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
4622 (read_mapping): New function.
4623 (linux_info_proc): Likewise.
4624 (linux_init_abi): Install it.
4625
145b16a9
UW
46262012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4627
4628 * defs.h (enum info_proc_what): Moved here from linux-nat.c
4629 * infcmd.c: (info_proc_cmd_1): New function.
4630 (info_proc_cmd): New function, moved here from equivalent routine
4631 orignally in linux-nat.c.
4632 (info_proc_cmd_mappings): Likewise.
4633 (info_proc_cmd_stat): Likewise.
4634 (info_proc_cmd_status): Likewise.
4635 (info_proc_cmd_cwd): Likewise.
4636 (info_proc_cmd_cmdline): Likewise.
4637 (info_proc_cmd_exe): Likewise.
4638 (info_proc_cmd_all): Likewise.
4639 (_initialize_infcmd): Install "info proc" command and subcommands.
4640
4641 * target.h (struct target_ops): Add to_info_proc.
4642 (target_info_proc): Add prototype.
4643 * target.c (target_info_proc): New function.
4644
4645 * procfs.c (procfs_info_proc): Add prototype.
4646 (info_proc_cmd): Rename into ...
4647 (procfs_info_proc): ... this. Update argument types as appropriate
4648 for a to_info_proc implementation. Handle "what" argument.
4649 (procfs_target): Install procfs_info_proc.
4650 (_initialize_procfs): No longer install "info proc" command.
4651
4652 * linux-nat.c: (enum info_proc_what): Remove.
4653 (linux_nat_info_proc_cmd_1): Rename into ...
4654 (linux_nat_info_proc): ... this. Update argument types as appropriate
4655 for a to_info_proc implementation.
4656 (linux_nat_info_proc_cmd): Remove.
4657 (linux_nat_info_proc_cmd_mappings): Likewise.
4658 (linux_nat_info_proc_cmd_stat): Likewise.
4659 (linux_nat_info_proc_cmd_status): Likewise.
4660 (linux_nat_info_proc_cmd_cwd): Likewise.
4661 (linux_nat_info_proc_cmd_cmdline): Likewise.
4662 (linux_nat_info_proc_cmd_exe): Likewise.
4663 (linux_nat_info_proc_cmd_all): Likewise.
4664 (linux_target_install_ops): Install linux_nat_info_proc.
4665 (_initialize_linux_nat): No longer install "info proc" command
4666 and subcommands.
4667
b9e7b9c3
UW
46682012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4669
4670 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
4671 * config.in, configure: Regenerate.
4672
4673 * target.h (struct target_ops): Add to_fileio_readlink.
4674 (target_fileio_readlink): Add prototype.
4675 * target.c (target_fileio_readlink): New function.
4676
4677 * inf-child.c: Conditionally include <sys/param.h>.
4678 (inf_child_fileio_readlink): New function.
4679 (inf_child_target): Install it.
4680
4681 * remote.c (PACKET_vFile_readlink): New enum value.
4682 (remote_hostio_readlink): New function.
4683 (init_remote_ops): Install it.
4684 (_initialize_remote): Handle vFile:readlink packet type.
4685
7313baad
UW
46862012-01-20 Pedro Alves <palves@redhat.com>
4687 Ulrich Weigand <ulrich.weigand@linaro.org>
4688
4689 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
4690 * config.in, configure: Regenerate.
4691
4692 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
4693 to_fileio_pread, to_fileio_close, to_fileio_unlink.
4694 (target_fileio_open): Add prototype.
4695 (target_fileio_pwrite): Likewise.
4696 (target_fileio_pread): Likewise.
4697 (target_fileio_close): Likewise.
4698 (target_fileio_unlink): Likewise.
4699 (target_fileio_read_alloc): Likewise.
4700 (target_fileio_read_stralloc): Likewise.
4701
4702 * target.c: Include "gdb/fileio.h".
4703 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
4704 (default_fileio_target): New function.
4705 (target_fileio_open): Likewise.
4706 (target_fileio_pwrite): Likewise.
4707 (target_fileio_pread): Likewise.
4708 (target_fileio_close): Likewise.
4709 (target_fileio_unlink): Likewise.
4710 (target_fileio_close_cleanup): Likewise.
4711 (target_fileio_read_alloc_1): Likewise.
4712 (target_fileio_read_alloc): Likewise.
4713 (target_fileio_read_stralloc): Likewise.
4714
4715 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
4716 <fcntl.h>, and <unistd.h>.
4717 (inf_child_fileio_open_flags_to_host): New function.
4718 (inf_child_errno_to_fileio_error): Likewise.
4719 (inf_child_fileio_open): Likewise.
4720 (inf_child_fileio_pwrite): Likewise.
4721 (inf_child_fileio_pread): Likewise.
4722 (inf_child_fileio_close): Likewise.
4723 (inf_child_fileio_unlink): Likewise.
4724 (inf_child_target): Install to_fileio routines.
4725
4726 * remote.c (init_remote_ops): Install to_fileio routines.
4727
901f9912
UW
47282012-01-20 Pedro Alves <palves@redhat.com>
4729 Ulrich Weigand <ulrich.weigand@linaro.org>
4730
4731 * remote.c (remote_multi_process_p): Only check for multi-process
4732 protocol feature, do not check for extended protocol.
4733 (remote_supports_multi_process): Check for extended protocol here.
4734 (set_general_process): Likewise.
4735 (extended_remote_kill): Likewise.
4736 (remote_pid_to_str): Likewise.
4737 (remote_query_supported): Always query multiprocess mode.
4738
e714e1bf
UW
47392012-01-20 Pedro Alves <palves@redhat.com>
4740 Ulrich Weigand <ulrich.weigand@linaro.org>
4741
4742 * inferior.h (struct inferior): Add fake_pid_p.
4743 * inferior.c (exit_inferior_1): Clear fake_pid_p.
4744 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
4745 magic_null_ptid since the remote side doesn't provide a real PID.
4746
50897289
TT
47472012-01-19 Tom Tromey <tromey@redhat.com>
4748
4749 * NEWS: Combine the two Python sections.
4750
1afc2033
JK
47512012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4752
4753 * target.h (target_close): Update comment on the target's unpush state.
4754
305436e0
PA
47552012-01-19 Pedro Alves <palves@redhat.com>
4756
4757 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
4758 linux_nat_async directly instead of going through the target
4759 vector.
4760 * target.c (unpush_target): Close target after unpushing it, not
4761 before.
4762
49323895
GB
47632012-01-19 Gary Benson <gbenson@redhat.com>
4764
4765 * mdebugread.c (sort_blocks): Replace integer constants with ones
4766 derived from FIRST_LOCAL_BLOCK.
4767
1db33378
PP
47682012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
4769 Jan Kratochvil <jan.kratochvil@redhat.com>
4770
4771 PR gdb/9538
4772 * symfile.c (find_separate_debug_file): New function.
4773 (terminate_after_last_dir_separator): Likewise.
4774 (find_separate_debug_file_by_debuglink): Also try realpath.
4775 * configure.ac (AC_CHECK_FUNCS): Add lstat.
4776 * configure: Regenerate.
4777 * config.in: Regenerate.
4778
f83d8a90
DE
47792012-01-18 Doug Evans <dje@google.com>
4780
4781 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
4782 (main.o): Remove rule.
4783 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
4784 (--with-sysroot): Rewrite.
4785 * configure: Regenerate.
4786 * config.in: Regenerate.
4787
2dbca4d6
SDJ
47882012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
4789
4790 * parse.c (initialize_expout): New function.
4791 (reallocate_expout): Likewise.
4792 (parse_exp_in_context): Use `initialize_expout' and
4793 `reallocate_expout' when appropriate.
4794
0695b514
PA
47952012-01-18 Pedro Alves <palves@redhat.com>
4796
4797 * record.c (struct record_breakpoint, record_breakpoint_p)
4798 (record_breakpoints): New.
4799 (record_insert_breakpoint, record_remove_breakpoint): Manage
4800 record breakpoints list. Only remove breakpoints from the
4801 inferior if they had been inserted there in the first place.
4802
136e1c30
DE
48032012-01-17 Doug Evans <dje@google.com>
4804
4805 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
4806 if we know we don't have a file name to look for.
4807
c0bf857d
PA
48082012-01-17 Pedro Alves <palves@redhat.com>
4809
4810 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
4811 the frame's stop reason is UNWIND_UNAVAILABLE.
4812
b486de60
JK
48132012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4814
4815 Fix compilation error.
4816 * m2-exp.y (yyerror): Use ANSI C prototype.
4817
d04550a6
SDJ
48182012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4819
4820 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
4821 (growbuf_by_size): Likewise.
4822 (yyerror): Likewise.
4823 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
4824 (modblock): Remove variable (was #if 0'ed).
4825 (parse_number): Convert prototype from K&R to ANSI C.
4826 (yyerror): Likewise.
4827 * objc-exp.y (parse_number): Likewise.
4828 (yyerror): Likewise.
4829 (yylex): Remove #if 0'ed code.
4830 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
4831 (yyerror): Likewise.
4832
4aac40c8
TT
48332012-01-16 Tom Tromey <tromey@redhat.com>
4834
4835 * NEWS: Add item.
4836 * symtab.h (compare_filenames_for_search): Declare.
4837 * symtab.c (compare_filenames_for_search): New function.
4838 (iterate_over_some_symtabs): Use it.
4839 * symfile.h (struct quick_symbol_functions)
4840 <map_symtabs_matching_filename>: Change spec.
4841 * psymtab.c (partial_map_symtabs_matching_filename): Use
4842 compare_filenames_for_search. Update for new spec.
4843 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
4844 compare_filenames_for_search. Update for new spec.
4845 * breakpoint.c (clear_command): Use compare_filenames_for_search.
4846
cafec441
TT
48472012-01-16 Tom Tromey <tromey@redhat.com>
4848
4849 PR python/13281:
4850 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
4851 (struct main_type) <flag_flag_enum>: New field.
4852 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
4853 * NEWS: Add entries.
4854 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
4855 enums.
4856 * python/lib/gdb/printing.py (_EnumInstance): New class.
4857 (FlagEnumerationPrinter): Likewise.
4858
983af33b
SDJ
48592012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4860
4861 * breakpoint.c (create_sals_from_address_default): New function.
4862 (create_breakpoints_sal_default): Likewise.
4863 (decode_linespec_default): Likewise.
4864 (is_marker_spec): Removed.
4865 (strace_marker_p): New function.
4866 (init_breakpoint_sal): Using `strace_marker_p' instead of
4867 `is_marker_spec'.
4868 (create_breakpoint): Call method `create_sals_from_address' from
4869 breakpoint_ops, replacing code that created SALs conditionally
4870 on the type of the breakpoint. Call method `create_breakpoints_sal',
4871 replacing code that created breakpoints conditionally on the type
4872 wanted.
4873 (base_breakpoint_create_sals_from_address): New function.
4874 (base_breakpoint_create_breakpoints_sal): Likewise.
4875 (base_breakpoint_decode_linespec): Likewise.
4876 (base_breakpoint_ops): Add methods
4877 `base_breakpoint_create_sals_from_address',
4878 `base_breakpoint_create_breakpoints_sal' and
4879 `base_breakpoint_decode_linespec'.
4880 (bkpt_create_sals_from_address): New function.
4881 (bkpt_create_breakpoints_sal): Likewise.
4882 (bkpt_decode_linespec): Likewise.
4883 (tracepoint_create_sals_from_address): Likewise.
4884 (tracepoint_create_breakpoints_sal): Likewise.
4885 (tracepoint_decode_linespec): Likewise.
4886 (strace_marker_create_sals_from_address): Likewise.
4887 (strace_marker_create_breakpoints_sal): Likewise.
4888 (strace_marker_decode_linespec): Likewise.
4889 (strace_marker_breakpoint_ops): New variable.
4890 (addr_string_to_sals): Remove `marker_spec'. Call method
4891 `decode_linespec' from breakpoint_ops, replacing code that decoded
4892 an address string into a SAL. Use `strace_marker_p' instead of
4893 `marker_spec'.
4894 (strace_command): Decide whether we are dealing with a static
4895 tracepoint with marker or not. Use the appropriate breakpoint_ops.
4896 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
4897 * breakpoint.h (linespec_result, linespec_sals): New forward
4898 declarations.
4899 (breakpoint_ops) <create_sals_from_address>,
4900 <create_breakpoints_sal>, <decode_linespec>: New methods.
4901
4795f398
DE
49022012-01-14 Doug Evans <dje@google.com>
4903
4904 * NEWS: Update text for "maint set python print-stack".
4905 It is deprecated in gdb 7.4 and deleted in 7.5.
4906
ee5106fe
EZ
49072012-01-13 Eli Zaretskii <eliz@gnu.org>
4908
4909 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
4910 including curses.h.
4911
b161e06f
JK
49122012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4913
4914 * configure: Regenerate.
4915 * config.in: Regenerate.
4916
85254831
KS
49172012-01-12 Keith Seitz <keiths@redhat.com>
4918
4919 PR mi/10586
4920 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
4921 (ANONYMOUS_UNION_NAME): Define.
4922 (is_path_expr_parent): New function.
4923 (get_path_expr_parent): New function.
4924 (is_anonymous_child): New function.
4925 (create_child_with_value): If the child is anonymous and without
4926 a name, assign an object name to it.
4927 (c_describe_child): Use get_path_expr_parent to determine
4928 the parent expression.
4929 If there field represents an anonymous struct or union and
4930 has no name, set an appropriate display name and expression.
4931 (cplus_describe_child): Likewise.
4932
620fa63a
PA
49332012-01-12 Pedro Alves <palves@redhat.com>
4934
4935 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
4936 available when %ebp is found to be zero (outermost).
4937
2efa2c79
AT
49382012-01-11 Andreas Tobler <andreast@fgznet.ch>
4939
4940 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
4941 an internal gdb_static_assert.
4942 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
4943
88e7d25d
TT
49442012-01-11 Tom Tromey <tromey@redhat.com>
4945
4946 PR gdb/9598:
4947 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
4948 catch" and "catch throw".
4949
72384ba3
PH
49502012-01-11 Paul Hilfinger <hilfingr@adacore.com>
4951
4952 * blockframe.c (block_innermost_frame): Start search from selected
4953 frame, if present, or otherwise the current frame.
4954
4955 * c-exp.y (variable): Update innermost_block for
4956 'block COLONCOLON NAME' clause.
4957 * m2-exp.y (variable): Ditto.
4958 * objc-exp.y (variable): Ditto.
4959
065a711f
TT
49602012-01-10 Tom Tromey <tromey@redhat.com>
4961
4962 PR python/13199:
4963 * python/python.c (finish_python_initialization): Set sys.argv.
4964
f3f5162e
DE
49652012-01-10 Doug Evans <dje@google.com>
4966
4967 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
4968 "want_line_info". All callers updated.
4969 (dwarf_decode_lines_1): New function.
4970 (handle_DW_AT_stmt_list): Add function comment.
4971 New arg "want_line_info". All callers updated.
4972 (read_file_scope,read_type_unit_scope): Move comment from
4973 handle_DW_AT_stmt_list to here.
4974
9934703b
JK
49752012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4976
4977 Fix regression after libiberty/ update for GCC PR 6057 and others.
4978 * c-exp.y (operator) <OPERATOR DELETE>
4979 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
4980 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
4981 (make_builtin_type, make_name): New variable i, add gdb_assert.
4982 (operator) <OPERATOR NEW>: Update ARGS to 3.
4983 (operator) <OPERATOR DELETE>: Add trailing space.
4984 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
4985 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
4986 * cp-support.c (cp_canonicalize_string): Check NULL from
4987 cp_comp_to_string, call warning and return.
4988
06b9f45f
JK
49892012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4990
4991 Fix duplicate .o files after omitting libbfd.a.
4992 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
4993 (SFILES): Add corelow.c.
4994 (COMMON_OBS): Add corelow.o.
4995 (ALLDEPFILES): Remove corelow.c.
4996 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
4997 * config/alpha/alpha-osf3.mh: Likewise.
4998 * config/alpha/fbsd.mh: Likewise.
4999 * config/arm/nbsdaout.mh: Likewise.
5000 * config/arm/nbsdelf.mh: Likewise.
5001 * config/i386/i386gnu.mh: Likewise.
5002 * config/ia64/hpux.mh: Likewise.
5003 * config/ia64/linux.mh: Likewise.
5004 * config/m32r/linux.mh: Likewise.
5005 * config/m68k/linux.mh: Likewise.
5006 * config/mips/irix5.mh: Likewise.
5007 * config/mips/irix6.mh: Likewise.
5008 * config/pa/hpux.mh: Likewise.
5009 * config/pa/linux.mh: Likewise.
5010 * config/powerpc/aix.mh: Likewise.
5011 * config/sparc/linux.mh: Likewise.
5012 * config/sparc/linux64.mh: Likewise.
5013 * config/sparc/sol2.mh: Likewise.
5014 * config/vax/vax.mh: Likewise.
5015 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
5016 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
5017 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
5018 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
5019 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
5020 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
5021 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
5022 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
5023 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
5024 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
5025 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
5026 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
5027 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5028 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
5029 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
5030 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5031 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
5032 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
5033 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
5034 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
5035 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
5036 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
5037 corelow.o from gdb_target_obs.
5038 * corefile.c (core_target): Update the comment on NULL value.
5039 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
5040 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
5041 MATCHES. Drop YUMMY set on NULL.
5042 (core_close): Do not call exit_inferior_silent on zero PID. Do not
5043 reclaim CORE_DATA if it is already NULL.
5044
34365054
DE
50452012-01-09 Doug Evans <dje@google.com>
5046
5047 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
5048 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
5049
696166a3
KS
50502012-01-09 Keith Seitz <keiths@redhat.com>
5051
5052 * breakpoint.c (wrapper.h): Don't include.
5053
8e7b59a5
KS
50542012-01-09 Keith Seitz <keiths@redhat.com>
5055
5056 * Makefile.in (SFILES): Remove wrapper.c.
5057 (HFILES_NO_SRCDIR): Remove wrapper.h.
5058 (COMMON_OBS): Remove wrapper.o.
5059 * cli/cli-interp.c: Don't inlude wrapper.h.
5060 * corelow.c: Likewise.
5061 (core_open): Replace gdb_target_find_new_threads with
5062 TRY_CATCH around target_find_new_threads.
5063 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
5064 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
5065 * varobj.c (varobj_create): Likewise for parse_exp_1 and
5066 evaluate_expression.
5067 (varobj_set_value): Likewise for evaluate_expression and
5068 value_assign.
5069 (install_new_variable): Likewise for value_fetch_lazy.
5070 (adjust_value_for_child_access): Likewise for value_ind.
5071 (c_describe_child): Likewise for value_subscript and
5072 value_ind.
5073 (c_value_of_root): Likewise for evaluate_expression.
5074 * wrapper.c: Remove.
5075 * wrapper.h: Remove.
5076
1a4eeb98
DE
50772012-01-09 Doug Evans <dje@google.com>
5078
9ff913ba
DE
5079 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
5080 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
5081 "abfd" args with "section". All callers updated.
5082 Error checking code moved ...
5083 (error_check_comp_unit_head): ... here. New function.
5084 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
5085 Delete arg "abfd". New arg "type_offset". All callers updated.
5086 (create_debug_types_hash_table): Simplify by using
5087 read_and_check_type_unit_head.
5088
1a4eeb98
DE
5089 * parser-defs.h (namecopy): Delete.
5090 * parse.c (namecopy, namecopy_size): Move into copy_name.
5091
2e6af8c0
JK
50922012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5093
5094 Partially fix duplicate .o files after omitting libbfd.a.
5095 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
5096 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5097 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
5098 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5099 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
5100 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
5101 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5102
9f2f828a
PA
51032012-01-09 Pedro Alves <palves@redhat.com>
5104
5105 * MAINTAINERS: Update my email address.
5106
4d72c0bc
DE
51072012-01-08 Doug Evans <dje@google.com>
5108
d467dd73
DE
5109 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
5110 n_type_units. Rename type_comp_units to all_type_units.
5111 All uses updated.
5112 (add_signatured_type_cu_to_table): Renamed from
5113 add_signatured_type_cu_to_list. All callers updated.
5114
4d72c0bc
DE
5115 * gdbtypes.h (struct cplus_struct_type): Delete member
5116 nfn_fields_total. All uses removed.
5117
21b2bd31
DE
51182012-01-06 Doug Evans <dje@google.com>
5119
5120 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
5121 to top of file.
5122 (dwarf2_find_comp_unit): Delete.
5123 (process_psymtab_comp_unit): Make result "void".
5124 Delete args buffer, info_ptr, buffer_size, and replace with
5125 "section". All callers updated.
5126 (dwarf2_build_psymtabs_hard): Simplify.
5127
bfd189b1
SDJ
51282012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
5129 Thiago Jung Bauermann <bauerman@br.ibm.com>
5130
5131 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
5132 before `struct gdb_exception'.
5133 * breakpoint.c (update_global_location_list_nothrow)
5134 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
5135 * cp-abi.c (value_rtti_type): Likewise.
5136 * cp-support.c (cp_validate_operator): Likewise.
5137 * infrun.c (insert_exception_resume_breakpoint)
5138 (check_exception_resume, keep_going): Likewise.
5139 * mi-interp.c (mi_breakpoint_created)
5140 (mi_breakpoint_modified): Likewise.
5141 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
5142 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
5143 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
5144
6b07635f
DE
51452012-01-05 Doug Evans <dje@google.com>
5146
0b30b85c
DE
5147 * dwarf2read.c (statement_prologue): Delete, unused.
5148
98714339
DE
5149 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
5150 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
5151
6b07635f
DE
5152 * dwarf2read.c (comp_unit_header): Delete, unused.
5153
761f4555
UW
51542012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
5155
5156 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
5157 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
5158
2ca0b532
PA
51592012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
5160
5161 * infrun.c (normal_stop): Don't skip calling the normal_stop
5162 observers if the thread was doing a multi-step, but stopped for
5163 some reason other than stepping.
5164
50aeff07
PA
51652012-01-05 Pedro Alves <alves.ped@gmail.com>
5166
5167 * cli/cli-decode.h: Add comments.
5168 (CMD_LIST_AMBIGUOUS): Moved to command.h
5169 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5170 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
5171 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
5172 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
5173 (add_com, add_com_alias, add_info, add_info_alias)
5174 (complete_on_cmdlist, complete_on_enum, help_list): Remove
5175 declarations.
5176 * command.h: Add and adjust comments.
5177 (CMD_LIST_AMBIGUOUS): Moved here.
5178 (help_cmd, help_cmd_list): Delete declarations.
5179
5953832c
DE
51802012-01-04 Doug Evans <dje@google.com>
5181
e5fe5e75
DE
5182 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
5183 All callers updated.
5184 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
5185 Replace all arguments with "per_cu". All callers updated.
5186
28dee7f5
DE
5187 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
5188
23745b47
DE
5189 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
5190 New arg "per_cu". All callers updated.
5191
5953832c
DE
5192 Delete #if 0'd out code.
5193 * language.c (binop_result_type): Delete.
5194 (simple_type, ordered_type, same_type, integral_type): Delete.
5195 (numeric_type, character_type, string_type, boolean_type): Delete.
5196 (float_type, structured_type): Delete.
5197 * language.h: Update.
5198
0f5b7562
TT
51992012-01-04 Tom Tromey <tromey@redhat.com>
5200
5201 * python/py-value.c (valpy_binop): Initialize 'res_val'.
5202
78218f56
JB
52032012-01-04 Joel Brobecker <brobecker@adacore.com>
5204
5205 * corefile.c (close_exec_file): Delete.
5206 (reopen_exec_file): Remove commented out code that seems related
5207 to close_exec_file, which is being deleted here.
5208 * inferior.h (close_exec_file): Delete.
5209 * fork-child.c (fork_inferior): Remove call to fork_inferior.
5210
0fcd72ba
JB
52112012-01-04 Joel Brobecker <brobecker@adacore.com>
5212
5213 * ada-lang.c: #include "cli/cli-utils.h".
5214 (get_selections): Use skip_spaces.
5215 (ada_get_next_arg): Use skip_spaces and skip_to_space.
5216 (catch_ada_exception_command_split): Use skip_spaces.
5217 (ada_decode_assert_location): Likewise.
5218
1dabb4c4
JB
52192012-01-04 Joel Brobecker <brobecker@adacore.com>
5220
5221 * linespec.c (decode_line_internal): Check for C++ or Java
5222 compound constructs only if the current language is C, C++
5223 or Java.
5224
5931a2fa
JK
52252012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5226
5227 Revert:
5228 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5229 Joel Brobecker <brobecker@adacore.com>
5230 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5231 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5232 3 times.
5233 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5234 fall through into AT_ENTRY_POINT.
5235 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5236 DUMMY_ADDR with it.
5237 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5238 PPC_INSN_SIZE skip to 3 times.
5239
1a2da5ee
JB
52402012-01-04 Joel Brobecker <brobecker@adacore.com>
5241
5242 * linespec.c (add_minsym): Preserve function descriptors.
5243
8645ff69
UW
52442012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5245
5246 * breakpoint.c (all_locations_are_pending): Consider locations
5247 in program spaces executing during startup pending as well.
5248
0b302171
JB
52492012-01-04 Joel Brobecker <brobecker@adacore.com>
5250
5251 Copyright year update in most files of the GDB Project.
5252
8ba098ad
JB
52532012-01-04 Joel Brobecker <brobecker@adacore.com>
5254
5255 * copyright.sh: Delete.
5256 * copyright.py: Rewrite.
5257
09c01c30
JB
52582012-01-04 Joel Brobecker <brobecker@adacore.com>
5259
5260 * gnulib/extra/update-copyright: New file, imported from gnulib.
5261
3c36c0af
JB
52622012-01-04 Joel Brobecker <brobecker@adacore.com>
5263
5264 * README (Copyright and License Notices): New section.
5265
888fe1e1
TT
52662012-01-03 Tom Tromey <tromey@redhat.com>
5267
5268 PR python/12533:
5269 * python/py-value.c (valpy_dereference, valpy_get_address
5270 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
5271 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
5272 (valpy_absolute, valpy_richcompare): Free intermediate values.
5273
6e681866
JB
52742011-01-03 Joel Brobecker <brobecker@adacore.com>
5275
5276 * ada-lang.c: Reformat the copyright notice.
5277
0cd09acb
JK
52782012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5279
5280 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
5281 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
5282 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
5283 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
5284 Revert this part of:
5285 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5286 Build gdb directly from *.o files not using libgdb.a.
5287 * Makefile.in (COMMON_OBS): Remove solib-target.o.
5288
12c3e59c
JB
52892012-01-02 Joel Brobecker <brobecker@adacore.com>
5290
5291 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
5292 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
5293 Reformat the copyright header.
5294
11bf1490
JK
52952012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5296
5297 Revert this part of:
5298 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5299 Remove the gdbtui binary.
5300 * gdb.c (main): Remove args.interpreter_p initialization.
5301 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5302 * main.h (struct captured_main_args): Remove interpreter_p.
5303
1fef196f
JB
53042012-01-02 Joel Brobecker <brobecker@adacore.com>
5305
5306 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
5307
67827812
JB
53082012-01-02 Joel Brobecker <brobecker@adacore.com>
5309
5310 * top.c (print_gdb_version): Update copyright year.
5311
a4d0b831
YQ
53122012-01-02 Yao Qi <yao@codesourcery.com>
5313
5314 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
5315
b5914469
JK
53162012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5317 Joel Brobecker <brobecker@adacore.com>
5318
5319 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5320 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5321 3 times.
5322 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5323 fall through into AT_ENTRY_POINT.
5324 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5325 DUMMY_ADDR with it.
5326 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5327 PPC_INSN_SIZE skip to 3 times.
5328
8da828f7
JK
53292012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5330
5331 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
5332 the return value.
5333 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
5334
8574e74b
JK
53352012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5336
5337 Build gdb directly from *.o files not using libgdb.a.
5338 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
5339 (COMMON_OBS): Remove solib-target.o.
5340 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
5341 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
5342 (LIBGDB_OBS, libgdb.a): Move it above.
5343 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
5344 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
5345 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
5346 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
5347 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
5348 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
5349 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
5350 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
5351 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
5352 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
5353 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
5354 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
5355 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
5356 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
5357 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5358 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
5359 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
5360 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5361 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
5362 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
5363 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
5364 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
5365 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
5366 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
5367 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
5368 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
5369 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
5370
217bff3e
JK
53712012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5372
5373 Remove the gdbtui binary.
5374 * .gitignore (/gdbtui): Remove.
5375 * Makefile.in (TUI): Remove.
5376 (SUBDIR_TUI_OBS): Remove tui-main.o.
5377 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
5378 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
5379 (tui-main.o): Remove.
5380 (all_object_files): Remove tui-main.o.
5381 * NEWS: New note for the gdbtui removal.
5382 * configure: Rebuilt.
5383 * configure.ac: No longer add all-tui, clean-tui, install-tui and
5384 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
5385 CONFIG_UNINSTALL respectively.
5386 * gdb.c (main): Remove args.interpreter_p initialization.
5387 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5388 * main.h (struct captured_main_args): Remove interpreter_p.
5389 * tui/tui-main.c: Remove.
5390
9cdd5dbd
DE
53912012-01-01 Doug Evans <dje@google.com>
5392
bb5ed363
DE
5393 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
5394 (dwarf2_physname, read_import_statement): Ditto.
5395 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
5396 (process_structure_scope read_subroutine_type): Ditto.
5397 (read_typedef, load_partial_dies, read_partial_die): Ditto.
5398 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
5399 (dwarf2_fetch_die_location_block): Ditto.
5400 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
5401
a0f42c21
DE
5402 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
5403 All callers updated.
5404 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
5405 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
5406 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
5407
2dc860c0
DE
5408 * dwarf2read.c (load_cu): Move assert to more useful location.
5409
68dc6402
DE
5410 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
5411 All callers updated.
5412
9cdd5dbd
DE
5413 * dwarf2read.c (dwarf2_per_objfile): Add comment.
5414 (dwarf2_elf_names): Minor reformat.
5415 (dwarf2_per_cu_data): Tweak comment.
5416 (dwarf2_read_section): Fix comment.
5417 (create_all_comp_units): Fix comment.
5418 (load_full_comp_unit): Fix comment.
5419 (process_full_comp_unit): Fix comment.
5420 (read_signatured_type): Fix comment.
5421
0c10e53e 5422For older changes see ChangeLog-2011.
c906108c
SS
5423\f
5424Local Variables:
5425mode: change-log
5426left-margin: 8
5427fill-column: 74
5428version-control: never
57da7796 5429coding: utf-8
c906108c 5430End:
This page took 1.623083 seconds and 4 git commands to generate.