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