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