savestring: Rename parameter 'size' to 'len'.
[binutils-gdb.git] / gdb / ChangeLog
1 2013-02-14 Pedro Alves <palves@redhat.com>
2
3 * utils.c (savestring): Rename parameter 'size' to 'len'.
4
5 2013-02-14 Pedro Alves <palves@redhat.com>
6 Yufeng Zhang <yufeng.zhang@arm.com>
7
8 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9 (aarch64_inferior_data, struct aarch64_inferior_data):
10 Delete.
11 (struct aarch64_process_info): New.
12 (aarch64_process_list): New global.
13 (aarch64_find_process_pid, aarch64_add_process)
14 (aarch64_process_info_get): New functions.
15 (aarch64_inferior_data_get): Delete.
16 (aarch64_process_info_get): New function.
17 (aarch64_forget_process): New function.
18 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
19 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
20 aarch64_get_debug_reg_state.
21 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
22 instead of linux_nat_iterate_watchpoint_lwps.
23 (aarch64_linux_new_fork): New function.
24 (aarch64_linux_child_post_startup_inferior): Use
25 aarch64_forget_process instead of aarch64_init_debug_reg_state.
26 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
27 (aarch64_linux_remove_hw_breakpoint)
28 (aarch64_handle_aligned_watchpoint)
29 (aarch64_handle_unaligned_watchpoint)
30 (aarch64_linux_insert_watchpoint)
31 (aarch64_linux_remove_watchpoint)
32 (aarch64_linux_stopped_data_address): Adjust to pass the current
33 process id to aarch64_debug_reg_state.
34 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
35 linux_nat_new_fork hook, and aarch64_forget_process as
36 linux_nat_forget_process hook; remove the call to
37 register_inferior_data_with_cleanup.
38
39 2013-02-14 Pedro Alves <palves@redhat.com>
40
41 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
42 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
43 lval_memory.
44
45 2013-02-14 Pedro Alves <pedro@codesourcery.com>
46 Hafiz Abid Qadeer <abidh@codesourcery.com>
47
48 * tracepoint.h (validate_trace_state_variable_name): Declare.
49 * tracepoint.c (validate_trace_state_variable_name): New.
50 (trace_variable_command): Parse the trace state variable's name
51 without using parse_expression. Do several validations.
52 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
53 trace state variable's name with parse_expression. Validate it.
54
55 2013-02-14 Yao Qi <yao@codesourcery.com>
56
57 * infcmd.c (breakpoint_proceeded): Remove it.
58
59 2013-02-14 Yao Qi <yao@codesourcery.com>
60
61 * tracepoint.c (end_actions_pseudocommand): Make it static.
62 (while_stepping_pseudocommand): Likewise.
63 * tracepoint.h (end_actions_pseudocommand): Remove the
64 declaration.
65 (while_stepping_pseudocommand): Likewise.
66
67 2013-02-14 Yao Qi <yao@codesourcery.com>
68
69 * cli/cli-decode.c (help_cmd): Remove the declaration of
70 "cmdlist".
71 (help_all): Likewise.
72
73 2013-02-13 Pedro Alves <palves@redhat.com>
74
75 * amd64-linux-nat.c (update_debug_registers_callback):
76 Update comment.
77 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
78 iterate_over_lwps.
79 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
80 i386_debug_reg_state.
81 (amd64_linux_new_fork): New function.
82 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
83 linux_nat_new_fork hook, and i386_forget_process as
84 linux_nat_forget_process hook.
85 * i386-linux-nat.c (update_debug_registers_callback):
86 Update comment.
87 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
88 iterate_over_lwps.
89 (i386_linux_prepare_to_resume): Pass the lwp's pid to
90 i386_debug_reg_state.
91 (i386_linux_new_fork): New function.
92 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
93 linux_nat_new_fork hook, and i386_forget_process as
94 linux_nat_forget_process hook.
95 * i386-nat.c (i386_init_dregs): Delete.
96 (i386_inferior_data, struct i386_inferior_data):
97 Delete.
98 (struct i386_process_info): New.
99 (i386_process_list): New global.
100 (i386_find_process_pid, i386_add_process, i386_process_info_get):
101 New functions.
102 (i386_inferior_data_get): Delete.
103 (i386_process_info_get): New function.
104 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
105 (i386_forget_process): New function.
106 (i386_cleanup_dregs): Rewrite.
107 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
108 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
109 (i386_stopped_data_address, i386_insert_hw_breakpoint)
110 (i386_remove_hw_breakpoint): Adjust to pass the current process id
111 to i386_debug_reg_state.
112 (i386_use_watchpoints): Don't register inferior data.
113 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
114 adjust comment.
115 (i386_forget_process): Declare.
116 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
117 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
118 New static globals.
119 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
120 (add_initial_lwp): New, factored out from ...
121 (add_lwp): ... this. Don't check the number of lwps before
122 calling linux_nat_new_thread.
123 (linux_nat_iterate_watchpoint_lwps): Delete.
124 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
125 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
126 forks and vforks.
127 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
128 initial lwp.
129 (linux_nat_kill, linux_nat_mourn_inferior): Call
130 linux_nat_forget_process.
131 (linux_nat_set_new_fork, linux_nat_set_forget_process)
132 (linux_nat_forget_process): New functions.
133 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
134 type.
135 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
136 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
137 types.
138 (linux_nat_set_new_fork, linux_nat_set_forget_process)
139 (linux_nat_forget_process): New declarations.
140
141 * amd64fbsd-nat.c (super_mourn_inferior): New global.
142 (amd64fbsd_mourn_inferior): New function.
143 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
144 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
145
146 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
147
148 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
149 Adding _().
150
151 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
152
153 * aarch64-linux-nat.c (debug_reg_change_callback)
154 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
155 %s and phex().
156
157 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
158
159 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
160 with LONGEST.
161
162 2013-02-13 Pedro Alves <palves@redhat.com>
163 Hafiz Abid Qadeer <abidh@codesourcery.com>
164
165 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
166
167 2013-02-12 Tom Tromey <tromey@redhat.com>
168
169 PR symtab/11464:
170 * c-exp.y (lex_one_token): Initialize other fields of yylval on
171 NAME return.
172 (classify_inner_name): Remove 'first_name' argument, add
173 'context'. Remove unused variable.
174 (yylex): Explicitly maintain the context type. Exit loop earlier
175 if NAME result is seen.
176
177 2013-02-12 Pedro Alves <palves@redhat.com>
178
179 * amd64-darwin-tdep.c: Add (C) after Copyright.
180 * cli/cli-cmds.h: Ditto.
181 * cli/cli-decode.c: Ditto.
182 * cli/cli-decode.h: Ditto.
183 * cli/cli-dump.c: Ditto.
184 * cli/cli-dump.h: Ditto.
185 * cli/cli-interp.c: Ditto.
186 * cli/cli-logging.c: Ditto.
187 * cli/cli-script.c: Ditto.
188 * cli/cli-script.h: Ditto.
189 * cli/cli-setshow.c: Ditto.
190 * cli/cli-setshow.h: Ditto.
191 * cli/cli-utils.c: Ditto.
192 * cli/cli-utils.h: Ditto.
193 * config/alpha/nm-osf3.h: Ditto.
194 * config/djgpp/djconfig.sh: Ditto.
195 * config/i386/nm-fbsd.h: Ditto.
196 * config/i386/nm-i386gnu.h: Ditto.
197 * config/nm-linux.h: Ditto.
198 * config/nm-nto.h: Ditto.
199 * config/rs6000/nm-rs6000.h: Ditto.
200 * config/sparc/nm-sol2.h: Ditto.
201 * darwin-nat-info.c: Ditto.
202 * dfp.c: Ditto.
203 * dfp.h: Ditto.
204 * gdb-demangle.h: Ditto.
205 * i386-darwin-nat.c: Ditto.
206 * i386-darwin-tdep.c: Ditto.
207 * linux-fork.h: Ditto.
208 * m32c-tdep.c: Ditto.
209 * microblaze-linux-tdep.c: Ditto.
210 * microblaze-rom.c: Ditto.
211 * microblaze-tdep.c: Ditto.
212 * microblaze-tdep.h: Ditto.
213 * mips-linux-tdep.h: Ditto.
214 * ppc-ravenscar-thread.c: Ditto.
215 * ppc-ravenscar-thread.h: Ditto.
216 * prologue-value.c: Ditto.
217 * prologue-value.h: Ditto.
218 * ravenscar-thread.c: Ditto.
219 * ravenscar-thread.h: Ditto.
220 * sparc-ravenscar-thread.c: Ditto.
221 * sparc-ravenscar-thread.h: Ditto.
222 * tilegx-linux-tdep.c: Ditto.
223 * unwind_stop_reasons.def: Ditto.
224 * windows-nat.h: Ditto.
225 * xtensa-linux-tdep.c: Ditto.
226 * xtensa-xtregs.c: Ditto.
227 * regformats/regdat.sh: Ditto.
228 * regformats/regdef.h: Ditto.
229
230 2013-02-12 Pedro Alves <palves@redhat.com>
231
232 * break-catch-sig.c: Update copyright years.
233
234 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
235
236 Add support for a destructor for ui_out data and use it to
237 provide a ui_out destructor.
238 * ui-out.h: Declare the new ui_out destructor.
239 (ui_out_impl): Add a field for data destructor in ui_out_impl.
240 * ui-out.c (default_data_destroy): Add a default data destructor
241 which does nothing.
242 (default_ui_out_impl): Set the new data_destroy field to
243 default_data_destroy
244 (uo_data_destroy): Local function which invokes the data
245 destructor if present.
246 (clear_table): Local function which clears the table data of a
247 ui_out object.
248 (ui_out_destroy): Public function which frees a ui_out object.
249 (ui_out_table_end): Use the new clear_table function.
250 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
251 NULL.
252 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
253 to NULL.
254
255 2013-02-11 Doug Evans <dje@google.com>
256
257 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
258 (printf_decfloat): New function. Broken out from ui_printf.
259 Remove unnecessary code to shift the entire format string down.
260 (printf_pointer): New function.
261 (ui_printf): Code to print C strings, wide C strings, decfloats,
262 and pointers moved to separate functions.
263
264 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
265
266 * valops.c (value_assign): Handling bitfield offset in
267 `lval_internalvar_component' case.
268
269 2013-02-08 Doug Evans <dje@google.com>
270
271 * common/format.c (parse_format_string): Fix whitespace.
272
273 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
274
275 * stack.c (return_command): Work around uninitialized variable
276 warning.
277
278 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
279
280 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
281 number of the registers from 36 to 34.
282
283 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
284
285 * NEWS: Mention new AArch64 native and target support.
286
287 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
288
289 * MAINTAINERS (Write After Approval): Add myself.
290
291 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
292 Marcus Shawcroft <marcus.shawcroft@arm.com>
293 Nigel Stephens <nigel.stephens@arm.com>
294 Yufeng Zhang <yufeng.zhang@arm.com>
295
296 * aarch64-linux-nat.c: New file.
297 * config/aarch64/linux.mh: New file.
298 * configure.host: Add AArch64.
299 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
300
301 2013-02-07 Doug Evans <dje@google.com>
302
303 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
304 disassemble command.
305
306 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
307
308 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
309 set_gdbarch_fetch_tls_load_module_address.
310
311 2013-02-06 David S. Miller <davem@davemloft.net>
312
313 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
314 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
315 * value.c (struct_return_convention): New function.
316 (using_struct_return): Implement in terms of struct_return_convention.
317 * value.h (struct_return_convention): Declare.
318 * stack.c (return_command): Allow successful overriding of the return
319 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
320
321 2013-02-06 Tom Tromey <tromey@redhat.com>
322
323 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
324 outside of TRY_CATCH.
325
326 2013-02-06 Yao Qi <yao@codesourcery.com>
327
328 * mi/mi-interp.c: Include "tracepoint.h".
329 (mi_tsv_modified): Declare.
330 (mi_tsv_created, mi_tsv_deleted): Update declaration.
331 (mi_interpreter_init): Call observer_attach_tsv_modified.
332 (mi_tsv_modified): New.
333 (mi_tsv_created, mi_tsv_deleted): Update.
334 * tracepoint.c (trace_variable_command): Call
335 observer_notify_tsv_modified if the initial value of tsv is
336 changed.
337 (delete_trace_state_variable): Call
338 observer_notify_tsv_deleted earlier.
339 (trace_variable_command): Caller update.
340 (create_tsv_from_upload): Likewise.
341 * observer.sh: Declare "struct trace_state_variable".
342
343 * NEWS: Mention the new MI notification "=tsv-modified".
344
345 2013-02-05 Doug Evans <dje@google.com>
346
347 * completer.c (location_completer): Fix typo in comment.
348
349 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
350
351 * breakpoint.c (add_location_to_breakpoint): Insert the location with
352 ADDRESS sorted.
353
354 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
355
356 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
357 Refactor if statement to avoid trailing || operator.
358
359 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
360
361 * NEWS: Add PowerPC FreeBSD as a new native configuration.
362
363 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
364
365 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
366 * configure.host: Add powerpc*-*-freebsd* target.
367 * configure.tgt: Add target info for powerpc*-*-freebsd*.
368 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
369 * config/powerpc/fbsd.mh: New file.
370
371 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
372 Denys Vlasenko <dvlasenk@redhat.com>
373 Pedro Alves <palves@redhat.com>
374
375 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
376 (struct elf_internal_linux_prpsinfo): Forward declare.
377 * gdbarch.h, gdbarch.c: Regenerate.
378 * linux-tdep.c: Include `cli/cli-utils.h'.
379 (linux_fill_prpsinfo): New function.
380 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
381 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
382 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
383 depending on gdbarch pointer bitness.
384 * ppc-linux-tdep.c: Include elf-bfd.h.
385 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
386 on 32-bit.
387
388 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
389 Marcus Shawcroft <marcus.shawcroft@arm.com>
390 Nigel Stephens <nigel.stephens@arm.com>
391 Yufeng Zhang <yufeng.zhang@arm.com>
392
393 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
394
395 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
396 Marcus Shawcroft <marcus.shawcroft@arm.com>
397 Nigel Stephens <nigel.stephens@arm.com>
398 Yufeng Zhang <yufeng.zhang@arm.com>
399
400 * aarch64-newlib-tdep.c: New file.
401 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
402 aarch64*-*-elf.
403 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
404 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
405 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
406 * osabi.c (gdb_osabi_names): Add "Newlib".
407
408 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
409 Marcus Shawcroft <marcus.shawcroft@arm.com>
410 Nigel Stephens <nigel.stephens@arm.com>
411 Yufeng Zhang <yufeng.zhang@arm.com>
412
413 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
414 (ALLDEPFILES): Add aarch64-linux-tdep.c.
415 * aarch64-linux-tdep.c: New file.
416 * aarch64-linux-tdep.h: New file.
417 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
418 * configure.tgt: Add aarch64-none-linux-gnu.
419
420 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
421 Marcus Shawcroft <marcus.shawcroft@arm.com>
422 Nigel Stephens <nigel.stephens@arm.com>
423 Yufeng Zhang <yufeng.zhang@arm.com>
424
425 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
426 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
427 (ALLDEPFILES): Add aarch64-tdep.c.
428 * aarch64-tdep.c: New file.
429 * aarch64-tdep.h: New file.
430 * configure.tgt: Add AArch64.
431 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
432 (aarch64-expedite): New definition.
433 * features/aarch64-core.xml: New file.
434 * features/aarch64-fpu.xml: New file.
435 * features/aarch64-without-fpu.c: New file (generated).
436 * features/aarch64-without-fpu.xml: New file.
437 * features/aarch64.c: New file (generated).
438 * features/aarch64.xml: New file.
439 * regformats/aarch64-without-fpu.dat: New file (generated).
440 * regformats/aarch64.dat: New file (generated).
441
442 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
443
444 * contrib/expect-read1.c: New file.
445 * contrib/expect-read1.sh: New file.
446
447 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
448
449 * dwarf2read.c (file_file_name): New function with code from
450 file_full_name.
451 (file_full_name): Move most of the code to file_file_name.
452 (macro_start_file): Rename variable full_name to file_name and use
453 file_file_name for it. Add comp_dir parameter to new_macro_table.
454 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
455 macro_source_file->filename access by macro_source_fullname call.
456 * macroscope.c (_initialize_macroscope): Update the new_macro_table
457 caller.
458 * macrotab.c (struct macro_table): New field comp_dir.
459 (macro_include): New variables link_fullname and source_fullname.
460 Replace any macro_source_file->filename access by macro_source_fullname
461 call.
462 (macro_lookup_inclusion): Remove the partial filenames checking code.
463 (check_for_redefinition): New variables source_fullname and
464 found_key_fullname. Replace any macro_source_file->filename access by
465 macro_source_fullname call.
466 (macro_undef): New variables source_fullname and key_fullname. Replace
467 any macro_source_file->filename access by macro_source_fullname call.
468 (macro_lookup_definition): New variables retval and source_fullname.
469 Replace any macro_source_file->filename access by macro_source_fullname
470 call.
471 (foreach_macro): New variable key_fullname. Replace any
472 macro_source_file->filename access by macro_source_fullname call.
473 (foreach_macro_in_scope): New variable datum_fullname. Replace any
474 macro_source_file->filename access by macro_source_fullname call.
475 (new_macro_table): Add parameter comp_dir. Initialize T with it.
476 (macro_source_fullname): New function.
477 * macrotab.h (struct macro_source_file): Extent the filename field
478 comment.
479 (new_macro_table): New parameter comp_dir, add a comment for it.
480 (macro_source_fullname): new declaration.
481
482 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
483
484 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
485 this_real_name to outer block. Use it also for
486 compare_filenames_for_search.
487 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
488 with dw2_get_real_path for file_matcher, considering also
489 BASENAMES_MAY_DIFFER.
490 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
491
492 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
493
494 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
495 to the file_matcher parameter. Pass 0 to it.
496 (dwarf2_create_include_psymtab): Copy also DIRNAME.
497 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
498 NULL psymtab_to_fullname result.
499 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
500 an expected filename instead.
501 (expand_symtabs_matching_via_partial): Add basenames parameter to the
502 file_matcher parameter. Call also psymtab_to_fullname, after newly
503 considering BASENAMES_MAY_DIFFER.
504 * source.c (rewrite_source_path): Remove static.
505 * source.h (rewrite_source_path): New declaration.
506 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
507 the expand_symtabs_matching field. Comment it.
508 * symtab.c (file_matches): New function comment. Add parameter
509 basenames, implement it.
510 (search_symbols_file_matches): Add basenames parameter. Update the
511 file_matches caller.
512 (search_symbols): Match FILES also against symtab_to_fullname.
513 Optimize it for BASENAMES_MAY_DIFFER.
514
515 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
516
517 * source.c (print_source_lines_base): Print for TUI also "fullname".
518 * tui/tui-data.c (init_content_element): Change tui_locator_element
519 field to full_name.
520 * tui/tui-data.h (struct tui_locator_element): Likewise.
521 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
522 tui_update_locator_filename calls to tui_update_locator_fullname.
523 Replace symtab->filename refererence by symtab_to_fullname call.
524 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
525 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
526 field to full_name. Replace symtab->filename refererence by
527 symtab_to_fullname call.
528 (tui_show_symtab_source): Rename parameter to fullname. Change
529 tui_locator_element field to full_name.
530 * tui/tui-stack.c: Include source.h.
531 (tui_set_locator_filename): Rename the declaration to ...
532 (tui_set_locator_fullname): ... here. Rename its parameter to
533 fullname, updates its comment.
534 (tui_set_locator_info): Rename its parameter to fullname.
535 (tui_set_locator_filename): Rename the definition to ...
536 (tui_set_locator_fullname): ... here. Rename its parameter to
537 fullname, updates its comment. Change tui_locator_element field to
538 full_name.
539 (tui_set_locator_info): Rename its parameter to fullname.
540 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
541 (tui_update_locator_filename): Rename to ...
542 (tui_update_locator_fullname): ... here. Rename callee to
543 tui_set_locator_fullname.
544 (tui_show_frame_info): Replace symtab->filename refererence by
545 symtab_to_fullname call.
546 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
547 (tui_update_locator_fullname): ... here.
548 * tui/tui-winsource.c (tui_display_main): Rename the callee to
549 tui_update_locator_fullname. Replace symtab->filename refererence by
550 symtab_to_fullname call.
551 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
552 Rename the callee to tui_update_locator_fullname.
553 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
554
555 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
556
557 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
558 by symtab_to_filename_for_display calls.
559 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
560 (clear_command): New variable sal_fullname, initialize it. Replace
561 compare_filenames_for_search by filename_cmp with sal_fullname.
562 (say_where, update_static_tracepoint): Replace symtab->filename
563 refererences by symtab_to_filename_for_display calls.
564 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
565 Likewise.
566 * dwarf2read.c: Include source.h.
567 (fixup_go_packaging): Replace symtab->filename refererences by
568 symtab_to_filename_for_display calls.
569 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
570 Replace symtab->filename refererences by symtab_to_filename_for_display
571 calls.
572 (create_sals_line_offset, convert_linespec_to_sals): New variable
573 fullname, initialize it, replace symtab->filename reference by the
574 variable.
575 * linux-fork.c: Include source.h.
576 (info_checkpoints_command): Replace symtab->filename refererences by
577 symtab_to_filename_for_display calls.
578 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
579 by symtab_to_filename_for_display calls.
580 * mdebugread.c: Include source.h.
581 (psymtab_to_symtab_1): Replace symtab->filename refererences by
582 symtab_to_filename_for_display calls.
583 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
584 (mi_cmd_file_list_exec_source_files): Likewise.
585 * printcmd.c: Include source.h.
586 (build_address_symbolic): Replace symtab->filename refererences by
587 symtab_to_filename_for_display calls.
588 * psymtab.c (partial_map_symtabs_matching_filename)
589 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
590 with psymtab_to_fullname.
591 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
592 by symtab_to_filename_for_display calls.
593 (stpy_get_filename): New variable filename, initialize it, use instead
594 of symtab->filename refererences.
595 (salpy_str): Make variable filename const char *. Replace
596 symtab->filename refererences by symtab_to_filename_for_display calls.
597 * skip.c: Include source.h and filenames.h.
598 (skip_file_command): Remove const from the symtab variable. Replace
599 symtab->filename refererences by symtab_to_fullname call.
600 (function_name_is_marked_for_skip): New variables searched_for_fullname
601 and fullname. Use them to search also with symtab's fullname.
602 * source.c (find_source_lines): Replace symtab->filename refererences
603 by symtab_to_filename_for_display calls.
604 (print_source_lines_base): New variable filename, use it instead of
605 symtab->filename. Replace symtab->filename refererences by
606 symtab_to_filename_for_display calls.
607 (line_info, forward_search_command): Replace symtab->filename
608 refererences by symtab_to_filename_for_display calls.
609 (reverse_search_command): Replace symtab->filename refererences by
610 symtab_to_filename_for_display calls. New variable filename for it.
611 * stack.c (frame_info): Likewise.
612 * symmisc.c: Include source.h.
613 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
614 (maintenance_info_symtabs): Replace symtab->filename refererences by
615 symtab_to_filename_for_display calls.
616 * symtab.c (iterate_over_some_symtabs): Call
617 compare_filenames_for_search also with symtab_to_fullname.
618 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
619 symtab->filename refererences by symtab_to_filename_for_display calls.
620 (find_line_symtab): Replace symtab->filename refererences by
621 symtab_to_filename_for_display calls.
622 (file_matches): Replace filename_cmp by compare_filenames_for_search.
623 (print_symbol_info): Make the last parameter const char *. New
624 variable s_filename. Use it in the function.
625 (symtab_symbol_info): Make the last_filename variable const char *.
626 Replace symtab->filename refererences by symtab_to_filename_for_display
627 calls.
628 (rbreak_command): New variable fullname. Use it. Replace
629 symtab->filename refererence by symtab_to_filename_for_display call.
630 * tracepoint.c (set_traceframe_context, trace_find_line_command)
631 (print_one_static_tracepoint_marker): Replace symtab->filename
632 refererences by symtab_to_filename_for_display calls.
633 * tui/tui-source.c (tui_set_source_content): New variables filename and
634 s_filename. Replace symtab->filename refererences by this variable.
635 Replace other symtab->filename refererences by
636 symtab_to_filename_for_display calls.
637
638 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
639 Jan Kratochvil <jan.kratochvil@redhat.com>
640
641 Add a new variable that controls a way in which filenames are
642 displayed.
643 * NEWS (set filename-display): New entry.
644 * source.c (filename_display_basename, filename_display_relative)
645 (filename_display_absolute, filename_display_kind_names)
646 (filename_display_string, show_filename_display_string)
647 (symtab_to_filename_for_display): New.
648 (_initialize_source): Added initialization of 'filename-display'
649 variable.
650 * source.h (symtab_to_filename_for_display): Added declaration.
651 * stack.c (print_frame): Added new variable and calling of a new
652 function and condition with this variable. Changed third argument of
653 calling of a function.
654
655 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
656
657 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
658 Rename field reference filename to fullname.
659 * tui/tui-data.h (struct tui_source_info): Rename field filename to
660 fullname. New comment for it.
661 * tui/tui-source.c (tui_set_source_content): Rename field reference
662 filename to fullname. Initialize field by symtab_to_fullname now.
663 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
664 reference filename to fullname. Use symtab_to_fullname during
665 comparison.
666
667 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
668
669 Code cleanup.
670 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
671 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
672 filename to fullname. Rename variable this_name to this_fullname.
673 Lowercase FILENAME_CMP call.
674 (dw2_find_symbol_file): New comment for the returned string.
675 (dwarf2_gdb_index_functions): Rename the function to
676 dw2_expand_symtabs_with_fullname.
677 * psymtab.c (read_psymtabs_with_filename): Rename to ...
678 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
679 fullname.
680 (psym_functions): Rename the function to read_psymtabs_with_fullname.
681 * symfile.h (struct quick_symbol_functions): Rename field
682 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
683 parameter filename to fullname. Document returned string meaning for
684 find_symbol_file.
685 * symtab.c (find_line_symtab): Rename the called function to
686 expand_symtabs_with_fullname.
687
688 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
689
690 Code cleanup.
691 * breakpoint.c (clear_command): Remove variable is_abs, unify the
692 call of filename_cmp with compare_filenames_for_search.
693 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
694 is_abs, unify the call of FILENAME_CMP with
695 compare_filenames_for_search. New gdb_asserts for real_path and name.
696 Unify the call of compare_filenames_for_search with FILENAME_CMP.
697 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
698 * symfile.h (struct quick_symbol_functions): Extend the comment for
699 map_symtabs_matching_filename.
700 * symtab.c (compare_filenames_for_search): Remove the function comment
701 relative path requirement. Handle absolute filenames, with a comment.
702 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
703 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
704 real_path and name. Unify the call of compare_filenames_for_search
705 with FILENAME_CMP.
706 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
707
708 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
709
710 Code cleanup.
711 * breakpoint.c (print_breakpoint_location): Replace bp_location field
712 source_file references by symtab field references. Remove variables
713 sal and fullname.
714 (momentary_breakpoint_from_master, add_location_to_breakpoint):
715 (clear_command, say_where): Replace bp_location field source_file
716 references by symtab field references.
717 (bp_location_dtor): Remove the source_file reference.
718 (update_static_tracepoint): Replace bp_location field source_file
719 references by symtab field references.
720 (breakpoint_free_objfile): New function.
721 * breakpoint.h (struct bp_location): Extend the comment for line_number.
722 Replace the field source_file by field symtab, extend its comment.
723 (breakpoint_free_objfile): New declaration.
724 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
725 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
726 field source_file references by symtab field references.
727
728 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
729
730 Replace xfullpath calls by gdb_realpath calls.
731 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
732 function comment.
733 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
734 Remove it from the iterate_over_some_symtabs call.
735 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
736 Remove it from the dw2_map_expand_apply calls, remove a block handling
737 it.
738 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
739 Remove it from the iterate_over_some_symtabs call.
740 (partial_map_symtabs_matching_filename): Remove parameter full_path.
741 Remove it from the partial_map_expand_apply calls, remove a block
742 handling it. Drop gdb_realpath call and cleanups from the real_path
743 handling.
744 * source.c (openp): Drop the comment part about xfullpath. Replace
745 xfullpath calls by gdb_realpath calls.
746 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
747 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
748 from method map_symtabs_matching_filename and its comment.
749 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
750 gdb_realpath call.
751 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
752 remove it also from the function comment, remove a block handling it.
753 Drop gdb_realpath call and cleanups from the real_path handling.
754 (iterate_over_symtabs): Drop variable full_path and its use.
755 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
756 * utils.c (xfullpath): Remove.
757 * utils.h (xfullpath): Remove.
758
759 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
760
761 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
762 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
763 (ALLDEPFILES): Add ppc64-tdep.c.
764 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
765 ppc64-tdep.o to gdb_target_obs.
766 * ppc64-tdep.h: New file.
767 * ppc64-tdep.c: New file.
768 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
769 ppc-linux-tdep.c to here.
770 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
771 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
772 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
773 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
774 from ppc-linux-tdep.c to here.
775 (ppc64_convert_from_func_ptr_addr): Rename from
776 ppc64_linux_convert_from_func_ptr_addr to
777 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
778 here.
779 * rs6000-tdep.c:
780 (read_insn): Move from ppc-linux-tdep.c to here.
781 (insns_match_pattern, insn_d_field, insn_ds_field): Move
782 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
783 * ppc-linux-tdep.c: Include ppc64-tdep.h.
784 Removed above functions.
785 (ppc_linux_init_abi): Adjust.
786
787 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
788
789 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
790
791 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
792
793 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
794
795 2013-02-01 Pedro Alves <palves@redhat.com>
796
797 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
798 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
799
800 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
801
802 * elfread.c (elf_symfile_read): Limit separate debug info additions to
803 files with no separate debug info.
804 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
805 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
806 only for files with no separate debug info.
807
808 2013-01-31 Tom Tromey <tromey@redhat.com>
809
810 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
811 change type.
812 (struct jit_program_space_data): Rename from jit_inferior_data.
813 Update comments.
814 (get_jit_program_space_data): Rename from get_jit_inferior_data.
815 Change return type. Attach data to program space.
816 (jit_program_space_data_cleanup): Rename from
817 jit_inferior_data_cleanup; change argument type.
818 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
819 change type.
820 (jit_register_code): Update.
821 (jit_update_inferior_cache): Remove.
822 (jit_breakpoint_deleted): Get jit data from the location's program
823 space.
824 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
825 'ps_data', change type.
826 (jit_inferior_init, jit_breakpoint_re_set_internal)
827 (jit_event_handler): Update.
828 (free_objfile_data): Get data from objfile's program space.
829 (_initialize_jit): Update.
830
831 2013-01-31 Tom Tromey <tromey@redhat.com>
832
833 PR gdb/13987:
834 * jit.c (struct jit_inferior_data) <cached_code_address,
835 jit_breakpoint>: New fields.
836 (jit_breakpoint_re_set_internal): Fix logging. Only create
837 breakpoint if cached address has changed.
838 (jit_update_inferior_cache, jit_breakpoint_deleted): New
839 functions.
840 (_initialize_jit): Register breakpoint deleted observer.
841
842 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
843
844 * infrun.c (handle_syscall_event): Remove unused gdbarch.
845 (save_infcall_suspend_state): Ifdef out unused inf.
846 (restore_infcall_suspend_state): Ifdef out unused inf.
847 * jit.c (jit_register_code): Remove unused i, b, inf_data.
848 (jit_frame_sniffer): Remove unused inf_data.
849
850 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
851
852 * c-exp.y (classify_inner_name): Remove unused type.
853 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
854 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
855 need_escape.
856 (c_get_string): Remove unused kind.
857 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
858
859 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
860
861 * charset.c (intermediate_encoding): Remove unused i.
862 * completer.c (signal_completer): Remove unused i.
863 * continuations.c (discard_my_continuations_1): Remove unused
864 continuation_ptr.
865 * corelow.c (core_close): Remove unuseD name.
866 (get_core_siginfo): Remove unused pid.
867 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
868 i, cps.
869 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
870 (loclist_describe_location): Remove unused first.
871 * event-top.c (command_line_handler): Remove unused got_eof.
872 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
873 (resize_section_table): Remove unused old_value.
874 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
875 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
876 * i386-tdep.c (i386_process_record): Remove unused rex.
877 * infcmd.c (get_return_value): Remove unused uiout.
878 * jv-lang.c (type_from_class): Remove unused is_array.
879 * jv-valprint.c (java_val_print): Remove unused i.
880 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
881 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
882 * m2-typeprint.c (m2_print_type): Remove unused code.
883 * macroexp.c (get_character_constant): Remove unused body_start.
884 (macro_stringify): Remove unused result.
885 * objc-lang.c (find_methods): Remove unused gdbarch.
886 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
887 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
888 * stack.c (print_frame_args): Remove unused summary.
889 * thread.c (thread_apply_command): Remove unused p.
890 * valarith.c (value_x_unop): Remove unused mangle_ptr.
891 * valops.c (search_struct_method): Remove unused skip.
892 * valprint.c (generic_val_print): Remove unused byte_order.
893 * varobj.c (varobj_update): Remove unused changed.
894 * cli/cli-cmds.c (complete_command): Remove unused next_item.
895 (alias_command): Remove unused c.
896 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
897 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
898 format.
899 (mi_cmd_data_write_memory): Remove unused word_format.
900 (mi_cmd_data_write_memory_bytes): Remove unused r.
901 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
902 p_start, p_end.
903 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
904 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
905 line_width.
906
907 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
908
909 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
910 * symtab.c (iterate_over_symtabs): Remove unused s.
911 (find_pc_sect_symtab): Remove unused pspAce.
912 (find_pc_sect_line): Remove unused alt_symtab.
913 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
914 (completion_list_add_name): Remove unused newsize.
915
916 2013-01-31 Tom Tromey <tromey@redhat.com>
917
918 PR c++/14998:
919 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
920 TYPE_CODE_FUNC.
921
922 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
923
924 * target.c (target_read_string): Remove unused origlen.
925
926 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
927
928 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
929 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
930 * ax-general.c (ax_print): Remove unused is_float.
931 * blockframe.c (block_innermost_frame): Remove unused start, end.
932 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
933
934 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
935
936 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
937 (svr4_read_so_list): Remove unused lmo.
938 * solib-target.c (solib_target_relocate_section_addresses): Remove
939 unused flags.
940
941 2013-01-30 Tom Tromey <tromey@redhat.com>
942
943 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
944
945 2013-01-30 Tom Tromey <tromey@redhat.com>
946
947 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
948 * utils.c (gnu_debuglink_crc32): Remove.
949 * utils.h (gnu_debuglink_crc32): Don't declare.
950
951 2013-01-30 Tom Tromey <tromey@redhat.com>
952
953 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
954 (read_structure_type, read_enumeration_type): Remove cast.
955
956 2013-01-30 Tom Tromey <tromey@redhat.com>
957
958 * dwarf2read.c (read_namespace_type): Remove cast.
959 (read_typedef): Likewise.
960
961 2013-01-29 Tom Tromey <tromey@redhat.com>
962
963 * dwarf2read.c (free_dwo_file): Remove assert.
964
965 2013-01-29 Tom Tromey <tromey@redhat.com>
966
967 * value.c (deprecated_set_value_modifiable): Remove.
968 * value.h (deprecated_set_value_modifiable): Remove.
969
970 2013-01-28 Doug Evans <dje@google.com>
971
972 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
973 to addresses from dwo files.
974
975 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
976
977 * valops.c (find_overload_match): Remove unused argument 'lax'.
978 * value.h: Remove unused argument 'lax' from the declaration of
979 find_overload_match.
980 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
981 to find_overload_match.
982 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
983 argument to find_overload_match.
984
985 2013-01-25 Tom Tromey <tromey@redhat.com>
986
987 * dwarf2read.c (processing_has_namespace_info): Remove.
988 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
989 (process_die, read_func_scope, dwarf2_start_symtab)
990 (new_symbol_full): Update.
991
992 2013-01-25 Tom Tromey <tromey@redhat.com>
993
994 * cp-namespace.c (cp_set_block_scope): Remove.
995 * cp-support.h (cp_set_block_scope): Remove.
996 * dbxread.c: Include block.h.
997 (cp_set_block_scope): New function.
998 (process_one_symbol): Update.
999 * dwarf2read.c (read_func_scope): Use block_set_scope.
1000
1001 2013-01-25 Pedro Alves <palves@redhat.com>
1002
1003 * remote.c (add_current_inferior_and_thread): Tweak comment.
1004
1005 2013-01-25 Tom Tromey <tromey@redhat.com>
1006
1007 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1008 (cp_add_using_directive): Add 'copy_names' argument.
1009 * cp-support.h (cp_add_using_directive): Update.
1010 (struct using_direct) <import_src, import_dest, alias,
1011 declaration>: Now const.
1012 * dwarf2read.c (read_import_statement): Use obconcat.
1013 Don't copy names passed to cp_add_using_directive.
1014
1015 2013-01-25 Tom Tromey <tromey@redhat.com>
1016
1017 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1018
1019 2013-01-25 Pedro Alves <palves@redhat.com>
1020
1021 * remote.c (stop_reply_extract_thread): New.
1022 (add_current_inferior_and_thread): New parameter 'wait_status'.
1023 Handle it.
1024 (remote_start_remote): Pass wait status to
1025 add_current_inferior_and_thread.
1026 (extended_remote_run): Update comment.
1027 (extended_remote_create_inferior_1): Pass wait status to
1028 add_current_inferior_and_thread.
1029
1030 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1031 Ulrich Weigand <uweigand@de.ibm.com>
1032
1033 * valarith.c (value_vector_widen): New function for replicating a
1034 scalar into a vector.
1035 (value_binop): Use value_vector_widen to widen scalar to vector
1036 rather than casting, this better matches gcc C behaviour.
1037 * valops.c (value_casst): Update logic for casting between vector
1038 types, and for casting from scalar to vector, try to match gcc C
1039 behaviour.
1040 * value.h (value_vector_widen): Declare.
1041 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1042 function, handle special case for casting scalar to vector.
1043 (opencl_relop): Use opencl_value_cast.
1044 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1045 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1046 in order to use opencl_value_cast.
1047
1048 2013-01-25 Yao Qi <yao@codesourcery.com>
1049
1050 * event-loop.c: Include "queue.h".
1051 (gdb_event_p): New typedef.
1052 (DECLARE_QUEUE_P): Use.
1053 (DEFINE_QUEUE_P): Use.
1054 (async_queue_event): Remove.
1055 (gdb_event_xfree): New.
1056 (initialize_event_loop): New.
1057 (process_event): Use QUEUE macros.
1058 (event_queue): Remove.
1059 (gdb_wait_for_event): Caller update.
1060 (check_async_event_handlers): Likewise.
1061 (poll_timers): Likewise.
1062 * event-loop.h (initialize_event_loop): Declare.
1063 * event-loop.c (gdb_event_xfree): New.
1064 * top.c (gdb_init): Call initialize_event_loop.
1065
1066 2013-01-25 Yao Qi <yao@codesourcery.com>
1067
1068 * event-loop.c (async_queue_event): Remove one parameter
1069 'position'. Remove code handling 'position' == TAIL.
1070 (gdb_wait_for_event): Caller update.
1071 (check_async_event_handlers): Caller update.
1072 (poll_timers): Caller update.
1073 * event-loop.h (enum queue_position): Remove.
1074
1075 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1076
1077 * MAINTAINERS: Update my email.
1078
1079 2013-01-25 Yao Qi <yao@codesourcery.com>
1080
1081 * main.c (print_gdb_help): Remove "--epoch" from the help
1082 message.
1083
1084 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1085
1086 * symtab.c (skip_prologue_using_sal): Consider a file
1087 change the same as an increased line number
1088
1089 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1090
1091 * MAINTAINERS (Write After Approval): Add myself to the list.
1092
1093 2013-01-24 Tom Tromey <tromey@redhat.com>
1094
1095 * ada-lang.h (ada_decode_symbol): Make return type const.
1096 * ada-lang.c (ada_decode_symbol): Likewise.
1097
1098 2013-01-23 Doug Evans <dje@google.com>
1099
1100 * linespec.c (find_linespec_symbols): Make static.
1101
1102 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1103
1104 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1105 type on float conversion for complex type.
1106
1107 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1108
1109 Add a new class gdb.Architecture which exposes GDB's
1110 internal representation of architecture via GDB Python API.
1111 * Makefile.in: Add entries corresponding to the new file
1112 python/py-arch.c.
1113 * NEWS (Python Scripting): Add entries for the new class
1114 gdb.Architecture and the new method gdb.Frame.architecture.
1115 * python/py-arch.c: Implement gdb.Architecture class.
1116 * python/py-frame.c (frapy_arch): Implement the method
1117 gdb.Frame.architecture().
1118 (frame_object_methods): Add 'architecture' to the method table.
1119 * python/python-internal.h: Add declarations of new utility
1120 functions.
1121 * python/python.c (_initialize_python): Initialize
1122 gdb.Architecture class.
1123
1124 2013-01-23 Doug Evans <dje@google.com>
1125
1126 Work around binutils/15021.
1127 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1128 type_unit_group out of union s. All uses updated.
1129 (read_index_from_section): Watch for index version 8.
1130 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1131 an imported symtab.
1132 (write_psymtabs_to_index): Increment version number to 8.
1133
1134 2013-01-22 Pedro Alves <palves@redhat.com>
1135
1136 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1137 user-visible.
1138
1139 2013-01-22 Pedro Alves <palves@redhat.com>
1140
1141 * annotate.c (annotate_breakpoints_changed): Rename to ...
1142 (annotate_breakpoints_invalid): ... this. Make static.
1143 (breakpoint_changed): Adjust.
1144 (_initialize_annotate): Always install the observers. Install a
1145 "breakpoint_created" observer.
1146 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1147 * breakpoint.c (set_breakpoint_condition)
1148 (breakpoint_set_commands, do_map_commands_command)
1149 (init_raw_breakpoint, clear_command, set_ignore_count)
1150 (enable_breakpoint_disp): No longer call
1151 annotate_breakpoints_changed.
1152
1153 2013-01-22 Pedro Alves <palves@redhat.com>
1154
1155 * annotate.c: Include "inferior.h".
1156 (frames_invalid_emitted)
1157 (breakpoints_invalid_emitted): New globals.
1158 (async_background_execution_p): New function.
1159 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1160 emitting the annotation if it has already been emitted.
1161 (annotate_display_prompt): New function.
1162 * annotate.h (annotate_display_prompt): New declaration.
1163 * event-top.c: Include annotate.h.
1164 (display_gdb_prompt): Call annotate_display_prompt.
1165
1166 2013-01-22 Pedro Alves <palves@redhat.com>
1167
1168 * annotate.c (ignore_count_changed): Delete.
1169 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1170 (annotate_ignore_count_change): Delete.
1171 (annotate_stopped): Don't emit a delayed breakpoints-changed
1172 annotation.
1173 * annotate.h (annotate_ignore_count_change): Delete.
1174 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1175 annotate_ignore_count_change.
1176
1177 2013-01-22 Tom Tromey <tromey@redhat.com>
1178
1179 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1180 require_rvalue for a register location.
1181
1182 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1183
1184 * breakpoint.c (print_one_breakpoint_location): Add MI
1185 field 'thread-groups' when printing a breakpoint.
1186 (output_thread_groups): New function.
1187
1188 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1189
1190 * python/lib/gdb/commands/explore.py
1191 (CompoundExplorer.explore_expr): Correct the name of a method
1192 being invoked.
1193 (ExploreTypeCommand.invoke): Add a missing 'return'.
1194
1195 2013-01-21 Tom Tromey <tromey@redhat.com>
1196
1197 * gdb_obstack.h (obconcat): Move declaration here, from...
1198 * symfile.h (obconcat): ... here.
1199 * gdb_obstack.c: New file.
1200 (obconcat): Move from...
1201 * symfile.c (obconcat): ... here.
1202 * Makefile.in (SFILES): Add gdb_obstack.c.
1203 (COMMON_OBS): Add gdb_obstack.o.
1204
1205 2013-01-21 Tom Tromey <tromey@redhat.com>
1206
1207 * symfile.h (obsavestring): Don't declare.
1208 * symfile.c (obsavestring): Remove.
1209 * ada-exp.y: Use obstack_copy0, not obsavestring.
1210 * ada-lang.c: Use obstack_copy0, not obsavestring.
1211 * coffread.c: Use obstack_copy0, not obsavestring.
1212 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1213 * dbxread.c: Use obstack_copy0, not obsavestring.
1214 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1215 * jit.c: Use obstack_copy0, not obsavestring.
1216 * mdebugread.c: Use obstack_copy0, not obsavestring.
1217 * psymtab.c: Use obstack_copy0, not obsavestring.
1218 * stabsread.c: Use obstack_copy0, not obsavestring.
1219 * xcoffread.c: Use obstack_copy0, not obsavestring.
1220
1221 2013-01-21 Tom Tromey <tromey@redhat.com>
1222
1223 * dwarf2read.c (fixup_go_packaging): Save package name
1224 on objfile obstack.
1225 * gdbtypes.c (init_type): Don't copy name.
1226
1227 2013-01-21 Tom Tromey <tromey@redhat.com>
1228
1229 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1230 const.
1231 (struct attribute) <u.str>: Now const.
1232 (struct fnfieldlist) <name>: Now const.
1233 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1234 (partial_die_parent_scope): Make return type const.
1235 (partial_die_full_name, add_partial_symbol): Update.
1236 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1237 'name' const.
1238 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1239 (read_file_scope, read_func_scope, dwarf2_add_field)
1240 (dwarf2_add_member_fn, read_structure_type)
1241 (process_enumeration_scope, read_array_type, read_module_type)
1242 (read_base_type, read_subrange_type): Update.
1243 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1244 (new_symbol_full, guess_full_die_structure_name): Update.
1245 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1246 (dwarf2_name): Return const type.
1247 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1248 const.
1249
1250 2013-01-21 Tom Tromey <tromey@redhat.com>
1251
1252 * gdbtypes.c (init_type): Make 'name' const.
1253 * gdbtypes.h (init_type): Update.
1254
1255 2013-01-21 Tom Tromey <tromey@redhat.com>
1256
1257 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1258 (start_symtab): Make 'name' and 'dirname' const. Use
1259 set_last_source_file.
1260 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1261 (last_source_file): Define. Now static.
1262 (set_last_source_file, get_last_source_file): New functions.
1263 * buildsym.h (last_source_file): Don't declare.
1264 (start_symtab): Update.
1265 (set_last_source_file, get_last_source_file): Declare.
1266 * coffread.c (complete_symtab): Use set_last_source_file.
1267 (coff_end_symtab): Likewise.
1268 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1269 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1270 set_last_source_file.
1271 (process_one_symbol): Use get_last_source_file.
1272 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1273 (psymtab_to_symtab_1): Use get_last_source_file.
1274 * xcoffread.c (process_linenos): Use get_last_source_file.
1275 (complete_symtab): Use set_last_source_file.
1276 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1277 (scan_xcoff_symtab): Use set_last_source_file.
1278
1279 2013-01-21 Tom Tromey <tromey@redhat.com>
1280
1281 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1282 (symbol_set_names): Remove casts. Handle field const-ness.
1283
1284 2013-01-21 Tom Tromey <tromey@redhat.com>
1285
1286 * dwarf2read.c (new_symbol_full): Remove cast.
1287 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1288 * symtab.h (symbol_set_demangled_name): Update.
1289
1290 2013-01-21 Tom Tromey <tromey@redhat.com>
1291
1292 * main.c (captured_main): Call bfd_init.
1293
1294 2013-01-21 Tom Tromey <tromey@redhat.com>
1295
1296 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1297 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1298 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1299 * NEWS: Update.
1300
1301 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1302
1303 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1304
1305 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1306
1307 Fix gdb.fortran/common-block.exp crash in PIE mode.
1308 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1309 LOC_COMMON_BLOCK.
1310 * f-valprint.c (info_common_command_for_block): Expect
1311 LOC_COMMON_BLOCK in gdb_assert.
1312 * symtab.h (struct general_symbol_info): Update comment for the
1313 common_block member.
1314 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1315 (enum address_class): New member LOC_COMMON_BLOCK.
1316
1317 2013-01-18 David Blaikie <dblaikie@gmail.com>
1318
1319 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1320
1321 2013-01-18 Tom Tromey <tromey@redhat.com>
1322
1323 PR c++/14999:
1324 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1325 Call require_rvalue.
1326
1327 2013-01-18 Yao Qi <yao@codesourcery.com>
1328
1329 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1330 (dbx_read_symtab): New declaration.
1331 (dbx_psymtab_to_symtab): Delete.
1332 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1333 Rename parameter PST to SELF. Exchanged two parameters.
1334 (start_psymtab): Caller update.
1335 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1336 (dwarf2_read_symtab): New declaration.
1337 (dwarf2_psymtab_to_symtab): Delete.
1338 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1339 Rename parameter PST to SELF. Exchanged two parameters.
1340 (create_partial_symtab): Caller update.
1341 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1342 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1343 Rename parameter PST to SELF. Exchanged two parameters.
1344 (parse_partial_symbols, new_psymtab): Caller update.
1345 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1346 two parameters.
1347 * psymtab.c (psymtab_to_symtab): Caller update.
1348 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1349 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1350 Rename parameter PST to SELF. Exchanged two parameters.
1351 (xcoff_start_psymtab): Caller update.
1352
1353 2013-01-18 Yao Qi <yao@codesourcery.com>
1354
1355 * infrun.c (proceed): Rename local variable 'oneproc' to
1356 'force_step'.
1357
1358 2013-01-17 Doug Evans <dje@google.com>
1359
1360 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1361 (dw2_build_type_unit_groups): Delete. All uses updated.
1362
1363 * symtab.h (struct symbol_search): Add comment.
1364
1365 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1366
1367 * symtab.c (compare_filenames_for_search): New comment for
1368 HAS_DRIVE_SPEC.
1369
1370 2013-01-17 Tom Tromey <tromey@redhat.com>
1371
1372 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1373
1374 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1375
1376 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1377 initialize it by existing make_cleanup. Call new do_cleanups.
1378
1379 2013-01-17 Tom Tromey <tromey@redhat.com>
1380
1381 * cp-abi.c (cp_abi_completer): New function.
1382 (_initialize_cp_abi): Set completer for "set cp-abi".
1383
1384 2013-01-17 Tom Tromey <tromey@redhat.com>
1385
1386 * mem-break.c: Remove obsolete comment.
1387 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1388
1389 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1390
1391 * jit.c (jit_reader_load_command): Interpret the jit reader name
1392 as an absolute path if it begins with a forward slash.
1393
1394 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1395
1396 PR gdb/14550
1397
1398 * jit.c (finalize_symtab): Ensure that only the global block has a
1399 NULL superblock.
1400
1401 2013-01-17 Pedro Alves <palves@redhat.com>
1402
1403 * acinclude.m4: Include ../config/plugins.m4,
1404 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1405 * Makefile.in (aclocal_m4_deps): Update.
1406 * aclocal.m4: Renegerate.
1407
1408 2013-01-16 Doug Evans <dje@google.com>
1409
1410 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1411
1412 2013-01-16 Pedro Alves <palves@redhat.com>
1413 Tom Tromey <tromey@redhat.com>
1414
1415 PR cli/7221:
1416 * NEWS: Add "catch signal".
1417 * breakpoint.c (base_breakpoint_ops): No longer static.
1418 (bpstat_explains_signal): New function.
1419 (init_catchpoint): No longer static.
1420 (base_breakpoint_explains_signal): New function.
1421 (base_breakpoint_ops): Initialize new field.
1422 * breakpoint.h (enum bpstat_signal_value): New.
1423 (struct breakpoint_ops) <explains_signal>: New field.
1424 (bpstat_explains_signal): Remove macro, declare as function.
1425 (base_breakpoint_ops, init_catchpoint): Declare.
1426 * break-catch-sig.c: New file.
1427 * inferior.h (signal_catch_update): Declare.
1428 * infrun.c (signal_catch): New global.
1429 (handle_syscall_event): Update for change to
1430 bpstat_explains_signal.
1431 (handle_inferior_event): Likewise. Always handle random signals
1432 via bpstats.
1433 (signal_cache_update): Check signal_catch.
1434 (signal_catch_update): New function.
1435 (_initialize_infrun): Initialize signal_catch.
1436 * Makefile.in (SFILES): Add break-catch-sig.c.
1437 (COMMON_OBS): Add break-catch-sig.o.
1438
1439 2013-01-16 Tom Tromey <tromey@redhat.com>
1440
1441 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1442 (print_one_catch_solib, print_one_catch_syscall)
1443 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1444 "catch-type".
1445
1446 2013-01-16 Yao Qi <yao@codesourcery.com>
1447
1448 * printcmd.c (current_display_number): Make it static.
1449
1450 2013-01-16 Yao Qi <yao@codesourcery.com>
1451
1452 * infcmd.c (step_once): Don't check '!single_inst' as it was
1453 checked before.
1454
1455 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1456
1457 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1458
1459 2013-01-14 Tom Tromey <tromey@redhat.com>
1460
1461 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1462 set command.
1463 * command.h (add_setshow_string_noescape_cmd): Update.
1464 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1465 (complete_set_gnutarget): New function.
1466 (_initialize_core): Set the "set gnutarget" completer.
1467
1468 2013-01-14 Tom Tromey <tromey@redhat.com>
1469
1470 PR symtab/14442:
1471 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1472 (c_type_print_modifier): Likewise.
1473 * dwarf2read.c (read_tag_restrict_type): New function.
1474 (read_type_die_1): Handle DW_TAG_restrict_type.
1475 * gdbtypes.c (make_restrict_type): New function.
1476 (recursive_dump_type): Handle TYPE_RESTRICT.
1477 * gdbtypes.h (enum type_flag_values): Renumber.
1478 (enum type_instance_flag_value): Add
1479 TYPE_INSTANCE_FLAG_RESTRICT.
1480 (TYPE_RESTRICT): New macro.
1481 (make_restrict_type): Declare.
1482
1483 2013-01-14 Tom Tromey <tromey@redhat.com>
1484
1485 PR symtab/14931:
1486 * psymtab.c (struct psymtab_state): New.
1487 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1488 functions.
1489 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1490 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1491
1492 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1493 Pedro Alves <palves@redhat.com>
1494
1495 PR remote/14786
1496
1497 * remote.c (remote_threads_info): Make a copy of the reply from
1498 qfThreadInfo and use that instead of rs->buf.
1499
1500 2013-01-14 Yao Qi <yao@codesourcery.com>
1501
1502 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1503 (dbx_psymtab_to_symtab): Likewise.
1504 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1505 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1506 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1507
1508 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1509
1510 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1511 make_cleanup_restore_current_language. Call set_language. Move
1512 OLD_CHAIN and INNER_CHAIN cleanups.
1513 * utils.c (do_restore_current_language)
1514 (make_cleanup_restore_current_language): New functions.
1515 * utils.h (make_cleanup_restore_current_language): New declaration.
1516
1517 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1518
1519 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1520 non-existing files.
1521
1522 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1523 non-existing files if FILENAME is already absolute.
1524
1525 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1526
1527 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1528 fputs_filtered. Append trailing newline.
1529
1530 2013-01-11 Yao Qi <yao@codesourcery.com>
1531 Stan Shebs <stan@codesourcery.com>
1532
1533 * psymtab.c (init_psymbol_list): Clarify the comment.
1534
1535 2013-01-11 Yao Qi <yao@codesourcery.com>
1536
1537 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1538 (update_dprintf_command_list): Assert that 'printf_line' is
1539 non-null. Remove condition check.
1540
1541 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1542
1543 Code cleanup.
1544 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1545 type const char *.
1546 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1547 const char *.
1548 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1549
1550 2013-01-09 Anthony Green <green@moxielogic.com>
1551
1552 * cp-abi.c (cplus_print_vtable): Don't return value from void
1553 function.
1554 * ada-lang.c (re_set_catch_assert): Ditto.
1555
1556 2013-01-09 Doug Evans <dje@google.com>
1557
1558 * symfile.h (quick_symbol_functions): Delete member
1559 pre_expand_symtabs_matching. All uses removed.
1560 * dwarf2read.c (dw2_lookup_symbol): Implement.
1561 (dw2_do_expand_symtabs_matching): Delete.
1562 (dw2_pre_expand_symtabs_matching): Delete.
1563 (struct dw2_symtab_iterator): New type.
1564 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1565 (dw2_expand_symtabs_for_function): Rewrite.
1566 (dwarf2_gdb_index_functions): Update.
1567 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1568 (psym_functions): Update.
1569
1570 2013-01-09 Tom Tromey <tromey@redhat.com>
1571
1572 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1573 * configure: Rebuild.
1574 * configure.ac: Add somread.o to the build if BFD has SOM
1575 support.
1576 * somread.c: Include som/aout.h, not syms.h.
1577 (som_symtab_read): Use som_external_symbol_dictionary_record.
1578 Unpack records manually.
1579 (_initialize_somread): Declare.
1580
1581 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1582
1583 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1584 Cast return_address to 64bits.
1585
1586 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1587
1588 * printcmd.c: Remove define of function output_command.
1589 * tracepoint.c: Remove extern of function output_command.
1590 * valprint.h: (output_command): New extern.
1591
1592 2013-01-07 Tom Tromey <tromey@redhat.com>
1593
1594 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1595 Remove.
1596 (objc_language_defn): Use c_printchar, c_printstr,
1597 c_emit_char.
1598
1599 2013-01-07 Tom Tromey <tromey@redhat.com>
1600
1601 PR cli/7719:
1602 * NEWS: Update.
1603 * ada-valprint.c (printstr, print_field_values): Remove
1604 "inspect_it" code.
1605 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1606 code.
1607 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1608 code.
1609 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1610 * main.c (captured_main): Remove "epoch" argument.
1611 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1612 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1613 * p-valprint.c (pascal_object_print_value_fields): Remove
1614 "inspect_it" code.
1615 * printcmd.c (print_command_1): Remove 'inspect' argument.
1616 (print_command, call_command): Update.
1617 (inspect_command): Remove.
1618 (_initialize_printcmd): Make "inspect" an alias for "print".
1619 * top.c (epoch_interface): Remove.
1620 * top.h (epoch_interface): Remove.
1621 * valprint.c (user_print_options): Update.
1622 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1623 * valprint.h (struct value_print_options) <inspect_it>: Remove
1624 field.
1625
1626 2013-01-04 Tom Tromey <tromey@redhat.com>
1627
1628 * valprint.h (read_string): Add 'extern'.
1629
1630 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1631
1632 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1633 used to decide whether to define darwin_read_dyld_info or not.
1634
1635 2013-01-03 Pierre Muller <muller@sourceware.org>
1636
1637 * main.c (relocate_gdb_directory): Avoid calling stat function
1638 if DIR is empty.
1639
1640 2013-01-03 Yao Qi <yao@codesourcery.com>
1641
1642 * psymtab.c (fixup_psymbol_section): Update declaration.
1643 (fixup_psymbol_section): Remove code returning value.
1644
1645 2013-01-03 Yao Qi <yao@codesourcery.com>
1646
1647 * symtab.h: Remove some out of date comments.
1648 (enum exception_event_kind): Move it ...
1649 * breakpoint.c: ... here.
1650
1651 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1652
1653 PR gdb/14405
1654 * darwin-nat.c (darwin_read_dyld_info): Only build if
1655 TASK_DYLD_INFO_COUNT is defined.
1656 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1657 TASK_DYLD_INFO_COUNT is defined.
1658
1659 2013-01-02 Tom Tromey <tromey@redhat.com>
1660
1661 * symfile.h (struct ecoff_debug_hack): Remove.
1662 * objfiles.c: Don't include mdebugread.h.
1663
1664 2013-01-02 Tom Tromey <tromey@redhat.com>
1665
1666 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1667 * configure.ac: Check for Mach-O support in BFD. Update
1668 CONFIG_OBS.
1669 * configure: Rebuild.
1670
1671 2013-01-02 Tom Tromey <tromey@redhat.com>
1672
1673 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1674 * configure.ac: Use GDB_AC_CHECK_BFD.
1675 * configure: Rebuild.
1676
1677 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1678
1679 * MAINTAINERS: Update my email.
1680
1681 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1682
1683 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1684
1685 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1686
1687 * rs6000-nat.c (bss_data_overlap): New function.
1688 (vmap_symtab): Use it to adjust the .bss section's offset.
1689
1690 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1691
1692 Update year range in copyright notice of all files.
1693
1694 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1695
1696 * top.c (print_gdb_version): Update copyright year.
1697
1698 For older changes see ChangeLog-2012.
1699 \f
1700 Local Variables:
1701 mode: change-log
1702 left-margin: 8
1703 fill-column: 74
1704 version-control: never
1705 coding: utf-8
1706 End: