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