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