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