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